Research indexConference paper
In-Database Machine Learning: A Study on SQL-based Predictions
Kandimalla, Gouroju, Kappaganthula and 2 others
International Conference on Inventive Computation Technologies (ICICT)15 Apr 2026
NobleIDark:/48914/w1/20261105/6450909DDOI10.1109/icict68280.2026.11511003
In-Database Machine Learning: A Study on SQL-based Predictions
Kandimalla, Gouroju, Kappaganthula and 2 others · International Conference on Inventive Computation Technologies (ICICT) · 2026 · Subscription
NobleIDark:/48914/w1/20261105/6450909DDOI10.1109/icict68280.2026.11511003
The full text is at the publisher
You can read the abstract here, or open it at the publisher.
Abstract
The inference of machine learning models in enterprise systems often involves the transfer of information outside of the Database Management System (DBMS) and therefore incurs latency and complexity issues. This drawback is an incentive to incorporate predictive intelligence into database systems to enable effective real-time analytics without using any data processing. This paper proposes a framework for intelligent in-database machine learning, where prediction models are directly derived from SQL queries through the translation of decision trees into SQL CASE statements via middleware-based rewriting of SQL queries. It also proposes a cost-based optimizer, which it calls the Cost-Based Optimizer (CBO), and a role-based access control component, which it calls the Role-Based Access Control (RBAC), for the efficient management of the in-database machine learning models. Additionally, there is a cost-based reinforcement learning component based on the Double Deep Q-Network (Double DQN) method with Prioritized Experience Replay (PER). The architecture integrates both supervised models of learning and reinforcement learning based optimization into one structure to allow the adaptive and effective decision making in database systems. The performance of the framework is also compared with existing approaches on predictive maintenance, banking marketing, and telecom churn datasets and shows competitive performance without incurring inference latency. It also includes Explainability of AI through the use of SHAP. Based on the relational database system, it allows providing scalable, interpretable, and cost-aware analytics.