Skip to content

Zenith-Patel/Cottbuser_Ostsee_AI_Monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌊 Cottbuser Ostsee β€” Water Expansion & Biodiversity Monitoring (2019–2026)

Sentinel-2 Β· Planetary Computer Β· NDWI Β· NDVI Β· LSTM Forecasting Β· Anomaly Detection

Python PyTorch Kaggle License


πŸ“ What is Cottbuser Ostsee?

Cottbuser Ostsee is one of Europe's largest post-mining lake restoration projects.
A former open-cast lignite coal mine in Brandenburg, Germany is being flooded to create a ~1,900 hectare recreational lake β€” one of the largest artificial lakes in Central Europe.

This project uses satellite remote sensing and deep learning to monitor and forecast the lake's growth from space β€” without ever visiting the site.


πŸ“Š Key Finding

2019:  ~550 hectares of water surface
2026:  ~1,800 hectares of water surface

Growth: 3.3Γ— in 7 years
Trend:  +180 ha/year (satellite-derived)

πŸ›°οΈ What This Notebook Does

Part 1 β€” Satellite Remote Sensing

Track water expansion, vegetation, and biodiversity using Sentinel-2 imagery.

Step Method Output
Data access Microsoft Planetary Computer STAC Monthly best-scene selection
Cloud masking SCL Scene Classification Layer Clean imagery
Water detection NDWI = (Green βˆ’ NIR) / (Green + NIR) Water area in hectares
Vegetation NDVI = (NIR βˆ’ Red) / (NIR + Red) Vegetation area in hectares
Wetland proxy NDMI = (NIR βˆ’ SWIR) / (NIR + SWIR) Reed/wetland extent
Biodiversity Shannon diversity index + k-means Habitat heterogeneity map
Visualization Animated GIFs Water + NDVI time-lapse

Part 2 β€” Deep Learning (LSTM)

Forecast future water expansion and detect ecological anomalies.

Step Method Output
Forecasting 2-layer LSTM with seasonal encoding 24-month water area forecast
Anomaly detection LSTM residual analysis (Β±1.5Οƒ) Flagged ecological events

πŸ—οΈ LSTM Architecture

Input: (batch, 6 months, 3 features)
       [water_area_norm, month_sin, month_cos]
              ↓
       LSTM Layer 1 (hidden=64)
       learns seasonal fluctuations
              ↓
       LSTM Layer 2 (hidden=64)
       learns long-term filling trend
              ↓
       Linear(64 β†’ 32) β†’ ReLU β†’ Linear(32 β†’ 1)
              ↓
Output: next month water area (hectares)

Why seasonal sin/cos encoding?
Water area fluctuates within each year (evaporation in summer, rainfall in autumn). Encoding month as sin/cos gives the LSTM a built-in calendar β€” it knows January follows December and that summer behaves differently from winter.


πŸ€– Anomaly Detection

The LSTM learns the expected trajectory of lake filling.
When a month deviates significantly from expectation, it is flagged.

Residual = Observed area βˆ’ LSTM predicted area

Positive residual β†’ more water than expected (unusual flooding / wet year)
Negative residual β†’ less water than expected (drought / management change)
Flagged if |residual| > 1.5 standard deviations

Flagged months warrant investigation β€” they may reflect drought years, unusual rainfall, changes in mine water management, or ecosystem regime shifts as the lake matures and ecology develops.


πŸ“¦ Data Source

Sentinel-2 L2A via Microsoft Planetary Computer

Bands used:
  B03 β€” Green  (10m) β€” NDWI water detection
  B04 β€” Red    (10m) β€” NDVI vegetation
  B08 β€” NIR    (10m) β€” NDWI, NDVI, NDMI
  B11 β€” SWIR   (20m) β€” NDMI wetland proxy
  SCL β€” Scene Classification (20m) β€” cloud masking

Resolution:    10m Γ— 10m per pixel = 0.01 ha per pixel
Cloud filter:  < 30% cloud cover
Selection:     Best scene per month (lowest cloud cover)
Period:        January 2019 – present

No data download required β€” Planetary Computer provides free cloud access to the full Sentinel-2 archive directly from the notebook.


πŸš€ Quick Start

Run on Kaggle (recommended β€” free GPU)

Open the notebook on Kaggle and run all cells top to bottom.
No local setup required. All data loads from Planetary Computer automatically.

Run locally

pip install pystac-client planetary-computer stackstac rioxarray \
            imageio tqdm torch scikit-learn geopandas

Then run Cottbuser_Ostsee_AI_Monitoring.ipynb from top to bottom.


πŸ“ Output Files

File Description
water_area_timeseries.csv Per-scene, monthly, yearly water areas (ha)
water_timeseries.png Time series + linear trend plot
habitat_diversity.png Shannon diversity map + vegetation proxy
water_expansion_animation.gif Lake growth time-lapse (NDWI)
biodiversity_proxy_animation.gif Vegetation dynamics time-lapse (NDVI)
lstm_training_history.png LSTM loss curves
lstm_forecast.png 24-month water expansion forecast
anomaly_detection.png Residual anomaly plot

🌍 Why This Matters

Ecological significance:
As the lake fills, entirely new aquatic and wetland ecosystems develop. Monitoring water extent, vegetation establishment, and habitat diversity provides early evidence of ecosystem formation β€” relevant for biodiversity assessment under the EU Habitats Directive.

Engineering relevance:
Cottbuser Ostsee is a complex hydro-engineering project managed by LMBV (Lausitzer und Mitteldeutsche Bergbau-Verwaltungsgesellschaft). Satellite-derived water area measurements provide independent verification of filling progress without requiring site access.

Climate relevance:
Large new water bodies affect local microclimate. Tracking the lake's growth from space contributes to understanding land-use change impacts in post-industrial landscapes β€” a growing challenge across Europe as coal mining regions transition to renewable energy economies.


πŸ“‹ Validation (Thesis Recommendation)

For thesis-level rigor, satellite-derived areas should be validated against official LMBV project reports or Brandenburg Geoportal reference data.

Year Satellite Area (ha) Official Area (ha) Error (%)
2020 β€” β€” β€”
2022 β€” β€” β€”
2024 β€” β€” β€”

πŸ“š References

Sentinel-2 Mission:
ESA (2015) β€” Sentinel-2: ESA's Optical High-Resolution Mission
for GMES Operational Services. ESA Special Publication.

NDWI:
McFeeters, S.K. (1996) β€” The use of the Normalized Difference
Water Index (NDWI) in the delineation of open water features.
International Journal of Remote Sensing, 17(7), 1425–1432.

Planetary Computer:
Microsoft (2021) β€” Microsoft Planetary Computer.
https://planetarycomputer.microsoft.com

Cottbuser Ostsee project:
LMBV β€” Lausitzer und Mitteldeutsche Bergbau-Verwaltungsgesellschaft
https://www.lmbv.de

πŸ‘€ Author

Zenith Patel
MSc Environmental and Resource Management
Brandenburg University of Technology (BTU) Cottbus-Senftenberg, Germany

This project monitors a restoration site located in the same region as BTU Cottbus β€” combining local environmental knowledge with satellite remote sensing and deep learning.

Kaggle


πŸ“„ License

MIT License β€” free to use, modify, and distribute with attribution.


Part of a portfolio in Environmental AI β€” applying deep learning to satellite remote sensing for biodiversity monitoring, ecosystem restoration, and climate impact assessment.

About

🌊 Cottbuser Ostsee β€” Water Expansion & Biodiversity Monitoring (2019–2026)ΒΆ Sentinel-2 Β· Planetary Computer Β· LSTM Forecasting Β· Anomaly Detection Study Area: Cottbuser Ostsee, Brandenburg, Germany Period: January 2019 – present Data Source: Sentinel-2 L2A via Microsoft Planetary Computer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors