Logo Lanfrica

mwanzaalbert/kenya-remote-sensing-cnn

Domaine:

geospatialagriculture

Type de record:

softwaremodel
Créateur:
mwa
Hôte:
# 🇰🇪 Kenya Multi-Spectral Remote Sensing Land Cover CNN A end-to-end PyTorch deep learning pipeline designed to classify multi-spectral remote sensing patches (simulating 4-band Sentinel-2 imagery: Blue, Green, Red, and Near-Infrared) across major agricultural and pastoral ecological zones in Kenya. This repository serves as a practical demonstration of applying Convolutional Neural Networks (CNNs) to geospatial datasets for decision-support tools in agricultural data analytics, rangeland monitoring, and land-use mapping. --- ## 📌 Context & Motivation Accurate land-cover and crop-type classification in East Africa is critical for: * **Digital Agriculture & Yield Forecasting:** Monitoring maize and primary food crop production zones. * **Pastoral & Livestock Rangeland Management:** Tracking forage density and vegetation health across Arid and Semi-Arid Lands (ASALs). * **Environmental Conservation:** Identifying forested areas, water baselines (e.g., Lake Naivasha, Lake Nakuru), and land degradation trends. Standard RGB computer vision models fall short in remote sensing because they miss Near-Infrared (NIR) light, which provides the critical **NDVI (Normalized Difference Vegetation Index)** signal needed to differentiate healthy dense vegetation from bare rangeland or water bodies. --- ## 🏗️ Architecture This repository adapts a **ResNet-18** architecture for 4-channel geospatial inputs: ``` Multi-Spectral Input Patch (4 x 64 x 64) [B2-Blue, B3-Green, B4-Red, B8-NIR] │ ▼ ┌──────────────────────────────┐ │ Modified First Conv Layer │ 64 filters) │ └───────────────┬──────────────┘ ▼ ┌──────────────────────────────┐ │ ResNet-18 Feature Extractor │ └───────────────┬──────────────┘ ▼ ┌──────────────────────────────┐ │ Classification Head │ <-- Dropout (0.3) + Linear Layer └───────────────┬──────────────┘ ▼ Class Predictions (Logits) ┌──────────────────────────────┐ │ 0: Cropland (Maize) │ │ 1: Pastoral Rangeland │ │ 2: De …