Adaptive multi-stage data classification system and method with privacy-preserving metadata extraction
The adaptive multi-stage data classification system addresses scalability and privacy challenges by using a distributed, containerized architecture with confidence-based processing and automatic updates, achieving efficient, accurate, and privacy-preserving data classification across diverse and complex document types.
Patent Information
- Application Number
- PCT/US2026/028995
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2026-05-15
- Filing Date
- 2026-05-20
- Publication Date
- 2026-11-26
AI Technical Summary
Current data classification systems face challenges in efficiently processing large datasets across distributed repositories while maintaining data privacy, adapting to diverse content types, providing transparent classification decisions, and overcoming scalability limitations, particularly in multilingual and complex document formats, leading to performance bottlenecks and compliance risks.
An adaptive multi-stage data classification system employing a distributed, containerized architecture that uses a hardware-accelerated prefilter database, regex engines, and machine learning models to identify suspicious regions, calculate confidence scores, and generate metadata without persisting raw document content, adapting to document characteristics and languages, and updating models automatically.
The system significantly reduces processing time, enhances accuracy, preserves data privacy, and improves resource efficiency, providing transparent classification decisions and compliance with regulatory requirements, while handling multilingual and complex documents effectively.
Smart Images

Figure US2026028995_26112026_PF_FP_ABST
Abstract
Description
PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664TITLE ADAPTIVE MULTI-STAGE DATA CLASSIFICATION SYSTEM AND METHOD WITH PRIVACYPRESERVING METADATA EXTRACTION RELATED APPLICATIONS
[0001] This application claims the benefit of priority to U.S. Application No. 19 / 678,486 filed on May 15, 2026, which claims the benefit under 35 U.S.C. § 119(e) of U.S. Provisional Application No. 63 / 809,931 filed on May 21, 2025, which are hereby incorporated by reference herein in its entirety.
[0002] It is intended that each of the referenced applications may be applicable to the concepts and embodiments disclosed herein, even if such concepts and embodiments are disclosed in the referenced applications with different limitations and configurations and described using different examples and terminology.FIELD OF DISCLOSURE
[0003] The present disclosure generally relates to data classification and sensitive information detection systems, and more particularly to adaptive multi-stage classification systems employing pattern matching, machine learning, and privacy-preserving metadata extraction for processing documents across computing environments while maintaining data privacy.BACKGROUND
[0004] In some situations, organizations need to efficiently identify, classify, and manage sensitive data across large, distributed repositories. For example, enterprises with petabyte-scale data stores must locate and protect personally identifiable information (PII), protected health information (PHI), and payment card information (PCI) to comply with regulatory requirements. Thus, the conventional strategy is to deploy centralized data classification systems that ingest and process all content through a single pipeline. This often causes problems because the conventional strategy does not scale effectively for extremely large datasets or respect data privacy and sovereignty requirements. For example, traditional Data Security Posture Management (DSPM) solutions typically require complete content ingestion into centralized processing systems, resulting in scan times that can extend from weeks to months for large datasets.
[0005] Current document classification systems generally employ either Regular Expression (regex) pattern matching, machine learning models, or large language models (LLMs) as isolated techniques rather than combining these approaches in an integrated manner. These single-PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664technique approaches fail to leverage the complementary strengths of different classification methods. Additionally, conventional systems rarely adapt to the specific language of documents being processed, instead applying generic models across all content regardless of language.
[0006] Existing solutions also create privacy and security concerns by requiring sensitive data to be moved to central locations for processing. This approach conflicts with data residency requirements that prohibit certain information from leaving specific geographic or organizational boundaries. The centralized architecture of traditional systems introduces network bandwidth bottlenecks when transferring large datasets and creates single points of failure that can compromise the entire classification process.
[0007] Furthermore, current solutions typically lack transparency in their detection methodologies and classification decisions. When a document is flagged as containing sensitive information, users often cannot determine which specific elements triggered the classification or how confident the system is in its assessment. This lack of explainability hampers efforts to validate and improve classification accuracy.
[0008] The resource inefficiency of conventional approaches also presents challenges, as they frequently apply computationally expensive processing to all documents regardless of complexity or content. This results in higher compute costs and extended processing times that delay the identification and protection of sensitive information.
[0009] In addition to these challenges, traditional data classification systems frequently struggle with multilingual content, which is increasingly common in global organizations. They often rely on English-centric models and rules that perform poorly when applied to documents in other languages. This language limitation creates significant blind spots in sensitive data detection across international operations.
[0010] The performance degradation of conventional systems is particularly evident when processing complex document formats such as PDFs with embedded images, encrypted content, or nested containers like ZIP archives. These formats require specialized processing capabilities that many classification systems lack, resulting in undetected sensitive information within these complex file types.
[0011] Current approaches also typically operate with static classification rules and models that do not evolve based on organizational context or emerging data patterns. This rigidity prevents systems from improving their accuracy over time or adapting to an organization's specific terminology and document structures. For instance, industry-specific terms that might constitute sensitive information in one sector may be irrelevant in another, yet conventional systems apply the same detection criteria universally.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664
[0012] The lack of incremental scanning capabilities in existing solutions forces organizations to repeatedly scan entire repositories even when only a small percentage of documents have changed. This inefficiency wastes computational resources and extends the time sensitive data remains unidentified and unprotected.
[0013] Moreover, conventional classification systems typically provide limited integration capabilities with downstream data protection tools. This disconnection between classification and remediation creates workflow inefficiencies, as security teams must manually implement protective measures after sensitive data is identified.
[0014] The scalability limitations of traditional approaches become particularly problematic in scenarios requiring rapid data assessment, such as during mergers and acquisitions or when responding to data breach incidents. In these time-sensitive situations, the extended processing times of conventional systems can significantly delay critical security and compliance responses.
[0015] Several commercially available solutions attempt to address aspects of these challenges. For example, BigID offers data discovery and classification capabilities but relies heavily on centralized processing that can struggle with very large datasets. Microsoft Purview provides data governance features but faces similar scalability challenges when processing petabyte-scale repositories. Varonis offers data classification with a focus on access controls but typically requires significant infrastructure investment for large-scale deployments. Spirion provides sensitive data discovery but often experiences performance degradation when scanning complex file formats across distributed environments.
[0016] These existing solutions are inadequate for several reasons. They typically cannot process petabyte-scale data within reasonable timeframes, often requiring months rather than days or weeks. Their centralized architectures create single points of failure and network bottlenecks when transferring large volumes of data. The static nature of their classification engines prevents adaptation to organization-specific terminology and evolving data patterns. Their limited explainability features make it difficult for security teams to validate classification decisions and prioritize remediation efforts. Additionally, these solutions generally lack robust capabilities for processing multilingual content, which is increasingly common in global enterprises.
[0017] The technical challenges of efficient, accurate, and privacy-preserving data classification at scale remain largely unresolved by current approaches. Organizations require more sophisticated solutions that can process massive datasets quickly while maintaining data privacy, adapting to diverse content types, and providing transparent classification decisions.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664
[0018] There is a need for a comprehensive solution that addresses the multifaceted challenges of sensitive data classification at enterprise scale. Organizations face increasing regulatory pressure to protect sensitive information while managing exponentially growing data volumes across distributed environments. The conventional approaches to data classification are fundamentally inadequate for modern enterprise requirements, as they suffer from performance bottlenecks, privacy vulnerabilities, and architectural limitations that prevent effective scaling. With data breach costs averaging millions of dollars per incident and regulatory penalties becoming increasingly severe, organizations require a solution that can rapidly identify sensitive information across petabyte-scale repositories while maintaining data sovereignty, providing classification transparency, supporting multilingual content, and efficiently processing complex document formats — all without creating single points of failure or excessive resource consumption that characterize traditional centralized systems. Moreover, there remains a need for data classification systems that may process large-scale distributed repositories efficiently while preserving data privacy, supporting diverse content types and languages, providing transparent and explainable classification decisions, and adapting to organization-specific terminology and evolving data patterns without requiring centralized ingestion of raw document content.BRIEF OVERVIEW
[0019] This brief overview is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This brief overview is not intended to identify key features or essential features of the claimed subject matter. Nor is this brief overview intended to be used to limit the claimed subject matter’s scope.
[0020] A system for adaptive multi-stage data classification may include one or more processors and a memory storing instructions. The instructions may cause the system to load a plurality of classification patterns from a declarative rule set and compile a hardware-accelerated prefilter database by applying a widening transformation to each classification pattern to produce a corresponding prefilter pattern that matches a superset of text regions matched by the classification pattern. The system may scan document text using the hardware-accelerated prefilter database to identify suspicious regions defined by positional offsets within the document text. The system may merge overlapping suspicious regions according to a region merge policy and confirm candidate matches within the merged suspicious regions using a linear-time regex engine for classification patterns compatible with linear-time evaluation and a backtracking regex engine for classification patterns requiring lookaround or backreference constructs. The system may calculate a confidence score for each confirmed candidate match and generatePATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664classification metadata based on the confirmed candidate matches and the confidence scores without persisting raw document content.
[0021] In some embodiments, the system may terminate classification early when the hardware-accelerated prefilter database produces no suspicious regions. The system may apply positive combination rules to increase the confidence score when a first set of classification patterns co-occur within the document text and may apply negative combination rules to decrease the confidence score when a second set of classification patterns co-occur within the document text The positive combination rules and the negative combination rules may be independently optional and configurable per tenant or policy. The system may increase the confidence score for repeated occurrences of a classification pattern using tiered increments and may cap the confidence score at a pattern-class-dependent ceiling value.
[0022] In some embodiments, the system may conditionally activate a machine learning classification stage when the confidence score is below a configurable threshold. The system may partition the document text into a plurality of pages and submit the pages in parallel to a machine learning inference engine. The system may perform asymmetric early termination by terminating page processing upon detecting a page exceeding a sensitive-detection confidence threshold, or upon detecting a configurable number of consecutive pages each below a non-sensitive consensus threshold, subject to a minimum number of pages having been evaluated.
[0023] In some embodiments, the system may compile the hardware-accelerated prefilter database through a progressive compilation process comprising checking for a manually specified prefilter override pattern, stripping zero-width assertions and other incompatible constructs to produce a widened pattern, attempting Unicode-aware compilation, and upon failure simplifying the widened pattern to an ASCII-equivalent pattern. The system may maintain a pre-allocated pool of scratch state objects for concurrent prefilter scans. The system may monitor resource utilization metrics and apply hysteresis-gated backpressure to regulate pipeline intake and upstream document downloads. The system may recycle process pools upon satisfaction of configurable file count, time-based, or memory pressure triggers using a three-phase lock-minimized recycling protocol.
[0024] A method for adaptive multi-stage data classification may include loading a plurality of classification patterns from a declarative rule set and compiling a hardware-accelerated prefilter database from the plurality of classification patterns. The method may include scanning document text to identify suspicious regions, merging overlapping regions, confirming candidate matches using a linear-time regex engine and a backtracking regex engine, calculating a confidence score, and generating classification metadata without persisting raw documentPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664content. The method may include classifying structured data by constructing column-header-prefixed strings for sampled field values and submitting the prefixed strings to the classification pipeline. The method may include performing incremental structured data scanning by computing content hashes for sampled records and reclassifying only records whose content hash has changed since a prior scan. The method may include adaptively controlling cloud storage retrieval concurrency using an additive-increase multiplicative-decrease algorithm that converges to the maximum sustainable throughput without requiring prior knowledge of API rate limits.
[0025] A non-transitory computer-readable medium may store instructions that, when executed by one or more processors, cause the processors to perform operations for adaptive multi-stage data classification comprising loading classification patterns from a declarative rule set, compiling a hardware-accelerated prefilter database by applying a widening transformation, scanning document text to identify suspicious regions, merging overlapping regions, confirming candidate matches using a linear-time regex engine and a backtracking regex engine, calculating a confidence score, and generating classification metadata without persisting raw document content.
[0026] Both the foregoing brief overview and the following detailed description provide examples and are explanatory only. Accordingly, the foregoing brief overview and the following detailed description should not be considered to be restrictive. Further, features or variations may be provided in addition to those set forth herein. For example, embodiments may be directed to various feature combinations and sub-combinations described in the detailed description.BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate various embodiments of the present disclosure. The drawings contain representations of various trademarks and copyrights owned by the Applicant. In addition, the drawings may contain other marks owned by third parties and are being used for illustrative purposes only. All rights to various trademarks and copyrights represented herein, except those belonging to their respective owners, are vested in and the property of the Applicant The Applicant retains and reserves all rights in its trademarks and copyrights included herein, and grants permission to reproduce the material only in connection with reproduction of the granted patent and for no other purpose.
[0028] Furthermore, the drawings may contain text or captions that may explain certain embodiments of the present disclosure. This text is included for illustrative, non-limiting, explanatory purposes of certain embodiments detailed in the present disclosure. In the drawings:PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664
[0029] FIG. 1 illustrates a block diagram of an operating environment consistent with the present disclosure.
[0030] FIG. 2 is a flow chart of a method for providing a containerized privacy-preserving data classification system.
[0031] FIG. 3 is a block diagram of a system including a computing device for performing the method of FIG. 2.DETAILED DESCRIPTION
[0032] As a preliminary matter, it will readily be understood by one having ordinary skill in the relevant art that the present disclosure has broad utility and application. As should be understood, any embodiment may incorporate only one or a plurality of the above-disclosed aspects of the disclosure and may further incorporate only one or a plurality of the abovedisclosed features. Furthermore, any embodiment discussed and identified as being "preferred" is considered to be part of a best mode contemplated for carrying out the embodiments of the present disclosure. Other embodiments also may be discussed for additional illustrative purposes in providing a full and enabling disclosure. Moreover, many embodiments, such as adaptations, variations, modifications, and equivalent arrangements, will be implicitly disclosed by the embodiments described herein and fall within the scope of the present disclosure.
[0033] Accordingly, while embodiments are described herein in detail in relation to one or more embodiments, it is to be understood that this disclosure is illustrative and exemplary of the present disclosure and are made merely to provide a full and enabling disclosure. The detailed disclosure herein of one or more embodiments is not intended, nor is to be construed, to limit the scope of patent protection afforded in any claim of a patent issuing here from, which scope is to be defined by the claims and the equivalents thereof. It is not intended that the scope of patent protection be defined by reading into any claim a limitation found herein that does not explicitly appear in the claim itself.
[0034] Thus, for example, any sequencefs] and / or temporal order of steps of various processes or methods that are described herein are illustrative and not restrictive. Accordingly, it should be understood that, although steps of various processes or methods may be shown and described as being in a sequence or temporal order, the steps of any such processes or methods are not limited to being carried out in any particular sequence or order, absent an indication otherwise. Indeed, the steps in such processes or methods generally may be carried out in various different sequences and orders while still falling within the scope of the present invention. Accordingly, it is intended that the scope of patent protection is to be defined by the issued claim(s) rather than the description set forth herein.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664
[0035] Additionally, it is important to note that each term used herein refers to that which an ordinary artisan would understand such a term to mean based on the contextual use of the term herein. To the extent that the meaning of a term used herein — as understood by the ordinary artisan based on the contextual use of such term — differs in any way from any particular dictionary definition of such term, it is intended that the meaning of the term as understood by the ordinary artisan should prevail.
[0036] Regarding applicability of 35 U.S.C. §112, 1[6, no claim element is intended to be read in accordance with this statutory provision unless the explicit phrase "means for” or "step for” is actually used in such claim element, whereupon this statutory provision is intended to apply in the interpretation of such claim element.
[0037] Furthermore, it is important to note that, as used herein, "a” and "an" each generally denotes "at least one,” but does not exclude a plurality unless the contextual use dictates otherwise. When used herein to join a list of items, "or” denotes "at least one of the items,” but does not exclude a plurality of items of the list. Finally, when used herein to join a list of items, "and” denotes "all of the items of the list."
[0038] The following detailed description refers to the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the following description to refer to the same or similar elements. While many embodiments of the disclosure may be described, modifications, adaptations, and other implementations are possible. For example, substitutions, additions, or modifications may be made to the elements illustrated in the drawings, and the methods described herein may be modified by substituting, reordering, or adding stages to the disclosed methods. Accordingly, the following detailed description does not limit the disclosure. Instead, the proper scope of the disclosure is defined by the appended claims. The present disclosure contains headers. It should be understood that these headers are used as references and are not to be construed as limiting upon the subject matter disclosed under the header.
[0039] The multi-stage data classification system described in this patent application addresses significant challenges faced by enterprises in identifying, classifying, and managing sensitive data across distributed repositories. Traditional data classification approaches often suffer from several limitations that impact their effectiveness in modern enterprise environments.
[0040] Organizations today must process and analyze massive volumes of data stored across various repositories including cloud storage, document management systems, and databases. This data frequently contains sensitive information such as personally identifiable informationPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664[PII], protected health information [PHI], payment card information [PCI], and other confidential data that requires proper identification and protection. Current classification systems typically rely on centralized processing that requires bulk data ingestion, creating significant latency and privacy concerns.
[0041] The primary use case addressed by this invention is the efficient, privacy-preserving classification of sensitive data across distributed enterprise repositories. Traditional approaches to this problem typically require full content ingestion into centralized systems, which creates several critical issues, including performance limitations, resource inefficiency, privacy and compliance risks, and inflexible classification approaches, among others.
[0042] These limitations create significant barriers to effective sensitive data management, particularly as organizations face increasing regulatory requirements and growing data volumes. The invention described herein addresses these challenges through its adaptive, multi-stage classification approach that operates in a distributed, containerized architecture while maintaining strict privacy controls.
[0043] The adaptive multi-stage data classification system provides numerous technical advantages over prior art approaches to sensitive data identification and management. By employing a containerized, distributed architecture with a sophisticated multi-stage classification pipeline, the system may overcome significant limitations found in traditional data classification solutions.
[0044] The multi-stage classification pipeline may provide significant performance advantages through its adaptive processing model. By implementing confidence thresholds at each stage, the system may intelligently determine when sufficient classification certainty has been achieved, allowing it to bypass unnecessary processing stages. For instance, if the regex engine identifies patterns with high confidence, the system may skip the more computationally intensive machine learning classification stage. This adaptive approach may reduce processing time by 10-30 times compared to systems that apply all classification methods to every document regardless of complexity.
[0045] Privacy preservation may be another technical advantage of the present system. By operating entirely in-memory and extracting only metadata rather than raw document content, the system may maintain strict data privacy and sovereignty. The scanner containers may load document content into volatile memory for processing and completely clear this memory after metadata generation is complete. This approach may significantly reduce compliance risks associated with sensitive data handling, as no raw document content may be persisted or transmitted outside the scanner environment.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664
[0046] For example, a scanner container may download the contents of a file from storage (e.g., a cloud-based storage solution, such as Amazon Simple Storage Service] into a temporary file locally. In some situations, it may be possible to stream the file contents into memory without downloading. The scanner may extract the textof thatfile into memory for scanning. Neither the memory nor the temporary file are persisted. Instead, only metadata generated as a result of the scan is sent back to the orchestrator.
[0047] The language-aware processing capability may provide enhanced accuracy across multilingual environments. By first detecting document language and then retrieving languagespecific regex rules and machine learning models, the system may achieve more precise classification results compared to language-agnostic approaches. This capability may be particularly valuable in global enterprises where documents exist in multiple languages, eliminating the need for separate classification systems for each language.
[0048] Resource efficiency may be substantially improved through the system's ephemeral container design. Scanner containers may be created on demand and automatically terminated after a period of inactivity, ensuring computing resources are utilized only when needed. This approach may contrast with traditional systems that maintain persistent processing resources regardless of current workload, resulting in significant cost savings in cloud and on-premises environments.
[0049] The auto-update mechanism may provide continuous improvement without operational disruption. By polling a central configuration service for updates to language-specific regex rules and machine learning models, scanner containers may automatically retrieve and implement the latest detection capabilities. This capability may eliminate the need for manual updates or system downtime typically required when updating traditional classification systems.
[0050] The system's traceability features may provide improved visibility into classification decisions. By including stage-wise processing information, engine versions, confidence scores, and timestamps in the metadata, the system may enable detailed analysis of classification results. This transparency may be valuable for compliance verification, troubleshooting, and continuous improvement of classification accuracy.
[0051] The conditional activation of the local large language model inference engine may provide advanced classification capabilities for complex or ambiguous documents. By invoking LLM processing only when simpler methods yield insufficient confidence, the system may achieve higher classification accuracy while minimizing the computational overhead associated with LLM inference. This balanced approach may deliver superior results compared to systems that eitherPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664rely entirely on simple pattern matching or default to resource-intensive LLM processing for all documents.
[0052] The combination of multiple classification techniques within a single, adaptive pipeline may yield higher accuracy than systems relying on a single approach. By applying language detection, regex pattern matching, machine learning classification, and conditional LLM inference in sequence, the system may leverage the strengths of each technique while mitigating their individual weaknesses. This synergistic approach may result in more reliable classification outcomes across diverse document types and content patterns.
[0053] The metadata generation engine may provide rich classification information without privacy risks. By carefully extracting classification labels, confidence scores, and match details without including raw document content, the system may deliver actionable intelligence while maintaining strict data privacy. This capability may be particularly valuable in regulated industries where data handling restrictions may limit the use of traditional classification systems that expose raw content
[0054] The present disclosure includes many aspects and features. Moreover, while many aspects and features relate to, and are described in, the context of adaptive multi-stage classification systems, embodiments of the present disclosure are not limited to use only in this context.I. PLATFORM OVERVIEW
[0055] This overview is provided to introduce a selection of concepts in a simplified form that are further described below. This overview is not intended to identify key features or essential features of the claimed subject matter. Nor is this overview intended to be used to limit the claimed subject matter's scope.
[0056] The adaptive multi-stage data classification system represents a novel approach to identifying, classifying, and managing sensitive data across distributed repositories. This system may address critical challenges faced by organizations that need to process large volumes of potentially sensitive information while maintaining strict privacy and security requirements.
[0057] The system may operate as a containerized scanner (or a plurality thereof) that functions directly within a customer's computing environment, eliminating the need to transfer data to centralized processing systems. This approach may help organizations maintain data locality and sovereignty, which may be particularly valuable in highly regulated industries such as healthcare, financial services, and government.
[0058] The system may employ a sophisticated multi-stage classification pipeline that begins with language detection to identify the document's primary language. This language-awarePATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664approach may allow the system to apply the most appropriate analysis methods for each document, potentially improving accuracy across multilingual document collections. After language detection, the system may apply language-specific regex rules to identify sensitive data patterns such as social security numbers, credit card information, or medical codes.
[0059] What may make this system particularly innovative is its confidence-based progression through the classification stages. Rather than applying all analysis methods to every document, the system may calculate confidence scores at each stage and proceed to more computationally intensive methods only when necessary. If the regex analysis yields high confidence, the system may accept that classification and proceed directly to metadata generation. If confidence remains low, the system may progress to machine learning classification using language-specific models, and if needed, to flag the file for a large language model (LLM) inference for complex cases. In some embodiments, the LLM may be local to the scanner container. Alternatively, the LLM may be maintained in a different container (e.g., a different scanner container or a dedicated LLM sematic analysis container).
[0060] Throughout the classification process, the system may maintain document content solely in volatile memory, extracting only classification metadata without persisting or transmitting raw document content This privacy-preserving approach may allow organizations to gain valuable insights about their sensitive data landscape without creating additional exposure risks. The classification metadata may include file identifiers, detected language information, classification labels, confidence scores, and match details, but importantly, no raw content from the documents.
[0061] The system may also feature an auto-update mechanism that polls a central configuration service for updates to language-specific regex rules and machine learning models. This capability may ensure that the classification system remains current with the latest detection patterns and models without requiring manual intervention.
[0062] By combining these features, the adaptive multi-stage data classification system may provide organizations with a more efficient, accurate, and privacy-preserving approach to managing sensitive data across their distributed environments. The system's ability to adapt to document characteristics, operate within customer environments, and maintain strict data privacy may represent significant advancements over traditional data classification approaches.
[0063] The technical improvements provided by the adaptive multi-stage data classification system are rooted in the architecture of the computer system itself and are not merely the application of abstract pattern-matching concepts to data. The hardware-accelerated prefilter database may reduce the volume of document text that must be processed by computationallyPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664intensive regex confirmation and machine learning inference engines by confining those operations to suspicious regions identified by positional offsets, rather than applying them to the full document text. This region-based filtering may produce a concrete improvement in the processing speed and memory efficiency of the scanner container as a computer system, reducing CPU cycles consumed per document and enabling higher throughput on the same hardware. The privacy-preserving architecture, which maintains document content solely in volatile memory and releases that memory after classification metadata is generated, may address a specific technical problem in distributed data processing systems: the risk of sensitive data persistence and exfiltration that arises when content must be transmitted to centralized processing systems. By solving this problem through an in-place containerized architecture rather than through policy controls alone, the system may provide a technical solution that is implemented as a specific arrangement of computer hardware and software components operating within a customer's computing environment.
[0064] Embodiments of the present disclosure may comprise methods, systems, and a computer readable medium comprising, but not limited to, at least one of the following:A. A Language Detection EngineB. A Regex EngineC. A Machine Learning Classification EngineD. An LLM Inference EngineE. A Metadata Generation EngineF. An Auto-Update EngineG. A Process Pool Recycling ManagerH. A Structured Data Classification EngineI. An Incremental Structured Data ScannerJ. An Adaptive Cloud Retrieval ControllerK. A Backpressure and Intake Control Manager
[0065] Details with regards to each module are provided below. Although modules are disclosed with specific functionality, it should be understood that functionality may be shared between modules, with some functions split between modules, while other functions duplicated by the modules. Furthermore, the name of each module should not be construed as limiting upon the functionality of the module. Moreover, each component disclosed within each module can be considered independently, without the context of the other components within the same module or different modules. Each component may contain functionality defined in other portions of this specification. Each component disclosed for one module may be mixed with the functionality ofPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664other modules. In the present disclosure, each component can be claimed on its own and / or interchangeably with other components of other modules. In some embodiments, the difference modules may be disposed or embodied in separate containers.
[0066] The following depicts an example of a method of a plurality of methods that may be performed by at least one of the aforementioned modules, or components thereof. Various hardware components may be used at the various stages of the operations disclosed with reference to each module. For example, although methods may be described to be performed by a single computing device, it should be understood that, in some embodiments, different operations may be performed by different networked elements in operative communication with the computing device. For example, at least one computing device 300 may be employed in the performance of some or all of the stages disclosed with regard to the methods. Similarly, an apparatus may be employed in the performance of some or all of the stages of the methods. As such, the apparatus may comprise at least those architectural components as found in computing device 300.
[0067] Furthermore, although the stages of the following example method are disclosed in a particular order, it should be understood that the order is disclosed for illustrative purposes only. Stages may be combined, separated, reordered, and various intermediary stages may exist. Accordingly, it should be understood that the various stages, in various embodiments, may be performed in orders that differ from the ones disclosed below. Moreover, various stages may be added or removed without altering or departing from the fundamental scope of the depicted methods and systems disclosed herein.
[0068] Consistent with embodiments of the present disclosure, a method may be performed by at least one of the modules disclosed herein. The method may be embodied as, for example, but not limited to, computer instructions which, when executed, perform the method. The method may comprise the following stages:• receiving, by a scanner container deployed within a computing environment, a document for classification;• extracting text from the document and storing the extracted text temporarily in volatile memory;• detecting, by a language detection engine, a primary language of the extracted text;• retrieving, based on the detected primary language, language-specific regex rules from a central service;PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664• applying, by a regex engine, the language-specific regex rules to the extracted text to identify sensitive data patterns;• calculating a first confidence score based on the identified sensitive data patterns;• optionally providing a boost to the first confidence score if particular combinations of attributes are identified by the regex engine;• determining whether the first confidence score exceeds a first configurable threshold;• responsive to the first confidence score not exceeding the first configurable threshold:o retrieving a language-specific machine learning model based on the detected primary language;o processing, by a machine learning classification engine, the extracted text using the language-specific machine learning model; and o calculating a second confidence score based on results from the machine learning classification engine;• responsive to the first confidence score not exceeding the first threshold and the second confidence score not exceeding a second threshold, perform sematic evaluation using a Large Language Model (LLM)-based Artificial Intelligence;• generating classification metadata including classification labels, confidence scores, and match details without persisting raw document content; and • releasing the volatile memory containing the extracted text after generating the classification metadata.
[0069] Although the aforementioned method has been described to be performed by an adaptive multi-stage data classification platform 100, it should be understood that computing device 300 may be used to perform the various stages of the method. Furthermore, in some embodiments, different operations may be performed by different networked elements in operative communication with computing device 300. For example, a plurality of computing devices may be employed in the performance of some or all of the stages in the aforementioned method. Moreover, a plurality of computing devices may be configured much like a single computing device 300. Similarly, an apparatus may be employed in the performance of some or all stages in the method. The apparatus may also be configured much like computing device 300.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664
[0070] Both the foregoing overview and the following detailed description provide examples and are explanatory only. Accordingly, the foregoing overview and the following detailed description should not be considered to be restrictive. Further, features or variations may be provided in addition to those set forth herein. For example, embodiments may be directed to various feature combinations and sub-combinations described in the detailed description. II. PLATFORM CONFIGURATION
[0071] FIG. 1 illustrates one possible operating environment through which a platform consistent with embodiments of the present disclosure may be provided. By way of non-limiting example, the adaptive multi-stage data classification platform 100 may be hosted on, for example, a cloud computing service. In some embodiments, the platform 100 may be hosted on a computing device 300. A user may access platform 100 through a software application and / or hardware device. The software application may be embodied as, for example, but not be limited to, a website, a web application, a desktop application, and a mobile application compatible with the computing device 300.
[0072] The adaptive multi-stage data classification system may be deployed in various computing environments to support diverse organizational needs for sensitive data identification and management The system may operate within enterprise data centers, cloud computing platforms, hybrid cloud environments, or containerized infrastructures, providing flexibility for organizations with different security and compliance requirements.
[0073] In on-premises deployments, the scanner containers may be installed on physical or virtual servers within an organization's data center. These servers may include sufficient computational resources to support the multi-stage classification process, including adequate CPU cores for parallel processing, memory for temporary document storage, and network bandwidth for communication with central services. The on-premises deployment may be suitable for organizations with strict data sovereignty requirements that prohibit data from leaving their controlled environments.
[0074] For cloud-based deployments, the system may operate within customer-controlled virtual private clouds [VPCs] across major cloud providers such as Amazon Web Services [AWS], Microsoft Azure, or Google Cloud Platform (GCP). The scanner containers may be optimized for cloud-native architectures, potentially leveraging specialized processor types such as AWS Graviton for improved performance and cost efficiency. Cloud deployments may benefit from elastic scaling capabilities, allowing the system to automatically adjust resources based on classification workload demands.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664
[0075] In containerized environments, the system may be deployed using a container orchestration platform (e.g., Kubernetes, Docker Swarm, etc.]. These platforms may provide capabilities for automated deployment, scaling, and management of the scanner containers. Containerization may enable consistent operation across different computing environments and facilitate the isolation of scanner instances for improved security and failure containment.
[0076] The network infrastructure supporting the system may include secure communication channels between scanner containers and central services, with encryption for data in transit. The system may be designed to operate efficiently in environments with varying network latencies and bandwidth constraints, minimizing data transfer requirements through its metadata-only approach.
[0077] Storage infrastructure may be minimal for the scanner containers themselves, as they operate primarily with volatile memory and do not persist document content. However, the central services may require storage capacity for maintaining language-specific regex rules, machine learning models, and configuration data. This storage may be implemented using secure, redundant systems to ensure availability and integrity of these critical resources.
[0078] Database systems may be utilized for storing classification metadata and operational logs, potentially including relational databases for structured data and document databases for semi-structured metadata. These databases may implement appropriate access controls and encryption to protect the classification results while making them available for authorized reporting and compliance activities.
[0079] Security infrastructure may include identity and access management systems to control authentication and authorization for scanner containers and central services. Network security controls such as firewalls, intrusion detection systems, and virtual private networks may be implemented to protect the system components from unauthorized access. The system may also integrate with existing security information and event management [SIEM] platforms for monitoring and alerting on security-relevant events.
[0080] Monitoring and management infrastructure may include performance monitoring systems to track resource utilization, health check mechanisms to verify proper operation of scanner containers, and logging systems to capture operational events for troubleshooting and audit purposes. These systems may provide visibility into the classification process while maintaining the privacy-preserving nature of the system.
[0081] For organizations operating in regulated industries, the system may be deployed within specialized environments that meet specific compliance requirements, such as HIPAA-compliant environments for healthcare organizations or FedRAMP-compliant environments forPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664government agencies. The system's privacy-preserving design may help organizations maintain compliance with data protection regulations such as GDPR, CCPA, or industry-specific requirements.
[0082] The adaptive multi-stage data classification system may also operate effectively in multi-region or global environments, with scanner containers deployed close to data sources to minimize latency and address data residency requirements. The central services may be replicated across regions to provide resilience and ensure availability of rule and model updates regardless of scanner location.
[0083] Integration infrastructure may enable the system to connect with existing data repositories, document management systems, and security tools. This may include APIs for programmatic interaction, event-driven architectures for real-time processing, and batch interfaces for scheduled operations. The system may be designed to complement and enhance existing data governance and security investments rather than replacing them.
[0084] Accordingly, embodiments of the present disclosure provide a software and hardware platform comprised of a distributed set of computing elements, including, but not limited to:A. A Language Detection Engine
[0085] The scanner container 100 may include a language detection engine 110. The language detection engine 110 may implement a multi-faceted approach to identifying the primary language of document content. This approach may utilize statistical analysis of character distributions, word patterns, and n-gram frequencies to accurately determine the document's language. The engine may support a comprehensive range of languages including but not limited to English, Spanish, French, German, Italian, Portuguese, Russian, Chinese (simplified and traditional], Japanese, Korean, Arabic, and Hindi. This multilingual capability may enable the system to process documents across diverse linguistic contexts with appropriate languagespecific classification methods.
[0086] For optimal performance with large documents, the language detection engine 110 may process text in chunks rather than analyzing entire files. By examining representative portions of the document, the engine may quickly determine the primary language while conserving computational resources. This chunking approach may be particularly valuable when processing large documents where full analysis would be unnecessarily resource-intensive. The chunk size may be configurable based on document characteristics and available system resources.
[0087] The language detection engine 110 may implement a hierarchical detection strategy that first identifies the language family (e.g., Romance, Germanic, East Asian) before applyingPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664more specific language detection models. This hierarchical approach may improve accuracy for languages with similar characteristics while reducing computational requirements, as the system may narrow down the potential languages before applying more specific detection methods. The language family detection may utilize distinctive character set usage, structural patterns, and common word frequencies that differentiate major language groups.
[0088] For documents containing multiple languages, the language detection engine 110 may identify the predominant language while noting the presence of secondary languages in the metadata. This capability may be particularly valuable for documents that contain sections in different languages, such as international contracts or research papers with abstracts in multiple languages. The engine may record the percentage distribution of detected languages to provide comprehensive language information in the classification metadata.
[0089] The language detection engine 110 may utilize character encoding information as a preliminary filter for language detection. For example, documents using specific character encodings such as Shift-JIS may likely contain Japanese text, while documents using GB2312 encoding may likely contain Chinese text. This encoding-based pre-filtering may improve detection accuracy and efficiency by narrowing the range of possible languages before detailed analysis.
[0090] Additionally or alternatively, the language detection engine 110 may implement dictionary-based verification. For example, when statistical methods yield low confidence scores, the engine may check for the presence of common words from candidate languages to refine the language determination. This hybrid approach may be particularly effective for short documents where statistical methods alone may provide insufficient data for confident language identification.
[0091] Additionally or alternatively, the language detection engine 110 may analyze document metadata when available to supplement text-based language detection. File properties, document headers, or embedded language tags may provide valuable hints about the document's language. This metadata analysis may be particularly useful for file formats that explicitly store language information, such as PDF documents with language metadata or word processing files with language settings.
[0092] For specialized technical or domain-specific documents, the language detection engine 110 may implement context-aware language detection that considers the presence of technical terminology. This capability may be particularly valuable for scientific papers, legal documents, or industry-specific content where specialized vocabulary may otherwise complicatePATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664language identification. The engine may maintain specialized dictionaries for different domains to improve detection accuracy in these contexts.
[0093] The language detection engine 110 may implement confidence scoring for language detection results, providing a quantitative measure of detection reliability. This confidence score may be included in the classification metadata and may influence subsequent processing decisions. For example, documents with low language detection confidence may trigger additional verification steps or more conservative classification approaches in later stages.
[0094] To maintain optimal performance across evolving language patterns, the language detection engine 110 may utilize updatable language models that can be refreshed through the auto-update mechanism 135. These updates may incorporate new language patterns, improved detection algorithms, or support for additional languages without requiring changes to the core scanner container 100 architecture. The updatable nature of these models may ensure that the system remains effective as language usage evolves over time.
[0095] The language detection engine 110 may implement specialized handling for documents with mixed scripts, such as technical documents that combine Latin characters with mathematical symbols or scientific notation. This capability may prevent script-based confusion in language detection and may ensure accurate language identification even in documents with complex notation systems. The engine may distinguish between actual language content and non-linguistic notation when making language determinations.
[0096] For documents with minimal textual content, the language detection engine 110 may implement fallback strategies that consider document origin, file metadata, and contextual information to make the best possible language determination. This approach may be particularly valuable for documents containing primarily images, charts, or other non-textual content with minimal text for language analysis. The fallback strategies may ensure that even documents with limited text receive appropriate language-specific processing in subsequent stages.B. A Regex Engine
[0097] The scanner container 100 may include a regex engine 115. The regex engine 115 within the scanner container 100 may implement a high-performance pattern matching system designed to efficiently identify sensitive data patterns in document text The regex engine 115 may utilize compiled regex patterns to optimize execution speed when processing large volumes of text This compilation approach may convert the human-readable regex patterns into optimized machine code representations that may execute significantly faster than interpreted patterns, which may be particularly valuable when scanning large document repositories.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664
[0098] The regex engine 115 may implement parallel processing capabilities that leverage multi-core architectures to process multiple pattern matches simultaneously. This parallel approach may divide the document text into segments that may be processed concurrently, potentially reducing processing time for large documents. The engine may dynamically adjust its parallelization strategy based on available system resources and document characteristics to maintain optimal performance across diverse computing environments.
[0099] For memory efficiency, the regex engine 115 may implement a chunked pattern matching approach that processes document text in segments rather than evaluating the entire document text as a single unit. The chunked approach may bound the per-worker memory footprint to a configurable chunk size, allowing concurrent evaluation of multiple chunks of the same document across available worker processes without requiring each worker to hold the full document text in its working set The chunk size may be configurable based on system resources and pattern complexity to balance per-worker memory usage with processing concurrency. To help ensure that pattern matches spanning a chunk boundary are not missed, adjacent chunks may share a configurable overlap region such that the trailing bytes of one chunk are repeated as the leading bytes of the next chunk. Any pattern whose match position falls within the overlap region may therefore be detected by at least one of the two adjacent chunks. During result combination, duplicate matches arising from the overlap region may be collapsed using a position-and-pattern key, wherein two matches are considered duplicates when they share the same start offset, end offset, and pattern identifier, ensuring that each match is reported exactly once in the final classification result regardless of how many chunks detected it.
[0100] The regex engine 115 may retrieve language-specific regex rules from a central service based on the language detected by the language detection engine 110. These languagespecific rules may be stored in a structured YAML format that organizes patterns into logical categories and subcategories. The structured format may facilitate efficient rule management, version control, and selective application of rules based on classification requirements.
[0101] Within the YAML structure, regex patterns may be organized hierarchically with categories for different types of sensitive information such as personally identifiable information (Pll), protected health information [PHI], andpaymentcard information (PCI). Each category may contain subcategories for specific data types, such as national identification numbers, addresses, or medical codes. This hierarchical organization may enable selective application of relevant pattern sets based on the specific classification requirements for each document.
[0102] The regex engine 115 may implement context-aware pattern matching that considers not only the pattern itself but also surrounding text when evaluating potential matches. ThisPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664contextual awareness may help reduce false positives by considering the textual environment in which patterns appear. For example, a pattern matching a potential credit card number may be evaluated differently if it appears in a context clearly labeled as a "payment method" versus appearing in an arbitrary numeric sequence.
[0103] To further enhance accuracy, the regex engine 115 may implement validation logic for specific pattern types. For example, when identifying potential credit card numbers, the engine may apply the Luhn algorithm to verify that the number follows the expected checksum pattern for valid credit cards. Similarly, for other identification numbers that follow specific formats with check digits or validation rules, the engine may apply appropriate validation logic to reduce false positives.
[0104] The regex engine 115 may calculate confidence scores for pattern matches based on multiple factors including pattern specificity, match quality, contextual indicators, and validation results. These confidence scores may reflect the likelihood that a particular pattern match represents actual sensitive information rather than a coincidental match. The confidence scoring may be calibrated based on historical performance data to optimize the balance between false positives and false negatives.
[0105] For documents containing multiple potential matches, the regex engine 115 may implement a combinatory analysis approach that evaluates the co-occurrence of different pattern types. This approach may recognize that certain combinations of pattern matches may provide stronger evidence of sensitive information than individual matches in isolation. For example, the co-occurrence of a name, address, and social security number in close proximity may significantly increase the confidence that the document contains personally identifiable information.
[0106] The regex engine 115 may implement a regex boost mechanism that applies configurable confidence boosts when specific combinations of attributes identified by regex patterns are found. For example, if both a pattern matching a social security number format and a pattern matching a name are found in close proximity, the confidence score may be increased by a configurable percentage. This boost mechanism may help resolve ambiguous cases where individual patterns alone may not provide sufficient confidence.
[0107] The regex engine 115 may apply weighted repetition boosting to the confidence score when the same classification pattern produces multiple confirmed matches within a document. The repetition boost may be applied using tiered increments, wherein a first increment value applies for occurrences within a first count range and a second, smaller increment value applies for occurrences within a second, higher count range. The grouping logic used to count repetitions may depend on the pattern class. For high-signal classification patterns, repetitions may bePATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664grouped by pattern name alone, such that any two confirmed matches of the same pattern name contribute to the repetition count regardless of the specific text matched. For other classification patterns, repetitions may be grouped by both pattern name and matched text, such that only confirmed matches of the same pattern name that also match the same text string contribute to the repetition count. This distinction may prevent low-signal patterns from receiving unwarranted repetition boosts when the same generic pattern matches many different values within a document. The confidence score may be capped at a pattern-class-dependent ceiling value after all repetition boosts have been applied.
[0108] The combination rule subsystem of the regex engine 115 may exhibit one of four operational behaviors depending on the composition of the combination rule set loaded for a given classification context. When the loaded rule set contains neither positive nor negative combination rules, the subsystem may operate in a no-combination behavior, wherein the confidence score is determined solely by individual pattern matches and repetition boosts. When the loaded rule set contains only positive combination rules, the subsystem may operate in a positive-only behavior, wherein the confidence score may be increased when specified sets of classification patterns co-occur but may not be decreased by combination rules. When the loaded rule set contains only negative combination rules, the subsystem may operate in a negative-only behavior, wherein the confidence score may be decreased when specified sets of classification patterns co-occur but may not be increased by combination rules. When the loaded rule set contains both positive and negative combination rules, the subsystem may operate in a bidirectional behavior, wherein the confidence score may be both increased and decreased based on pattern co-occurrence. The applicable combination rule set may be selected based on a tenant identifier, a classification policy, a detected document language, or other deployment-specific configuration parameters, allowing different tenants and classification contexts to exhibit different combination behaviors without requiring changes to the underlying engine or classification pattern definitions.
[0109] When a negative combination rule fires and reduces the confidence score, the regex engine 115 may record a reason string in an audit trail associated with the classification result. The reason string may identify the negative combination rule that fired, the set of classification patterns whose co-occurrence triggered the rule, and the magnitude of the confidence reduction applied. The audit trail entry may be included in the classification metadata generated by the metadata generation engine 130 without including any raw document content. The reason string may provide transparency into why a confidence score was reduced, which may be valuable forPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664verifying classification accuracy, identifying potential false negatives introduced by negative combination rules, and tuning the negative combination rule configuration over time.
[0110] To maintain performance across diverse document types, the regex engine 115 may implement adaptive pattern selection that prioritizes patterns based on document characteristics and initial content analysis. Rather than applying all patterns to every document, the engine may select and prioritize patterns most likely to be relevant based on document type, content keywords, or other indicators. This adaptive approach may reduce processing time by focusing computational resources on the most promising pattern matches.
[0111] The regex engine 115 may implement sophisticated pattern matching for complex data types that may not follow simple regular expressions. For example, when identifying addresses, the engine may use a combination of pattern matching, dictionary lookups, and structural analysis to identify address components across multiple lines or in various formats. This multi-faceted approach may improve detection accuracy for complex data types that may be formatted in diverse ways.
[0112] For international data formats, the regex engine 115 may apply locale-specific pattern variations based on the detected document language. For example, date formats, phone numbers, and postal codes may follow different patterns in different countries. The engine may select and apply the appropriate locale-specific patterns based on the language detection results, improving accuracy for documents from different regions.
[0113] The regex engine 115 may implement pattern matching for obfuscated or partially redacted sensitive information. This capability may identify sensitive data that has been partially masked or obfuscated using common techniques such as replacing digits with asterisks or X characters. By recognizing these obfuscation patterns, the engine may identify sensitive information even when it has been partially concealed, which may be valuable for detecting improper redaction or data leakage.
[0114] To support troubleshooting and verification, the regex engine 115 may record detailed match metadata including pattern identifiers, match positions, and confidence scores. This metadata may be included in the classification results without including the actual matched content, providing transparency into the classification decision while maintaining data privacy. The match metadata may be valuable for verifying classification accuracy and identifying potential improvements to pattern definitions.
[0115] The regex engine 115 may implement version control for regex patterns, tracking which pattern version was used for each classification decision. This versioning may be recorded in the classification metadata, allowing for retrospective analysis of classification decisions basedPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664on the specific pattern versions used. When updated patterns are retrieved from the central service, the engine may maintain both versions temporarily to ensure smooth transitions between pattern versions.
[0116] For documents with mixed content types, the regex engine 115 may implement content-type-specific pattern application. For example, when processing a document containing both structured data tables and unstructured narrative text, the engine may apply different pattern matching strategies to each content type. This specialized handling may improve detection accuracy across diverse content structures within a single document
[0117] The regex engine 115 may implement pattern matching for embedded code or structured data within documents. This capability may identify sensitive information embedded within programming code, configuration files, or structured data formats such as JSON or XML. By recognizing these specialized formats, the engine may identify sensitive information that might be overlooked by text-only pattern matching approaches.
[0118] To optimize performance for large-scale scanning operations, the regex engine 115 may implement pattern caching that retains compiled patterns in memory between document processing tasks. This caching may eliminate the overhead of recompiling patterns for each document, potentially improving processing speed for batch operations. The cache may be managed to balance memory usage with performance benefits, potentially evicting less frequently used patterns when memory constraints are detected.
[0119] The regex engine 115 may implement adaptive timeout mechanisms that prevent excessive processing time for pathological pattern matches. Some regex patterns may exhibit exponential backtracking behavior on certain inputs, potentially causing processing delays. The adaptive timeout may monitor pattern matching performance and interrupt processing if a pattern match exceeds expected time limits, ensuring consistent performance even with challenging document content
[0120] As one non-limiting example, for healthcare applications, the regex engine 115 may implement patterns for medical terminology, healthcare codes, and patient identifiers. These patterns may be designed to identify protected health information (PHI) including (but not limited to] medical record numbers, health plan beneficiary numbers, and treatment codes. The healthcare-specific patterns may be particularly valuable for organizations processing clinical documents and medical records.
[0121] As another example, in financial services implementations, the regex engine 115 may apply specialized patterns for account numbers, routing numbers, and financial identifiers. These patterns may be designed to identify sensitive financial information such as bank account details,PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664investment account numbers, transaction identifiers, and / or the like. The financial-specific patterns may include validation logic for common financial identifier formats to reduce false positives when scanning financial documents.
[0122] As yet another example, for government and defense applications, the regex engine 115 may implement patterns for security classifications, controlled unclassified information (CUI) markings, and / or government-specific sensitive information types. These patterns may identify information such as classification markings, handling instructions, and sensitive government identifiers within documents. The government-specific patterns may be particularly valuable for organizations processing classified or controlled information.
[0123] The regex engine 115 may implement a feedback mechanism that captures pattern match performance metrics for potential use in pattern improvement. This feedback may be anonymized and aggregated to protect document privacy while still providing valuable information for refining regex patterns. The feedback mechanism may help the system improve over time, adapting to new patterns of sensitive information and reducing false positives or negatives.
[0124] The regex engine 115 may track a compile-status record for each classification pattern during the progressive compilation process. Each pattern may be assigned one of a plurality of compile-status values, such as a Unicode-aware compiled status, an ASCII-fallback compiled status, a failed status, or a skipped status. The compile-status record may be stored alongside the compiled prefilter database and may be used to route patterns to the appropriate confirmation stage. For example, patterns with a Unicode-aware compiled status may be routed to the lineartime confirmation engine, while patterns with an ASCII-fallback compiled status may be routed to the advanced fallback engine. Patterns with a failed or skipped status may be excluded from prefilter scanning and may be applied only during the confirmation stage using the advanced fallback engine. The compile-status records may be logged and may be made available to rule authors to identify patterns that may benefit from manually specified prefilter override patterns. The compile-status record may be assigned during the widening transformation process described above, such that each classification pattern receives a status reflecting the outcome of its progressive compilation into the hardware-accelerated prefilter database.
[0125] For each classification pattern, the regex engine 115 may compile a corresponding prefilter pattern through a sequential process. First, the engine 115 may check whether a manually specified prefilter override pattern has been provided for the classification pattern; if so, the override pattern may be used directly as the prefilter pattern without further transformation. If no override is present, the engine 115 may apply a widening transformation byPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664stripping zero-width assertions, lookahead and lookbehind constructs, backreferences, and other constructs incompatible with the hardware-accelerated prefilter engine, producing a widened pattern. The engine 115 may then attempt Unicode-aware compilation of the widened pattern. If Unicode-aware compilation succeeds, the resulting compiled pattern may be assigned a Unicode-aware compiled status. If Unicode-aware compilation fails, the engine 115 may simplify the widened pattern to an ASCII-equivalent pattern and attempt compilation of the simplified pattern. If ASCII-equivalent compilation succeeds, the resulting compiled pattern may be assigned an ASCII-fallback compiled status. If both compilation attempts fail, the pattern may be assigned a failed status and excluded from the hardware-accelerated prefilter database.
[0126] When the hardware-accelerated prefilter database identifies a candidate hit at a positional offset within the document text, the regex engine 115 may expand that offset into a suspicious region by adding a configurable context window extending a fixed number of characters before and after the hit position. In some embodiments, the context window may extend approximately 500 characters in each direction from the hit offset. The resulting suspicious region may be represented as a start offset and an end offset within the document text By expanding each hit into a context window rather than recording only the exact hit position, the suspicious region may encompass the full extent of any pattern that the prefilter hit is a component of, accounting for variable-length patterns and patterns that extend beyond the literal string matched by the simplified prefilter pattern.
[0127] The widening transformation applied during prefilter compilation may be designed to preserve a no-false-negative guarantee with respect to region finding. Because each prefilter pattern matches a superset of the text regions matched by the corresponding original classification pattern, any text that would be matched by the original pattern may also produce a hit in the hardware-accelerated prefilter database. As a result, any document text that contains a true match for an original classification pattern may produce at least one suspicious region encompassing that match. The confirmation stage may then apply the original unmodified classification pattern within that suspicious region to determine whether a true match is present. This design ensures that the prefilter stage may not cause any true positive matches to be missed, while still substantially reducing the volume of text that must be processed by the more computationally intensive confirmation stage.
[0128] When the hardware-accelerated prefilter database produces no hits for any classification pattern across the full document text, the regex engine 115 may terminate classification of the document text early, bypassing the confirmation stage entirely. Because the no-false-negative guarantee ensures that any true match would have produced at least onePATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664prefilter hit, the absence of prefilter hits may be treated as conclusive evidence that no classification pattern matches the document text, allowing the system to proceed directly to metadata generation without performing any confirmation-stage processing.
[0129] The region merge policy applied to overlapping suspicious regions may distinguish between same-pattern overlaps and cross-pattern overlaps. Suspicious regions associated with the same classification pattern may be merged unconditionally whenever they overlap, regardless of the degree of overlap. Suspicious regions associated with different classification patterns may be merged only when the overlap between the two regions exceeds a configurable threshold proportion of the mean size of the two regions. In some embodiments, this threshold proportion may be approximately 90 percent of the mean region size. This distinction may prevent unrelated pattern regions from being merged into a single large region that would require unnecessary confirmation work, while still consolidating closely related regions that are likely to correspond to the same underlying sensitive data instance. The overlap threshold may be configurable per deployment or per tenant policy.
[0130] The regex engine 115 may implement a three-layer hybrid architecture for pattern matching. In a first layer, the hardware-accelerated prefilter database may scan the full document text using simplified prefilter patterns to identify suspicious regions, as described above. In a second layer, a linear-time regex engine may process the suspicious regions using original classification patterns that are compatible with linear-time evaluation, such as patterns that do not require lookaround assertions or backreferences. The linear-time engine may provide guaranteed linear-time performance with respect to input length, avoiding the pathological backtracking behavior that may occur with certain inputs when using backtracking-based engines. In a third layer, classification patterns that require lookaround assertions, backreferences, or other constructs incompatible with linear-time evaluation may be routed to a backtracking-compatible regex engine. The backtracking engine may execute within a process pool to provide concurrency and to isolate the backtracking engine from the main execution environment By routing patterns to the appropriate engine based on their feature requirements, the three-layer architecture may provide both performance and correctness across the full range of classification pattern types.
[0131] The hardware-accelerated prefilter database may be implemented using a multipattern regular expression matching library that exploits processor-level vector instructions to scan multiple bytes of input simultaneously. In some embodiments, the prefilter database may be implemented using a vectorized multi-pattern matching engine, such as (but not limited to] Vectorscan, a high-performance regular expression matching library designed to exploit SinglePATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664Instruction Multiple Data [SIMD] instruction sets such as SSE2, SSE4.2, AVX2, and AVX-512 available on x86-compatible processors. In other embodiments, the prefilter database may be implemented using a vectorized finite automaton library, a field-programmable gate array (FPGA]-based pattern matching accelerator, or any other library or hardware component that exploits processor vector units or dedicated hardware logic to perform simultaneous multipattern matching across a byte stream at throughput rates substantially exceeding those achievable by sequential single-pattern matching. The hardware acceleration may arise from the ability of such libraries and hardware components to evaluate multiple prefilter patterns against multiple input bytes in a single processor clock cycle, using SIMD registers or dedicated logic arrays to parallelize what would otherwise be sequential per-byte, per-pattern comparisons. The compiled prefilter database may comprise a binary representation of the set of prefilter patterns in a form consumable by the underlying acceleration library or hardware, such as a Hyperscan database object, a compiled DFA / NFA state machine optimized for vector execution, or an equivalent hardware-loadable bitstream. The scratch state objects maintained by the preallocated pool may correspond to the per-thread mutable state required by the acceleration library during scanning, such as a Hyperscan scratch space, which must be allocated per concurrent scan to allow multiple threads to use the same compiled database object simultaneously without contention.
[0132] The use of a hardware-accelerated prefilter database may produce a concrete improvement in the throughput of the classification pipeline as a computer system. By exploiting SIMD vector instructions or dedicated hardware logic, the prefilter database may evaluate all prefilter patterns against the full document text in a single linear pass at memory-bandwidth-limited speeds, rather than requiring a separate sequential pass per pattern. This single-pass multi-pattern evaluation may reduce the time complexity of the prefilter stage from 0(NxP], where N is the document length and P is the number of patterns, to approximately 0(N] with respect to the number of patterns, because the vector hardware evaluates all patterns simultaneously per byte group. The resulting reduction in CPU cycles consumed during the prefilter stage may allow the scanner container to process substantially more documents per unit time on the same hardware compared to a sequential per-pattern scanning approach, and may reduce the latency of the prefilter stage to a level where it does not constitute a bottleneck relative to the confirmation and machine learning stages that follow it
[0133] The three-layer hybrid regex architecture may provide a concrete improvement over conventional regex processing systems. Conventional backtracking regex engines may exhibit super-linear or exponential time complexity on certain input strings due to catastrophicPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664backtracking, a well-known technical problem in computer science that may cause denial-of-service conditions in text processing systems. By routing classification patterns to a linear-time engine when those patterns are compatible with linear-time evaluation, and reserving the backtracking engine only for patterns that require lookaround or backreference constructs, the regex engine 115 may eliminate catastrophic backtracking as a failure mode for the majority of classification patterns. The hardware-accelerated prefilter database may further constrain the input presented to both the linear-time and backtracking engines to suspicious regions rather than full document text, reducing the worst-case input length for both engines. These architectural choices may produce measurable improvements in the throughput, latency, and reliability of the classification pipeline as a computer system, independent of any abstract classification result they produce.
[0134] The regex engine 115 may maintain a pre-allocated pool of scratch state objects for use with the hardware-accelerated prefilter database. Each concurrent scan operation may acquire a scratch state object from the pool prior to initiating a prefilter scan and may return the scratch state object to the pool upon completion of the scan. Pre-allocating scratch state objects may avoid repeated allocation and deallocation overhead during high-concurrency scanning operations and may reduce memory fragmentation in long-running scanner container deployments.C. A Machine Learning Classification Engine
[0135] The scanner container 100 may include a machine learning [ML] classification engine 120. The machine learning classification engine 120 may implement a sophisticated approach to document classification using language-specific machine learning models. These models may be trained on diverse datasets to recognize sensitive information across various contexts and formats. The engine may select the appropriate model based on the language detected by the language detection engine 110, ensuring optimal classification performance for documents in different languages.
[0136] The machine learning classification engine 120 may utilize a multi-model architecture that maintains separate models for different languages and classification tasks. This approach may allow for specialized models that understand the unique patterns and contexts of sensitive information in each supported language. For example, the engine may load a model specifically trained to identify personally identifiable information [PII] in German documents when processing German text, while using a different model optimized for Japanese when processing Japanese documents.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664
[0137] The machine learning classification engine 120 may utilize feature extraction techniques optimized for text classification. These techniques may include term frequencyinverse document frequency (TF-IDF), word embeddings, and contextual embeddings to capture both the presence of specific terms and their semantic relationships. The feature extraction process may be tailored to the characteristics of each language, accounting for differences in word formation, sentence structure, and contextual indicators of sensitive information.
[0138] To enhance classification accuracy, the machine learning classification engine 120 may implement ensemble methods that combine predictions from multiple models or model architectures. This ensemble approach may provide more robust classification results, particularly for documents with unusual formatting or content patterns. The engine may weigh the contributions of different models based on their historical performance for specific document types or content characteristics.
[0139] The machine learning classification engine 120 may calculate confidence scores for its classifications based on multiple factors including model prediction probabilities, feature importance values, and historical performance metrics. These confidence scores may reflect the likelihood that a particular classification is correct, providing a quantitative basis for determining whether additional processing stages are required. The confidence scoring may be calibrated to optimize the balance between false positives and false negatives based on configurable risk tolerance parameters.
[0140] For documents with mixed content types, the machine learning classification engine 120 may implement section-specific classification that analyzes different parts of the document separately. This approach may be particularly valuable for documents containing both structured data (such as tables or forms] and unstructured narrative text, as different classification strategies may be optimal for each content type. The section-specific results may be combined using weighted aggregation to produce an overall document classification.
[0141] The machine learning classification engine 120 may implement model version control to ensure that classification decisions are traceable to specific model versions. This versioning may be recorded in the classification metadata, allowing for retrospective analysis of classification decisions based on the specific model used. When updated models are retrieved from the central service, the engine may maintain both versions temporarily to ensure smooth transitions between model versions.
[0142] To support continuous improvement, the machine learning classification engine 120 may implement a feedback mechanism that captures classification performance metrics for potential use in model refinement. This feedback may be anonymized and aggregated to protectPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664document privacy while still providing valuable information for improving classification models. The feedback mechanism may help the system adapt to new patterns of sensitive information and reduce false positives or negatives over time.
[0143] The machine learning classification engine 120 may implement adaptive batch processing to optimize throughput based on document characteristics and available computational resources. For small documents, the engine may process multiple documents in a single batch to amortize the overhead of model initialization. For larger documents, the engine may process them individually to maintain responsive performance. This adaptive approach may maximize classification throughput while ensuring efficient resource utilization.
[0144] For enhanced explainability, the machine learning classification engine 120 may implement feature importance analysis that identifies the specific text elements contributing most significantly to classification decisions. This analysis may provide valuable context for understanding why a particular classification was assigned, potentially helping users verify the accuracy of classifications or identify potential false positives. The feature importance information may be included in the classification metadata without extracting the actual document content.
[0145] The machine learning classification engine 120 may implement specialized handling for industry-specific terminology and contexts. For example, in healthcare applications, the engine may utilize models trained to recognize medical terminology, healthcare codes, and patient identifiers within clinical documents. In financial services, the engine may employ models optimized for detecting account numbers, transaction details, and financial identifiers. This industry-specific specialization may improve classification accuracy for documents within particular domains.
[0146] To address the challenges of imbalanced data, where certain types of sensitive information may be rare in training datasets, the machine learning classification engine 120 may implement techniques such as synthetic data augmentation, specialized loss functions, or ensemble methods specifically designed for imbalanced classification tasks. These approaches may help ensure reliable detection of rare but important sensitive information types.
[0147] The machine learning classification engine 120 may implement transfer learning techniques that leverage pre-trained language models as a foundation for sensitive data classification. This approach may allow the engine to benefit from the linguistic knowledge captured in large-scale language models while fine-tuning for the specific task of sensitive data detection. The transfer learning approach may be particularly valuable for languages or document types with limited training data for sensitive information detection.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664
[0148] For documents with complex layouts, the machine learning classification engine 120 may incorporate layout awareness into its classification process. This capability may allow the engine to consider the spatial relationships between text elements when making classification decisions, potentially improving accuracy for documents where the position of text provides important context for sensitivity determination. The layout awareness may be particularly valuable for forms, structured reports, or documents with multiple columns or sections.
[0149] The machine learning classification engine 120 may implement specialized handling for documents containing code or structured data formats. This capability may allow the engine to identify sensitive information embedded within programming code, configuration files, or structured data formats such as JSON or XML. The specialized handling may include feature extraction techniques designed specifically for these formats, ensuring effective classification across diverse content types.
[0150] To maintain optimal performance across evolving document characteristics, the machine learning classification engine 120 may implement online learning capabilities that allow models to adapt to new patterns without requiring complete retraining. This adaptive approach may be particularly valuable in environments where document characteristics or sensitive information patterns may change over time. The online learning may be implemented with appropriate privacy safeguards to ensure that no sensitive document content is retained during the adaptation process.
[0151] The machine learning classification engine 120 may implement confidence calibration techniques to ensure that confidence scores accurately reflect the true likelihood of correct classification. These techniques may adjust raw model outputs to produce well-calibrated probability estimates, potentially improving the reliability of confidence-based decisions in the multi-stage classification pipeline. The calibration may be periodically updated based on observed classification performance to maintain accuracy over time.
[0152] For organizations with specific compliance requirements, the machine learning classification engine 120 may support customized classification taxonomies that align with particular regulatory frameworks or organizational policies. This customization may allow the system to produce classification results that directly map to compliance requirements, potentially streamlining reporting and remediation processes. The custom taxonomies may be implemented through specialized model training or mapping layers that translate general classifications into organization-specific categories.
[0153] The machine learning classification engine 120 may implement asymmetric early termination logic when processing document pages in parallel. Early termination for a sensitivePATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664classification may occur upon detecting any single page whose machine learning confidence score exceeds a configurable sensitive-detection threshold, reflecting a protection-biased design in which a single page of high-confidence sensitive content may be sufficient to classify the document as sensitive. Early termination for a non-sensitive classification may require a stronger consensus condition: a configurable number of consecutive pages each having a machine learning confidence score below a configurable non-sensitive consensus threshold, subject to a minimum number of pages having been evaluated. The minimum page requirement may serve as a due-diligence floor, ensuring that the non-sensitive early termination path does not fire prematurely on very short documents or on documents where the first few pages happen to be non-sensitive while later pages contain sensitive content. In some embodiments, the minimum number of pages evaluated before non-sensitive early termination may be permitted may be approximately five pages. Upon early termination by either path, the machine learning classification engine 120 may cancel any pending page inference tasks that have not yet completed, releasing computational resources for other classification work. The configurable threshold governing conditional activation of the machine learning classification stage may be set independently of the confidence thresholds used at the regex engine stage, and may be configured per tenant, per classification policy, or per document type.
[0154] The machine learning classification engine 120 may submit page inference tasks to a machine learning inference engine in parallel, allowing multiple pages to be evaluated concurrently. Each page inference task may be associated with a cancellation token or equivalent mechanism that allows the task to be interrupted if a decisive early termination condition is detected before the task completes. Upon detecting a sensitive early termination condition or a non-sensitive consensus early termination condition, the machine learning classification engine 120 may signal cancellation to all pending page inference tasks. Tasks that have already completed may contribute their results to the final classification determination. Tasks that have not yet started may be discarded without execution. Tasks that are in progress at the time of cancellation may be interrupted at the next available cancellation point This task cancellation mechanism may reduce unnecessary inference computation and may free resources for other concurrent classification operations.D. An LLM Inference Engine
[0155] An LLM inference engine 125 may implement a sophisticated approach to document classification using natural language understanding capabilities. This engine 125 may be conditionally activated when both the regex engine 115 and machine learning classification engine 120 produce confidence scores below predetermined, configurable thresholds. In somePATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664embodiments, the LLM inference engine may be part of the scanner container 100, as shown in FIG. 1. Alternatively, the LLM inference engine 125 may be embodied in a different container (e.g., a dedicated LLM sematic analysis container]. This conditional activation strategy may optimize resource utilization by reserving the more computationally intensive LLM processing for documents that cannot be classified with high confidence through lighter- weight methods.
[0156] The LLM inference engine 125 may utilize quantized models optimized for classification tasks. Rather than employing general-purpose LLM configurations, the engine may implement models specifically designed for sensitive data detection, with reduced precision and optimized memory footprint This approach may enable effective classification while minimizing computational requirements, which may be particularly valuable for deployment in environments with limited resources.
[0157] For prompt engineering, the LLM inference engine 125 may implement a dynamic prompt construction system. This system may generate effective prompts for sensitive data detection based on document characteristics, detected language, results from previous classification stages, and / or the like. The prompts may be crafted to elicit specific responses about the presence and nature of sensitive information, with instructions designed to maximize classification accuracy while minimizing token usage.
[0158] The LLM inference engine 125 may implement a context window management strategy for processing documents that exceed the model's maximum context length. This approach may divide the document into overlapping segments that fit within the context window, process each segment independently, and then aggregate the results. The segmentation strategy may ensure comprehensive document analysis while respecting the technical limitations of the underlying LLM architecture.
[0159] For enhanced accuracy, the LLM inference engine 125 may implement a multiprompt strategy that approaches the classification task from different angles. Rather than relying on a single prompt formulation, this approach may apply multiple complementary prompts and combine their results. The multi-prompt strategy may provide more robust classification results, particularly for documents with ambiguous content or complex sensitive information patterns.
[0160] The LLM inference engine 125 may calculate confidence scores for its classifications based on multiple factors including response consistency, explanation quality, and certainty indicators in the model output These confidence scores may be normalized to be comparable with scores from the regex engine 115 and machine learning classification engine 120, providing a consistent basis for final classification decisions across all methods.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664
[0161] For traceability and explainability, the LLM inference engine 125 may extract rationales for its classification decisions from the model responses. These rationales may explain why particular content was classified as sensitive or non-sensitive, potentially referencing specific text patterns, contextual indicators, or semantic relationships. The rationales may be included in the classification metadata without extracting the actual document content, providing valuable context for understanding classification decisions.
[0162] The LLM inference engine 125 may implement a model selection mechanism that chooses from multiple available LLMs based on document characteristics and classification requirements. For documents with specialized terminology or domain-specific content, the engine may select models that have been fine-tuned for those domains. This adaptive selection may improve classification accuracy while maintaining efficient resource utilization through targeted model application.
[0163] For enhanced privacy protection, the LLM inference engine 125 may implement prompt sanitization techniques that minimize the risk of prompt injection attacks or unintended information disclosure. These techniques may include prompt construction, input validation, and output filtering to ensure that the LLM processing remains secure and privacy-preserving. The sanitization may be particularly important when processing documents that may contain malicious content designed to manipulate LLM behavior.
[0164] For documents requiring specialized knowledge, the LLM inference engine 125 may implement domain-specific prompt templates. These templates may incorporate domain terminology, regulatory requirements, or industry-specific patterns of sensitive information. The domain-specific approach may be particularly valuable for accurately classifying documents in fields such as healthcare, finance, or legal services, where sensitive information may take specialized forms.
[0165] For multilingual documents, the LLM inference engine 125 may select languagespecific models or multilingual models based on the language detected by the language detection engine 110. This language-aware approach may ensure that documents in different languages receive appropriate LLM processing, potentially improving classification accuracy for nonEnglish content. The language selection may be particularly valuable for organizations operating in multiple linguistic regions.
[0166] The LLM inference engine 125 may implement a token budget management system to optimize processing efficiency. This system may allocate tokens based on document characteristics, prioritizing sections most likely to contain sensitive information. The budgetPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664management may ensure efficient use of computational resources while maintaining classification accuracy, potentially reducing processing costs for large document volumes.
[0167] For enhanced security, the LLM inference engine 125 may implement a secure execution environment that isolates LLM processing from other system components. This isolation may prevent potential data leakage or unauthorized access to document content during LLM processing. The secure environment may be particularly important when processing highly sensitive documents in regulated industries or government applications.
[0168] The LLM inference engine 125 may implement a feedback mechanism that captures classification performance metrics for potential model improvement. This feedback may be anonymized and aggregated to protect document privacy while still providing valuable information for refining LLM prompts and parameters. The feedback mechanism may help the system improve over time, adapting to new patterns of sensitive information and reducing false positives or negatives.
[0169] For organizations with specific compliance requirements, the LLM inference engine 125 may implement specialized prompts aligned with particular regulatory frameworks. These prompts may incorporate specific definitions of protected information from regulations such as GDPR, H1PAA, or PC1-DSS, ensuring that classification decisions align with relevant compliance standards. The regulatory alignment may simplify compliance reporting and remediation efforts based on classification results.
[0170] The LLM inference engine 125 may implement a version control system for prompts and models, ensuring that classification decisions are traceable to specific versions. This versioning may be recorded in the classification metadata, allowing for retrospective analysis of classification decisions based on the specific prompts and models used. When updated prompts or models are implemented, the engine may maintain version records to ensure consistent traceability.
[0171] For enhanced efficiency in batch processing, the LLM inference engine 125 may implement batching strategies that process multiple document segments in a single inference pass. This approach may leverage the parallel processing capabilities of modern LLM architectures, potentially improving throughput for large document volumes. The batching may be dynamically adjusted based on available computational resources and document characteristics.
[0172] The LLM inference engine 125 may implement a confidence calibration mechanism that adjusts raw confidence scores to reflect empirical accuracy. This calibration may be based on historical performance data, ensuring that confidence scores accurately reflect the true likelihoodPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664of correct classification. The calibrated confidence scores may provide more reliable inputs for decision-making in the multi-stage classification pipeline.E. A Metadata Generation Engine
[0173] The scanner container 100 may include a metadata generation engine 130. The metadata generation engine 130 may create structured classification metadata without persisting or transmitting raw document content This engine may be designed to extract only the necessary classification information, while maintaining strict privacy controls throughout the metadata generation process. The metadata generation engine 130 may create standardized, structured output formats such as JSON that facilitate integration with downstream systems while ensuring consistent field naming and value formatting across all classification results.
[0174] The metadata generation engine 130 may generate file identifiers including file path, size, and timestamps as part of the classification metadata. These identifiers may provide reference information for locating the classified document without including any of the document's content. The file identifiers may be particularly valuable for compliance reporting and remediation workflows that require precise document identification while maintaining content privacy.
[0175] For comprehensive traceability, the metadata generation engine 130 may include detected language information in the classification metadata. This information may specify the primary language identified by the language detection engine 110 and may include confidence scores for the language determination. The language information may be valuable for understanding the context of classification decisions, particularly in multilingual environments where document language may influence classification accuracy.
[0176] The metadata generation engine 130 may implement hierarchical classification labeling that organizes classification results into categories and subcategories. As non-limiting examples, a document may receive a primary classification of "PH" with subcategories specifying particular types of personally identifiable information such as "US Social Security Number" or "Credit Card Information". This hierarchical approach may enable flexible querying and reporting at various levels of specificity, supporting diverse use cases from general compliance reporting to targeted remediation efforts.
[0177] For each classification label, the metadata generation engine 130 may include normalized confidence scores that represent the likelihood of correct classification. These confidence scores may be standardized across different classification methods, ensuring that scores from regex matching, machine learning classification, and LLM inference may be directly compared. The normalization process may convert raw confidence values from each method intoPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664a consistent scale. In example scales, the confidence score may be indicated as a number ranging from 0 to 1 or as a percentage.
[0178] The metadata generation engine 130 may include detailed processing trace information in the metadata to provide a comprehensive record of the classification process. This trace information may include the specific engines used for classification, the versions of those engines, the confidence scores at each stage, and timestamps for each processing step. The trace information may be valuable for auditing, troubleshooting, and verifying classification decisions, particularly in regulated environments where detailed process documentation may be required.
[0179] For regex matches, the metadata generation engine 130 may include match details such as the pattern type, match location, and surrounding context without including the actual matched content For example, the metadata may indicate that a US Social Security Number pattern was matched at character positions 150-159 in a document, without including the actual Social Security Number in the metadata. This approach may provide valuable context for understanding classification decisions while maintaining strict privacy controls.
[0180] The metadata generation engine 130 may implement a privacy-preserving approach to context extraction that captures the structural or semantic environment of sensitive information without including the sensitive information itself. For example, the metadata may indicate that a credit card number was found in a field labeled "Payment Information" without including the actual credit card number. This contextual information may help verify classification accuracy and reduce false positives without compromising data privacy.
[0181] For machine learning classifications, the metadata generation engine 130 may include feature importance information that identifies the key factors contributing to the classification decision. This information may provide insight into why a particular classification was assigned without extracting specific content from the document. The feature importance data may be valuable for understanding classification decisions and identifying potential improvements to classification models.
[0182] The metadata generation engine 130 may implement a risk scoring system that combines classification results with configurable risk weights to generate an overall risk assessment for each document This risk score may consider factors such as the types of sensitive information detected, the confidence of those detections, and the quantity of sensitive information found. The risk scoring may provide a simplified way to prioritize documents for review or remediation based on their potential sensitivity.
[0183] For documents processed through the LLM inference engine 125, the metadata generation engine 130 may include explanation summaries that capture the reasoning behindPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664LLM classification decisions without extracting specific document content. These explanations may be generated through prompt engineering that instructs the LLM to provide rationales without quoting document text The explanation summaries may enhance the interpretability of classification decisions, particularly for complex or ambiguous cases.
[0184] The metadata generation engine 130 may implement a redaction mechanism for any incidental content that might be captured during metadata generation. This mechanism may automatically identify and remove any potential sensitive information from the metadata before it is transmitted or stored. The redaction process may serve as a final safeguard to ensure that no sensitive content is inadvertently included in the classification metadata.
[0185] For integration with downstream systems, the metadata generation engine 130 may include configurable output formatting that adapts the metadata structure to meet the requirements of different consuming systems. This flexibility may enable seamless integration with various data governance, compliance reporting, and security tools without requiring those systems to adapt to a fixed metadata format The configurable formatting may be particularly valuable in enterprise environments with diverse toolsets and integration requirements.
[0186] The metadata generation engine 130 may implement version control for metadata schemas, ensuring that changes to the metadata structure are tracked and backward compatibility is maintained. This versioning may be included in the metadata itself, allowing consuming systems to interpret the metadata correctly even as the schema evolves over time. The version control may be particularly important for long-term data governance initiatives where classification metadata may need to be interpreted consistently over extended periods.
[0187] For compliance purposes, the metadata generation engine 130 may include regulatory mapping that associates classification labels with specific regulatory frameworks. For example, a classification of "Credit Card Number" might be mapped to PCI DSS compliance requirements, while a classification of "Patient Identifier" might be mapped to HIPAA regulations. This regulatory mapping may simplify compliance reporting and risk assessment by explicitly connecting classification results to relevant regulatory frameworks.
[0188] The metadata generation engine 130 may implement metadata compression techniques to reduce the storage and transmission requirements for classification results. These techniques may include field name abbreviation, enumeration of common values, and other space-saving approaches that maintain the semantic content of the metadata while reducing its size. The compression may be particularly valuable when processing large document volumes that generate substantial amounts of classification metadata.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664
[0189] For enhanced security, the metadata generation engine 130 may implement digital signing of metadata to ensure its integrity and authenticity. This signing process may create a cryptographic signature based on the metadata content, allowing recipients to verify that the metadata has not been tampered with after generation. The digital signing may be particularly important in high-security environments or when classification results may be used for compliance attestation or legal purposes.
[0190] The metadata generation engine 130 may include document structure information in the metadata to provide context for classification results without extracting content. This structural information may indicate whether sensitive information was found in document headers, footers, form fields, or body text, providing valuable context for understanding the significance of the classification. The structural context may help differentiate between sensitive information in different document regions, which may have different risk implications.
[0191] For documents with multiple classifications, the metadata generation engine 130 may implement relationship mapping that identifies potential connections between different types of sensitive information found in the same document. For example, the metadata might indicate that a name, address, and social security number were found in close proximity, suggesting they may be related to the same individual. This relationship mapping may provide deeper insights into the nature of sensitive information within documents without extracting the actual content.
[0192] The metadata generation engine 130 may implement differential privacy techniques for aggregate reporting on classification results. While maintaining the privacy-preserving approach of not persisting raw document content, this capability may add controlled noise to aggregate statistics to provide formal differential privacy guarantees. This approach may be particularly valuable for organizations that need to share aggregate classification statistics across organizational boundaries while maintaining strict privacy protections.
[0193] For operational efficiency, the metadata generation engine 130 may implement batched metadata generation that processes multiple classification results in a single operation. This batching may reduce overhead when processing large volumes of documents, potentially improving overall system throughput. The batched approach may be particularly valuable in high-volume scanning environments where processing efficiency may be a critical consideration.
[0194] The metadata generation engine 130 may include scan configuration information in the metadata to document the specific settings and parameters used during the classification process. This configuration information may include details such as the confidence thresholds applied, the specific rule sets used, and any custom classification parameters. The configurationPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664context may be valuable for reproducing classification results or understanding variations in classification outcomes across different scan configurations.F. An Auto-Update Engine
[0195] The scanner container 100 may include auto-update engine 135. The auto-update engine 135 may implement a secure communication protocol for retrieving updates from a central configuration service (e.g., an orchestrator]. This protocol may include authentication, encryption, and integrity verification to ensure that only legitimate updates are applied to the scanner container 100. The secure update process may protect against potential supply chain attacks or unauthorized modifications to classification rules and models.
[0196] The auto-update engine 135 may be configured to poll the central configuration service at predetermined intervals to check for available updates to language-specific regex rules and machine learning models. These polling intervals may be configurable based on operational requirements, potentially ranging from minutes to hours depending on the organization's need for timely updates. The polling mechanism may be designed to minimize network traffic by implementing conditional requests that retrieve updates only when changes have occurred since the last check.
[0197] For efficient update management, the auto-update engine 135 may implement version tracking for all components. This tracking may maintain records of currently loaded rule and model versions, enabling the engine to request only the specific updates needed rather than retrieving all components during each update cycle. The version tracking may also facilitate rollback capabilities if issues are detected with newly applied updates.
[0198] The auto-update engine 135 may implement a staged update process that first downloads updated components into memory before activating them. This approach may allow the scanner container 100 to continue processing documents using the current components while preparing the updates, minimizing disruption to ongoing classification operations. Once the updates are fully prepared, the engine may implement a controlled transition that maintains classification consistency.
[0199] To ensure update reliability, the auto-update engine 135 may implement validation checks for downloaded components. These checks may verify the integrity of regex rules by testing for syntax errors or pattern compilation issues, and may validate machine learning models by checking format compatibility and basic inference functionality. If validation fails, the engine may reject the update and continue using the previous valid components while reporting the issue to the central service.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664
[0200] The auto-update engine 135 may implement update prioritization based on component criticality. For example, security-critical updates addressing known false negatives for sensitive data patterns may receive expedited processing compared to routine enhancements. This prioritization may ensure that the most important updates are applied promptly while less critical updates may be deferred during periods of high classification workload.
[0201] For operational transparency, the auto-update engine 135 may maintain detailed logs of update activities. These logs may record when updates were checked, which components were updated, version transitions, validation results, and any issues encountered during the update process. The logging may provide valuable troubleshooting information and may support audit requirements for change management in regulated environments.
[0202] The auto-update engine 135 may implement a heartbeat mechanism that periodically reports its status to the central configuration service. This heartbeat may include information about currently deployed component versions, update history, and scanner container health metrics. The heartbeat information may help the central service monitor the deployment status of updates across the scanner container fleet and identify any containers that may be experiencing update issues.G. A Process Pool Recycling Manager
[0203] The scanner container 100 may include a process pool recycling manager 140. Long-running classification services may accumulate memory over time due to the behavior of third-party native libraries used within worker processes. The process pool recycling manager 140 may mitigate this degradation by periodically replacing the active process pool with a freshly initialized replacement, thereby allowing the operating system to reclaim memory held by the prior worker processes.
[0204] The process pool recycling manager 140 may monitor three independent triggers for each active process pool. A file count trigger may fire when the number of files processed by the pool since the last recycle reaches a configurable first threshold. A time-based trigger may fire when the elapsed time since the last recycle exceeds a configurable second threshold expressed in seconds. A memory pressure trigger may fire when system memory utilization exceeds a configurable third threshold expressed as a percentage of total available memory. The three triggers may be evaluated independently, such that satisfaction of any single trigger may initiate a recycling cycle without requiring the other triggers to be satisfied.
[0205] Upon any trigger firing, the process pool recycling manager 140 may execute a three-phase recycling protocol. In a first phase, the manager 140 may acquire a synchronization lock briefly, mark the current process pool as unavailable, and capture a reference to the current poolPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664before releasing the lock. In a second phase, executed without holding the lock, the manager 140 may shut down the current process pool by allowing all in-progress classification tasks to complete, deallocating worker processes, and yielding execution to permit the operating system to reclaim memory. In a third phase, the manager 140 may acquire the lock again briefly, create a replacement process pool, execute one or more warmup tasks in the replacement pool prior to routing any production work to it, reset all trigger counters, and make the replacement pool available for incoming classification requests.
[0206] During the second phase of the recycling protocol, the process pool recycling manager 140 may route concurrent classification requests to a fallback thread pool. The fallback thread pool may handle classification work that would otherwise be routed to the process pool, ensuring that no classification requests are dropped or delayed during the recycling interval. Upon completion of the third phase, the manager 140 may resume routing production work to the newly created process pool and may deactivate the fallback thread pool.
[0207] The configurable thresholds governing the three triggers may be set independently per deployment and may be adjusted at runtime without restarting the scanner container. The process pool recycling manager 140 may log each recycling event, including the trigger that initiated the cycle, the duration of each phase, and memory utilization before and after recycling, to support operational monitoring and threshold tuning.H. A Structured Data Classification Engine
[0208] The scanner container 100 may include a structured data classification engine 145. The structured data classification engine 145 may classify sensitivity of tabular data sources such as relational databases, NoSQL stores, and flat-file data stores by sampling representative values from each column or attribute and submitting those values to the classification pipeline.
[0209] For each column in a structured data source, the structured data classification engine 145 may collect a configurable number of sample values. Each sample value may be converted to a textual representation. The engine 145 may then construct a column-header-prefixed string for each sample value by concatenating the column name, a delimiter, and the textual representation of the sample value. The resulting prefixed string may be truncated to a configurable maximum length prior to submission. The column name prefix may provide semantic context to the classification pipeline, enabling disambiguation of pattern matches that would otherwise be ambiguous when the value is presented in isolation. For example, a numeric string that might match multiple pattern types may be correctly classified when the column name indicates its domain, such as a medical record number field versus a telephone number field.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664
[0210] The column-header-prefixed strings may be submitted to the hardware-accelerated prefilter database and the confirmation engine for classification using the same multi-stage pipeline applied to unstructured document text. Per-column classification results may be aggregated across all sample values for a given column to produce a per-column sensitivity classification with an associated confidence score and risk score. The structured data classification engine 145 may generate classification metadata based on the per-column sensitivity classifications without persisting raw record content.
[0211] In some embodiments, the delimiter used to separate the column name from the sample value may be a colon followed by a space. Alternative delimiters may be used depending on the schema conventions of the data source. The maximum length to which prefixed strings are truncated may be configurable per data source type or per tenant policy.
[0212] The column-header-prefixed string construction technique implemented by the structured data classification engine 145 may address a specific technical problem in the classification of tabular data: the semantic ambiguity of isolated field values when presented to a pattern-matching pipeline without their schema context. A numeric string such as ''123456789" may match patterns for social security numbers, telephone numbers, account numbers, or other sensitive data types when evaluated in isolation, producing false positives or incorrect classifications. By prepending the column name as a semantic prefix, the structured data classification engine 145 may provide the classification pipeline with schema-context information that is ordinarily discarded when field values are extracted from their tabular structure, enabling the pipeline to disambiguate pattern matches that would otherwise be indeterminate. This technique may produce a concrete improvement in the classification accuracy of the pipeline when applied to structured data sources, reducing false positive rates and improving the reliability of per-column sensitivity classifications as a technical result of the specific string construction operation performed by the computer system.I. An Incremental Structured Data Scanner
[0213] The scanner container 100 may include an incremental structured data scanner 150. The incremental structured data scanner 150 may reduce the computational cost of repeated sensitivity scans of structured data sources by detecting and reclassifying only records whose content has changed since the prior scan.
[0214] During a first scan of a structured data source, the incremental structured data scanner 150 may, for each sampled record, compute a stable record identifier and a content hash. The stable record identifier may be computed by applying a cryptographic hash function to a serialized representation of the primary key of the sampled record, with deterministic keyPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664ordering applied during serialization to ensure that the identifier remains stable across scans regardless of key field ordering. In some embodiments, the stable record identifier may be computed as a SHA256 hash of a JSON-serialized primary key with deterministic key ordering, retaining a first portion of the resulting hash value. The content hash may be computed by applying a cryptographic hash function to a serialized representation of the full content of the sampled record, also with deterministic key ordering. In some embodiments, the content hash may be computed as a SHA256 hash of a JSON-serialized record content with deterministic key ordering. The incremental structured data scanner 150 may store the stable record identifier, the primary key, the content hash, and the classification result associated with each sampled record.
[0215] During a subsequent incremental scan, the incremental structured data scanner 150 may re-fetch previously sampled records from the structured data source using their stored primary keys via batch retrieval operations. For each re-fetched record, the scanner 150 may compute a current content hash and compare it to the stored content hash. Each record may be categorized as unchanged when the current content hash matches the stored content hash, changed when the current content hash differs from the stored content hash, or deleted when the record is no longer found in the data source. The scanner 150 may reclassify only changed records and newly discovered records, leaving unchanged records with their prior classification results. The scanner 150 may produce incremental scan statistics comprising counts of changed, unchanged, deleted, and newly sampled records.
[0216] Reclassification of changed records may be performed using the same multi-stage classification pipeline applied during the first scan, including the hardware-accelerated prefilter stage, the confirmation stage, and, where applicable, the machine learning classification stage. Unchanged records may retain their prior classification results without being resubmitted to the classification pipeline.
[0217] The incremental structured data scanner 150 may address a specific technical problem in the repeated classification of large structured data sources: the computational cost of re-scanning records whose content has not changed since the prior scan. In large enterprise data stores containing millions of records, a full rescan on each classification cycle may consume substantial CPU, memory, network, and storage resources, limiting the frequency at which sensitivity classifications may be kept current The hash-based change detection mechanism implemented by the incremental structured data scanner 150 may solve this technical problem by maintaining a persistent record of content hashes for previously sampled records and comparing current content hashes to stored content hashes during subsequent scans, allowing the classification pipeline to be applied only to records whose content has actually changed. ThisPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664selective reclassification may produce a concrete reduction in the computational resources consumed per scan cycle as a technical effect of the hash comparison operation performed by the computer system, enabling more frequent sensitivity scans of large structured data sources within the same resource budget.
[0218] In some embodiments, the incremental structured data scanner 150 may perform sample expansion by scanning the structured data source for records not present in the existing sample, up to a configurable expansion limit, and classifying newly discovered records. Sample expansion may allow the scanner 150 to maintain representative coverage of a growing data source across successive scans without requiring a full rescan.J. An Adaptive Cloud Retrieval Controller
[0219] The scanner container 100 may include an adaptive cloud retrieval controller 155. Cloud storage APIs may impose rate limits or may exhibit degraded performance under high request concurrency. The adaptive cloud retrieval controller 155 may regulate the concurrency of file retrieval operations directed at cloud storage sources by applying an additive-increase multiplicative-decrease [AIMD] algorithm to converge the concurrency level toward the maximum sustainable throughput of the cloud storage integration without requiring prior knowledge of the API rate limits of that integration.
[0220] The adaptive cloud retrieval controller 155 may maintain a current concurrency limit for each cloud storage integration. The controller 155 may monitor an error rate of API requests to the cloud storage integration over a configurable measurement window. When the error rate is below a configurable error-rate threshold, the controller 155 may increase the current concurrency limit by a fixed additive increment, allowing additional parallel file retrieval operations to proceed. When the error rate meets or exceeds the configurable error-rate threshold, the controller 155 may decrease the current concurrency limit by a multiplicative factor, rapidly reducing the number of concurrent requests to relieve pressure on the cloud storage API. The adjusted concurrency limit may be applied to all parallel file retrieval operations of the scanning pipeline directed at that cloud storage integration.
[0221] The additive increase and multiplicative decrease may cause the concurrency limit to converge to a value near the maximum sustainable throughput of the cloud storage integration. When the concurrency limit is below the sustainable maximum, the error rate may remain low and the additive increase may gradually raise the limit. When the concurrency limit exceeds the sustainable maximum, the error rate may rise and the multiplicative decrease may rapidly lower the limit This self-tuning behavior may allow the scanner to operate at high throughput acrossPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664diverse cloud storage integrations with differing rate limits without requiring manual configuration of per-integration concurrency parameters.
[0222] In some embodiments, the additive increment and the multiplicative factor may be independently configurable per cloud storage integration type or per tenant policy. The measurement window over which the error rate is computed may also be configurable. The adaptive cloud retrieval controller 155 may log concurrency limit adjustments and the error rates that triggered them to support operational monitoring and parameter tuning.
[0223] The AIMD concurrency control algorithm implemented by the adaptive cloud retrieval controller 155 may represent a specific technical solution to a concrete technical problem in networked computer systems: the inability of a scanning pipeline to determine the maximum sustainable request concurrency for a cloud storage API without prior knowledge of that API's rate limits. This problem may arise because cloud storage providers may not publish their rate limits, may enforce different limits per tenant or per time period, or may change their limits dynamically. Conventional approaches to this problem may require manual configuration of per-integration concurrency parameters, which may result in either underutilization of available throughput or throttling errors thatdegrade pipeline performance. The AIMD algorithm implemented by the adaptive cloud retrieval controller 155 may solve this technical problem by converging the concurrency limit to the maximum sustainable throughput through a feedback loop thatresponds to observed error rates, without requiring any prior knowledge of the API rate limits. This convergence behavior is a specific technical effect of the AIMD algorithm operating on the network interface of the scanner container as a computer system, and is not merely the application of a mathematical formula to abstract data.
[0224] The backpressure management subsystem may implement a shutdown safety mechanism for the download gate. During normal operation, the download gate may be closed when the composite pressure score exceeds the high-water threshold, preventing new download operations from beginning. However, when the scanner container 100 receives a shutdown signal, the download gate may be forcibly opened regardless of the current composite pressure score. This forced-open behavior may prevent worker processes that are waiting on the download gate from becoming deadlocked during shutdown, ensuring that all in-progress and queued work may complete or be cleanly cancelled before the scanner container terminates. The shutdown safety mechanism may be implemented as a dedicated shutdown flag that is checked by the download gate logic independently of the pressure-based gate state.K. A Backpressure and Intake Control ManagerPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664
[0225] The scanner container 100 may include a backpressure and intake control manager 160. In cloud file scanning environments, the rate at which files may be downloaded and enqueued for processing may exceed the rate at which the classification pipeline may process them, leading to resource exhaustion. The backpressure and intake control manager 160 may regulate the flow of work through the scanning pipeline by monitoring resource utilization metrics and applying hierarchical throttling to prevent overload.
[0226] The backpressure and intake control manager 160 may monitor a plurality of resource utilization metrics at configurable intervals. These metrics may include a queue depth metric representing the number of document references currently enqueued for processing, a CPU utilization metric representing the current processor load of the scanner container, a memory utilization metric representing the current memory consumption of the scanner container, and a disk utilization metric representing the current disk usage of the scanner container. Each metric may be compared against a configurable activation threshold and a configurable release threshold, wherein the activation threshold may be higher than the release threshold to implement hysteresis.
[0227] The backpressure and intake control manager 160 may compute a composite pressure score based on the monitored metrics. The composite pressure score may reflect whether any individual metric has exceeded its activation threshold. When the composite pressure score indicates that one or more activation thresholds have been exceeded, the manager 160 may activate intake throttling by blocking new document references from entering the scanning pipeline. The manager 160 may continue to monitor metrics while intake throttling is active. Intake throttling may be released only when all monitored metrics have fallen below their respective release thresholds, implementing hysteresis that prevents rapid oscillation between throttled and unthrottled states.
[0228] In addition to intake throttling, the backpressure and intake control manager 160 may propagate backpressure upstream to download workers by controlling a download gate. When intake throttling is activated, the manager 160 may close the download gate, causing upstream download workers to block before initiating new file download operations. Files that have already been downloaded to local disk may remain available for processing without requiring re-download. When intake throttling is released, the manager 160 may reopen the download gate, permitting upstream download workers to resume downloading new files. The hierarchical relationship between the intake throttle and the download gate may allow the pipeline to drain its in-memory queue while new files accumulate safely on local disk, rather than being dropped or lost.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664
[0229] In some embodiments, the backpressure and intake control manager 160 may support configurable intake policies including a blocking policy in which new document references are held until capacity is available, a drop-oldest policy in which the oldest enqueued document references are discarded to make room for new ones, and a drop-newest policy in which newly arriving document references are discarded when the queue is full. The intake policy may be configurable per deployment or per tenant.III. PLATFORM OPERATION
[0230] Embodiments of the present disclosure provide a hardware and software platform operative by a set of methods and computer-readable media comprising instructions configured to operate the aforementioned modules and computing elements in accordance with the methods. The following depicts an example of at least one method of a plurality of methods that may be performed by at least one of the aforementioned modules. Various hardware components may be used at the various stages of operations disclosed with reference to each module.
[0231] For example, although methods may be described as being performed by a single computing device, it should be understood that, in some embodiments, different operations may be performed by different networked elements in operative communication with the computing device. For example, at least one computing device 300 may be employed in the performance of some or all of the stages disclosed with regard to the methods. Similarly, an apparatus may be employed in the performance of some or all of the stages of the methods. As such, the apparatus may comprise at least those architectural components found in computing device 300.
[0232] Furthermore, although the stages of the following example method are disclosed in a particular order, it should be understood that the order is disclosed for illustrative purposes only. Stages may be combined, separated, reordered, and various intermediary stages may exist. Accordingly, it should be understood that the various stages, in various embodiments, may be performed in arrangements that differ from the ones described below. Moreover, various stages may be added or removed from the without altering or departing from the fundamental scope of the depicted methods and systems disclosed herein.A. Master Method
[0233] Consistent with embodiments of the present disclosure, a method may be performed by at least one of the aforementioned modules. The method may be embodied as, for example, but not limited to, computer instructions, which, when executed, perform the method.
[0234] FIG. 2 is a flow chart setting forth the general stages involved in a method 200 consistent with an embodiment of the disclosure for providing the scanner container in thePATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664adaptive scan platform 100. Method 200 may be implemented using a computing device 300 or any other component associated with platform 100 as described in more detail below with respect to FIG. 3. For illustrative purposes alone, computing device 300 is described as one potential actor in the following stages.
[0235] FIG. 2 illustrates a method 200 for adaptive multi-stage data classification that may be performed by the scanner container 100. The method 200 may begin with receiving a scan unit at stage 205. A scan unit may be a document, file, or other data object that may require classification. The scan unit may be received from an orchestrator or other component that manages the distribution of scan units to available scanner containers.
[0236] After receiving the scan unit, the method 200 may proceed to stage 210 where MIME / extension mapping may be performed. This stage may involve analyzing the file extension, MIME type, or other metadata to determine the format of the scan unit The MIME / extension mapping may help identify the appropriate text extraction method to apply to the scan unit Different file formats may require different extraction techniques to efficiently obtain the textual content for classification.
[0237] At stage 215, text extraction may be performed using the scan unit. The text extraction process may convert various file formats into plain text that can be analyzed by subsequent classification stages. The text extraction stage may handle multiple file formats including but not limited to PDF, Microsoft Office documents, HTML, XML, JSON, plain text, and image files with embedded text. For image-based documents or PDFs with image content, optical character recognition (OCR) maybe applied to extract textual information. The extracted text may be stored temporarily in volatile memory for processing by subsequent stages.
[0238] The method 200 may proceed to stage 220 where the language of the scan unit may be determined. The language detection engine 110 may analyze the metadata associated with the scan unit and / or the extracted text to identify the primary language used in the document This language determination may be important for selecting appropriate language-specific resources in subsequent classification stages. The language detection may utilize statistical analysis of character distributions, word patterns, and n-gram frequencies to accurately determine the document's language.
[0239] The language detection engine 110 may implement a sophisticated approach to identifying document languages. For optimal performance with large documents, the engine may process text in chunks rather than analyzing entire files. By examining representative portions of the document, the engine may quickly determine the primary language while conserving computational resources. The engine may supporta comprehensive range of languages includingPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664but not limited to English, Spanish, French, German, Italian, Portuguese, Russian, Chinese, Japanese, Korean, Arabic, and Hindi.
[0240] For documents containing multiple languages, the language detection engine 110 may identify the predominant language while noting the presence of secondary languages in the metadata. This capability may be particularly valuable for documents that contain sections in different languages, such as international contracts or research papers with abstracts in multiple languages. The engine may record the percentage distribution of detected languages to provide comprehensive language information in the classification metadata.
[0241] After language detection, the method 200 may proceed to stage 225 where context-aware regex analysis may be performed. The regex engine 115 may retrieve language-specific regex patterns, and may apply the retrieved patterns to the extracted text to identify potential sensitive data patterns. These patterns may be designed to detect various types of sensitive information such as personally identifiable information (PI1], protected health information [PHI], payment card information [PCI], and other confidential data types. The regex patterns may be retrieved from a central service based on the detected language of the document.
[0242] The regex engine 115 may implement a high-performance pattern matching system designed to efficiently identify sensitive data patterns in document text. The engine may utilize compiled regex patterns to optimize execution speed when processing large volumes of text This compilation approach may convert the human-readable regex patterns into optimized machine code representations that may execute significantly faster than interpreted patterns.
[0243] At decision point 230, the method 200 may determine whether the confidence score from the regex analysis exceeds a first configurable threshold. The confidence score may reflect the likelihood that the identified patterns represent actual sensitive information rather than coincidental matches, or the likelihood that the scan unit contains no sensitive information.
[0244] If the regex confidence exceeds the threshold (following the "Yes" path], the method 200 may proceed directly to stage 235 where the classification maybe accepted without requiring additional processing stages. This adaptive approach may help conserve computational resources by avoiding unnecessary processing when high confidence has already been achieved.
[0245] If the regex confidence does not exceed the threshold (following the "No" path], the method 200 may proceed to stage 240 where a regex combinatory search may be performed. This stage may analyze combinations of regex patterns to potentially increase confidence in the classification. For example, finding both a pattern matching a social security number format and a pattern matching a context label like "SSN:" in close proximity may provide stronger evidence of sensitive information than either pattern alone. The regex engine 115 may implement a boostPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664mechanism that increases confidence scores that a particular scan includes sensitive information when specific combinations of patterns are found together.
[0246] For documents containing multiple potential matches, the regex engine 115 may implement a combinatory analysis approach that evaluates the co-occurrence of different pattern types. This approach may recognize that certain combinations of pattern matches may provide stronger evidence of sensitive information than individual matches in isolation. For example, the co-occurrence of a name, address, and social security number in close proximity may significantly increase the confidence that the document contains personally identifiable information.
[0247] At decision point 245, the method 200 may determine whether the confidence score from the combinatory regex search exceeds a configurable threshold. If the combinatory regex confidence exceeds the threshold [following the "Yes" path), the method 200 may proceed to stage 235 where the classification may be accepted.
[0248] If the confidence still does not exceed the threshold (following the "No" path), the method 200 may proceed to stage 250 where ML analysis may be performed.
[0249] At stage 250, the machine learning classification engine 120 may process the extracted text using language-specific machine learning models. These models may have been trained to recognize sensitive information patterns across various contexts and formats. The machine learning classification may provide an additional layer of analysis that may identify sensitive information that was not detected by the regex patterns alone. The ML models may be particularly valuable for detecting sensitive information in complex or ambiguous contexts where simple pattern matching may be insufficient.
[0250] The machine learning classification engine 120 may utilize a multi-model architecture that maintains separate models for different languages and classification tasks. The model loader may resolve models by language identifier, and the model synchronization mechanism may support per-language model artifacts, allowing the engine to load a language-specific model when a document’s detected language is known. In some embodiments, the engine may load a model trained for a particular non-English language when processing text in that language, allowing the model to recognize the unique patterns and contexts in which sensitive information appears in that language. In some embodiments, a single model trained in a primary language may be applied to documents in other languages where a language-specific model has not yet been deployed.
[0251] To enhance classification accuracy, the machine learning classification engine 120 may implement ensemble methods that combine predictions from multiple models or model architectures. This ensemble approach may provide more robust classification results, particularly for documents with unusual formatting or content patterns. The engine may weighPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664the contributions of different models based on their historical performance for specific document types or content characteristics.
[0252] At decision point 255, the method 200 may determine whether the confidence score from the ML analysis exceeds a configurable threshold. The confidence score may reflect the likelihood that the scan unit contains sensitive information rather than coincidental matches, or the likelihood that the scan unit contains no sensitive information. If the ML confidence exceeds the threshold (following the "Yes" path], the method 200 may proceed to stage 235 where the classification may be accepted. If the confidence still does not exceed the threshold (following the "No" path], the method 200 may proceed to stage 260 where the file may be flagged for LLM semantic and context analysis.
[0253] At stage 260, the LLM inference engine 125 may process the extracted text to perform semantic and contextual analysis. This advanced analysis may be particularly valuable for documents with complex content or ambiguous sensitive information patterns. The LLM inference may utilize natural language understanding capabilities to identify sensitive information that may not be detectable through pattern matching or traditional machine learning approaches. The LLM analysis may be conditionally activated only when both regex and ML classification have produced confidence scores below predetermined thresholds, optimizing resource utilization by reserving the more computationally intensive LLM processing for documents that cannot be classified with high confidence through lighter-weight methods. In some embodiments, the LLM inference engine 125 may be local to the scanner container. Alternatively, processing the text may include passing a reference to the scan unit to a dedicated LLM sematic analysis and inference container.
[0254] The LLM inference engine 125 may utilize quantized models optimized for classification tasks. Rather than employing general-purpose LLM configurations, the engine may implement models specifically designed for sensitive data detection, with reduced precision and optimized memory footprint This approach may enable effective classification while minimizing computational requirements, which may be particularly valuable for deployment in environments with limited resources.
[0255] For enhanced privacy protection, the LLM inference engine 125 may implement prompt sanitization techniques that minimize the risk of prompt injection attacks or unintended information disclosure. These techniques may include prompt construction, input validation, and output filtering to ensure that the LLM processing remains secure and privacy-preserving. The sanitization may be particularly important when processing documents that may contain malicious content designed to manipulate LLM behavior.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664
[0256] After all applicable classification stages have been completed, the method 200 may proceed to stage 265 where a final classification may be determined. This final classification may represent the combined results from any completed processing stages, with confidence scores and classification labels from each completed stage contributing to the overall determination. The final classification may indicate whether or not the scan unit includes sensitive data. In cases where the scan unit does include sensitive data, the classification may include the types of sensitive information detected in the scan unit and the confidence levels associated with each detection.
[0257] At stage 270, the classification metadata may be sent to a central service (e.g., the orchestrator], The metadata generation engine 130 may prepare detailed classification metadata including classification labels, confidence scores, and match details without including any raw content from the document. This privacy-preserving approach may allow organizations to gain valuable insights about their sensitive data landscape without creating additional exposure risks. The classification metadata may include file identifiers, detected language information, stagewise processing trace information, and match details, but importantly, no raw content from the document
[0258] The metadata generation engine 130 may create structured classification metadata without persisting or transmitting raw document content. This engine may be designed to extract only the necessary classification information, while maintaining strict privacy controls throughout the metadata generation process. The metadata generation engine 130 may create standardized, structured output formats such as JSON that facilitate integration with downstream systems while ensuring consistent field naming and value formatting across all classification results.
[0259] For regex matches, the metadata generation engine 130 may include match details such as the pattern type, match location, and surrounding context without including the actual matched content For example, the metadata may indicate that a US Social Security Number pattern was matched at character positions 150-159 in a document, without including the actual Social Security Number in the metadata. This approach may provide valuable context for understanding classification decisions while maintaining strict privacy controls.
[0260] After preparation of the metadata, the metadata may be transmitted to the centralized service, which may store the metadata as needed to maintain scan logs.
[0261] Finally, at stage 275, the volatile memory containing the extracted text may be released. In some embodiments, the release may further include destruction of the extracted text in memory (e.g., by overwriting the memory with some other data]. This step may ensure that noPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664document content remains in memory after processing is complete, further enhancing the privacy and security aspects of the system. By maintaining document content solely in volatile memory and releasing that memory after processing, the system may minimize the risk of sensitive data exposure.
[0262] In some embodiments, the method 200 may include additional stages not shown in FIG. 2. For example, the method may include stages for handling errors or exceptions that may occur during processing, stages for logging and monitoring the classification process, or stages for providing feedback to improve future classifications. The method may also include stages for updating the regex rules, ML models, or LLM configurations through the auto-update engine 135.
[0263] The method 200 may include stages to update the scanner container. For example, new regex rules, new ML models, new language detection rules, and / or the like may be provided to the scanner. The auto-update engine 135 may implement a secure communication protocol for retrieving updates from a central configuration service (e.g., the orchestrator], This protocol may include authentication, encryption, and integrity verification to ensure that only legitimate updates are applied to the scanner container 100. The secure update process may protect against potential supply chain attacks or unauthorized modifications to classification rules and models.
[0264] To ensure update reliability, the auto-update engine 135 may implement validation checks for downloaded components. These checks may verify the integrity of regex rules by testing for syntax errors or pattern compilation issues and may validate machine learning models by checking format compatibility and basic inference functionality. If validation fails, the engine may reject the update and continue using the previous valid components while reporting the issue to the central service.
[0265] In some embodiments, the scanner container may terminate after a configurable idle period to optimize resource utilization. This termination mechanism may be implemented within the scanner container itself, with each container tracking its own idle time and initiating shutdown procedures when the configured threshold is reached. Alternatively, the orchestrator may monitor container activity and issue termination commands to containers that have been idle for the configured period. In either case, the idle timeout period may be configured based on the organization's specific requirements and constraints, such as the expected workload patterns, resource availability, and cost considerations.
[0266] The termination process may include steps to help ensure clean shutdown and proper resource cleanup. Before terminating, scanner containers may complete any in-progress scan operations to avoid data loss or inconsistent results. They may securely clear all sensitive data from memory to prevent inadvertent data exposure. Scanner containers may report theirPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664termination to the central orchestrator to ensure accurate tracking of the container pool. Upon receiving termination notifications, the orchestrator may update its internal state and may create new scanner containers if needed to maintain the desired pool size.
[0267] The method 200 may be implemented as computer instructions stored in a non-transitory computer-readable medium. When executed by a processor, these instructions may cause the processor to perform the various stages of the method. The method may be performed by the scanner container 100, which may be deployed within a computing environment of an organization.B. Example Embodiments
[0268] In one example embodiment, the scanner container 100 may be deployed within a healthcare organization's computing environment to classify medical records and identify protected health information (PHI). The language detection engine 110 may determine that a document is written in English. The regex engine 115 may apply healthcare-specific regex patterns to identify potential PHI such as patient identifiers, medical record numbers, and treatment codes. If the regex confidence score exceeds the configured threshold, the classification may be accepted without further processing. The metadata generation engine 130 may create classification metadata indicating that the document contains PHI with high confidence, without extracting any actual patient information from the document.
[0269] In another example embodiment, the scanner container 100 may be deployed within a financial institution's environment to identify payment card information (PCI) in customer correspondence. The language detection engine 110 may determine that a document is written in Spanish. The regex engine 115 may apply Spanish-specific regex patterns but may not identify PCI with high confidence. The machine learning classification engine 120 may then process the document using a Spanish-language model trained to identify financial information. The ML classification may determine with high confidence that the document contains PCI. The metadata generation engine 130 may create classification metadata indicating thatthe document contains PCI with high confidence, the detection method used, and the location of the sensitive information without extracting the actual payment card numbers.
[0270] In yet another example embodiment, the scanner container 100 may be deployed within a multinational corporation's environment to identify personally identifiable information (PII) across documents in multiple languages. For a document containing both English and French text, the language detection engine 110 may identify English as the primary language with French as a secondary language. The regex engine 115 may apply both English and French regex patterns, identifying potential PII but with low confidence. The machine learning classificationPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664engine 120 may process the document using both English and French models but may still produce confidence scores below the threshold. The LLM inference engine 125 may then be activated to perform advanced analysis, determining with high confidence that the document contains P1I in both the English and French portions. The metadata generation engine 130 may create classification metadata indicating the document contains PI1 in multiple languages, the detection methods used, and the locations of the sensitive information without extracting any actual personal data.
[0271] In a further example embodiment, the scanner container 100 may be deployed in a long-running enterprise scanning service processing millions of files per day. Over time, third-party native libraries used within worker processes of the process pool may accumulate memory. The process pool recycling manager 140 may detect that the file count trigger has fired after a configurable number of files have been processed since the last recycle. The manager 140 may execute the three-phase recycling protocol: marking the current pool unavailable, allowing inprogress tasks to complete and deallocating worker processes without holding a lock, and creating a warmed replacement pool. During the recycling interval, concurrent classification requests may be routed to a fallback thread pool, ensuring uninterrupted service. Upon completion of the third phase, the replacement pool may resume primary operation and the fallback thread pool may be deactivated.
[0272] In another example embodiment, the scanner container 100 may be deployed to classify sensitivity of a relational database containing customer records. The structured data classification engine 145 may sample a configurable number of values from each column. For a column named "ssn", the engine may construct prefixed strings such as "ssn: 123-45-6789" and submit them to the classification pipeline. The column name prefix may allow the pipeline to correctly identify the value as a social security number rather than an arbitrary numeric string, improving classification accuracy. Per-column classification results may be aggregated to produce a sensitivity classification for each column without persisting any raw record content
[0273] In yet another example embodiment, the scanner container 100 may perform a second scan of a large NoSQL data store that was previously scanned. The incremental structured data scanner 150 may re-fetch previously sampled records using their stored primary keys via batch retrieval operations. For each re-fetched record, the scanner may compute a current content hash and compare it to the stored content hash. Records whose content hash has not changed may be assigned their prior classification result without reclassification. Only records whose content hash has changed and newly discovered records may be submitted to the classification pipeline. The scanner may produce incremental scan statistics indicating thePATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664number of changed, unchanged, deleted, and newly sampled records, substantially reducing the computational cost of the rescan compared to a full scan.
[0274] In a further example embodiment, the scanner container 100 may scan files stored in a cloud object store that enforces API rate limits. The adaptive cloud retrieval controller 155 may begin with a conservative concurrency limit and monitor the error rate of API requests over a configurable measurement window. When the error rate remains below the configurable errorrate threshold, the controller 155 may increase the concurrency limit by a fixed additive increment, allowing additional parallel download operations to proceed. When the error rate meets or exceeds the threshold, the controller 155 may decrease the concurrency limit by a multiplicative factor, rapidly reducing request pressure on the cloud storage API. Over successive adjustment cycles, the concurrency limit may converge to a value near the maximum sustainable throughput of the cloud storage integration without requiring prior knowledge of the API rate limits of that integration.
[0275] In a further example embodiment, the scanner container 100 may be deployed within a government agency's environment to identify classified information in technical documents. The language detection engine 110 may determine that a document is written in English. The regex engine 115 may apply government-specific regex patterns to identify potential classified markings and sensitive government identifiers. The regex engine may identify some patterns but with moderate confidence. The regex combinatory search may identify combinations of patterns that together suggest classified content with higher confidence. The metadata generation engine 130 may create classification metadata indicating the document contains classified information with the specific classification level detected, without extracting any actual classified content
[0276] These example embodiments illustrate how the adaptive multi-stage data classification system may be applied in various domains to effectively identify different types of sensitive information while maintaining strict privacy controls. The system's ability to adapt to document characteristics, operate within customer environments, and maintain strict data privacy may represent significant advancements over traditional data classification approaches.IV. HARDWARE ARCHITECTURE
[0277] Embodiments of the present disclosure provide a hardware and software platform operative as a distributed system of modules and computing elements.
[0278] The system may be embodied as, for example, but not be limited to, a website, a web application, a desktop application, a backend application, and a mobile application compatible with a computing device 300. The computing device 300 may comprise, but not be limited to, the following:PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664
[0279] Mobile computing device, such as, but is not limited to, a laptop, a tablet, a smartphone, a drone, a wearable, an embedded device, a handheld device, an Arduino, an industrial device, or a remotely operable recording device;
[0280] A supercomputer, an exascale supercomputer, a mainframe, or a quantum computer;
[0281] A minicomputer, wherein the minicomputer computing device comprises, but is not limited to, an IBM AS400 / iSeries / System I, A DEC VAX / PDP, an HP3000, a Honeywell-Bull DPS, a Texas Instruments TI-990, or a Wang Laboratories VS Series; and
[0282] A microcomputer, wherein the microcomputer computing device comprises, but is not limited to, a server, wherein a server may be rack-mounted, a workstation, an industrial device, a raspberry pi, a desktop, or an embedded device.
[0283] The system may be hosted on a centralized server or a cloud computing service. Although methods have been described to be performed by a computing device 300, it should be understood that, in some embodiments, different operations may be performed by a plurality of the computing devices 300 in operative communication on at least one network.
[0284] Embodiments of the present disclosure may comprise a system having a central processing unit [CPU] 320, a bus 330, a memory unit 340, a power supply unit [PSU] 350, and one or more Input / Output [1 / 0] units. The CPU 320 coupled to the memory unit 340 and the plurality of I / O units 360 via the bus 330, all of which are powered by the PSU 350. It should be understood that, in some embodiments, each disclosed unit may actually be a plurality of such units for redundancy, high availability, and / or performance purposes. The combination of the presently disclosed units is configured to perform the stages of any method disclosed herein.
[0285] FIG. 3 is a block diagram of a system including computing device 300. Consistent with an embodiment of the disclosure, the aforementioned CPU 320, the bus 330, the memory unit 340, a PSU 350, and the plurality of I / O units 360 may be implemented in a computing device, such as computing device 300 of FIG. 3. Any suitable combination of hardware, software, or firmware may be used to implement the aforementioned units. For example, the CPU 320, the bus 330, and the memory unit 340 may be implemented with computing device 300 or any of other computing devices 300, in combination with computing device 300. The aforementioned system, device, and components are examples and other systems, devices, and components may comprise the aforementioned CPU 320, the bus 330, and the memory unit 340, consistent with embodiments of the disclosure.
[0286] At least one computing device 300 may be embodied as any of the computing elements illustrated in all of the attached figures. A computing device 300 does not need to bePATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664electronic, nor even have a CPU 320, nor bus 330, nor memory unit 340. The definition of the computing device 300 to a person having ordinary skill in the art is "A device that computes, especially a programmable [usually] electronic machine that performs high-speed mathematical or logical operations or that assembles, stores, correlates, or otherwise processes information." Any device which processes information qualifies as a computing device 300, especially if the processing is purposeful.
[0287] With reference to FIG. 3, a system consistent with an embodiment of the disclosure may include a computing device, such as computing device 300. In some configurations, the computing device 300 may include at least one clock module 310, at least one CPU 320, at least one bus 330, and at least one memory unit 340, at least one PSU 350, and at least one I / O 360 module, wherein I / O module may be comprised of, but not limited to a non-volatile storage submodule 361, a communication sub-module 362, a sensors sub-module 363, and a peripherals submodule 364.
[0288] In a system consistent with an embodiment of the disclosure, the computing device 300 may include the clock module 310, known to a person having ordinary skill in the art as a clock generator, which produces clock signals. Clock signals may oscillate between a high state and a low state at a controllable rate, and may be used to synchronize or coordinate actions of digital circuits. Most integrated circuits (ICs) of sufficient complexity use a clock signal in order to synchronize different parts of the circuit, cycling at a rate slower than the worst-case internal propagation delays. One well-known example of the aforementioned integrated circuit is the CPU 320, the central component of modern computers, which relies on a clock signal. The clock 310 can comprise a plurality of embodiments, such as, but not limited to, a single-phase clock which transmits all clock signals on effectively 1 wire, a two-phase clock which distributes clock signals on two wires, each with non-overlapping pulses, and a four-phase clock which distributes clock signals on 4 wires.
[0289] Many computing devices 300 may use a "clock multiplier" which multiplies a lower frequency external clock to the appropriate clock rate of the CPU 320. This allows the CPU 320 to operate at a much higher frequency than the rest of the computing device 300, which affords performance gains in situations where the CPU 320 does not need to wait on an external factor (like memory 340 or input / output 360], Some embodiments of the clock 310 may include dynamic frequency change, where the time between clock edges can vary widely from one edge to the next and back again.
[0290] In a system consistent with an embodiment of the disclosure, the computing device 300 may include the CPU 320 comprising at least one CPU Core 321. In other embodiments, thePATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664CPU 320 may include a plurality of identical CPU cores 321, such as, but not limited to, homogeneous multi-core systems. It is also possible for the plurality of CPU cores 321 to comprise different CPU cores 321, such as, but not limited to, heterogeneous multi-core systems, big.LlTTLE systems and some AMD accelerated processing units (APU). The CPU 320 reads and executes program instructions which may be used across many application domains, for example, but not limited to, general purpose computing, embedded computing, network computing, digital signal processing (DSP), and graphics processing (GPU) 366. The GPU 366 contains multiple cores and can perform parallel processing and perform complex calculations simultaneously designed for Al processing workloads. The GPU 366 communicates with Main Memory 330 and CPU 320 using the PCI Bus 365. The CPU 320 may run multiple instructions on separate CPU cores 321 simultaneously. The CPU 320 may be integrated into at least one of a single integrated circuit die, and multiple dies in a single chip package. The single integrated circuit die and / or the multiple dies in a single chip package may contain a plurality of other elements of the computing device 300, for example, but not limited to, the clock 310, the bus 330, the memory 340, and I / O 360.
[0291] The CPU 320 may contain cache 322 such as but not limited to a level 1 cache, a level 2 cache, a level 3 cache, or combinations thereof. The cache 322 may or may not be shared amongst a plurality of CPU cores 321. The cache 322 sharing may comprise at least one of message passing and inter-core communication methods used for the at least one CPU Core 321 to communicate with the cache 322. The inter-core communication methods may comprise, but not be limited to, bus, ring, two-dimensional mesh, and crossbar. The aforementioned CPU 320 may employ symmetric multiprocessing (SMP) design.
[0292] The one or more CPU cores 321 may comprise soft microprocessor cores on a single field programmable gate array (FPGA), such as semiconductor intellectual property cores (IP Core). The architectures of the one or more CPU cores 321 may be based on at least one of, but not limited to, Complex Instruction Set Computing (CISC), Zero Instruction Set Computing (ZISC), and Reduced Instruction Set Computing (RISC). At least one performance-enhancing method may be employed by one or more of the CPU cores 321, for example, but not limited to Instructionlevel parallelism (ILP) such as, but not limited to, superscalar pipelining, and Thread-level parallelism (TLP).
[0293] Consistent with the embodiments of the present disclosure, the aforementioned computing device 300 may employ a communication system that transfers data between components inside the computing device 300, and / or the plurality of computing devices 300. The aforementioned communication system will be known to a person having ordinary skill in the artPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664as a bus 330. The bus 330 may embody internal and / or external hardware and software components, for example, but not limited to a wire, an optical fiber, various communication protocols, and / or any physical arrangement that provides the same logical function as a parallel electrical bus. The bus 330 may comprise at least one of a parallel bus, wherein the parallel bus carries data words in parallel on multiple wires; and a serial bus, wherein the serial bus carries data in bit- wise serial form. The bus 330 may embody a plurality of topologies, for example, but not limited to, a multidrop / electrical parallel topology, a daisy chain topology, and connected by switched hubs, such as a USB bus. The bus 330 may comprise a plurality of embodiments, for example, but not limited to:• Internal data bus (data bus) 331 / Memory bus• Control bus 332• Address bus 333• System Management Bus (SMBus)• Front-Side-Bus (FSB)• External Bus Interface (EBI)• Local bus• Expansion bus• Lightning bus• Controller Area Network (CAN bus)• Camera Link• ExpressCard• Advanced Technology management Attachment (ATA), including embodiments and derivatives such as, but not limited to, Integrated Drive Electronics (IDE) / Enhanced IDE (EIDE), ATA Packet Interface (ATAPI), Ultra-Direct Memory Access (UDMA), Ultra ATA (UATA) / Parallel ATA (P TA) / Serial ATA (SATA), CompactFlash (CF) interface, Consumer Electronics ATA (CE-ATA) / Fiber Attached Technology Adapted (FATA), Advanced Host Controller Interface (AHCI), SATA Express (SATAe) / External SATA (eSATA), including the powered embodiment eSATAp I Mini-SATA (mSATA), and Next Generation Form Factor (NGFF) / M.2.• Small Computer System Interface (SCSI) / Serial Attached SCSI (SAS)• HyperTransport• InfiniBand• RapidlO• Mobile Industry Processor Interface (MIPI)PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664• Coherent Processor Interface (CAPI)• Plug-n-play• 1-Wire• Peripheral Component Interconnect (PCI), including embodiments such as but not limited to, Accelerated Graphics Port (AGP), Peripheral Component Interconnect extended (PCI-X), Peripheral Component Interconnect Express (PCI-e) (e.g., PCI Express Mini Card, PCI Express M.2 [Mini PCIe v2], PCI Express External Cabling [ePCIe], and PCI Express OCuLink [Optical Copper{Cu} Link]), Express Card, AdvancedTCA, AMC, Universal IO, Thunderbolt / Mini DisplayPort, Mobile PCIe (M- PCIe), U.2, and Non-Volatile Memory Express (NVMe) / Non-Volatile Memory Host Controller Interface Specification (NVMHCIS).• Industry Standard Architecture (ISA), including embodiments such as, but not limited to Extended ISA (EISA), PC / XT-bus / PC / AT-bus / PC / 104 bus (e.g., PC / 104- Plus, PCI / 104-Express, PCI / 104, and PCI-104), and Low Pin Count (LPC).• Music Instrument Digital Interface (MIDI)• Universal Serial Bus (USB), including embodiments such as, but not limited to, Media Transfer Protocol (MTP) / Mobile High-Definition Link (MHL), Device Firmware Upgrade (DFU), wireless USB, InterChip USB, IEEE 1394 Interface / Firewire, Thunderbolt, and extensible Host Controller Interface (xHCI).
[0294] Consistent with the embodiments of the present disclosure, the aforementioned computing device 300 may employ hardware integrated circuits that store information for immediate use in the computing device 300, known to persons having ordinary skill in the art as primary storage or memory 340. The memory 340 operates at high speed, distinguishing it from the non-volatile storage sub-module 361, which may be referred to as secondary or tertiary storage, which provides relatively slower-access to information but offers higher storage capacity. The data contained in memory 340, may be transferred to secondary storage via techniques such as, but not limited to, virtual memory and swap. The memory 340 may be associated with addressable semiconductor memory, such as integrated circuits consisting of silicon-based transistors, that may be used as primary storage or for other purposes in the computing device 300. The memory 340 may comprise a plurality of embodiments, such as, but not limited to volatile memory, non-volatile memory, and semi-volatile memory. It should be understood by a person having ordinary skill in the art that the following are non-limiting examples of the aforementioned memory:PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664• Volatile memory, which requires power to maintain stored information, for example, but not limited to, Dynamic Random-Access Memory [DRAM] 341, Static Random- Access Memory [SRAM] 342, CPU Cache memory 325, Advanced Random-Access Memory [A-RAM], and other types of primary storage such as Random-Access Memory [RAM],• Non-volatile memory, which can retain stored information even after power is removed, for example, but not limited to, Read-Only Memory [ROM] 343, Programmable ROM [PROM] 344, Erasable PROM [EPROM] 345, Electrically Erasable PROM [EEPROM] 346 (e.g., flash memory and Electrically Alterable PROM [EAPROM]], Mask ROM [MROM], One Time Programmable [OTP] ROM / Write Once Read Many [WORM], Ferroelectric RAM [FeRAM], Parallel Random-Access Machine [PRAM], Split-Transfer Torque RAM [STT-RAM], Silicon Oxime Nitride Oxide Silicon [SONOS], Resistive RAM [RRAM], Nano RAM [NRAM], 3D XPoint, Domain-Wall Memory (DWM), and millipede memory.• Semi-volatile memory may have limited non-volatile duration after power is removed but may lose data after said duration has passed. Semi-volatile memory provides high performance, durability, and other valuable characteristics typically associated with volatile memory, while providing some benefits of true non-volatile memory. The semi-volatile memory may comprise volatile and non-volatile memory, and / or volatile memory with a battery to provide power after power is removed. The semi-volatile memory may comprise, but is not limited to, spin-transfer torque RAM [STT-RAM],
[0295] Consistent with the embodiments of the present disclosure, the aforementioned computing device 300 may employ a communication system between an information processing system, such as the computing device 300, and the outside world, for example, but not limited to, human, environment, and another computing device 300. The aforementioned communication system may be known to a person having ordinary skill in the art as an Input / Output [1 / 0] module 360. The I / O module 360 regulates a plurality of inputs and outputs with regard to the computing device 300, wherein the inputs are a plurality of signals and data received by the computing device 300, and the outputs are the plurality of signals and data sent from the computing device 300. The I / O module 360 interfaces with a plurality of hardware, such as, but not limited to, non-volatile storage 361, communication devices 362, sensors 363, and peripherals 364. The plurality of hardware is used by at least one of, but not limited to, humans, the environment, and another computing device 300 to communicate with the present computingPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664device 300. The I / O module 360 may comprise a plurality of forms, for example, but not limited to channel 1 / 0, port mapped I / O, asynchronous I / O, and Direct Memory Access [DMA],
[0296] Consistent with the embodiments of the present disclosure, the aforementioned computing device 300 may employ a non-volatile storage sub-module 361, which may be referred to by a person having ordinary skill in the art as one of secondary storage, external memory, tertiary storage, off-line storage, and auxiliary storage. The non-volatile storage sub-module 361 may not be accessed directly by the CPU 320 without using an intermediate area in the memory 340. The non-volatile storage sub-module 361 may not lose data when power is removed and may be orders of magnitude less costly than storage used in memory 340. Further, the nonvolatile storage sub-module 361 may have a slower speed and higher latency than in other areas of the computing device 300. The non-volatile storage sub-module 361 may comprise a plurality of forms, such as, but not limited to, Direct Attached Storage [DAS], Network Attached Storage [NAS], Storage Area Network (SAN), nearline storage, Massive Array of Idle Disks (MAID), Redundant Array of Independent Disks (RAID), device mirroring, off-line storage, and robotic storage. The non-volatile storage sub-module (361) may comprise a plurality of embodiments, such as, but not limited to:• Optical storage, for example, but not limited to, Compact Disk (CD) (CD-ROM / CD-R / CD-RW), Digital Versatile Disk (DVD) (DVD-ROM / DVD-R / DVD+R / DVD-RW / DVD+RW / DVD±RW / DVD+R DL / DVD-RAM / HD-DVD), Blu-ray Disk (BD) (BD- ROM / BD-R / BD-RE / BD-R DL / BD-RE DL), and Ultra-Density Optical (UDO).• Semiconductor storage, for example, but not limited to, flash memory, such as, but not limited to, USB flash drive, Memory card, Subscriber Identity Module (SIM) card, Secure Digital (SD) card, Smart Card, CompactFlash (CF) card, Solid-State Drive (SSD) and memristor.• Magnetic storage such as, but not limited to, Hard Disk Drive (HDD), tape drive, carousel memory, and Card Random-Access Memory (CRAM).• Phase-change memory• Holographic data storage such as Holographic Versatile Disk (HVD).• Molecular Memory• Deoxyribonucleic Acid (DNA) digital data storage
[0297] Consistent with the embodiments of the present disclosure, the computing device 300 may employ a communication sub-module 362 as a subset of the I / O module 360, which may be referred to by a person having ordinary skill in the art as at least one of, but not limited to, a computer network, a data network, and a network. The network may allow computing devicesPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664300 to exchange data using connections, which may also be known to a person having ordinary skill in the art as data links, which may include data links between network nodes. The nodes may comprise networked computer devices 300 that may be configured to originate, route, and / or terminate data. The nodes may be identified by network addresses and may include a plurality of hosts consistent with the embodiments of a computing device 300. Examples of computing devices that may include a communication sub-module 362 include, but are not limited to, personal computers, phones, servers, drones, and networking devices such as, but not limited to, hubs, switches, routers, modems, and firewalls.
[0298] Two nodes can be considered networked together when one computing device 300 can exchange information with the other computing device 300, regardless of any direct connection between the two computing devices 300. The communication sub-module 362 supports a plurality of applications and services, such as, but not limited to World Wide Web (WWW), digital video and audio, shared use of application and storage computing devices 300, printers / scanners / fax machines, email / online chat / instant messaging, remote control, distributed computing, etc. The network may comprise one or more transmission mediums, such as, but not limited to conductive wire, fiber optics, and wireless signals. The network may comprise one or more communications protocols to organize network traffic, wherein application-specific communications protocols may be layered, and may be known to a person having ordinary skill in the art as being improved for carrying a specific type of payload, when compared with other more general communications protocols. The plurality of communications protocols may comprise, but are not limited to, IEEE 802, ethernet, Wireless LAN (WLAN / WiFi], Internet Protocol [IP] suite (e.g., TCP / IP, UDP, Internet Protocol version 4 [IPv4], and Internet Protocol version 6 [IPv6]], Synchronous Optical Networking [SONET] / Synchronous Digital Hierarchy [SDH], Asynchronous Transfer Mode (ATM), and cellular standards (e.g., Global System for Mobile Communications [GSM], General Packet Radio Service [GPRS], Code-Division Multiple Access [CDMA], Integrated Digital Enhanced Network [IDEN], Long Term Evolution [LTE], LTE-Advanced [LTE-A], and fifth generation [5G] communication protocols).
[0299] The communication sub-module 362 may comprise a plurality of size, topology, traffic control mechanisms and organizational intent policies. The communication sub-module 362 may comprise a plurality of embodiments, such as, but not limited to:• Wired communications, such as, but not limited to, coaxial cable, phone lines, twisted pair cables (ethernet), and InfiniBand.• Wireless communications, such as, but not limited to, communications satellites, cellular systems, radio frequency / spread spectrum technologies, IEEE 802.11 Wi-Fi,PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664Bluetooth, NFC, free-space optical communications, terrestrial microwave, and Infrared (IR) communications. Wherein cellular systems embody technologies such as, but not limited to, 3G,4G (such as WiMAX and LTE), and 5G (short and long wavelength).• Parallel communications, such as, but not limited to, LPT ports.• Serial communications, such as, but not limited to, RS-232 and USB.• Fiber Optic communications, such as, but not limited to, Single-mode optical fiber (SMF) and Multi-mode optical fiber (MMF).• Power Line communications
[0300] The aforementioned network may comprise a plurality of layouts, such as, but not limited to, bus networks such as Ethernet, star networks such as Wi-Fi, ring networks, mesh networks, fully connected networks, and tree networks. The network can be characterized by its physical capacity or its organizational purpose. Use of the network, including user authorization and access rights, may differ according to the layout of the network. The characterization may include, but is not limited to a nanoscale network, a Personal Area Network (PAN), a Local Area Network (LAN), a Home Area Network (HAN), a Storage Area Network (SAN), a Campus Area Network (CAN), a backbone network, a Metropolitan Area Network (MAN), a Wide Area Network (WAN), an enterprise private network, a Virtual Private Network (VPN), and a Global Area Network (GAN).
[0301] Consistent with the embodiments of the present disclosure, the aforementioned computing device 300 may employ a sensors sub-module 363 as a subset of the 1 / 0 360. The sensors sub-module 363 comprises at least one of the device, module, or subsystem whose purpose is to detect events or changes in its environment and send the information to the computing device 300. Sensors may be sensitive to the property they are configured to measure, may not be sensitive to any property not measured but be encountered in its application, and may not significantly influence the measured property. The sensors sub-module 363 may comprise a plurality of digital devices and analog devices, wherein if an analog device is used, an Analog to Digital (A-to-D) converter must be employed to interface the said device with the computing device 300. The sensors may be subject to a plurality of deviations that limit sensor accuracy. The sensors sub-module 363 may comprise a plurality of embodiments, such as, but not limited to, chemical sensors, automotive sensors, acoustic / sound / vibration sensors, electric current / electric potential / magnetic / radio sensors, environmental / weather / moisture / humidity sensors, flow / fluid velocity sensors, ionizing radiation / particle sensors, navigation sensors, position / angle / displacement / distance / speed / acceleration sensors, imaging I optical / light sensors, pressure sensors, force / density / level sensors, thermal / temperature sensors, andPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664proximity / presence sensors. It should be understood by a person having ordinary skill in the art that the ensuing are non-limiting examples of the aforementioned sensors:• Chemical sensors, such as, but not limited to, breathalyzer, carbon dioxide sensor, carbon monoxide / smoke detector, catalytic bead sensor, chemical field-effect transistor, chemiresistor, electrochemical gas sensor, electronic nose, electrolyte- insulator-semiconductor sensor, energy-dispersive X-ray spectroscopy, fluorescent chloride sensors, holographic sensor, hydrocarbon dew point analyzer, hydrogen sensor, hydrogen sulfide sensor, infrared point sensor, ion-selective electrode, nondispersive infrared sensor, microwave chemistry sensor, nitrogen oxide sensor, olfactometer, optode, oxygen sensor, ozone monitor, pellistor, pH glass electrode, potentiometric sensor, redox electrode, zinc oxide nanorod sensor, and biosensors (such as nanosensors).• Automotive sensors, such as, but not limited to, air flow meter / mass airflow sensor, air-fuel ratio meter, AFR sensor, blind spot monitor, engine coolant / exhaust gas / cylinder head / transmission fluid temperature sensor, hall effect sensor, wheel / automatic transmission / turbine / vehicle speed sensor, airbag sensors, brake fluid / engine crankcase / fuel I oil / tire pressure sensor, camshaft / crankshaft / throttle position sensor, fuel / oil level sensor, knock sensor, light sensor, MAP sensor, oxygen sensor (o2), parking sensor, radar sensor, torque sensor, variable reluctance sensor, and water-in-fuel sensor.• Acoustic, sound and vibration sensors, such as, but not limited to, microphone, lace sensors such as a guitar pickup, seismometer, sound locator, geophone, and hydrophone.• Electric current, electric potential, magnetic, and radio sensors, such as, but not limited to, current sensor, Daly detector, electroscope, electron multiplier, faraday cup, galvanometer, hall effect sensor, hall probe, magnetic anomaly detector, magnetometer, magnetoresistance, MEMS magnetic field sensor, metal detector, planar hall sensor, radio direction finder, and voltage detector.• Environmental, weather, moisture, and humidity sensors, such as, but not limited to, actinometer, air pollution sensor, moisture alarm, ceilometer, dew warning, electrochemical gas sensor, fish counter, frequency domain sensor, gas detector, hook gauge evaporimeter, humistor, hygrometer, leaf sensor, lysimeter, pyranometer, pyrgeometer, psychrometer, rain gauge, rain sensor, seismometers, SNOTEL, snow gauge, soil moisture sensor, stream gauge, and tide gauge.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664• Flow and fluid velocity sensors, such as, but not limited to, air flow meter, anemometer, flow sensor, gas meter, mass flow sensor, and water meter.• Ionizing radiation and particle sensors, such as, but not limited to, cloud chamber, Geiger counter, Geiger-Muller tube, ionization chamber, neutron detection, proportional counter, scintillation counter, semiconductor detector, and thermoluminescent dosimeter.• Navigation sensors, such as, but not limited to, airspeed indicator, altimeter, attitude indicator, depth gauge, fluxgate compass, gyroscope, inertial navigation system, inertial reference unit, magnetic compass, MHD sensor, ring laser gyroscope, turn coordinator, variometer, vibrating structure gyroscope, and yaw rate sensor.• Position, angle, displacement, distance, speed, and acceleration sensors, such as but not limited to, accelerometer, displacement sensor, flex sensor, free-fall sensor, gravimeter, impact sensor, laser rangefinder, LIDAR, odometer, photoelectric sensor, position sensor such as, but not limited to, GPS or Glonass, angular rate sensor, shock detector, ultrasonic sensor, tilt sensor, tachometer, ultra-wideband radar, variable reluctance sensor, and velocity receiver.• Imaging, optical and light sensors, such as, but not limited to, CMOS sensor, colorimeter, contact image sensor, electro-optical sensor, infra-red sensor, kinetic inductance detector, LED configured as a light sensor, light-addressable potentiometric sensor, Nichols radiometer, fiber-optic sensors, optical position sensor, thermopile laser sensor, photodetector, photodiode, photomultiplier tubes, phototransistor, photoelectric sensor, photoionization detector, photomultiplier, photoresistor, photoswitch, phototube, scintillometer, Shack- Hartmann, single-photon avalanche diode, superconducting nanowire single-photon detector, transition edge sensor, visible light photon counter, and wavefront sensor.• Pressure sensors, such as, but not limited to, barograph, barometer, boost gauge, bourdon gauge, hot filament ionization gauge, ionization gauge, McLeod gauge, Oscillating U-tube, permanent downhole gauge, piezometer, Pirani gauge, pressure sensor, pressure gauge, tactile sensor, and time pressure gauge.• Force, Density, and Level sensors, such as, but not limited to, bhangmeter, hydrometer, force gauge or force sensor, level sensor, load cell, magnetic level or nuclear density sensor or strain gauge, piezocapacitive pressure sensor, piezoelectric sensor, torque sensor, and viscometer.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664• Thermal and temperature sensors, such as, but not limited to, bolometer, bimetallic strip, calorimeter, exhaust gas temperature gauge, flame detection / pyrometer, Gardon gauge, Golay cell, heat flux sensor, microbolometer, microwave radiometer, net radiometer, infrared / quartz / resistance thermometer, silicon bandgap temperature sensor, thermistor, and thermocouple.• Proximity and presence sensors, such as, but not limited to, alarm sensor, doppler radar, motion detector, occupancy sensor, proximity sensor, passive infrared sensor, reed switch, stud finder, triangulation sensor, touch switch, and wired glove.
[0302] Consistent with the embodiments of the present disclosure, the aforementioned computing device 300 may employ a peripherals sub-module 364 as a subset of the I / O 360. The peripherals sub-module 364 comprises ancillary devices uses to put information into and get information out of the computing device 300. There are 3 categories of devices comprising the peripherals sub-module 364, which exist based on their relationship with the computing device 300, input devices, output devices, and input / output devices. Input devices send at least one of data and instructions to the computing device 300. Input devices can be categorized based on, but not limited to:• Modality of input, such as, but not limited to, mechanical motion, audio, visual, and tactile.• Whether the input is discrete, such as but not limited to, pressing a key, or continuous such as, but not limited to the position of a mouse.• The number of degrees of freedom involved, such as, but not limited to, two- dimensional mice and three-dimensional mice used for Computer-Aided Design [CAD] applications.
[0303] Output devices provide output from the computing device 300. Output devices convert electronically generated information into a form that can be presented to humans. Input / output devices perform that perform both input and output functions. It should be understood by a person having ordinary skill in the art that the ensuing are non-limiting embodiments of the aforementioned peripherals sub-module 364:• Input Deviceso Human Interface Devices [HID], such as, butnot limited to, pointing device (e.g., mouse, touchpad oystick, touchscreen, game controller / gamepad, remote, light pen, light gun, infrared remote, jog dial, shuttle, and knob), keyboard, graphics tablet, digital pen, gesture recognition devices, magnetic ink character recognition, Sip-and-Puff (SNP) device, and Language Acquisition Device (LAD).PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664o High degree of freedom devices, that require up to six degrees of freedom such as, but not limited to, camera gimbals, Cave Automatic Virtual Environment [CAVE], and virtual reality systems.o Video Input devices are used to digitize images or video from the outside world into the computing device 300. The information can be stored in a multitude of formats depending on the user's requirement. Examples of types of video input devices include, but are not limited to, digital camera, digital camcorder, portable media player, webcam, Microsoft Kinect, image scanner, fingerprint scanner, barcode reader, 3D scanner, laser rangefinder, eye gaze tracker, computed tomography, magnetic resonance imaging, positron emission tomography, medical ultrasonography, TV tuner, and iris scanner.o Audio input devices are used to capture sound. In some cases, an audio output device can be used as an input device to capture produced sound. Audio input devices allow a user to send audio signals to the computing device 300 for at least one of processing, recording, and carrying out commands. Devices such as microphones allow users to speak to the computer to record a voice message or navigate software. Aside from recording, audio input devices are also used with speech recognition software. Examples of types of audio input devices include, but not limited to microphone, Musical Instrumental Digital Interface [MIDI] devices such as, but not limited to a keyboard, and headset.o Data AcQuisition (DAQ) devices convert at least one of analog signals and physical parameters to digital values for processing by the computing device 300. Examples of DAQ devices may include, but not limited to, Analog to Digital Converter (ADC), data logger, signal conditioning circuitry, multiplexer, and Time to Digital Converter (TDC).• Output Devices may further comprise, but not be limited to:o Display devices may convert electrical information into visual form, such as, but not limited to, monitor, TV, projector, and Computer Output Microfilm (COM). Display devices can use a plurality of underlying technologies, such as, but not limited to, Cathode-Ray Tube (CRT), Thin-Film Transistor (TFT), Liquid Crystal Display (LCD), Organic Light- Emitting Diode (OLED), MicroLED, E Ink Display (ePaper) and Refreshable Braille Display (Braille Terminal).o Printers, such as, but not limited to, inkjet printers, laser printers, 3D printers, solid ink printers, and plotters.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664o Audio and Video (AV) devices, such as, but not limited to, speakers, headphones, amplifiers, and lights, which include lamps, strobes, DJ lighting, stage lighting, architectural lighting, special effect lighting, and lasers.o Other devices such as Digital to Analog Converter (DAC)• Input I Output Devices may further comprise, but not be limited to, touchscreens, networking devices (e.g., devices disclosed in network sub-module 362), data storage devices (non-volatile storage 361), facsimile (FAX), and graphics / sound cards.
[0304] All rights, including copyrights to any code included herein, are vested in and the property of the Applicant. The Applicant retains and reserves all rights in the code included herein, and grants permission to reproduce the material only in connection with the reproduction of the granted patent and for no other purpose.V. ASPECTS
[0305] The following discloses various Aspects of the present disclosure. The various Aspects are not to be construed as patent claims unless the language of the Aspect appears as a patent claim. The Aspects describe various non-limiting embodiments of the present disclosure.Aspect 1. A system for adaptive multi-stage data classification, the system comprising: one or more processors; and a memory storing instructions that, when executed by the one or more processors, cause the system to: load a plurality of classification patterns from a declarative rule set; compile, from the plurality of classification patterns, a hardware-accelerated prefilter database by applying a widening transformation to each classification pattern to produce a corresponding prefilter pattern that matches a superset of text regions matched by the classification pattern; scan document text using the hardware-accelerated prefilter database to identify one or more suspicious regions defined by positional offsets within the document text; merge overlapping suspicious regions according to a region merge policy; confirm candidate matches within the merged suspicious regions using a linear-time regex engine for classification patterns compatible with linear-time evaluation, and using a backtracking regex engine for classification patterns requiring lookaround or backreference constructs; calculate a confidence score for each confirmed candidate match; and generate classification metadata based on the confirmed candidate matches and the confidence scores without persisting raw document content.Aspect 2. The system of Aspect 1, wherein the instructions further cause the system to: terminate classification of the document text early when the hardware-accelerated prefilter database produces no suspicious regions and no confirmed matches exist from the hardware-accelerated prefilter scan.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664Aspect 3. The system of Aspect 1, wherein the instructions further cause the system to: apply one or more positive combination rules to increase the confidence score when a first set of classification patterns co-occur within the document text; and apply one or more negative combination rules to decrease the confidence score when a second set of classification patterns co-occur within the document text, wherein the positive combination rules and the negative combination rules are independently optional and configurable per tenant or policy.Aspect 4. The system of Aspect 1, wherein the instructions further cause the system to: increase the confidence score for repeated occurrences of a classification pattern using tiered increments, wherein a first increment tier applies for occurrences within a first count range and a second increment tier applies for occurrences within a second count range; and cap the confidence score at a pattern-class-dependent ceiling value.Aspect 5. The system of Aspect 1, wherein the instructions further cause the system to: conditionally activate a machine learning classification stage when the confidence score from the confirmed candidate matches is below a configurable threshold; partition the document text into a plurality of pages; submit the plurality of pages in parallel to a machine learning inference engine; terminate page processing early upon detecting a page having a machine learning confidence score exceeding a sensitive-detection threshold; and terminate page processing early upon detecting a configurable number of consecutive pages each having a machine learning confidence score below a non-sensitive consensus threshold, subject to a minimum number of pages having been evaluated.Aspect 6. The system of Aspect 1, wherein compiling the hardware-accelerated prefilter database comprises: for each classification pattern, checking for a manually specified prefilter override pattern; when no override is present, stripping zero-width assertions and other constructs incompatible with the hardware-accelerated prefilter engine to produce a widened pattern; attempting Unicode-aware compilation of the widened pattern; and upon Unicode-aware compilation failure, simplifying the widened pattern to an ASCII-equivalent pattern for inclusion in the hardware-accelerated prefilter database.Aspect 7. The system of Aspect 1, wherein the region merge policy comprises: unconditionally merging overlapping suspicious regions associated with the same classification pattern; and merging overlapping suspicious regions associated with different classification patterns only when the overlap exceeds a configurable threshold proportion of the mean region size.Aspect 8. The system of Aspect 1, wherein the instructions further cause the system to: maintain a pre-allocated pool of scratch state objects for the hardware-accelerated prefilterPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664database, wherein each concurrent scan acquires a scratch state object from the pool prior to scanning and returns the scratch state object to the pool upon completion.Aspect 9. The system of Aspect 1, wherein the instructions further cause the system to: monitor a queue depth, a CPU utilization, a memory utilization, and a disk utilization of a scanning pipeline; compute a composite pressure score based on the monitored metrics; throttle intake of document references into the scanning pipeline when the composite pressure score exceeds a high-water threshold; and gate upstream document downloads by blocking new download operations until the composite pressure score falls below a low-water threshold, wherein the high-water threshold and the low-water threshold implement hysteresis.Aspect 10. The system of Aspect 1, wherein the instructions further cause the system to: track a cumulative document count and an elapsed time for a process pool executing classification operations; initiate recycling of the process pool when the cumulative document count or the elapsed time exceeds a respective recycle threshold; route concurrent classification work to a fallback execution pool during process pool recycling; and execute warmup tasks in a newly created process pool prior to routing production work to the newly created process pool.Aspect 11. A method for adaptive multi-stage data classification, the method comprising: loading, by one or more processors, a plurality of classification patterns from a declarative rule set; compiling a hardware-accelerated prefilter database from the plurality of classification patterns by applying a widening transformation to each classification pattern; scanning document text using the hardware-accelerated prefilter database to identify suspicious regions defined by positional offsets; merging overlapping suspicious regions according to a region merge policy; confirming candidate matches within the merged suspicious regions using a linear-time regex engine for compatible classification patterns and a backtracking regex engine for classification patterns requiring lookaround or backreference constructs; calculating a confidence score for each confirmed candidate match; and generating classification metadata based on the confirmed candidate matches and the confidence scores without persisting raw document content.Aspect 12. The method of Aspect 11, further comprising: applying one or more positive combination rules to increase the confidence score when a first set of classification patterns cooccur within the document text; and applying one or more negative combination rules to decrease the confidence score when a second set of classification patterns co-occur within the document text.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664Aspect 13. The method of Aspect 11, further comprising: increasing the confidence score for repeated occurrences of a classification pattern using tiered increments; and capping the confidence score at a pattern-class-dependent ceiling value.Aspect 14. The method of Aspect 11, further comprising: conditionally activating a machine learning classification stage when the confidence score is below a configurable threshold; partitioning the document text into a plurality of pages and submitting the pages in parallel to a machine learning inference engine; and performing asymmetric early termination by terminating page processing upon detecting a sensitive page exceeding a sensitive-detection confidence threshold, or upon detecting a configurable number of consecutive non-sensitive pages each below a non-sensitive consensus threshold.Aspect 15. The method of Aspect 11, further comprising: building a prefixed string for each sampled field value by prepending a column header name to the sampled field value; submitting the prefixed string to the hardware-accelerated prefilter database and the confirmation engine for classification; and aggregating per-column classification results based on outputs from the classification of the prefixed strings.Aspect 16. The method of Aspect 11, further comprising: computing a stable record identifier and a content hash for each sampled record in a structured data source; storing the stable record identifier and the content hash; on a subsequent scan, re-fetching sampled records and comparing current content hashes to stored content hashes; and reclassifying only records whose content hash has changed since the prior scan, thereby performing incremental structured-data classification.Aspect 17. The method of Aspect 11, further comprising: monitoring an error rate of requests to a cloud storage source; increasing a concurrency level for cloud storage retrieval by an additive increment when the error rate is below an error-rate threshold; and decreasing the concurrency level by a multiplicative factor when the error rate meets or exceeds the error-rate threshold.Aspect 18. A non-transitory computer-readable medium storing instructions that, when executed by one or more processors, cause the processors to perform operations for adaptive multi-stage data classification, the operations comprising: loading a plurality of classification patterns from a declarative rule set; compiling a hardware-accelerated prefilter database from the plurality of classification patterns by applying a widening transformation to each classification pattern to produce a corresponding prefilter pattern that matches a superset of text regions matched by the classification pattern; scanning document text using the hardware-accelerated prefilter database to identify suspicious regions defined by positional offsets withinPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664the document text; merging overlapping suspicious regions according to a region merge policy; confirming candidate matches within the merged suspicious regions using a linear-time regex engine for compatible classification patterns and a backtracking regex engine for classification patterns requiring lookaround or backreference constructs; calculating a confidence score for each confirmed candidate match; and generating classification metadata based on the confirmed candidate matches and the confidence scores without persisting raw document content Aspect 19. The non-transitory computer-readable medium of Aspect 18, wherein the operations further comprise: applying positive combination rules to increase the confidence score when a first set of classification patterns co-occur; and applying negative combination rules to decrease the confidence score when a second set of classification patterns co-occur, wherein the positive combination rules and the negative combination rules are independently optional.Aspect 20. The non-transitory computer-readable medium of Aspect 18, wherein the operations further comprise: conditionally activating a machine learning classification stage when the confidence score is below a configurable threshold; partitioning the document text into pages and submitting the pages in parallel to a machine learning inference engine; and performing asymmetric early termination by terminating page processing upon detecting a sensitive page exceeding a sensitive-detection confidence threshold, or upon detecting a configurable number of consecutive non-sensitive pages each below a non-sensitive consensus threshold, subject to a minimum number of pages having been evaluated.Aspect 21. A system for preventing memory degradation in a long-running document classification service, the system comprising: one or more processors; and a memory storing instructions that, when executed by the one or more processors, cause the system to: monitor, for each process pool executing classification operations, a file count trigger that fires when a number of files processed since a last recycle reaches a first threshold, a time-based trigger that fires when an elapsed time since the last recycle exceeds a second threshold, and a memory pressure trigger that fires when system memory utilization exceeds a third threshold; upon any trigger firing, execute a three-phase recycling protocol comprising: a first phase in which the process pool is marked unavailable and a reference to the current process pool is captured; a second phase, executed without holding a lock, in which the current process pool is shut down, in-progress tasks are permitted to complete, worker processes are deallocated, and memory is reclaimed by the operating system; and a third phase in which a replacement process pool is created, warmup tasks are executed in the replacement process pool prior to routingPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664production work thereto, and all trigger counters are reset; and route concurrent classification requests to a fallback thread pool during the second phase of the recycling protocol.Aspect 22. The system of Aspect 21, wherein the first threshold is a configurable file count, the second threshold is a configurable elapsed time in seconds, and the third threshold is a configurable memory utilization percentage, and wherein the three triggers are evaluated independently such that satisfaction of any single trigger initiates recycling.Aspect 23. A method for classifying sensitivity of structured data, the method comprising: for each column in a structured data source, collecting a configurable number of sample values from the column; for each sample value, constructing a column-header-prefixed string by concatenating a column name, a delimiter, and a textual representation of the sample value, truncated to a configurable maximum length; submitting the column-header-prefixed strings to a classification pipeline comprising at least one of a regex engine and a machine learning classifier, wherein the column name prefix provides semantic context enabling disambiguation of pattern matches; aggregating per-column classification results across all sample values to produce a per-column sensitivity classification with an associated confidence score and risk score; and generating classification metadata based on the per-column sensitivity classifications without persisting raw record content.Aspect 24. The method of Aspect 23, wherein constructing the column-header-prefixed string comprises prepending the column name and a colon-space delimiter to the textual representation of the sample value.Aspect 25. A method for performing incremental sensitivity scanning of a structured data store, the method comprising: during a first scan, for each sampled record in the structured data store: computing a stable record identifier by hashing a serialized representation of a primary key of the sampled record; computing a content hash by hashing a serialized representation of content of the sampled record; and storing the stable record identifier, the primary key, the content hash, and a classification result associated with the sampled record; during a subsequent incremental scan: re-fetching previously sampled records using their stored primary keys via batch retrieval operations; for each re-fetched record, computing a current content hash and comparing the current content hash to the stored content hash; categorizing each record as unchanged when the current content hash matches the stored content hash, changed when the current content hash differs from the stored content hash, or deleted when the record is not found; and reclassifying only changed records and newly discovered records; and producing incremental scan statistics comprising counts of changed, unchanged, deleted, and newly sampled records.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664Aspect 26. The method of Aspect 25, further comprising performing sample expansion by scanning the structured data store for records not present in an existing sample, up to a configurable expansion limit, and classifying newly discovered records.Aspect 27. The method of Aspect 25, wherein computing the stable record identifier comprises computing a SHA256 hash of a JSON-serialized primary key with deterministic key ordering and retaining a first portion of the hash, and wherein computing the content hash comprises computing a SHA256 hash of a JSON-serialized record content with deterministic key ordering.Aspect 28. A method for adaptively controlling concurrency of cloud storage API requests during data scanning, the method comprising: maintaining a current concurrency limit for each cloud storage integration; monitoring an error rate of API requests to the cloud storage integration over a measurement window; when the error rate is below a configurable error-rate threshold, increasing the current concurrency limit by a fixed additive increment; when the error rate meets or exceeds the configurable error-rate threshold, decreasing the current concurrency limit by a multiplicative factor; and applying the adjusted concurrency limit to parallel file retrieval operations of a scanning pipeline; wherein the additive increase and multiplicative decrease converge the concurrency limit to a maximum sustainable throughput for the cloud storage integration without requiring prior knowledge of API rate limits of the cloud storage integration.
[0306] While the specification includes examples, the disclosure’s scope is indicated by the following claims. Furthermore, while the specification has been described in language specific to structural features and / or methodological acts, the claims are not limited to the features or acts described above. Rather, the specific features and acts described above are disclosed as examples for embodiments of the disclosure.
[0307] Insofar as the description above and the accompanying drawing disclose any additional subject matter that is not within the scope of the claims below, the disclosures are not dedicated to the public and the right to file one or more applications to claims such additional disclosures is reserved.
Claims
PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664The following is claimed:
1. A system for adaptive multi-stage data classification, the system comprising:one or more processors; anda memory storing instructions that, when executed by the one or more processors, cause the system to:load a plurality of classification patterns from a declarative rule set; compile, from the plurality of classification patterns, a hardware-accelerated prefilter database by applying a widening transformation to each classification pattern to produce a corresponding prefilter pattern that matches a superset of text regions matched by the classification pattern;scan document text using the hardware-accelerated prefilter database to identify one or more suspicious regions defined by positional offsets within the document text;merge overlapping suspicious regions according to a region merge policy; confirm candidate matches within the merged suspicious regions using a lineartime regex engine for classification patterns compatible with linear-time evaluation, and using a backtracking regex engine for classification patterns requiring lookaround or backreference constructs;calculate a confidence score for each confirmed candidate match; and generate classification metadata based on the confirmed candidate matches and the confidence scores without persisting raw document content.
2. The system of claim 1, wherein the instructions further cause the system to terminate classification of the document text early when the hardware-accelerated prefilter database produces no suspicious regions and no confirmed matches exist from scanning the document text using the hardware-accelerated prefilter database.
3. The system of claim 1, wherein the instructions further cause the system to:apply one or more positive combination rules to increase the confidence score when a first set of classification patterns co-occur within the document text; andapply one or more negative combination rules to decrease the confidence score when a second set of classification patterns co-occur within the document text, wherein the positive combination rules and the negative combination rules are independently optional and configurable per tenant or policy.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 1186644. The system of claim 1, wherein the instructions further cause the system to:increase the confidence score for repeated occurrences of a classification pattern using tiered increments, wherein a first increment tier applies for occurrences within a first count range and a second increment tier applies for occurrences within a second count range; and cap the confidence score at a pattern-class-dependent ceiling value.
5. The system of claim 1, wherein the instructions further cause the system to:conditionally activate a machine learning classification stage when the confidence score is below a configurable threshold;partition the document text into a plurality of pages and submit the plurality of pages in parallel to a machine learning inference engine;terminate page processing early upon detecting a page having a machine learning confidence score exceeding a sensitive-detection threshold; andterminate page processing early upon detecting a configurable number of consecutive pages each having a machine learning confidence score below a non-sensitive consensus threshold, subject to a minimum number of pages having been evaluated.
6. The system of claim 1, wherein compiling the hardware-accelerated prefilter database comprises:for each classification pattern, checking for a manually specified prefilter override pattern;when no override is present, stripping zero-width assertions and other constructs incompatible with the hardware-accelerated prefilter engine to produce a widened pattern; attempting Unicode-aware compilation of the widened pattern; andupon Unicode-aware compilation failure, simplifying the widened pattern to an ASCII-equivalent pattern for inclusion in the hardware-accelerated prefilter database.
7. The system of claim 1, wherein the region merge policy comprises:unconditionally merging overlapping suspicious regions associated with the same classification pattern; andmerging overlapping suspicious regions associated with different classification patterns only when the overlap exceeds a configurable threshold proportion of the mean region size.PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 1186648. The system of claim 1, wherein the instructions further cause the system to maintain a pre-allocated pool of scratch state objects for the hardware-accelerated prefilter database, wherein each concurrent scan acquires a scratch state object from the pool prior to scanning and returns the scratch state object to the pool upon completion.
9. The system of claim 1, wherein the instructions further cause the system to:monitor a queue depth, a CPU utilization, a memory utilization, and a disk utilization of a scanning pipeline, the queue depth, the CPU utilization, the memory utilization, and the disk utilization collectively comprising a set of monitored metrics;compute a composite pressure score based on the set of monitored metrics; throttle intake of document references into the scanning pipeline when the composite pressure score exceeds a high-water threshold; andgate upstream document downloads by blocking new download operations until the composite pressure score falls below a low-water threshold, wherein the high-water threshold and the low- water threshold implement hysteresis.
10. The system of claim 1, wherein the instructions further cause the system to:monitor, for a process pool executing classification operations, a file count trigger, a time-based trigger, and a memory pressure trigger;upon any trigger firing, execute a three-phase recycling protocol in which the process pool is marked unavailable, in-progress tasks are permitted to complete and worker processes are deallocated without holding a lock, and a replacement process pool is created and warmed up prior to receiving production work; androute concurrent classification requests to a fallback thread pool during recycling of the process pool.
11. A method for adaptive multi-stage data classification, the method comprising:loading, by one or more processors, a plurality of classification patterns from a declarative rule set;compiling a hardware-accelerated prefilter database from the plurality of classification patterns by applying a widening transformation to each classification pattern to produce a corresponding prefilter pattern that matches a superset of text regions matched by the classification pattern;PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664scanning document text using the hardware-accelerated prefilter database to identify suspicious regions defined by positional offsets within the document text;merging overlapping suspicious regions according to a region merge policy; confirming candidate matches within the merged suspicious regions using a linear-time regex engine for classification patterns compatible with linear-time evaluation, and a backtracking regex engine for classification patterns requiring lookaround or backreference constructs;calculating a confidence score for each confirmed candidate match; and generating classification metadata based on the confirmed candidate matches and the confidence scores without persisting raw document content12. The method of claim 11, further comprising:applying one or more positive combination rules to increase the confidence score when a first set of classification patterns co-occur within the document text; andapplying one or more negative combination rules to decrease the confidence score when a second set of classification patterns co-occur within the document text.
13. The method of claim 11, further comprising:increasing the confidence score for repeated occurrences of a classification pattern using tiered increments; andcapping the confidence score at a pattern-class-dependent ceiling value.
14. The method of claim 11, further comprising:conditionally activating a machine learning classification stage when the confidence score is below a configurable threshold;partitioning the document text into a plurality of pages and submitting the pages in parallel to a machine learning inference engine; andperforming asymmetric early termination by terminating page processing upon detecting a sensitive page exceeding a sensitive-detection confidence threshold, or upon detecting a configurable number of consecutive non-sensitive pages each below a non-sensitive consensus threshold, subject to a minimum number of pages having been evaluated.
15. The method of claim 11, further comprising:PATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664for each column in a structured data source, collecting a configurable number of sample values and constructing a column-header-prefixed string by concatenating a column name, a delimiter, and a textual representation of each sample value;submitting the column-header-prefixed strings to the hardware-accelerated prefilter database and at least one of the linear-time regex engine and the backtracking regex engine for classification; andaggregating per-column classification results to produce a per-column sensitivity classification with an associated confidence score.
16. The method of claim 11, further comprising:during a first scan, computing a stable record identifier and a content hash for each sampled record in a structured data source and storing the stable record identifier, the content hash, and a classification result;during a subsequent scan, re-fetching sampled records, computing current content hashes, and comparing the current content hashes to the stored content hashes; and reclassifying only records whose content hash has changed since the first scan.
17. The method of claim 11, further comprising:monitoring an error rate of API requests to a cloud storage source over a measurement window;increasing a concurrency level for cloud storage retrieval by a fixed additive increment when the error rate is below a configurable error-rate threshold; anddecreasing the concurrency level by a multiplicative factor when the error rate meets or exceeds the configurable error-rate threshold, wherein the fixed additive increment and the multiplicative factor converge the concurrency level to a maximum sustainable throughput without requiring prior knowledge of API rate limits.
18. A non-transitory computer-readable medium storing instructions that, when executed by one or more processors, cause the processors to perform operations for adaptive multi-stage data classification, the operations comprising:loading a plurality of classification patterns from a declarative rule set;compiling a hardware-accelerated prefilter database from the plurality of classification patterns by applying a widening transformation to each classification pattern to produce aPATENT APPLICATION Attorney Docket No.: 06418.009-PA-WOY-14W Customer No.: 118664corresponding prefilter pattern that matches a superset of text regions matched by the classification pattern;scanning document text using the hardware-accelerated prefilter database to identify suspicious regions defined by positional offsets within the document text;merging overlapping suspicious regions according to a region merge policy; confirming candidate matches within the merged suspicious regions using a linear-time regex engine for compatible classification patterns and a backtracking regex engine for classification patterns requiring lookaround or backreference constructs;calculating a confidence score for each confirmed candidate match; and generating classification metadata based on the confirmed candidate matches and the confidence scores without persisting raw document content19. The non-transitory computer-readable medium of claim 18, wherein the operations further comprise:applying one or more positive combination rules to increase the confidence score when a first set of classification patterns co-occur within the document text; andapplying one or more negative combination rules to decrease the confidence score when a second set of classification patterns co-occur within the document text, wherein the positive combination rules and the negative combination rules are independently optional and configurable per tenant or policy.
20. The non-transitory computer-readable medium of claim 18, wherein the operations further comprise:conditionally activating a machine learning classification stage when the confidence score is below a configurable threshold;partitioning the document text into pages and submitting the pages in parallel to a machine learning inference engine; andperforming asymmetric early termination by terminating page processing upon detecting a sensitive page exceeding a sensitive-detection confidence threshold, or upon detecting a configurable number of consecutive non-sensitive pages each below a non-sensitive consensus threshold, subject to a minimum number of pages having been evaluated.
