Scalable • Explainable • Infrastructure-aware AI for Livestock Facility Mapping
Concentrated Animal Feeding Operations (CAFOs) significantly impact environmental sustainability, water quality, and public health—yet large-scale monitoring of livestock infrastructure remains limited.
PRISM-CAFO introduces an infrastructure-first, explainable remote-sensing pipeline that detects, segments, and reasons over facility infrastructure (barns, lagoons, feedlots) to identify CAFOs at scale.
Instead of treating CAFO identification as pure image classification:
Detect infrastructure → segment objects → extract descriptors → classify → explain
This yields improved interpretability and robustness across regions.
- Infrastructure Detection (YOLO): detect candidate barns/lagoons/feedlots
- Segmentation (SAM): refine to pixel-accurate masks
- Descriptor Extraction: counts, areas, shapes, and spatial layout features
- Multimodal Prediction: fuse visual + structured descriptors
- Explainability: attribution highlights decisive infrastructure cues
PRISM-CAFO/
├── datas/ # dataset + metadata
├── model/ # trained weights
├── main.py # main pipeline
├── train_yolo.py # infrastructure detector training
├── train_multiclass_v2.py # CAFO classifier training
├── runPredict.py # inference
├── run_sam_on_yolo.ipynb # segmentation notebook
├── filtering_components.ipynb
└── docs/ # README visuals
(Structure verified from the GitHub repository file tree.)
conda create -n prism_cafo python=3.10 -y
conda activate prism_cafopip install torch torchvision
pip install ultralytics
pip install segment-anything
pip install opencv-python matplotlib rasterio tqdmIf you run on HPC: install a CUDA-matching PyTorch build and ensure your CUDA runtime is visible.
python train_yolo.pypython train_multiclass_v2.pypython runPredict.pySAM segmentation notebook:
run_sam_on_yolo.ipynb
PRISM-CAFO: Prior-conditioned Remote-sensing Infrastructure Segmentation and Mapping for CAFOs (WACV 2026)
arXiv: https://arxiv.org/abs/2601.11451
Oishee Bintey Hoque • Nibir Chandra Mandal • Kyle Luong • Mandy Wilson • Samarth Swarup • Madhav Marathe • Abhijin Adiga
@inproceedings{prismcafo2026,
title={PRISM-CAFO: Prior-conditioned Remote-sensing Infrastructure Segmentation and Mapping for CAFOs},
author={Hoque, Oishee and Mandal, Nibir and others},
booktitle={WACV},
year={2026}
}- Release pretrained models
- Release benchmark data splits
- Interactive mapping dashboard
- Temporal change detection
Developed at the Biocomplexity Institute, University of Virginia.




