Skip to main content

Anomaly Detection in WBANs Using CNN-Autoencoders and LSTMs

  • Conference paper
  • First Online:
Advanced Information Networking and Applications (AINA 2024)

Abstract

Wireless Body Area Networks (WBANs) are wireless networks that consist of microscopic sensors that are either placed on a subject’s body or attached to their clothes. These low-power devices track the physiological readings from a subject and relay them to a server over the Internet. Since WBANs find various uses, from remote medical monitoring to early disease detection in the medical field, their readings must be accurate. Anomalies can occur in the data being transmitted for various reasons, such as sensor faults or malicious attacks.

In some instances, however, what is considered an anomaly may not be an anomaly, and the readings are correct. To mitigate such cases, we must detect anomalies promptly. The anomaly detection process developed here consists of point and contextual anomaly detection. Point anomaly detection deals with checking whether, given a set of readings, some of the readings are anomalous in an isolated sense. Contextual anomaly detection then checks whether readings from other sensors can corroborate the reading of our “faulty” sensor. This paper has employed a CNN Autoencoder and an LSTM-based classifier to do this two-step process. Our model shows an accuracy of 94% and a loss of 14%.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Data Availability Statement

The source code for the models described in this research is accessible on GitHub [9]. It has been implemented using TensorFlow [10], Keras [11], scikit-learn [13], and NumPy [8]. The Pandas Python library was used to help in data graphing [12].

References

  1. IEEE Standard for Local and metropolitan area networks - Part 15.6: Wireless Body Area Networks. In: IEEE Std 802.15.6-2012, pp. 1–271 (2012). https://doi.org/10.1109/IEEESTD.2012.6161600

  2. Harun Al Rasyid, M.U., Setiawan, F., Nadhori, I.U., Sudarsonc, A., Tamami, N.: Anomalous data detection in WBAN measurements. In: 2018 International Electronics Symposium on Knowledge Creation and Intelligent Computing (IES-KCIC), Bali, Indonesia, pp. 303–309 (2018). https://doi.org/10.1109/KCIC.2018.8628522

  3. Canizo, M., Triguero, I., Conde, A., Onieva, E.: Multi-head CNN-RNN for multi-time series anomaly detection: an industrial case study. Neurocomputing 363, 246–260 (2019). https://doi.org/10.1016/j.neucom.2019.07.034

    Article  Google Scholar 

  4. Khan, F.A., Haldar, N.A.H., Ali, A., Iftikhar, M., Zia, T.A., Zomaya, A.Y.: A continuous change detection mechanism to identify anomalies in ECG signals for WBAN-based healthcare environments. IEEE Access 5, 13531–13544 (2017). https://doi.org/10.1109/ACCESS.2017.2714258

    Article  Google Scholar 

  5. Provotar, O.I., Linder, Y.M., Veres, M.M.: Unsupervised anomaly detection in time series using LSTM-based autoencoders. In: 2019 IEEE International Conference on Advanced Trends in Information Theory (ATIT), Kyiv, Ukraine, pp. 513–517 (2019). https://doi.org/10.1109/ATIT49449.2019.9030505

  6. Zhai, J., Zhang, S., Chen, J., He, Q.: Autoencoder and its various variants. In: 2018 IEEE International Conference on Systems, Man, and Cybernetics (SMC), Miyazaki, Japan, pp. 415–419 (2018). https://doi.org/10.1109/SMC.2018.00080

  7. Goldberger, A., et al.: PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals. Circulation 101(23), e215–e220 (2000). https://www.physionet.org/static/published-projects/circulation. Accessed 10 Sept 2023

  8. Harris, C.R., et al.: Array programming with NumPy. Nature 585(7825), 357–362 (2020). https://doi.org/10.1038/s41586-020-2649-2

    Article  Google Scholar 

  9. Kartikeya, D.: Anomaly detection in WBANs. GitHub. https://github.com/kakuking/AnomalyDetectionInWBANs. Accessed 25 Oct 2023

  10. TensorFlow Developers, TensorFlow. Zenodo (2023). https://doi.org/10.5281/ZENODO.4724125

  11. Chollet, F., et al.: Keras. GitHub (2015). https://github.com/fchollet/keras

  12. McKinney, W., et al.: Data structures for statistical computing in Python. In: Proceedings of the 9th Python in Science Conference, vol. 445, pp. 51–56 (2010)

    Google Scholar 

  13. Pedregosa, F., et al.: Scikit-learn: machine learning in python. J. Mach. Learn. Res. 12, 2825–2830 (2011)

    MathSciNet  Google Scholar 

  14. Hunter, J.D.: Matplotlib: a 2D graphics environment. Comput. Sci. Eng. 9(3), 90–95 (2007)

    Article  Google Scholar 

Download references

Acknowledgements

The authors would like to express their enormous gratitude to the BITS BioCyTiH Foundation and to DST, Govt. of India, for their support and funding provided for this research.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Kartikeya Dubey .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Dubey, K., Hota, C. (2024). Anomaly Detection in WBANs Using CNN-Autoencoders and LSTMs. In: Barolli, L. (eds) Advanced Information Networking and Applications. AINA 2024. Lecture Notes on Data Engineering and Communications Technologies, vol 201. Springer, Cham. https://doi.org/10.1007/978-3-031-57870-0_17

Download citation

Publish with us

Policies and ethics