Entropy-Based Source File Noise Reduction for Testing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current code testing methods are inconsistent and often result in poor testing coverage, leading to frequent post-deployment failures and defects due to inadequate scanning that fails to account for unique organizational factors, resulting in numerous false positives.

Innovation Solution

A method that scans source files to determine entropy values, acquires and adjusts threshold values based on file type and organizational specifics, removes high and low entropy strings, and executes targeted tests to reduce noise and false positives, using a processor and memory to ensure accurate testing before deployment.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If conventional scanning with generic high threshold is used, then false positives are reduced, but testing coverage becomes insufficient and post-deployment failures increase

Engineering Contradiction:
Improvefalse positive reductionVSAvoidtesting coverage
Core Design Contradiction:
Measurement precisionVSReliability

Solution Approach 1:

The patent applies local quality by implementing organization-specific threshold values tailored to different file types and projects, rather than using a generic high threshold universally. This allows the scanning system to maintain high precision in reducing false positives while adapting sensitivity levels to local characteristics of different codebases, thereby preserving testing coverage without excessive false positives

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent implements dynamic threshold adjustment based on entropy values calculated from actual code patterns. The system dynamically adapts threshold levels according to the specific organizational context and file type being scanned, enabling it to maintain optimal balance between false positive reduction and testing coverage across diverse scenarios

Inventive Principle:
Principle #15Dynamics

2Measurement precision

If generic high threshold scanning is applied, then false positives decrease, but organizational unique factors are not accounted for leading to inconsistent testing

Engineering Contradiction:
Improvefalse positive detectionVSAvoidorganizational factor adaptation
Core Design Contradiction:
Measurement precisionVSAdaptability or versatility

Solution Approach 1:

The system implements local quality by creating organization-specific and file-type-specific threshold configurations. Each organization can define their own threshold values based on their unique code patterns, project requirements, and risk tolerance, making the scanning adaptable to local characteristics rather than applying a one-size-fits-all approach

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent changes the parameter of threshold values from fixed generic highs to dynamic organization-specific values. The system calculates entropy-based thresholds that adapt to organizational patterns, allowing the same scanning mechanism to work effectively across different organizations with their unique factors

Inventive Principle:
Principle #35Parameter changes

3Reliability

If extensive testing is performed on all strings, then testing coverage is improved, but noise and resource consumption increase

Engineering Contradiction:
Improvetesting coverageVSAvoiddata volume for testing
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent applies the extraction principle by removing high-entropy strings (likely non-codified data, comments, or irrelevant content) from the testing scope before execution. This reduces the volume of data subjected to testing while maintaining coverage of critical low-entropy code patterns, thereby decreasing noise and resource consumption without sacrificing essential testing coverage

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS11983103B2System and method for reducing noise and false positives for ensuring test coverage prior to submission
Publication Date: 2024.05.14 JPMORGAN CHASE BANK NA
  • US11983103B2 patent drawing
  • US11983103B2 patent drawing
  • US11983103B2 patent drawing

AI summary

A method for performing reducing noise and false positive event detection in testing is disclosed. The method includes performing scanning of a source file including multiple strings; determining, an entropy value of each string included in the multiple strings; acquiring, from a central repository, a first threshold value; identifying one or more strings having an entropy value higher than the first threshold value; removing the one or more strings having the entropy value higher than the first threshold value from the source file; deriving a second threshold value based on the determined entropy values and the first threshold value; identifying one or more strings having an entropy value lower than the second threshold value; removing the one or more strings having the entropy value lower than the second threshold value from the source file; and executing one or more tests on strings remaining in the source file.