IDEAS home Printed from https://ideas.repec.org/h/spr/ssrchp/978-3-032-09917-4_8.html

Interpretable Anomaly Detection for Cyber-Physical System Risk Mitigation Using CNN and SHAP

In: Reliability in Cyber-Physical Systems: The Human Factor Perspective

Author

Listed:
  • Kamal Bella

    (Higher School of Technology, Cadi Ayyad University, SISAR Team, LaRTiD Laboratory)

  • Azidine Guezzaz

    (Higher School of Technology, Cadi Ayyad University, SISAR Team, LaRTiD Laboratory)

  • Ravikumar Patchmuthu

    (Universiti Teknology Brunei)

  • Said Benkirane

    (Higher School of Technology, Cadi Ayyad University, SISAR Team, LaRTiD Laboratory)

  • Mouaad Mohy-Eddine

    (National School of Arts and Crafts, Hassan II University, DELTA Lab)

  • Mourade Azrour

    (Moulay Ismail University, Faculty of Sciences and Technics)

Abstract

Cyber-physical systems (CPS) increasingly underlie critical infrastructures, and ensuring they remain free of anomalies is paramount, although many existing detection techniques either struggle to adapt to novel threats or offer little insight into how decisions are reached. In this paper, we introduce a convolutional neural network (CNN) combined with SHAP (SHapley Additive exPlanations) that not only achieves an accuracy of 98.89% but also provides transparent justifications for each anomaly prediction. By carefully preprocessing the NSL-KDD dataset—merging and standardizing features, as well as encoding categorical fields—we create a robust foundation for our CNN, which employs one-dimensional convolutions, dropout, and global average pooling to capture subtle patterns while mitigating overfitting risks. Empirical evaluations show that precision, recall, and F1-score all exceed 98%, with the ROC AUC reaching 99.93%, yet the true novelty lies in how SHAP clarifies feature-level contributions, empowering system operators and security professionals to understand precisely why particular instances are flagged as malicious or benign.

Suggested Citation

  • Kamal Bella & Azidine Guezzaz & Ravikumar Patchmuthu & Said Benkirane & Mouaad Mohy-Eddine & Mourade Azrour, 2026. "Interpretable Anomaly Detection for Cyber-Physical System Risk Mitigation Using CNN and SHAP," Springer Series in Reliability Engineering, in: Gururaj H. L. & Vinayakumar Ravi & Hoang Pham & Dayananda P. (ed.), Reliability in Cyber-Physical Systems: The Human Factor Perspective, pages 119-129, Springer.
  • Handle: RePEc:spr:ssrchp:978-3-032-09917-4_8
    DOI: 10.1007/978-3-032-09917-4_8
    as

    Download full text from publisher

    To our knowledge, this item is not available for download. To find whether it is available, there are three options:
    1. Check below whether another version of this item is available online.
    2. Check on the provider's web page whether it is in fact available.
    3. Perform a
    for a similarly titled item that would be available.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:spr:ssrchp:978-3-032-09917-4_8. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.