Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

AI-Powered AOP: Enhancing Runtime Monitoring with Large Language Models and Statistical Learning

Author 1: Anas AlSobeh Author 2: Amani Shatnawi Author 3: Bilal Al-Ahmad Author 4: Alhan Aljmal Author 5: Samer Khamaiseh
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 15, No. 11 · Published 2024 · Cited by 23

DOI: https://doi.org/10.14569/IJACSA.2024.0151113

Abstract

Modern software systems must adapt to dynamic artificial intelligence (AI) environments and evolving requirements. Aspect-oriented programming (AOP) effectively isolates crosscutting concerns (CCs) into single modules called aspects, enhancing quality metrics, and simplifying testing. However, AOP implementation can lead to unexpected program outputs and behavior changes. This paper proposes an AI-enhanced, adaptive monitoring framework for validating program behaviors during aspect weaving that integrates AOP interfaces (AOPIs) with large language models (LLMs), i.e. GPT-Codex AI, to dynamically generate and optimize monitoring aspects and statistical models in realtime. This enables intelligent run-time analysis, adaptive model checking, and natural language (NL) interaction. We tested the framework on ten diverse Java classes from JHotdraw 7.6 by extracting context and numerical data and building a dataset for analysis. By dynamically refining aspects and models based on observed behavior, its results showed that the framework maintained the integrity of the Java OOP class while providing predictive insights into potential conflicts and optimizations. Results demonstrate the framework’s efficacy in detecting subtle behavioral changes induced by aspect weaving, with a 94% accuracy in identifying potential conflicts and a 37% reduction in false positives compared to traditional static analysis techniques. Furthermore, the integration of explainable AI provides developers with clear, actionable explanations for flagged behaviors through NL interfaces, enhancing interpretability and trust in the system.

Keywords

How to Cite this Article

AlSobeh, A., Shatnawi, A., Al-Ahmad, B., Aljmal, A., & Khamaiseh, S. (2024). AI-Powered AOP: Enhancing Runtime Monitoring with Large Language Models and Statistical Learning. International Journal of Advanced Computer Science and Applications, 15(11). https://doi.org/10.14569/IJACSA.2024.0151113

AlSobeh, Anas, et al.. "AI-Powered AOP: Enhancing Runtime Monitoring with Large Language Models and Statistical Learning." International Journal of Advanced Computer Science and Applications, vol. 15, no. 11, 2024, https://doi.org/10.14569/IJACSA.2024.0151113.

@article{AlSobeh2024,
  title     = {AI-Powered AOP: Enhancing Runtime Monitoring with Large Language Models and Statistical Learning},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {15},
  number    = {11},
  year      = {2024},
  publisher = {The Science and Information Organization},
  author    = {Anas AlSobeh and Amani Shatnawi and Bilal Al-Ahmad and Alhan Aljmal and Samer Khamaiseh},
  doi       = {10.14569/IJACSA.2024.0151113},
  url       = {https://doi.org/10.14569/IJACSA.2024.0151113}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.