Logo Lanfrica

mazimum86/nigeria-state-predictor

Domain:

geospatial

Record type:

software
Creator:
maz
Host:
# ๐ŸŒ Nigerian State Predictor Using Latitude & Longitude This Streamlit web app uses a trained Artificial Neural Network (ANN) to predict the Nigerian state for any given **latitude and longitude**. It also returns the **top 3 most probable states** and their associated prediction confidence. > ๐ŸŽฏ Built for data-driven geospatial classification using major telecoms and collocation partner datasets across Nigeria. --- ## ๐Ÿ“Œ Demo ๐Ÿ”— Live App: Streamlit Cloud Deployment --- ## โœจ Features - ๐Ÿ“ Predicts one of **37 Nigerian regions** (36 states + FCT renamed to Abuja) - ๐Ÿ”ข Uses a trained ANN (`main_model.keras`) and scaled features via `scaler.pkl` - ๐Ÿ“Š Shows top 3 predictions with probabilities - ๐Ÿง  Trained on telecom infrastructure geocoordinates - ๐ŸŒ Powered by TensorFlow, Streamlit, and Scikit-learn --- ## ๐Ÿง  How It Works ### Input: - Latitude (e.g., `9.0578`) - Longitude (e.g., `7.4951`) ### Output: - Most likely state: `Abuja` - Probability: `92.4%` - Other candidates: `Nasarawa (6.3%)`, `Kogi (1.3%)` --- ## ๐Ÿ› ๏ธ Setup Locally ```bash # Clone the repo git clone github.com cd nigeria-state-predictor # Create and activate a virtual environment conda create -n streamlit-env python=3.10 conda activate streamlit-env # Install required libraries pip install -r requirements.txt # Run the app streamlit run main.py ``` ## ๐Ÿ“ Project Structure ``` ๐Ÿ“ฆ nigeria-state-predictor/ โ”ฃ ๐Ÿ“œmain.py โ”ฃ ๐Ÿ“œrequirements.txt โ”ฃ ๐Ÿ“œruntime.txt โ”ฃ ๐Ÿ“œscaler.pkl โ”ฃ ๐Ÿ“œmain_model.keras โ”— ๐Ÿ–ผ๏ธscreenshot.png โ”œโ”€โ”€ .streamlit/ โ”‚ โ””โ”€โ”€ config.toml โ””โ”€โ”€ README.md ``` ## ๐Ÿ“ธ Screenshots ## ๐Ÿ“ค Deployment App is deployed on Streamlit Cloud. Free to use, open source, and no signup required for visitors! ## ๐Ÿ™‹โ€โ™‚๏ธ Creator Info ๐Ÿ”ง Created by: Chukwuka Chijioke Jerry ๐Ÿ“ง Email: chukwuka.jerry@gmail.com ๐Ÿ“ฑ WhatsApp: +2348038782912 ๐Ÿ”— LinkedIn: linkedin.com ๐Ÿฆ X (Twitter): @Mazimum_ ๐Ÿ Future Work ๐Ÿ“ฆ Add support for batch predictions via file upload ๐ŸŒ Extend model to โ€ฆ