Sagar Netra
SAR Oil Spill Detection • Drift Tracking • Vessel
Created on 11th October 2026
•
Sagar Netra
SAR Oil Spill Detection • Drift Tracking • Vessel
The problem Sagar Netra solves
SagarNetra: AI-Powered Marine Oil Spill Detection and Vessel Attribution
Problem Statement
Marine oil pollution caused by tanker accidents, offshore drilling leaks, and illegal bilge water discharge poses a significant threat to marine ecosystems, coastal communities, and fisheries. Traditional maritime monitoring systems face several challenges, including time-consuming manual satellite image inspection, uncertainty in predicting oil spill movement, difficulties identifying vessels that disable their Automatic Identification System (AIS) transponders, and a lack of reliable forensic evidence for legal proceedings. These limitations delay emergency responses and make it difficult to identify and hold polluters accountable.
SagarNetra addresses these challenges through an integrated intelligence system that combines satellite Synthetic Aperture Radar (SAR) imagery, deep learning, oceanographic physics, vessel tracking, and explainable forensic analysis. The project does not use XGBoost. Instead, it employs PyTorch-based SegFormer and U-Net deep learning architectures with a ResNet34 backbone for satellite image segmentation, alongside a physics- and rule-based vessel-ranking model.
Key Features and Functionality
1. Automated Oil Spill Detection
The system automatically identifies and segments potential oil slicks in satellite SAR imagery, reducing dependence on manual inspection. Its computer vision models delineate spill boundaries and help distinguish potential oil slicks from natural phenomena, such as calm-water regions and wind shadows. The project reports 91.3% pixel accuracy for slick segmentation, enabling faster identification of potential pollution incidents.
2. Oil Spill Source Identification
Using stochastic reverse Lagrangian drift modelling, the system simulates the backward movement of oil particles under the influence of ocean currents and wind. Its Monte Carlo simulation tracks 1,000 particles over a period of up to 24 hours to estimate the probable release location. This helps investigators identify potential spill sources and reconstruct the circumstances surrounding a pollution event.
3. Vessel Identification and Risk Ranking
The vessel-ranking service evaluates suspected ships using six forensic factors, including proximity to the estimated release location, speed deceleration, AIS data gaps, and MARPOL-related risk indicators. It generates an explainable ranking with individual factor contributions, helping investigators prioritize vessels for further examination.
The system also supports the investigation of vessels with interrupted AIS transmissions by correlating historical vessel trajectories with physical radar reflections in SAR imagery. These correlations can provide supporting evidence of vessel presence, although they do not independently establish responsibility for a spill.
4. Forward Drift Prediction and Emergency Response
The forward drift service predicts the potential movement of oil slicks over the next 6 to 48 hours. These forecasts help environmental response teams plan containment operations, position floating booms and skimmers, and protect sensitive areas such as coral reefs, mangroves, and coastal settlements. The system also estimates spill surface area in square kilometres to support resource allocation.
5. Forensic Reporting and Law Enforcement Support
SagarNetra generates structured vessel-ranking reports and printable tactical dossiers containing investigative findings, risk assessments, and audit information. These reports support Coast Guard operations, port state control inspections, maritime insurance investigations, and environmental liability assessments. Documented evidence and chain-of-custody procedures can assist legal investigations, subject to independent verification.
Conclusion
SagarNetra transforms marine oil spill monitoring into an integrated, data-driven process. By combining automated detection, spill-source reconstruction, vessel attribution, drift forecasting, and forensic reporting, it helps authorities respond faster, allocate resources efficiently, and investigate suspected maritime pollution more systematically. Its primary objective is to strengthen marine environmental protection while supporting evidence-based maritime law enforcement.
Challenges we ran into
Technical Challenges and Solutions in SagarNetra
Developing SagarNetra, an AI-powered maritime intelligence platform, involved several technical challenges related to deep learning, oceanographic modelling, memory optimization, satellite image processing, vessel tracking, and geospatial accuracy. These challenges required a combination of machine learning techniques, stochastic simulations, and efficient software engineering to improve the system's reliability, performance, and practical applicability.
1. Uncertainty in Oil Spill Source Identification
Challenge: Initially, the system relied on reversing ocean current and wind vectors to estimate the origin of an oil spill. However, ocean currents, turbulent eddies, and wind variations cause oil particles to disperse unpredictably. A single deterministic trajectory could therefore produce inaccurate source locations and potentially associate innocent vessels with a pollution incident.
Solution: The backward drift service was enhanced using a stochastic Monte Carlo Lagrangian model that simulates 1,000 particles. The model incorporates Brownian turbulent diffusion, represented by an eddy diffusion coefficient of 1.0 m²/s, and Gaussian windage variations around a mean of 3%. It generates uncertainty envelopes at six-hour intervals over a 24-hour backward-tracking period. This approach provides a range of probable release locations rather than relying on a single trajectory, improving uncertainty estimation and reducing the risk of incorrect vessel attribution.
2. High Memory Consumption During Deployment
Challenge: Running PyTorch, deep learning segmentation models, satellite GeoTIFF processing, and geospatial libraries simultaneously caused memory consumption to reach approximately 1.2–1.6 GB. This exceeded the 512 MB RAM limits of certain cloud deployment environments, resulting in out-of-memory crashes.
Solution: Several memory optimization techniques were implemented. TorchScript tracing was used to create a compiled model that reduces Python runtime overhead. CPU inference was restricted to a single thread to minimize memory spikes. Heavy global land-mask datasets were replaced with lightweight Shapely polygon geometries and prepared spatial predicates. Additionally, explicit tensor deletion and garbage collection were introduced after inference. These optimizations reduced memory overhead and improved the feasibility of deployment on resource-constrained servers.
3. Class Imbalance and False Oil Spill Detections
Challenge: Oil slicks occupy a small proportion of satellite Synthetic Aperture Radar (SAR) images, often less than 3% of the pixels. Natural phenomena, including calm water, biogenic films, and wind shadows, can produce similar low-backscatter signatures. Consequently, conventional training methods risked missing genuine spills or incorrectly classifying large water regions as polluted.
Solution: A hybrid loss function combining Binary Cross-Entropy and Dice Loss was implemented, alongside positive-class weighting of 2.87. Morphological closing with a 5 × 5 elliptical kernel was introduced to improve segmentation continuity. Connected Component Analysis removed small noise regions below 50 pixels while preserving larger slick structures. The project reports 80.0% macro precision and 93.4% pixel specificity on a test set of 1,211 satellite scenes.
4. Identifying Vessels with Interrupted AIS Signals
Challenge: Vessels suspected of illegal discharge may disable their Automatic Identification System (AIS) transponders, creating gaps in their tracking histories. This makes it difficult to establish their locations during a suspected pollution event.
Solution: SagarNetra correlates AIS interruptions lasting at least 25 minutes with potential metallic vessel reflections in SAR imagery using Constant False Alarm Rate (CFAR) detection. Steel hulls can produce distinctive radar signatures that help investigators assess whether a vessel may have been present despite an AIS blackout. Combining radar observations with historical trajectories improves candidate identification, although further verification is necessary before assigning responsibility.
5. Geospatial Errors Near Coastlines
Challenge: In narrow shipping corridors and coastal regions, simulated vessel trajectories and expanding oil spill envelopes occasionally crossed land boundaries, producing geographically unrealistic results.
Solution: An iterative clamp_to_ocean() algorithm was implemented to correct coordinates that fall inside land polygons. It moves projected positions back toward a verified ocean location through successive fractional steps of 70%, 35%, and 15% along the displacement vector. This helps maintain geographically plausible vessel tracks and drift envelopes.
Conclusion
SagarNetra addresses critical engineering challenges through probabilistic oil spill modelling, memory-efficient deep learning, im
