Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

Β© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

abdelazizabakartahir/first-neural-network-africa-

Domain:

socioeconomic
Creator:
abd
Host:
# First Neural Network - African Data Exploration ## πŸ“Œ Overview This project builds and trains a **neural network using TensorFlow/Keras** on African economic data (GDP per capita, population, year) to predict **life expectancy**. It compares deep learning performance with traditional machine learning models (Linear Regression, Random Forest) and experiments with different architectures. ## πŸ‘€ Author **Abdelaziz Abakar Tahir** - AISIP Cohort 1 (Africa AI Hub) --- ## πŸ“Š Dataset - **Source:** Gapminder / World Bank - **Time period:** 1952 - 2007 - **Countries:** 54 African nations - **Features:** - `year` - Year of observation - `pop` - Population - `gdpPercap` - GDP per capita (USD) - **Target:** `lifeExp` - Life expectancy (years) - **Samples:** 576 rows --- ## 🧠 Neural Network Architecture (Base Model) | Layer | Type | Neurons | Activation | |-------|------|---------|------------| | Input | Dense | 64 | ReLU | | Output | Dense | 1 | Linear | - **Optimizer:** Adam (learning rate = 0.001) - **Loss Function:** Mean Squared Error (MSE) - **Metrics:** Mean Absolute Error (MAE) - **Epochs:** 50 - **Batch Size:** 32 - **Validation Split:** 20% --- ## πŸ“ˆ Loss Curves *Left: Training vs Validation Loss (MSE) over 50 epochs* *Right: Training vs Validation MAE over 50 epochs* The curves show convergence with no significant overfitting, as both training and validation losses decrease together. --- ## πŸ“Š Model Comparison Results | Model | MSE | RΒ² Score | |-------|-----|----------| | Neural Network (64 neurons) | 18.45 | 0.85 | | Linear Regression | 22.31 | 0.82 | | **Random Forest** | **12.67** | **0.89** | **Key Finding:** Random Forest outperformed the neural network on this small tabular dataset (576 samples). --- ## πŸ§ͺ Experimentation Results | Model | Architecture | MSE | RΒ² Score | |-------|--------------|-----|----------| | Base Model | 64 neurons | 18.45 | 0.85 | | + Hidden Layer + Dropout | 64 β†’ 32 + Dropout(0.2) | 19.23 | 0.84 | | Increased Neurons | 1 …

Visit

github.com

Similar

abdelazizabakartahir/senegal-whatsapp-disinformation-detectorAfrica wildlife prediction based on custom convolutional neural networkIHIaadj/Neural-Network-Workshop-Neural Network Prediction of Self-Similarity Network TrafficDaksam/neural-network-parameter-estimationAn Artificial Neural Network Approach to Multispectral Rainfall Estimation over Africa

abdelazizabakartahir/senegal-whatsapp-disinformation-detector

# πŸ‡ΈπŸ‡³ Senegal WhatsApp Disinformation Detector ## πŸ“Œ Overview This project detects viral politic

Africa wildlife prediction based on custom convolutional neural network

In domains like psychology, computer science, and artificial intelligence, facial expression recogni

IHIaadj/Neural-Network-Workshop-

A Jupyter notebook that describes all the content of the workshop of School of AI Algiers. # Neural

Neural Network Prediction of Self-Similarity Network Traffic

Several factors are found to influence either short or long-term burstiness in Transmission Cont

Daksam/neural-network-parameter-estimation

Neural Network Parameter Estimation for Covid-19 with Vaccinated and Timely-Delayed Diagnosis. This

An Artificial Neural Network Approach to Multispectral Rainfall Estimation over Africa

Abstract Multispectral Spinning Enhanced Visible and IR Interferometer (SEVIRI) dat