🌿 AI-powered, offline-first soil prediction system for rural African farmers. Built with React, Express, Drizzle ORM, and edge-AI simulation for the Africa Deep Tech Challenge 2025.
# 🌿 NeuraSoil – AI-Powered Soil Prediction System
**By Abdulrahman Adisa Amuda**
An offline-first, AI-powered agritech platform developed for the **Africa Deep Tech Challenge 2025**. NeuraSoil empowers rural African farmers through predictive soil intelligence — even with no internet. It simulates underground water behavior, soil health, and crop suitability using edge computing and lightweight AI logic.
---
## 📌 Overview
NeuraSoil is built with modularity, low-resource performance, and offline capability in mind. It combines a React dashboard, TypeScript backend, in-memory database, and rule-based prediction logic — simulating an end-to-end edge-AI solution for underserved farming communities.
---
## 🧱 System Architecture
### 🖼 Frontend
- **React + Vite** – Fast dev experience
- **Tailwind CSS** – Utility-first styling with agri-based theme
- **Radix UI + shadcn/ui** – Accessible components
- **Wouter** – Lightweight routing
- **TanStack Query** – Data fetching and caching
- **Multi-language Support** – English, Yoruba, Hausa, Swahili, French
### 🔧 Backend
- **Express (ESM + TS)** – Modular REST API
- **Drizzle ORM + PostgreSQL** – Schema-safe data storage
- **Zod** – Runtime validation of inputs and DB operations
- **TSX + esbuild** – Hot reload dev, fast build for prod
### 🧠 Machine Learning Engine
- Rule-based mock prediction logic (resource-light)
- Provides:
- Soil health evaluation
- Water movement prediction
- Crop suitability detection
---
## 🧠 Key Features
| Feature | Description |
|---------------------------|-------------|
| 🌡️ Sensor Simulation | Generates realistic readings every 30s (moisture, pH, pressure, temp) |
| 🧠 AI Predictions | Local prediction engine using rules/thresholds |
| 📈 Trend Insights | View historic readings and predicted patterns |
| ⚠️ Alert System | Triggered warnings and critical alerts |
| 🌐 Multi-language | Yoruba, Hausa, Swahili, French, English |
| 📥 CSV …