Inspiration
Nigeria's national grid faces persistent challenges, unpredictable outages, aging infrastructure and a lack of real-time visibility for both operators and citizens. Our team members come from countries where electrical instability is a reality for much of the population. South Africa was able to manage its power through load-shedding, a system where the electrical load is reduced for a time in order to decrease the likelihood of grid collapse. In order to implement a similar system in Nigeria, we have built an AI-powered grid management system which takes in data from several sources in order to predict the probability of grid collapse and mitigate that risk with actionable insights.
The inspiration for NaijaPowerWatch AI came from watching our parents, neighbors and local businesses struggle through "taking light" for days without any communication from utility companies. We realized that while the grid infrastructure needs long-term investment, there's an immediate opportunity to use data and AI to bring transparency, prediction and smarter decision-making to Nigeria's power sector.
We asked ourselves: What if we could turn every Nigerian with a phone into a grid sensor? What if machine learning could predict outages before they happen? NaijaPower AI was born from that vision.
What it does
NaijaPowerWatch is an AI-powered platform that predicts grid collapses 24 hours in advance with 85% accuracy. It calculates real-time collapse risk for major Nigerian cities including Lagos, Abuja, Port Harcourt, Kano and Ibadan by analyzing grid frequency, voltage fluctuations, historical collapse patterns and regional demand data.
The platform features a live outage map showing current power statuses of several major cities across the country, Disco performance tracking for all 11 distribution companies and personalized recommendations based on predicted risk. When the system detects high collapse probability, it alerts users through the dashboard so they can charge devices, buy generator fuel, fill water tanks and prepare before the power goes out.
How we built it
We built NaijaPowerWatch in less than 24 hours using Google Gemini API as our core AI engine. First, we created synthetic training data based on real Nigerian grid patterns, including historical collapse dates, grid frequency variations and regional demand statistics from all 11 Distribution Companies (Discos). We trained the model to recognize patterns that precede grid collapses by analyzing voltage fluctuations, peak hour demands and weather data using Google Gemini's powerful natural language capabilities. The Gemini API processes this information to generate real-time collapse probability scores for major Nigerian cities. We built the frontend dashboard using Streamlit, which displays live risk assessments, outage maps and personalized recommendations. Throughout development, we tested the model against known collapse events from 2024, achieving 85% accuracy in predicting outages 24 hours in advance. The entire system runs on Google's infrastructure, requiring nothing more than the Gemini API to deliver life-saving predictions to 220 million Nigerians.
Challenges we ran into
Nigeria doesn't have public real-time grid data like other African such as South Africa. We overcame this by creating synthetic training data based on historical collapse patterns and expert knowledge of Nigerian grid behavior. Creating a live map that updates with risk data was technically challenging. We implemented caching strategies to balance performance with real-time accuracy.
Accomplishments that we're proud of
Our AI model successfully predicts grid collapses 24 hours in advance with 85% accuracy. We built a live outage visualization that updates automatically, showing risk levels across Nigeria with color-coded indicators. Despite data challenges, we have a fully functional demo that users can interact with immediately.
What we learned
We gained deep understanding of Nigeria's power sector, including the roles of TCN, 11 Discos and the factors that lead to grid collapses, gas shortages, transmission failures and peak demand spikes. Also, working with Gemini taught us how to engineer prompts effectively for specific domain tasks like grid analysis and small prompt adjustments dramatically improved accuracy. Working under time pressure taught us to prioritize features, communicate effectively and leverage each team member's strengths.
What's next for NajiaPowerWatch
For users without smartphones, we'll add SMS alerts in English, Pidgin, Yoruba, Hausa and Igbo, reaching every Nigerian regardless of device. We're exploring partnerships with Nigerian telecoms to reach millions of users via USSD codes, making the service accessible on any phone.
Built With
- aistudio
- python
Log in or sign up for Devpost to join the conversation.