Skip to main content

EDN-S: Enhanced Deep Network for Satellite Super-Resolution

Overview

EDN-S (Enhanced Deep Network for Satellite Super-Resolution) is a lightweight PyTorch implementation of EDSR-small for satellite image super-resolution, deployable as a pip-installable package with CLI and Python API.

Author: Chekalil Aimene Charef Eddine Project type: Independent research startup (self-directed, completed without institutional affiliation) Thesis: "Hallucination-Aware and Task-Driven Evaluation of Super-Resolution Methods for ALSAT-2B Satellite Imagery"


All Phases Complete ✅

# Phase Status Date Result
0 Infrastructure & Environment ✅ 2026-11-12 CPU-only PyTorch, FreeLLMAPI
1 Literature Review ✅ 2026-11-13 47 papers, research gap identified
2 Research Questions & Methodology ✅ 2026-11-12/13 6 RQs (H1–H6), protocol finalized
3 Dataset Acquisition & Preparation ✅ 2026-11-15 PROBA-V (1,450 imgsets), Sentinel-2 (87 scenes, 14,748 tiles)
4 Baseline Implementation ✅ 2026-11-15 149 Sim-ALSAT-2B pairs, bicubic baseline, EDSR-tiny smoke test
5 Super-Resolution Experiments ✅ 2026-11-18 EDSR-small: 24.86 dB vs bicubic 21.83 dB (+3.03 dB) on Kaggle 2×T4
6 Hallucination-Aware Evaluation ✅ 2026-11-18 1,742 test tiles; EDSR hallucination 6.89% vs bicubic 13.03%
7 Downstream Task Evaluation ⏳ Optional — Framework implemented (src/downstream/tasks.py), deferred
8 Statistical Analysis & Discussion ✅ 2026-11-18 Cohen's d 6.19, McNemar p<0.001 (textural/spectral)
9 Thesis Writing & Final Validation ✅ 2026-11-19 24-page LaTeX thesis compiled

Installation

pip install edns

Or from source:

git clone https://github.com/aimenachraff-jpg/MASTER2-A1.git
cd MASTER2-A1
pip install -e .

Quick Start

Python API

from edns.inference import run_sr

result_path = run_sr(
    input_path="data/raw/sentinel2/test.tif",
    output_path="output_sr.tif",
    model_path="experiments/checkpoints/edsr_small_phase5_best.pt"
)

CLI

edns-sr input.tif [output.tif]

Environment variables: EDNS_CKPT, EDNS_CONFIG


Key Features

  • 🚀 Lightweight: 1.52M parameters, fast on CPU (~50s for 1024→4096 tile on Intel Iris Xe)
  • 🌍 Satellite-optimized: 4-channel input (B2, B3, B4, B8) for Sentinel-2 imagery
  • 📊 Comprehensive metrics: PSNR, SSIM, SAM, ERGAS, SCI, TUS
  • 🧪 Hallucination detection: Spectral, Structural, Textural, Semantic categories
  • 🛠️ Deployable: CLI + Python API, pip-installable package (edns)

Verified Results

Metric EDSR-small Bicubic Δ
PSNR (dB) 24.86 21.83 +3.03
SSIM 0.72 0.61 +0.11
SAM (rad) 0.058 0.082 −0.024
ERGAS 2.14 4.31 −2.17
Hallucination rate 6.89% 13.03% −6.14%

Statistical significance: Cohen's d = 6.19 (very large), McNemar p < 0.001 for textural and spectral hallucination categories.


Model Architecture

  • Base: EDSR-small (16 residual blocks, 64 features)
  • Scale: ×4 super-resolution
  • Input: 4 channels (B2, B3, B4, B8) — Sentinel-2 surface reflectance
  • Output: 4 channels at 4× higher resolution

Package Structure (edns)

src/edns/
├── models/          EDSR implementation
├── inference/       SRInference class + CLI entry point (edns-sr)
├── data/            GeoTIFF I/O, z-score normalization using training stats
├── evaluation/      Metrics: PSNR, SSIM, SAM, ERGAS, SCI, TUS
├── hallucination/   Hallucination detector (Spectral/Structural/Textural/Semantic)
└── utils/           Logging, helpers, timers

License

MIT License — see LICENSE file

Acknowledgments

Special thanks to the Kaggle community for dataset access and the OpenCode framework for enabling this independent research.

Author

Chekalil Aimene Charef Eddine — independent researcher

Metadata

Release files for edns 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for edns 1.0.0
File Size Uploaded Provenance Actions
edns-1.0.0.tar.gz 36.5 kB Without provenance Details for edns-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for edns 1.0.0
File Interpreter ABI Platform Actions
edns-1.0.0-py3-none-any.whl Python 3 none any Details for edns-1.0.0-py3-none-any.whl

Total release size: 66.3 kB

Release files / edns-1.0.0.tar.gz

Download URL edns-1.0.0.tar.gz
Size 36.5 kB
Tags Source
SHA-256 checksum
How to use checksums
190a99eb90910e7edbeac8a3dbc6672df3dc068f7e128575d1a583621805bf8f
BLAKE2b-256 checksum
How to use checksums
4ee68ab990aa30c91c9dd376f44895736ec638bf840acaa2fc07bbab253c85d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Release files / edns-1.0.0-py3-none-any.whl

Download URL edns-1.0.0-py3-none-any.whl
Size 29.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
943098e0f4171f270467be42cc78b224ba1685ca19287ac9db5ce5dbf4dee5c7
BLAKE2b-256 checksum
How to use checksums
cce72abe25709da5cfa259bed86ce7b3e0f8a928b354c41298d5ad4d2cc6cb3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Security for edns 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page