Architecture
Author: Cansu Moran
Pipeline Overview
The reservoir computing system comprises several components designed to streamline data preprocessing, prediction, and storage. Below is an outline of the architecture:
-
Data Ingestion
- Historical FCS and RCSI data for each country are fetched daily.
- New data is used for the predictions, ensuring the model operates on the latest information.
-
Preprocessing
- Data is structured for compatibility with the reservoir computing model.
-
Reservoir Computing Model
- Built using the
scan
package from DLR. - Generates predictions for FCS and RCSI values, along with their bounds, for the next 90 days.
- Built using the
-
Prediction Update and Storage
- Predictions are rounded to the nearest integer.
- Data is saved to the database, with unique keys (
adm0_code
,prediction_date
) ensuring accurate updates and insertions.
-
API Endpoint for Predictions
- Predictions are exposed through an API endpoint that provides structured data for frontend visualization.
Diagram
[ Data Ingestion ] ---> [ Preprocessing ] ---> [ Reservoir Computing Model ] ---> [ Database ] ---> [ API Endpoint ]