Predictor
As a team, we built a predictor that estimates population change from demographic and migration components, with uncertainty ranges.
For the II LoDCOREMadrid Datathon, our team built a platform to explore data, model scenarios and compare 155 municipalities across the Madrid region.
We worked with public data from 155 municipalities with fewer than 50,000 residents. Rather than build a dashboard alone, we wanted to answer practical questions: how might the population change, what needs could new residents create, and which municipalities fit different profiles? We built the prototype for the second LoDCOREMadrid Datathon and presented it on 29 October 2026.
As a team, we built a predictor that estimates population change from demographic and migration components, with uncertainty ranges.
Models hypothetical population growth and its impact on education, healthcare, housing and transport.
As a team, we built a recommender that ranks municipalities for residents, entrepreneurs and public administrators.
Lets users ask natural-language questions about the results from the other modules.
My work focused on cloud infrastructure and connecting services to Oracle APEX. I also worked on the simulator API, the conversational assistant and integrating the recommender.
I prepared part of the Oracle Cloud environment: Autonomous Database, APEX, the backend VM, its services and API Gateway. I also adjusted network access and checked deployments.
I worked on the FastAPI simulator and its APEX integration. I adjusted REST data sources and JSON response mappings; that helped us find why some backend results were not appearing on screen.
I took responsibility for the assistant: follow-up context, result snapshots and checking the sources used in its answers.
I integrated the recommender engine we built as a team into the main API, preserving its rankings and criteria. I added endpoint authentication, connected it to the Gateway and APEX, and checked all three profiles.
We used Oracle APEX as the interface, connected through OCI API Gateway to a FastAPI service on an Oracle Cloud VM. The API brought together processed data and models with the simulator and recommender. The internal chatbot received a snapshot of results and used OpenAI to explain them.

The API returned the simulator results as JSON, but some values did not appear in APEX.
I reviewed the REST data source mappings and corrected fields configured as input parameters when they were output values.
APEX displayed results that the backend was already calculating.
One challenge was keeping track of the conversation. If someone asked about 1,000 new residents in a municipality and then followed up with “what if it were 2,000?”, the assistant needed to know they were still talking about the same place.
To handle this, we made the backend retrieve the conversation context and prepare updated results before sending them to the AI model. That way, the assistant could explain the data without calculating it itself.
The recommender engine needed to work in the application without duplicating its logic or changing its rankings and scores.
I connected it to the main API and added authentication.
All three profiles kept their rankings and criteria when called from the application.
We presented a working prototype on 29 October. Latest backend validation: 1,270 tests passed.
Adjusting new arrivals and viewing education, healthcare, housing and transport indicators.
Preferences for exploring municipalities alongside the ranking and assistant conversation.
Observed and forecast population trends with uncertainty bands.
Map view with a municipality detail card selected.