Back to projects
II LoDCOREMadrid Datathon · 2026Prototype presented

El Rincón de Madrid

For the II LoDCOREMadrid Datathon, our team built a platform to explore data, model scenarios and compare 155 municipalities across the Madrid region.

01CONTEXT

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.

02WHAT WE BUILT

01

Predictor

As a team, we built a predictor that estimates population change from demographic and migration components, with uncertainty ranges.

02

Simulator

Models hypothetical population growth and its impact on education, healthcare, housing and transport.

03

Recommender

As a team, we built a recommender that ranks municipalities for residents, entrepreneurs and public administrators.

04

Assistant

Lets users ask natural-language questions about the results from the other modules.

03WHAT I WORKED ON

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.

Cloud and deployment

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.

Simulator API and APEX

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.

Chatbot

I took responsibility for the assistant: follow-up context, result snapshots and checking the sources used in its answers.

Recommender integration

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.

04TECHNOLOGIES

Backend

PythonFastAPIREST APIs

Interface

Oracle APEX

Cloud

Oracle Cloud InfrastructureAutonomous DatabaseCompute VMAPI Gateway

Data

SQLETLPublic datasets

AI

OpenAI

Testing and collaboration

PytestGitGitHub

05ARCHITECTURE

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.

Datathon architecture diagram: local development is pushed to GitHub and deployed to an Oracle Cloud VM. Users access Oracle APEX, which connects through OCI API Gateway to a FastAPI service. The API uses processed data and models, and connects to the simulator, recommender and an internal chatbot integrated with OpenAI.
Select the image to view it at full size.

06TECHNICAL CHALLENGES

FastAPI and Oracle APEX

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.

Keeping the assistant in context

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.

Integrating the recommender without changing its results

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.

07STATUS & OUTCOMES

155target municipalities
19original sources
16ETL scripts
25clean data files

We presented a working prototype on 29 October. Latest backend validation: 1,270 tests passed.

Back to projects