The city government of Ceuta is studying an early-warning system using artificial intelligence to detect possible migratory pressure at the city's border, according to El Faro de Ceuta.
The plan was outlined by Ceuta's finance councillor, Kissy Chandiramani, during the presentation of the city's 2027 budget, the newspaper reported on 2 November.
The councillor described a tool that would detect, in advance, situations of migratory pressure at the border. She declined to give further details, saying the project was still being studied.
No budget, technology or timeline has been announced. The city has set up a €4.3 million fund named "Ceuta no se rinde", covering emergency costs from 1 January and growth, security and border projects.
The councillor stressed that the idea does not reflect any distrust of Spain's state bodies, expressing confidence in the national intelligence service, defence officials, the National Police and the Guardia Civil.
The project comes three months after the mass crossing of 30 and 31 July, when some 70,000 people entered Ceuta irregularly, according to Spanish Prime Minister Pedro Sánchez.
Four in five of those who crossed on 30 July swam around the Tarajal breakwater, Sánchez told the Spanish Congress on 3 September, during a session on the government's handling of the events.
The figures he presented also showed the speed of the response. About 50,000 people had returned within 24 hours, and around 63,000 within 72 hours, more than 90% of those who had entered.
Sánchez credited that result to close coordination with the Moroccan authorities. Without it, he said, the returns would have been legally and logistically impossible.
He also said Morocco's gendarmerie controlled the border effectively, carrying out hundreds of arrests on 12 and 15 August.
Early warning lies at the heart of Ceuta's idea. Sánchez told lawmakers that none of the reports received before 30 July anticipated the scale or likelihood of what happened.
A note issued on 29 July warned of a potential risk of irregular entries, he said, but gave only a low-to-medium probability to a coordinated surge. The matter is now under judicial investigation in Spain.
Madrid has since answered with heavy security spending. Sánchez cited an investment budget of €77 million for the borders of Ceuta and Melilla, with a further €100 million for both.
The plans include extending the Tarajal and Benzú breakwaters, a permanent maritime containment system, more cameras and drones, and an expansion of the Guardia Civil's integrated external surveillance system, known as SIVE.
The number of Spanish police and Guardia Civil officers deployed in Ceuta rose to 1,600, and Madrid said it would seek a permanent presence of the EU border agency Frontex at the port and breakwater.
Any AI system of the kind Ceuta describes would also fall under European rules. The EU's Artificial Intelligence Act classes several migration and border tools as "high-risk".
Its Annex III covers systems used by public authorities "to assess a risk, including a security risk, a risk of irregular migration", posed by a person who intends to enter a member state.
Systems in that category are subject to the Act's specific requirements for high-risk AI, which means a local early-warning tool would have to meet EU standards, not only win budget approval.
Rabat, for its part, has set out its own position. Opening parliament on 9 October, King Mohammed VI said Morocco's balanced approach to migration "has produced tangible results".
The King added that "the current cooperation model in this area has become outdated", citing Spain, Morocco's neighbour, and "some obsolete legal provisions and unrealistic judicial rulings".
According to the speech, these provisions end up "impeding the repatriation of minors and of fake asylum seekers", "while fueling the greed of criminal networks".
The King also stressed that the partnership with Spain "is a sovereign choice and a voluntary commitment" and that it "will never be subject to any pressure, threat, or blackmail".
He described Morocco as "a responsible and reliable partner committed to fulfilling its obligations", and announced that the Kingdom "will present a document to its partners setting out a clear and practical strategic vision".
Morocco's own figures show the scale of that effort. The Moroccan Interior Ministry reported that 73,640 irregular migration attempts were foiled in 2025.
The two countries' cooperation rests on the joint declaration adopted on 7 April 2022 after talks between the King and Sánchez, which committed both sides to relaunch and strengthen cooperation on migration.
The same roadmap provided for the orderly normalisation of the movement of people and goods, including appropriate customs and personal controls at land and sea borders.
Interior Ministers Abdelouafi Laftit and Fernando Grande-Marlaska later met in Madrid on 10 February 2025, stressing active solidarity between both countries against migrant smuggling.
Ceuta's AI proposal therefore lands in a wider debate. Technology may sharpen alerts on the Spanish side, but the July returns, by Sánchez's own account, depended on coordination with Rabat.
The debate also comes weeks before Spain's general election, set for 29 November.
It is worth noting that the EU rules also cover AI used in border control "for the purpose of detecting, recognising or identifying natural persons", with the exception of travel document checks.