Real-time vegetation pathogen detection and human disease risk analysis using satellite imagery, spectral intelligence, and live environmental data.
Every year, millions of people in India and across South Asia are affected by preventable diseases β malaria, dengue, cholera, typhoid, and respiratory illnesses caused by air pollution. At the same time, crop diseases silently devastate agricultural yields before farmers even notice symptoms on the ground.
The core problem is a lack of early, location-specific risk intelligence:
- Farmers cannot detect vegetation stress before visible symptoms
- Public health systems lack hyperlocal, real-time insights
- Existing tools are expensive, slow, or too coarse
- No unified platform combines environmental + health intelligence
PathoWatch is a unified platform that combines:
- Satellite-based vegetation pathogen detection
- Dynamic spectral intelligence using real scientific datasets
- Human disease risk scoring using live environmental data
- Actionable recommendations
- Flask server starts
PathogenMonitoringSystemis initialized- Spectral library + detection models are loaded
π This prepares the system to process satellite images
Create reference βfingerprintsβ of diseases
-
Fetch real spectral data from USGS library
-
Generate synthetic pathogen signatures using:
- Chlorophyll loss
- Water stress
- Leaf damage
wheat_rustrice_blastlate_blightbacterial_blight
π Each pathogen has unique wavelength behavior
Make raw satellite data usable
- Removes haze, dust, sunlight distortion
- Uses Dark Object Subtraction
- Smooth spectral values
- Spatial filtering (Gaussian)
- Uses PCA
- Reduces hundreds of bands β important features
Calculates indices:
- NDVI (vegetation health)
- NDWI (water stress)
- NDRE (disease stress)
π Converts raw image β meaningful scientific data
Detect disease patterns in pixels
- Compares pixel spectrum with pathogen signature
- Measures similarity (0 β 1)
π If similar β possible disease
Uses:
- Spatial info (image)
- Spectral info (bands)
π Learns patterns automatically
- SAM β initial detection
- CNN β refinement
π Combines physics + AI
Generate disease risk maps
- Process hyperspectral image
- Create similarity maps (per pathogen)
- π΄ High risk (> 0.7)
- π‘ Medium (0.4 β 0.7)
- π’ Low (< 0.4)
- Risk maps (PNG)
- Statistics
- Trends
π Output = visual + numerical insights
Ensure reliability
- Spatial coherence
- Signal-to-noise ratio (SNR)
- Statistical consistency
-
Quality score
-
Recommendations:
- Improve data
- Increase resolution
- Reduce noise
π Prevents false detections
-
SAM β generates training labels
-
Feature extraction + PCA
-
Train models:
- Random Forest
- SVM
-
Ensemble prediction
π More accurate + adaptive system
- Hardcoded spectral dictionaries
- Fixed wavelength arrays
- Static thresholds
- SAM-only detection
- π USGS spectral integration
- π‘ Dynamic wavelength extraction
- π Adaptive thresholding
- π€ Hybrid ML (RF + SVM)
- βοΈ Configurable targets
Input Raster
β
Extract Wavelengths
β
Fetch USGS Spectrum
β
SAM Matching
β
Dynamic Thresholding
β
Feature Extraction
β
ML Training
β
Ensemble Prediction
β
Risk Map Output
Pathowatch-repo/
β
βββ server.py
βββ pathowatch_pipeline.py
βββ pathowatch.py
βββ index.html
β
βββ Dockerfile
βββ requirements.txt
βββ Procfile
β
βββ Browser_images/
β βββ B02.tiff
β βββ B03.tiff
β βββ B04.tiff
β βββ B08.tiff
β
βββ .env
| Layer | Technology |
|---|---|
| Backend | Flask, Python |
| ML | Scikit-learn |
| Satellite | Google Earth Engine |
| Processing | rasterio, numpy |
| Frontend | HTML, JS, Leaflet |
| APIs | OpenWeather, WAQI |
| Deployment | Docker, Render |
pip install -r requirements.txt
python server.pydocker build -t pathowatch .
docker run --env-file .env -p 8080:8080 pathowatch- Runtime: Docker
- Region: Singapore
- Add environment variables
- Deploy
- Hyperspectral drones
- Deep learning models
- Global disease tracking
- Mobile app
MIT License