The local media reported that one of the suspects was staying at a refugee centre in Germany.

German police arrested two Algerians suspected of having links with the Islamic State on Thursday, 4 February 2016. In picture: A German police car is parked outside an accommodation center for asylum seekers in Recklinghausen, north of Cologne, Germany January 22, 2016Reuters

German police have reportedly arrested two Algerians on suspicion of having links with the Islamic State group and threatening the country's security.

Hundreds of police officers conducted raids in Berlin and other parts of Germany to look for four people from Algeria who were allegedly planning a "serious act threatening the security of the state," the German police said in a statement, according to Deutsche Welle.

The news site cited local media reporting that at least one of the suspects was staying at a refugee processing centre in Germany. A police official told a local news channel that "the refugee shelters where the suspects lived were searched," according to AFP.

The police said that one of the arrested Algerian men had "trained militarily in Syria". The police are still hunting for two more suspects.

Germany has seen one of the biggest influx of refugees in the past year, with more than a million migrants entering the country in 2015. On Thursday, reports said that 91,671 asylum seekers had been registered in Germany in January.

Thursday's raids were carried out in Berlin, Hanover and Attendorn following alerts by local intelligence authorities. A woman was also reportedly detained in the raids.

Security has been increased in Germany following the November terror attacks in Paris and cases of mass sexual assaults in several German cities on New Year's Eve.