Skip to main content

This package is designed for anomaly detection in Synthetic Aperture Radar (SAR) images, leveraging PyTorch Lightning and models from Anomalib. The package is modular, allowing easy benchmarking and dataset integration.

Project description

Benchmarking suite for synthetic aperture radar imagery anomaly detection (SARIAD) algorithms

Overview

This package is designed for anomaly detection in Synthetic Aperture Radar (SAR) images, leveraging PyTorch Lightning and models from Anomalib. The package is modular, allowing easy benchmarking and dataset integration.

Directory Structure

SARIAD/
├── config/
│   ├── default.yaml
│   ├── environment.yaml  # Conda environment file
├── datasets/
│   ├── __init__.py
│   ├── MSTAR/
│   ├── custom_dataset/
│   └── sar_datamodule.py  
├── models/
│   ├── __init__.py
│   ├── anomalib_models.py
│   ├── autoencoder.py
│   └── transformer.py
├── preprocessing/
│   ├── __init__.py
│   ├── normalize.py
│   ├── augmentations.py
│   └── utils.py
├── benchmarks/
│   ├── __init__.py
│   └── benchmarking.py
├── main.py
├── __init__.py
└── utils/
    ├── __init__.py
    └── config_loader.py

Installation

Our package is on PyPI and thus can simply be installed with pip install SARIAD.

Development Installation

# Clone the repository
git clone https://github.com/username/SARIAD.git

# Install SARIAD in editable mode
pip install -e .

Configuration

Edit the YAML file located in config/default.yaml to specify the dataset path, model, and training parameters.

Usage

# Train with a specific configuration
python main.py --config config/default.yaml

Benchmarking

To enable benchmarking, set benchmark.enabled: True in the YAML file and specify the number of runs.

Preprocessing

  • normalize.py: Functions for data normalization.
  • augmentations.py: Functions for data augmentations.
  • utils.py: Utility functions for SAR-specific preprocessing.

The SARDataModule located in the datasets folder imports these functions to ensure consistent preprocessing across datasets.

License

MIT License

Acknowledgments

This project is inspired by Anomalib and Benchmarks for Medical Anomaly Detection (BMAD).

Contributing

Contributions are welcome! To contribute:

  1. Fork the repository on GitHub.
  2. Create a new branch with a descriptive name.
  3. Make your changes and ensure they follow the code style guidelines.
  4. Write unit tests for any new features or bug fixes.
  5. Submit a pull request with a clear description of your changes.

For major changes, please open an issue first to discuss what you'd like to change. We appreciate your contributions to improve this work!

Citing SARIAD

If you use the SARIAD code, please cite the following reference using the following entry.

Plain Text:

L. Chauvin, S. Gupta, A. Ibarra and J. Peeples, "Benchmarking suite for synthetic aperture radar imagery anomaly detection (SARIAD) algorithms," in Algorithms for Synthetic Aperture Radar Imagery XXXII, vol. TBD. International Society for Optics and Photonics (SPIE), 2025, DOI: 10.1117/12.3052519

arXiv

BibTex:

@inproceedings{Chauvin2025Benchmarking,
  title={Benchmarking suite for synthetic aperture radar imagery anomaly detection (SARIAD) algorithms},
  author={Chauvin, Lucian and Gupta, Somil, and Ibarra, Angelina, and Peeples, Joshua},
  booktitle={Algorithms for Synthetic Aperture Radar Imagery XXXII},
  pages={TBD},
  year={2025},
  organization={International Society for Optics and Photonics (SPIE)}
  doi={10.1117/12.3052519}
}

Citing MSTAR

If you use this dataset in your research, please cite the following paper:

@misc{mstar2025,
  title = {MSTAR Public Dataset},
  author = {{U.S. Air Force}},
  year = {1995},
  note = {Sensor Data Management System (SDMS)},
  url = {https://www.sdms.afrl.af.mil/index.php?collection=mstar}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sariad-0.1.6.tar.gz (37.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sariad-0.1.6-py3-none-any.whl (50.1 kB view details)

Uploaded Python 3

File details

Details for the file sariad-0.1.6.tar.gz.

File metadata

  • Download URL: sariad-0.1.6.tar.gz
  • Upload date:
  • Size: 37.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sariad-0.1.6.tar.gz
Algorithm Hash digest
SHA256 49f40d5715823a5cd52f6511e0c1b794ef04b7d3899ae8007494bad6c0105e13
MD5 bbf5e85c3757d8c24f8ca8ac5f49daff
BLAKE2b-256 82765f8bd562314eb136b1e5384a01acd165aca5ea8da82fb74bd40f1d1e424d

See more details on using hashes here.

Provenance

The following attestation bundles were made for sariad-0.1.6.tar.gz:

Publisher: pypi.yml on Advanced-Vision-and-Learning-Lab/SARIAD

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sariad-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: sariad-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 50.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sariad-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 12ae110c1ea10f3ad83cd67db46c89991777b209697a86bf62df8f9c143a58e8
MD5 6324e21e6d85576287c5ab6027a001b2
BLAKE2b-256 b4a88c0615fdecea8896b279e8e552cacc067a30b038b19f66f856d6d5fbe7bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for sariad-0.1.6-py3-none-any.whl:

Publisher: pypi.yml on Advanced-Vision-and-Learning-Lab/SARIAD

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page