Database-Based Decision Tree Training with Parallel Variance Selection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Training decision trees and random forests is computationally expensive due to the need for extensive calculations and resource-intensive processes, particularly when dealing with large datasets and numerous features.

Innovation Solution

Utilize a database system to store input data and employ variance-based techniques to select and associate decision nodes, allowing for parallel processing and reduced computational overhead by calculating variance for each feature to determine the highest variance feature for branching.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If traditional decision tree training methods are used with extensive calculations on large datasets, then accurate classification results are achieved, but computational cost and training time increase significantly

Engineering Contradiction:
Improveclassification accuracyVSAvoidtraining time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent segments the feature set into multiple subsets and processes them in parallel using multiple threads. Each thread calculates variance for a specific feature subset independently, allowing concurrent processing that reduces overall training time while maintaining classification accuracy through comprehensive feature analysis.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent performs preliminary variance calculation on training data to identify the highest variance feature before building the decision tree. This preliminary action allows the system to pre-determine optimal branching features, reducing the computational burden during actual tree construction and classification operations.

Inventive Principle:
Principle #10Preliminary action

2Measurement precision

If traditional decision tree training methods are used with extensive calculations on large datasets, then accurate classification results are achieved, but computational resources and processing power are consumed excessively

Engineering Contradiction:
Improveclassification accuracyVSAvoidcomputational power
Core Design Contradiction:
Measurement precisionVSPower

Solution Approach 1:

The patent divides the computationally intensive variance calculation task into multiple segments processed in parallel. By splitting the feature set across multiple threads, each thread handles a manageable subset with reduced memory access contention and computational overhead, achieving better resource utilization while maintaining overall accuracy.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system uses the database system's native parallel query execution capabilities to perform variance calculations. The database engine leverages its own optimized execution plans and resource management to handle the computational tasks efficiently, reducing the burden on external processing systems.

Inventive Principle:
Principle #25Self-service

3Measurement precision

If variance calculations are performed for all features sequentially, then the highest variance feature is identified accurately, but the training process becomes time-consuming

Engineering Contradiction:
Improvefeature selection accuracyVSAvoidtraining efficiency
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent segments the feature calculation tasks and assigns them to multiple threads that execute simultaneously. Each thread calculates variance for its assigned features independently, and the results are aggregated to identify the highest variance feature. This parallel approach maintains selection accuracy while dramatically improving training efficiency through concurrent execution.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS12406209B1Decision tree training using a database system
Publication Date: 2025.09.02 SHAPE SECURITY INC
  • US12406209B1 patent drawing
  • US12406209B1 patent drawing
  • US12406209B1 patent drawing

AI summary

In an embodiment, a computer-implemented method for training a decision tree using a database system, the decision tree comprising a plurality nodes, comprises, by one or more computing devices: storing in a database input data for training the decision tree, the input data comprising a plurality of feature values corresponding to a plurality of features; generating a particular node of the plurality of decision nodes by: selecting a subset of the plurality of features and a subset of the input data; using one or more queries to the database system, for each feature of the subset of the plurality of features, calculating a variance value associated with the feature based on the subset of the input data; identifying a particular feature of the subset of the plurality of features associated with the highest variance value; associating the particular node with the particular feature, wherein the particular node causes the decision tree to branch based on the particular feature.