Logo Lanfrica
  • Accueil
  • Atlas
  • Analyses
  • Documentation
  • Sign in

© 2026 Lanfrica. Tous droits réservés. Tous les droits d'auteur des ressources affichées sur le site Web Lanfrica appartiennent aux détenteurs de droits d'auteur d'origine, sauf indication contraire explicite.

1hamzaachour-ai/tunisia-outage-predictor

Domaine:

environment and energydigital infrastructure

Type de record:

software
Créateur:
1ha
Hôte:
Nationwide SONEDE/STEG outage prediction for Tunisia - ML + RAG + WhatsApp/Email/SMS alerts (Streamlit) # Tunisia Outage Predictor Streamlit dashboard that predicts water (SONEDE) and electricity (STEG) outages across Tunisia's 24 governorates and notifies residents over WhatsApp, email or SMS. **Live browser demo** — static version of the dashboard (GitHub Pages, no backend). ## Features - Per-governorate outage risk from two RandomForest classifiers (temperature, dam level, grid load, seasonality) - 7-day risk forecast chart (Altair) with hover tooltips - Retrieval-augmented explanations: relevant SONEDE/STEG/INM alerts are ranked and summarized into a two-sentence "why" for each predicted cut (LLM when an OpenAI key is set, offline template otherwise) - Alert gateway with four delivery channels: Twilio WhatsApp sandbox, Gmail SMTP (any recipient), Resend, CallMeBot — each falls back to a console simulator when credentials are missing - Self-bootstrapping: a fresh clone generates its dataset and trains its models on first launch ## Tech stack Python 3.11+, Streamlit, scikit-learn, pandas, Altair, Twilio, Resend, python-dotenv. ## Setup ```bash git clone github.com cd tunisia-outage-predictor pip install -r requirements.txt cp .env.example .env # then fill in the keys you have (all optional) streamlit run app.py ``` First launch takes ~30 seconds while the dataset and models are built. ## Usage - Pick a governorate and drag the temperature / dam-level sliders, or use the **Crisis** / **Calm day** presets in the sidebar. - When a cut is predicted, the situation analysis explains why and the **Send Alert to Residents** button becomes active. - Choose the delivery channel in the sidebar gateway panel. Without keys the send is simulated and printed to the console. CLI delivery test (polls Twilio for the delivery receipt): ```bash python scripts/send_test_alert.py --to +216XXXXXXXX ``` Rebuild the data or models manually: ```bash python -m outage.data python -m outage.train ``` ## Project layout ``` …

Visit

github.com

Licenses

MIT

Similaires

Bax-dev/AI-Power-Outage-Predictor1hamzaachour-ai/ATB-ATM-LOCATOR-aminemanai2003/tunisia-electricity-outage-risk1hamzaachour-ai/tunisian-car-market-analyzerbramwelanguza-1/kenya-power-outage-aiJomar77/Tunisia-House-Price-Predictor

Bax-dev/AI-Power-Outage-Predictor

AI Power Outage Predictor for energy loss and gain in Nigeria # AI Power Outage Predictor A comple

1hamzaachour-ai/ATB-ATM-LOCATOR-

Full-featured Flutter banking app for Arab Tunisian Bank - Real-time ATM map, AI chatbot in Tunisian

aminemanai2003/tunisia-electricity-outage-risk

Survey-weighted actuarial study of electricity-interruption losses, conditional provisions and risk

1hamzaachour-ai/tunisian-car-market-analyzer

BI stack for the Tunisian used-car market: ETL, a PostgreSQL star schema warehouse, a FastAPI backen

bramwelanguza-1/kenya-power-outage-ai

app.py Kenya_Power_Outage_Estimated_Data.xlsx # kenya-power-outage-ai app.py Kenya_Power_Outage_E

Jomar77/Tunisia-House-Price-Predictor

contains a machine learning model for predicting house prices in Tunisia using various algorithms an