SQL Data Pre-Processing for Secure In-Database ML Preparation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current data pre-processing operations in machine learning are computationally expensive and time-consuming due to processing large amounts of data stored in not-so-optimized structures, and moving data jeopardizes security and privacy.

Innovation Solution

Perform data pre-processing operations directly on the database where the data is stored, leveraging SQL-based database servers for enhanced performance and security by generating and executing SQL statements for data pre-processing functions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If data pre-processing is performed using traditional machine learning libraries, then data can be transformed and prepared for modeling, but the process becomes computationally expensive and time-consuming

Engineering Contradiction:
Improvedata pre-processing speedVSAvoidcomputational cost
Core Design Contradiction:
ProductivityVSUse of energy by moving object

Solution Approach 1:

The patent translates and copies the functionality of machine learning data pre-processing libraries into SQL implementations within the database system. Instead of executing complex pre-processing operations in application code, equivalent SQL statements are generated and executed directly in the database, leveraging the database engine's optimized query processing capabilities to achieve faster execution with lower computational overhead.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The patent introduces an intermediary translation layer that converts machine learning library function calls into SQL statements. This intermediary module acts as a bridge between the machine learning workflow and the database system, enabling pre-processing operations to be executed efficiently within the database environment rather than requiring data movement and external processing.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Ease of operation

If data is moved from storage to processing systems for pre-processing, then data transformation can be performed, but data security and privacy are jeopardized

Engineering Contradiction:
Improvedata transformation capabilityVSAvoiddata security
Core Design Contradiction:
Ease of operationVSReliability

Solution Approach 1:

The patent introduces an intermediary translation layer that converts machine learning library function calls into SQL statements. This intermediary module acts as a bridge between the machine learning workflow and the database system, enabling pre-processing operations to be executed efficiently within the database environment rather than requiring data movement and external processing.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent translates and copies the functionality of machine learning data pre-processing libraries into SQL implementations within the database system. Instead of executing complex pre-processing operations in application code, equivalent SQL statements are generated and executed directly in the database, leveraging the database engine's optimized query processing capabilities to achieve faster execution with lower computational overhead.

Inventive Principle:
Principle #26Copying

3Manufacturing precision

If extensive data is processed during the training stage, then comprehensive pre-processing can be achieved, but the training stage becomes lengthy and computationally expensive

Engineering Contradiction:
Improvedata pre-processing qualityVSAvoidtraining stage duration
Core Design Contradiction:
Manufacturing precisionVSLoss of time

Solution Approach 1:

The patent translates and copies the functionality of machine learning data pre-processing libraries into SQL implementations within the database system. Instead of executing complex pre-processing operations in application code, equivalent SQL statements are generated and executed directly in the database, leveraging the database engine's optimized query processing capabilities to achieve faster execution with lower computational overhead.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS12493817B2Performing data pre-processing operations during data preparation of a machine learning lifecycle
Publication Date: 2025.12.09 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US12493817B2 patent drawing
  • US12493817B2 patent drawing
  • US12493817B2 patent drawing

AI summary

In accordance with an embodiment of the invention, a method is provided for performing data pre-processing operations during data preparation of a machine learning lifecycle. The method includes defining one or more data pre-processing functions for applying to data stored in a dataset, executing one or more learn functions for learning the data, and executing one or more transform functions for transforming the data. Each of the one or more learn functions generates a first Structured Query Language (SQL) statement representing a definition of corresponding learn function for corresponding defined data pre-processing function. Each of the one or more transform functions generates a second SQL statement representing a definition of corresponding transform function for corresponding defined data pre-processing function. The dataset is stored in a database.