본문 바로가기
  • Home

An Explainable AI-based Framework for SQL Query Performance Optimization Recommendation

  • Journal of Software Forensics
  • Abbr : JSF
  • 2026, 22(2), pp.165~177
  • DOI : 10.29056/jsf.2026.06.15
  • Publisher : Korea Software Assessment and Valuation Society
  • Research Area : Engineering > Computer Science
  • Received : June 2, 2026
  • Accepted : June 20, 2026
  • Published : June 30, 2026

Ok-Joo Choi 1 Won Sun Shin 2

1배재대학교 AI.소프트웨어공학부
2주식회사 비전21테크

Accredited

ABSTRACT

Although recent machine learning-based approaches have shown promise in predicting SQL query performance, most studies primarily focus on improving prediction accuracy, leaving the interpretability of black-box models largely unaddressed. To address this limitation, this study proposes an explainable AI-based SQL query performance optimization recommendation framework that integrates performance prediction with post-hoc explanation techniques. The proposed framework was evaluated in a PostgreSQL environment using the 22 standard TPC-H benchmark queries. Experimental results demonstrated strong prediction performance on the test set, achieving a MAE of 359.846 ms, an RMSE of 466.056 ms, and an R² score of 0.9563. Furthermore, SHAP analysis revealed that statistical features of execution time and structural features of the execution plan were the major factors affecting performance, while LIME analysis demonstrated that the prediction results could be explained at the level of individual SQL queries.

Citation status

* References for papers published after 2024 are currently being built.