PySensors 2.0: A Python Package for Sparse Sensor Placement
Abstract
PySensors is a Python package for the optimization of sparse sensor placement for reconstruction and classification tasks.This major update to PySensors introduces novel spatial constraints for sensor placement, including the enforcement of maximum or exact sensor counts in specific regions, predetermined sensor locations, and minimum distances between sensors.This functionality is extended to support custom basis inputs, enabling integration of any data-driven or spectral basis.We also use a thermodynamic approach that goes beyond a single "optimal" sensor configuration and maps the complete landscape of sensor interactions induced by the training data.This comprehensive view facilitates integration with external selection criteria and enables assessment of sensor replacement impacts.The new optimization technique also accounts for over-and under-sampling of sensors, utilizing a regularized least squares approach for robust reconstruction.Additionally, we implement noise-induced uncertainty quantification of the estimation error and provide pointwise uncertainty heat maps to guide deployment decisions.To highlight these additions, we outline the mathematical algorithms and theory underlying these new capabilities.The usage of these new features is illustrated with code examples and practical advice for implementation across multiple application domains.Finally, we outline a roadmap of potential extensions to further strengthen the package's functionality and applicability to emerging sensing challenges.
Fields of Study & Subjects
IoT and Edge/Fog Computing
Mobile Crowdsensing and Crowdsourcing
Context-Aware Activity Recognition Systems
Publication details
- Journal / source
- The Journal of Open Source Software
- Publisher
- The Open Journal
- Volume
- 11
- Issue
- 118
- Pages
- 9265–9265
- Publication date
- 17 February 2026