# ๐ฑ Raheeq (ุฑุญูู)
>
[TOC]
## ๐ฏ Vision
Raheeq is a **hybrid hardware-software platform** that provides continuous, underground soil monitoring combined with satellite-based land analysisโpurpose-built for the challenging conditions of arid and saline environments in the GCC region.
Unlike traditional one-off soil testing, Raheeq delivers **persistent ground truth** from beneath the surface, enabling informed decisions about irrigation, crop health, and land use.
---
## ๐จ The Problem
```markmap
# Challenges in GCC Agriculture
## Invisible Soil Degradation
- Salinity buildup underground
- Compaction issues undetected
- No early warning system
## Water Scarcity
- Expensive desalinated water
- Inefficient irrigation
- No real-time optimization
## Limited Monitoring
- Infrequent soil testing
- Static snapshots only
- Misses gradual changes
## Satellite Limitations
- No underground visibility
- Can't detect root-zone issues
- Lacks ground truth correlation
```
**The Result:** Wasted water on degraded soil, reduced yields, poor land-use planning.
---
## ๐ก The Raheeq Solution
### Three-Layer Intelligence System
```mermaid
graph TB
A[Underground Sensors] --> D[Data Fusion Engine]
B[Satellite Imagery] --> D
C[AI Analytics] --> D
D --> E[Actionable Insights]
A1[Resistivity] --> A
A2[Moisture] --> A
A3[Temperature] --> A
B1[NDVI] --> B
B2[Stress Patterns] --> B
B3[Elevation] --> B
C1[Anomaly Detection] --> C
C2[Soil Zoning] --> C
C3[Predictive Alerts] --> C
E --> F[Desktop Platform]
E --> G[Reports & Maps]
E --> H[Alerts]
style D fill:#2ecc71,stroke:#27ae60,stroke-width:3px
style E fill:#3498db,stroke:#2980b9,stroke-width:2px
```
---
## ๐๏ธ System Architecture
```mermaid
flowchart TD
subgraph Field["๐พ Field Layer"]
P1[Probe 1<br/>ESP32-S3]
P2[Probe 2<br/>ESP32-S3]
P3[Probe N<br/>ESP32-S3]
end
subgraph Edge["โก Edge Layer"]
H[Cluster Hub<br/>PoE SBC<br/>5-20 probes]
end
subgraph Local["๐ป Local Layer"]
D[Desktop App<br/>React Native<br/>Offline-First]
end
subgraph Cloud["โ๏ธ Cloud Layer (Optional)"]
S[Remote Server<br/>Multi-site Aggregation]
end
P1 -.LoRa.-> H
P2 -.LoRa.-> H
P3 -.LoRa.-> H
H --Ethernet/LTE--> D
D -.Optional.-> S
style Field fill:#e8f5e9,stroke:#4caf50
style Edge fill:#fff3e0,stroke:#ff9800
style Local fill:#e3f2fd,stroke:#2196f3
style Cloud fill:#f3e5f5,stroke:#9c27b0
```
---
## ๐ง Hardware Components
### In-Ground Probes
| Specification | Details |
|---------------|---------|
| **Form Factor** | 40โ60 cm length, 3โ4 cm diameter |
| **Construction** | PVC/fiberglass body, IP67 sealed |
| **Controller** | ESP32-S3 |
| **Radio** | Sub-GHz (LoRa) |
| **Power** | Battery-powered (replaceable) |
| **Sensing Depth** | 0โ40 cm (direct), up to 1.2m (AI-inferred) |
**Sensor Capabilities:**
- โก Electrical resistivity/conductivity
- ๐ง Volumetric soil moisture
- ๐ก๏ธ Soil temperature
- ๐ Time-series trend tracking
**Probe Variants:**
- **Standard:** General-purpose monitoring
- **Salinity-optimized:** Enhanced EC sensitivity
---
### Cluster Hub
```graphviz
digraph hub {
rankdir=LR;
node [shape=box, style=rounded];
Hub [label="Cluster Hub\n(PoE SBC)", shape=box3d, fillcolor=lightblue, style=filled];
Radio [label="Sub-GHz\nConcentrator"];
Storage [label="Local\nStorage"];
Network [label="Ethernet\n+ LTE"];
Probe1 [label="Probe 1"];
Probe2 [label="Probe 2"];
ProbeN [label="Probe N"];
Desktop [label="Desktop App"];
Probe1 -> Radio;
Probe2 -> Radio;
ProbeN -> Radio;
Radio -> Hub;
Hub -> Storage;
Hub -> Network;
Network -> Desktop;
}
```
**Specifications:**
- **Capacity:** Manages 5โ20 probes
- **Power:** PoE (Power over Ethernet)
- **Storage:** Local SSD/eMMC
- **Connectivity:** Ethernet + optional LTE
---
## ๐ป Software Platform
### Desktop Application (Primary Interface)
**Platform:** React Native (Windows/macOS)
**Key Features:**
- ๐ Real-time & historical visualization
- ๐บ๏ธ Automated soil zoning with heatmaps
- ๐ฐ๏ธ Satellite NDVI overlay
- ๐ Multi-project management
- ๐ Professional reporting (PDF/CSV)
- ๐ **Offline-first by design**
**Deployment Modes:**
```mermaid
graph LR
A[Desktop App] --> B[Local-Only Mode]
A --> C[Hybrid Mode]
A --> D[Enterprise Mode]
B --> B1[Fully Offline]
B --> B2[Single Site]
C --> C1[Local + Cloud Sync]
C --> C2[Optional Remote]
D --> D1[On-Premise]
D --> D2[Multi-User]
D --> D3[Compliance]
style B fill:#4caf50
style C fill:#2196f3
style D fill:#ff9800
```
---
### Companion Mobile App
:::info
**Limited by Design** โ Mobile handles only:
- ๐จ Emergency alerts
- ๐ฑ Quick status checks
- โ๏ธ Basic field controls
**Heavy analysis remains desktop-only.**
:::
---
## ๐ค AI Capabilities
### Automation with Human Control
```mermaid
mindmap
root((AI Engine))
Anomaly Detection
Salinity Spikes
Irrigation Failures
Sensor Drift
Soil Zoning
Green Zones
Yellow Zones
Red Zones
Auto-Classification
Correlation
NDVI โ Soil Data
Surface โ Root Zone
Hidden Issues
Predictions
Early Warnings
Crop Stress
Context-Aware Alerts
```
:::warning
**AI Philosophy:** Assists decision-making but never overrides user control. All automation is transparent and adjustable.
:::
---
## ๐ Data Intelligence
### Measured Data
```mermaid
graph LR
subgraph Underground
U1[Resistivity]
U2[Moisture]
U3[Temperature]
U4[Trends]
end
subgraph Satellite
S1[NDVI]
S2[Stress Patterns]
S3[Elevation]
end
subgraph Derived
D1[Salinity Risk]
D2[Root Health]
D3[Water Efficiency]
D4[Zone Recommendations]
end
U1 --> D1
U2 --> D2
U3 --> D2
S1 --> D1
S2 --> D2
S3 --> D3
style Underground fill:#8d6e63
style Satellite fill:#4fc3f7
style Derived fill:#66bb6a
```
---
## ๐บ๏ธ Technical Roadmap
```mermaid
gantt
title Raheeq Development Timeline
dateFormat YYYY-MM-DD
section Phase 1: MVP
Probe Prototypes :p1, 2025-03-01, 60d
Hub Prototype :p2, 2025-03-15, 45d
Desktop App (Local-Only) :p3, 2025-03-01, 90d
Basic AI & Visualization :p4, after p3, 30d
section Phase 2: Enhancement
Satellite Integration :e1, 2025-06-01, 45d
Advanced AI Models :e2, 2025-06-15, 60d
Mobile Companion App :e3, 2025-07-01, 30d
section Phase 3: Scale
Production Hardware :s1, 2025-08-01, 90d
Enterprise Features :s2, 2025-09-01, 60d
Multi-Site Management :s3, 2025-10-01, 45d
```
### MVP Scope
#### โ
Included
- [x] Probe prototypes (2 units)
- [x] Hub prototype (single unit)
- [x] Desktop app (local-only mode)
- [x] Live & historical visualization
- [x] Basic AI automation
- [x] Satellite NDVI overlay
#### โณ Post-MVP
- [ ] Large-scale deployments
- [ ] Full mobile analytics
- [ ] Advanced ML forecasting
- [ ] Irrigation system integration
---
## ๐ฏ Target Markets
```mermaid
graph TB
M[Raheeq Platform]
M --> B2B[B2B Customers]
M --> B2G[B2G Customers]
B2B --> B1[Commercial Farms]
B2B --> B2[Greenhouses]
B2B --> B3[Agri-Consultants]
B2B --> B4[Land Developers]
B2G --> G1[Agriculture Authorities]
B2G --> G2[Food Security Programs]
B2G --> G3[Municipal Planning]
B2G --> G4[Research Institutions]
style M fill:#673ab7,color:#fff
style B2B fill:#2196f3,color:#fff
style B2G fill:#ff9800,color:#fff
```
---
## ๐ Strategic Advantages
:::success
### Core Differentiators
| Advantage | Impact |
|-----------|--------|
| **Hardware + Data Moat** | Defensible customer relationships |
| **Continuous Monitoring** | Rare in GCC region |
| **Offline-First** | Addresses infrastructure reality |
| **Dual-Use Platform** | B2B + B2G without fragmentation |
| **Expandable Foundation** | Natural evolution into policy/datasets |
:::
---
## ๐ฎ Future Expansion
```markmap
# Future Development
## Hardware
- Advanced probe types (pH, nutrients)
- Vehicle-mounted scanning
- Automated irrigation integration
## Software
- Regional soil datasets
- Predictive analytics platform
- Third-party API ecosystem
## Markets
- Water policy integration
- Land valuation services
- Climate adaptation programs
```
---
## ๐ Core Principles
> **Raheeq is infrastructure, not a gadget.**
It's the foundational layer for sustainable agriculture in arid environmentsโmeasuring what matters, underground and over time, where satellite imagery alone cannot reach.