Anomaly detection through machine learning with relational data retrieval

The system addresses the limitations of conventional anomaly detection by integrating relational data retrieval, parallel tool execution, and a language processing model to deliver accurate and actionable insights, reducing manual effort and improving efficiency.

US12817713B1Active Publication Date: 2026-12-01INTUIT INC
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
US19/421679
Authority / Receiving Office
US · United States
Patent Type
Patents(United States)
Current Assignee / Owner
Filing Date
2025-12-16
Publication Date
2026-12-01
Estimated Expiration
2045-12-16

AI Technical Summary

Technical Problem

Conventional automated anomaly detection systems lack the ability to provide meaningful context and identify underlying causes of anomalies, often requiring manual investigation and producing unactionable alerts.

Method used

An automated system that integrates relational data retrieval, parallelized tool-based analysis, and a language processing machine learning model to dynamically retrieve contextually relevant records, execute specialized tools, and synthesize actionable insights, including root cause analysis.

Benefits of technology

Provides highly accurate and actionable insights with reduced latency and resource consumption, eliminating the need for manual investigation and enhancing decision-making efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US12817713-D00000_ABST
    Figure US12817713-D00000_ABST
Patent Text Reader

Abstract

Aspects of the present disclosure involve automated detection and analysis of anomalies in structured data. Aspects include detecting an anomalous data value based on performing a time-series analysis on a data set. Aspects include automatically retrieving a set of related data records associated with the anomalous data value, wherein the retrieving is based on configured relationships between data categories and record types and based on a relational data schema. Aspects include executing a plurality of data processing tools on the retrieved set of related data records. Aspects include providing outputs from the plurality of data processing tools and the retrieved set of related data records as context to a language processing machine learning model. Aspects include generating, by the language processing machine learning model based on the context, a structured output that relates to the anomalous data value and that identifies one or more root cause records.
Need to check novelty before this filing date? Find Prior Art

Description

INTRODUCTION

[0001] Aspects of the present disclosure relate to automated anomaly detection, and more particularly to a method and system for executing a dynamic workflow involving selective relational data retrieval, targeted and efficient tool selection and execution, and contextually informed language processing machine learning model based structured output generation in order to perform on-demand accurate anomaly detection and analysis in a software application.BACKGROUND

[0002] Automated anomaly detection in computing environments has become increasingly important as organizations rely on large-scale data systems. Conventional approaches to anomaly detection often involve manual review of data sets, where analysts must identify unexpected values or patterns and investigate their causes. This process is time-consuming, labor-intensive, and prone to human error, especially as the volume and complexity of data continue to grow.

[0003] Existing automated systems typically focus on identifying anomalies using statistical methods or static rule-based algorithms. While these systems can identify deviations from expected trends, they often lack the ability to provide meaningful context or identify the underlying causes of anomalies. As a result, such automated techniques often produce alerts that provide minimal actionable information and / or require further manual investigation to determine whether the anomaly is significant and what actions should be taken.

[0004] Recent advances in machine learning, particularly in the development of large language models (LLMs), have enabled new possibilities for contextual analysis. However, utilizing these models for anomaly detection presents technical challenges, such as due to the large amounts of potentially relevant contextual information, the varying formats of such information, and the generally unfocused nature of such models. Thus, there are no current automated anomaly detection techniques that provide consistently accurate and actionable results, particularly across large data sets.BRIEF SUMMARY

[0005] According to an aspect of the present disclosure, a method for automated detection and analysis of anomalies in structured data is provided. The method may include: detecting an anomalous data value based on performing a time-series analysis on a data set corresponding to a configured period; automatically retrieving, based on the detecting of the anomalous data value, a set of related data records associated with the anomalous data value, wherein the retrieving is based on configured relationships between data categories and record types and based on relational data stored in a relational data schema; executing a plurality of data processing tools on the retrieved set of related data records, each data processing tool of the plurality of data processing tools being configured to identify a respective pattern or irregularity relevant to a data category of the anomalous value; providing outputs from the plurality of data processing tools based on the executing, together with the retrieved set of related data records, as context to a language processing machine learning model; generating, by the language processing machine learning model based on the context, a structured output that relates to the anomalous data value and that identifies one or more root cause records; and performing one or more actions based on the structured output.

[0006] According to other aspects, a non-transitory computer readable medium may store instructions that, when executed by one or more processors of a computing system, cause the computing system to perform one or more of the methods set forth above. According to other aspects, a system includes one or more processors and a memory storing instructions that, when executed by the one or more processors, cause the system to perform aspects of the method set forth above.

[0007] The following description and the related drawings set forth in detail certain illustrative features of one or more embodiments.BRIEF DESCRIPTION OF THE DRAWINGS

[0008] The appended figures depict certain aspects of the one or more embodiments and are therefore not to be considered limiting of the scope of this disclosure.

[0009] FIG. 1 illustrates a block diagram of a computing environment for automated detection and analysis of anomalies in structured data, according to aspects of the present disclosure.

[0010] FIG. 2 is a block diagram illustrating a workflow related to automated detection and analysis of anomalies in structured data, according to aspects of the present disclosure.

[0011] FIG. 3 is a block diagram illustrating a workflow related to automated detection and analysis of anomalies in structured data, according to aspects of the present disclosure.

[0012] FIG. 4 illustrates an example user interface screen related to automated detection and analysis of anomalies in structured data, according to aspects of the present disclosure.

[0013] FIG. 5A and FIG. 5B illustrate block diagrams of two computing systems related to automated detection and analysis of anomalies in structured data, according to aspects of the present disclosure.

[0014] To facilitate understanding, identical reference numerals have been used, where possible, to designate identical elements that are common to the drawings. It is contemplated that elements and features of one embodiment may be beneficially incorporated in other embodiments without further recitation.DETAILED DESCRIPTION

[0015] The present disclosure relates to a method and system for automated detection and analysis of anomalies in structured data. It is noted that aspects of the present disclosure that are described with respect to large language models (LLMs) can also be performed with other types of language processing machine learning models, such as small language models.

[0016] Techniques described herein provide an automated system for detecting and explaining anomalies in structured data using advanced machine learning techniques combined with dynamic agentic logic. Aspects of present disclosure are designed to identify anomalous data values through time-series analysis, automatically retrieve related records based on configured relationships (e.g., using a relational data schema such as a knowledge graph), execute multiple analysis tools as applicable (e.g., in parallel) to produce targeted insights, and synthesize the results into a structured, actionable report using a language processing machine learning model prompted according to context-specific logic. Structured reports generated through this dynamic automated process may highlight an anomaly and also explain its root causes, enabling users to quickly understand and address irregularities in their data.

[0017] Unlike prior automated anomaly detection techniques, aspects of the present disclosure involve dynamically retrieving contextually relevant records based on configured relationships stored in a relational data schema, rather than relying on static or manual data selection. Techniques described herein are further distinguished by selectively executing a suite of specialized analysis tools, in some cases in parallel, each tool being tailored to identify specific patterns or irregularities relevant to a detected anomaly, and using results of such tool execution to provide targeted context to a language processing machine learning model. Furthermore, unlike prior art techniques, which typically stop at flagging anomalies and which often require manual investigation, aspects of the present disclosure utilize a language processing machine learning model, configured through a dynamically selected prompt and provided with targeted context information, to synthesize tool outputs and related data into a comprehensive explanation, including both a summary and detailed findings.

[0018] Prior approaches to automated anomaly detection often rely on basic statistical thresholds or rule-based alerts, which may identify deviations but do not provide actionable context or root cause analysis. These methods produce results of limited utility, and frequently require users to manually sift through data to determine the significance of an alert and its underlying drivers. In contrast, the techniques described herein automate the entire workflow, from anomaly detection to dynamic contextual data retrieval, parallel analysis through selectively executed data processing tools, root cause identification, natural language explanation, and the like, improving accuracy and utility, eliminating the need for manual investigation, and reducing the risk of oversight.

[0019] The technical improvements accomplished aspects of the present disclosure are substantial. By integrating relational data retrieval, parallelized tool-based analysis, and machine learning-based synthesis, techniques described herein produce insightful and actionable results that are not possible with prior automated techniques, and dramatically reduce the time and resources that would otherwise be required to investigate anomalies. The use of a language processing machine learning model to generate structured reports according to a categorically targeted prompt and based on dynamically selected context data ensures that users are provided with understandable, actionable insights rather than raw data or cryptic alerts. This approach enhances the scalability and responsiveness of automated anomaly detection systems, supports more accurate and efficient decision-making, and enables organizations to maintain higher data integrity with less manual intervention, even in systems with large amounts of potentially relevant data.

[0020] Experimental results indicate that techniques described herein produce results that are highly accurate and actionable (e.g., unlike those produced by prior automated anomaly detection techniques), and do so in a low latency and resource efficient manner. In one evaluation involving practitioners reviewing generated reports across a large corpus, accuracy rates of outputs produced by techniques described herein included: 92% for a first category, 95% for a second category, 95% for a third category, 98% for a fourth category, 92% for a fifth category, 97% for a sixth category, 98% for a seventh category, and 95% for an eighth category.Example Computing Components Related to Automated Detection and Analysis of Anomalies in Structured Data

[0021] FIG. 1 illustrates a block diagram of a computing environment 100 related to automated detection and analysis of anomalies in structured data. The computing environment 100 may include a server 110 and a client 120 connected via a network 155.

[0022] Server 110 may comprise one or more processors and a memory storing instructions. In some cases, server 110 may be an application server or other computing device that hosts a computing application accessed by one or more users, such as via user interface 122 on client 120.

[0023] The client 120 be a computing device by which a user interacts with a computing application, and may include a user interface 122 that enables such interaction. The client 120 may send a request 124 through the network 155 to the server 110, and may receive a structured output 126 back through the network 155 in response. For example, request 124 may be a request to perform anomaly detection on one or more data sets, such as based on input provided by a user interacting with user interface 122 (e.g., selecting a user interface element to request anomaly detection or otherwise indicating a request to perform anomaly detection).

[0024] Server 110 may generate structured output 126 (e.g., in response to request 124 and / or otherwise based on some triggering condition and / or periodic monitoring) through a process that involves automated analysis of a data set by anomaly detection agent 112.

[0025] Anomaly detection agent 112 is configured to retrieve a data set and generate structured output 126 by orchestrating the operation of several specialized components. Anomaly detection agent 112 is a core component of the disclosed system, responsible for orchestrating the automated detection, analysis, and explanation of anomalies in structured data. The agent may be a computing software component that leverages several specialized subcomponents and / or external components to efficiently process data sets and generate structured output 126 for presentation to the user.

[0026] Upon receiving a request to analyze a data set and / or upon occurrence of some condition (e.g., expiration of a time period, receiving a certain amount of data, receiving a request from another computing component, and / or the like), anomaly detection agent 112 may invoke the time series analysis engine 114. Time series analysis engine 114 performs a statistical analysis over a configured period, such as a rolling window of historical data, to identify data values that deviate significantly from expected trends. The time series analysis may involve calculating metrics such as mean, standard deviation, and / or other statistical indicators to flag anomalous values that warrant further investigation. The data analyzed by time series analysis engine 114 may include, for example, a time series of values for a particular variable (e.g., amount spent for a particular category of expenses, amount of data sent and / or received by a computing component, amount of processing and / or memory resources utilized by a component or entity, number of requests processed by a particular component, revenue received by an entity, number of support requests initiated, number of errors or exceptions, and / or the like) over a configured time period (e.g., one month, thirteen months, five years, or the like). The configured time period may be dynamically selected based on the type of data being analyzed (e.g., because different time period may be useful for identifying anomalies in different types of data values), such as based on associations between time periods (e.g., lengths of time) and data types or categories.

[0027] Once an anomalous data value is detected by time series analysis engine 114, anomaly detection agent 112 may activate record retrieval engine 116. Record retrieval engine 116 may automatically retrieve a set of related data records associated with the detected anomaly. The retrieval process may be guided by configured relationships between data categories and record types as well as, in some aspects, relationships among particular records (e.g., of one or more record types associated with the data category of the anomalous data value). Some or all of such relationship information may be stored in a relational data schema 160. For example, relational data schema 160 may be a knowledge graph that stores data along with hierarchical relationship information indicating connections among data items. By leveraging these relationships, record retrieval engine 116 selectively gathers only those records that are contextually relevant to the anomaly, ensuring that subsequent analysis is both targeted and efficient. Relational data retrieval is described in more detail below with respect to FIGS. 2 and 3.

[0028] With the relevant data records retrieved, anomaly detection agent 112 may proceed to invoke tool execution engine 118, which is configured to execute a plurality of data processing tools 170 using the anomalous data value, the data set in which the anomalous data value was identified, one or more subsets of the retrieved records, and / or the like. Each tool is configured to perform an anomaly analysis related task such as identifying a particular pattern or irregularity (e.g., duplicate entries, temporal anomalies, outlier values, and / or the like) and may be selected for execution by tool execution engine 118 based on the data category of the anomalous value. In some aspects, the tools may be executed in parallel with one another and / or with execution of one or more tools for analyzing one or more other anomalous data values. Such parallel execution of these tools enables the system to rapidly analyze multiple aspects of the data, producing a diverse set of insights that collectively inform the anomaly investigation. Tool execution is described in more detail below with respect to FIGS. 2 and 3.

[0029] The outputs generated by the data processing tools, along with the retrieved data records and the anomalous data value, may then be provided as context to the report generation engine 118. The report generation engine 118 may interface with language processing machine learning model 150, which is configured to synthesize the contextual information into a structured output. For example, report generation engine 118 may provide a prompt to language processing machine learning model 150 that may include category-specific instructions, anomaly scoring schemes, guidelines or hints for interpreting the data, and / or the like. Using these instructions and context included in the prompt, language processing machine learning model 150 may generate a comprehensive report (e.g., structured output 126) that includes both a summary explanation and a detailed analysis of the anomaly that identifies one or more root cause records and / or, in some aspects, describes one or more contributing factors. An example of the types of information that may be included in structured output 126 is described in more detail below with respect to FIG. 4.

[0030] Language processing machine learning model 150 may be configured to transform heterogeneous analytical context into structured, explanatory outputs according to the prompt. The model may ingest retrieved records, outputs from multiple analytic tools, metadata describing a detected anomaly, and / or the like, and may process these inputs in order to generate a concise summary and a detailed explanation that identify likely root-cause records, contributing patterns, confidence indicators, and / or optional next actions. The prompt that guides operation of the model may be a role-specific and / or domain-specific prompt that constrains terminology, output schema, and severity scoring logic, enabling the model to emit key-value fields and sections in a deterministic order and / or manner in order to facilitate downstream rendering, processing, and / or storage.

[0031] Language processing machine learning model 150 may generate structured output 126 based on the inputs it receives (e.g., the composite context discussed above). Structured output 126 may be transmitted to client 120 for display via user interface 122. Thus, the user may be presented with a clear, actionable report that not only highlights the detected anomaly but also provides a detailed explanation and supporting evidence, enabling rapid understanding and informed decision-making. The system may further allow users to provide feedback on the accuracy or relevance of the report, which can be used to retrain language processing machine learning model 150 (e.g., through a supervised learning process as described below, such as with respect to FIG. 3) and thereby improve future performance.

[0032] Through the coordinated operation of various components, anomaly detection agent 112 delivers a robust, automated solution for anomaly detection and explanation, transforming raw data into meaningful and actionable insights in a seamless automated manner.Example Anomaly Detection Workflows

[0033] FIG. 2 is a block diagram 200 illustrating a workflow related to automated detection and analysis of anomalies in structured data, according to aspects of the present disclosure. Block diagram 200 includes anomaly detection agent 112 of FIG. 1.

[0034] The workflow, which may be initiated based on a request (e.g., request 124 of FIG. 1) or some other condition (e.g., expiration of an amount of time), begins with time series data 202 bring processed at time series anomaly detection 204 to determine whether any value (or values) in time series data 202 deviates from an expected range, pattern, or the like (e.g., based on historical data). Time series data 202 generally represents a series of values over a period of time corresponding to one or more particular variables for which anomaly detection is to be performed.

[0035] Time series anomaly detection 204 (e.g., performed by time series analysis engine 114 of FIG. 1) may involve analyzing sequential values for a target metric over a configured historical window to determine whether one or more values depart from expected behavior. For example, the time series analysis may involve application of rules, statistical analysis, and / or the like. In one embodiment, the time series analysis engine computes reference statistics over a rolling window, such as mean, median, standard deviation, interquartile range, seasonally adjusted baselines, and / or the like, and then evaluates a given value (e.g., the most recent value or any other value) against these references using deviation scores (e.g., z-score, modified z-score, median absolute deviation, or the like). To handle recurring patterns, the time series analysis engine may first decompose the series into trend, seasonal, and residual components using techniques such as STL (Seasonal and Trend decomposition using Loess) decomposition, Holt-Winters smoothing, autoregressive modeling, or the like, and identify anomalies primarily in the residual component to avoid false positives caused by seasonality. The decision logic applied at time series anomaly detection 204 may incorporate adaptive thresholds derived from confidence intervals of a fitted model, and may apply change-point detection to capture abrupt level shifts distinct from single-point outliers. In some aspects, time series anomaly detection 204 may output an anomaly score and / or classification (e.g., spike, drop, level shift, or the like), along with explanatory features such as an expected value, forecast error, seasonality-adjusted delta, confidence bounds, and / or the like, which downstream processing may use for targeted context retrieval and tool selection. It is noted that these techniques are included as examples, and other types of anomaly detection algorithms and / or techniques may be used as time series anomaly detection 204.

[0036] When an anomaly is identified at time series anomaly detection 204, the system flags an anomalous data value 206 and triggers context retrieval 208. At context retrieval 208, the system selectively gathers relevant data 210 based on configured relationships among data categories and record types, ensuring that only evidence pertinent to the anomaly is assembled for subsequent analysis. For example,

[0037] Context retrieval 208 (e.g., performed by record retrieval engine 116 of FIG. 1) involves selectively assembling a corpus of records that are relationally relevant to an anomalous data value identified at time series anomaly detection 204. For example, upon receiving anomaly metadata (e.g., data category, record type, timestamp range, anomaly classification, and / or the like), the record retrieval engine may consult configured relationships between data categories and record types to determine which one or more record types to retrieve, and may consult a relational schema (e.g., relational data schema 160 of FIG. 1) to retrieve records of those one or more records types that are relationally connected in the relational data schema to the anomalous data value (or an entity associated with the anomalous data value and / or with one another). The record retrieval engine may then issue targeted queries that span direct and indirect links (for example, parent-child, reference, and temporal associations) and constrains results to a configurable horizon (such as the prior N periods) to capture seasonality and / or recent changes while controlling record volume.

[0038] In some aspects, relationships between data categories and record types are defined through a fixed, configured mapping that associates each supported category with a set of relevant record types. In other aspects, the relationships are embodied in a relational schema or graph-structured store that encodes parent-child references, cross-record identifiers, temporal associations, and / or the like. These approaches may provide relationship-aware retrieval that selectively fetches records linked to the anomalous value while avoiding broad table scans.

[0039] In some aspects, context retrieval 208 involves normalizing heterogeneous records into a common schema, pruning low-utility attributes, attaching provenance tags and timestamps, resolving acronyms to full phrases, and / or the like. Context retrieval 208 may also involve computing lightweight features during extraction, such as linkage counts, temporal deltas, uniqueness hashes, and / or the like, to support downstream tool selection and prioritization. By fetching only contextually linked artifacts rather than entire tables or ad hoc exports, context retrieval 208 reduces noise, limits compute and input / output (I / O) overhead, and delivers a precise evidence set for subsequent analysis and synthesis.

[0040] With the contextual corpus retrieved as relevant data 210, anomaly detection agent 112 performs tool execution 212 (e.g., which may be performed by tool execution engine 118 of FIG. 1) to apply multiple specialized analyses to the retrieved data. Each tool may be a data processing tool tailored to detect a distinct pattern, irregularity, or insight, and the tools operate to generate tool outputs 214 that quantify indicators such as temporal shifts, duplication likelihood, distributional outliers, cross-record inconsistencies, and / or the like. Based on the data category of the anomalous data value, metadata from context retrieval 208, and / or the like, the tool execution engine may select a set of applicable tools and launch them (e.g., in parallel with one another and / or in parallel with execution of one or more other tools that are selected and launched for one or more other detected anomalous values, to minimize latency). Each tool implements automated logic tailored to detect a distinct pattern, irregularity, or insight, such as detecting near-duplicate records using similarity hashes, identifying temporal irregularities via inter-event interval analysis, highlighting distributional outliers with robust statistics, surfacing cross-record inconsistencies through referential and constraint checks. The tools operate over scoped subsets of the retrieved records, honor a configurable time horizon, and / or may produce normalized outputs include information such as per-record indicators, confidence measures, aggregate summaries, and / or the like. Applicable tools may include, by way of example, a payment velocity analyzer that computes days-to-settlement distributions and flags deviations, a duplicate record detector that uses exact keys and / or fuzzy similarity hashes to surface near-duplicates, an advanced timing detector that identifies records applied prior to expected creation or due-date events, a collections rate calculator that aggregates paid vs. outstanding ratios over configurable horizons, a behavior analyzer that tallies repeat-entity patterns, overdue incidence, and / or at-risk indicators, and / or the like. A deterministic post-processor may validate each tool's metrics, resolves conflicts across tools (e.g., duplicate vs. outlier flags), and normalize outputs into a unified schema with per-record indicators, aggregate summaries, confidence measures, and / or machine-readable features.

[0041] For example, such a lightweight post-processor within anomaly detection agent 112 may validate tool outputs, resolve conflicts, and / or convert metrics into a common schema suitable for downstream consumption (e.g., by the language processing machine learning model). The resulting set of tool outputs (e.g., after such post-processing in some aspects) may provide precise, machine-readable features that the language processing machine learning model can evaluate in order to generate a structured output while also enabling auditing and repeatability.

[0042] Anomaly detection agent 112 may then initiate LLM execution 216 (which may be performed by report generation engine 118 of FIG. 1), where tool outputs 214, the curated relevant data 210, and anomalous data value 206 are presented as a composite context to a language processing machine learning model such as an LLM. Operation and training the model are described in more detail below with respect to FIG. 3. The language processing machine learning model may be guided by one or more prompts 290 that provide role-specific and / or domain-specific instructions, define a target schema, constrain severity scoring, include terminology to maintain determinism and consistency, include guidelines or hints for performing the requested generation task, and / or the like.

[0043] For example, prompt(s) 290 may comprise a layered instruction set that governs the model's investigation and reporting behavior, such as including a system prompt that defines objectives, tone, terminology constraints, output schema, and / or severity scoring logic, and one or more account-specific or category-specific prompts that encode rules, anomaly taxonomies, domain hints tailored to the detected context, and / or the like. The instructions may specify deterministic structure for the model's output, such as instructing the model to generate a short summary and a detailed report with ordered sections, key-value fields, root-cause identification, and / or the like, while constraining vocabulary to domain terms and mapping anomaly types and decision criteria to a scoring matrix that reflects impact and urgency. The category-specific prompts may enumerate canonical anomaly classes for different data categories (e.g., increase, decrease, negative values, domain-specific subtypes, and / or the like), provide concrete examples and decision rules for the model to apply to contextual artifacts, include guidance to consider seasonality, aging or timing relationships, duplication cues, and cross-record inconsistencies, and / or the like. The instructions may further define how curated records and tool outputs are passed in a normalized format, such as comma separated value (CSV) or schema-conformant tables with selected fields and computed features, and direct the model to ignore low-utility attributes and / or standardized boilerplate (e.g., prepopulated memos) while citing only supported evidence.

[0044] Prompt(s) 290 may instruct classification, scoring, and causal synthesis from the quantitative and / or qualitative signals emitted by the tools, may instruct the model to generate confidence indications and rationale, and / or may enforce consistent formatting for downstream rendering. Prompt(s) 290 may be developed from subject-matter expertise and customer research, may be logged for auditing, may be varied per category to select applicable tools and heuristics, and may be tuned to balance determinism in structured sections with concise narrative explanation in the report.

[0045] In some aspects, prompt(s) 290 may enforce deterministic field names and / or ordering in the structured output. For example: Summary, AnomalyType, Severity, RootCauseRecords, ContributingFactors, EvidenceCitations, Confidence, NextActions may be listed as such deterministic field names in a prompt. Prompts may be logged alongside the associated contextual artifacts and generated outputs to support auditing and reproducibility. Category-specific prompts can be updated under configuration control, with version identifiers persisted to ensure traceability and auditability over time.

[0046] Using these instructions and other inputs, the language processing machine learning model may synthesize findings and produce structured output 220. For example, structured output 220 may include a summary 222 and a detailed report 224. Summary 222 may distill core cause(s) and / or impact(s) of the anomaly for rapid comprehension, while detailed report 224 may enumerate supporting record(s), contributing pattern(s), confidence indicator(s), root cause(s), optional next step(s), and / or the like. An example of structured output 220 is described in more detail below with respect to FIG. 4.

[0047] The workflow described with respect to FIG. 2 materially improves upon prior techniques in several ways. Conventional anomaly detection often relies on static thresholds or single-pass statistical checks that yield uncontextualized alerts and require manual investigation to determine root cause. In contrast, FIG. 2 depicts a pipeline that automatically transitions from detection to targeted contextual retrieval, applies a suite of complementary tools to produce quantitative evidence (e.g., in an efficient parallel execution scheme), and then uses a schema-constrained language processing machine learning model to synthesize a coherent explanation based on category-specific prompts. The selective context retrieval reduces noise, reduces computing resource utilization, and prevents model distraction, the multi-tool analysis provides richer and more reliable signals than single-method approaches, and the guided generation with structured prompts ensures consistent and actionable outputs suitable for downstream storage, user interface rendering, and auditing. As a result, the disclosed flow increases accuracy and reproducibility, delivers user-ready explanations instead of raw alerts, reduces anomaly investigation latency, enables faster and more reliable remediation decisions, and the like.

[0048] FIG. 3 is a block diagram 300 illustrating a workflow related to automated detection and analysis of anomalies in structured data, according to aspects of the present disclosure. Block diagram 300 may relate to functionality performed by anomaly detection agent 112 of FIG. 1, such as providing additional detail with respect to the workflow described above with to FIG. 2.

[0049] The workflow in block diagram 300 starts when a user 301 provides input requesting anomaly detection (indicated by element 302), which causes invocation of an anomaly detection application programming interface (API) at element 304. The API may expose one or more methods that, when invoked, initiate an anomaly detection process, such as performed by anomaly detection agent 112 of FIG. 1.

[0050] In some aspects, an interface may expose a detection API that returns a list of anomalous values or categories and associated metadata, and / or an investigation API (e.g., which may be invoked at element 304) that, for each selected anomaly, orchestrates retrieval, preprocessing, tool execution, prompt assembly, model inference, and report production. Such a system may enforce latency budgets via top-N selection, scoped retrieval horizons (e.g., prior thirteen periods or some other configured number of periods), parallelism across anomalies and within tool execution, and / or the like. Internal services may be decoupled by queues to absorb burst traffic while maintaining bounded response times for user-initiated investigations.

[0051] Based on the invocation of the API, the anomaly detection agent performs time-series analysis over a configured time window to identify anomalous data values. In certain aspects, the window spans multiple prior periods (e.g., up to thirteen months, as one example) to capture seasonality and recurring obligations, allowing the anomaly detection agent to distinguish genuine spikes or drops from regular annual or quarterly patterns. When the anomaly detection agent flags one or more anomalous data values, the workflow enters a portion (element 350) that processes each anomalous value independently and, in some implementations, concurrently (e.g., in parallel) for reduced end-to-end latency.

[0052] In some aspects, upon identifying multiple anomalies within the configured period, the anomaly detection agent may select a top-N subset (e.g., five to ten or another number of anomalous categories, such as in being selected in order of severity, deviation score, or the like, such as selecting higher severity or higher deviation anomalies over lower severity or lower deviation anomalies) for immediate investigation. The anomaly detection agent may then orchestrate parallel execution at one or more levels, such as processing the selected anomalous data values end-to-end concurrently with one another, and within each anomalous data value (in some aspects), concurrently executing the applicable data processing tools for that particular anomaly on scoped subsets of retrieved records. Such parallelism may reduce end-to-end latency while maintaining deterministic post-processing and schema-conformant outputs.

[0053] For each anomalous data value, the system first determines whether the associated data category (e.g., the data category of the anomalous data value) is supported (indicated by element 306). If unsupported, the branch ends (indicated by element 308). If supported (e.g., if the anomaly detection agent is configured to handle anomalies in that data category), the system performs targeted context retrieval by fetching recent related transactions from the configured period (indicated by element 310). Retrieval may be driven by configured relationships between data categories and record types and / or other relational data encoded in a relational schema (e.g., knowledge graph), ensuring that the assembled evidence is both complete and relevant.

[0054] For example, an anomalous value in a data category associated with receivables may lead to fetching linked records such as issued documents and settlements, while an anomalous value in a data category associated with expenses may prompt fetching purchase records and disbursements. Such relational retrieval avoids broad table scans and minimizes input / output overhead by traversing specific references (e.g., parent-child links, cross-record identifiers, temporal associations, and / or the like) and constraining the horizon to the prior N periods, thereby gathering the artifacts most likely to be useful in analyzing and / or explaining the anomaly.

[0055] Once records are retrieved, the system may format and process the records (indicated at element 312) to produce a normalized, model-ready corpus. This stage may involve removing boilerplate and / or low-utility attributes, trimming and / or abbreviating repetitive descriptions, resolving acronyms, attaching provenance, timestamps, and / or the like. The system may also compute lightweight features, such as temporal deltas relative to expected dates, linkage counts between records, uniqueness hashes for duplicate detection, outlier scores, and / or the like to support downstream tool selection and prioritization. Rules-based preprocessing may ensure that only salient fields are preserved, reducing token budget pressure and improving the quality of the resulting output generated by the language processing machine learning model.

[0056] Furthermore, the processing at element 312 may include selection and execution of one or more tools (e.g., in parallel with one another and / or with one or more tools executed for one or more other anomalous values), as described above. Outputs from such tools may be included in a context corpus provided to a language processing machine learning model.

[0057] The processing at element 312 may apply rules (e.g., to retrieved records and / or tool outputs) that remove standardized boilerplate added by upstream systems, abbreviate common phrases, eliminate repeated consecutive words, and / or the like. Such a process may resolve acronyms to canonical terms, trim long memos to salient phrases, deduplicate repeated line-item descriptors, attach provenance and timestamps, and / or the like. Fields may be normalized to a consistent schema and low-utility attributes may be pruned to respect token budgets. Such preprocessing may produce CSV or table-structured artifacts that include selected fields and computed features such as deviation scores, temporal deltas, linkage counts, uniqueness hashes, outlier magnitudes, and / or the like.

[0058] The system may then fetch an anomaly prompt containing category-specific instructions (indicated at element 314). Such prompt(s) may define objectives, tone, terminology constraints, a target output schema, severity scoring logic, hints, and / or the like, and may enumerate canonical anomaly classes, decision rules, and / or the like tailored to the detected context. Such a prompt may also specify how curated records and tool outputs are passed to the model (e.g., CSV or schema-conformant tables) and / or instruct the model to ignore standardized boilerplate while citing only supported evidence.

[0059] The following is an example of category specific instructions that may be included in a prompt that is specific to the category of an “accounts receivable” anomaly:Account-Specific RulesAccounts Receivable (AR)Context: AR balance is month over month total of unpaid sales

[0061] Terminology: Use “balance” for AR, “invoice” for SALE_INVOICE, “payments” for SALE_INVOICE_PAYMENT

[0062] Types of Anomalies:1. Increase in AR Balance

[0063] Score 0: Increase in sales (business growth)

[0064] Score 1: Decrease in payments (not receiving payments as expected)

[0065] Score 2: Past due payments (arAging>0)2. Decrease in AR Balance

[0066] Score 0: Increase in payments (paying off old invoices)

[0067] Score 1: Decrease in sales (not generating sales as expected)

[0068] Score 2: Missing sales from repeated payees3. Negative AR Balance

[0069] Score 2: Payment received without invoice

[0070] Score 2: Payment applied before invoice creationHints:

[0071] Check if payment's openBalance is 0

[0072] Use paymentIds to find related payment transactions

[0073] Calculate payment time for repeat payees

[0074] Flag payments not received within due date

[0075] The following is an example of category specific instructions that may be included in a prompt that is specific to the category of an “accounts payable” anomaly:Accounts Payable (AP)Context: AP balance is month over month total of unpaid expenses

[0077] Terminology: Use “balance” for AP, “purchase invoice” for PURCHASE_INVOICE, “payments” for PURCHASE_INVOICE_PAYMENTTypes of Anomalies:1. Increase in AP Balance

[0078] Score 0: Increase in purchases (business investment)

[0079] Score 1: Decrease in payments (not paying vendors as expected)

[0080] Score 2: Past due payments (arAging>0)2. Decrease in AP Balance

[0081] Score 0: Increase in payments (paying off old invoices)

[0082] Score 1: Decrease in purchases (cutting back on expenses)

[0083] Score 2: Missing purchases from repeated vendors3. Negative AP Balance

[0084] Score 2: Payment made without purchase invoice

[0085] Score 2: Payment applied before purchase invoice creationHints:

[0086] Check if payment's openBalance is 0

[0087] Use paymentIds to find related payment transactions

[0088] Calculate payment time for repeat vendors

[0089] Flag payments not made within due date

[0090] The following is an example of category specific instructions that may be included in a prompt that is specific to the category of an “income” anomaly:IncomeContext: Focus on revenue and expenses

[0092] Terminology: Use “total” for income, “revenue” for INVOICE, “expense” for RECEIVED_MONEYTypes of Anomalies:1. Decrease in Revenue

[0093] Score 1: Decrease in INVOICE transactions

[0094] Score 2: Missing revenue from repeated clients

[0095] Score 1: Unusually low amounts

[0096] Score 2: Multiple voided large transactions2. Increase in Expenses

[0097] Score 1: Increase in RECEIVED_MONEY transactions

[0098] Score 2: Duplicate expenses

[0099] Score 1: Large one-time expenses with clear purpose

[0100] Score 2: Unusual expenses without description3. Decrease in Profit Margin

[0101] Score 2: Decreasing revenue and increasing expenses

[0102] Score 1: Shift to lower-margin activities

[0103] Score 1: Stable revenue but increasing expenses4. Negative Profit

[0104] Score 2: Expenses exceed revenue

[0105] Score 1: Seasonal factors

[0106] Score 1: One-time expenses

[0107] Score 2: Recurring or unexplained losses

[0108] With context and instructions assembled, the anomaly detection agent may call the language processing machine learning model to investigate (indicated at element 316). In some aspects, the anomaly detection agent provides the model with the prompt(s), the anomalous data value, the records (e.g., which may have been preprocessed before being provided to the model as described above), and the outputs from specialized analysis tools that were executed over the retrieved data (e.g., for duplicate detection, temporal irregularity analysis, distributional outlier checks, cross-record consistency checks, and / or the like). The language processing machine learning model may synthesizes these input signals in order to generate a structured report (indicated at element 318), producing in some aspects a short summary for rapid comprehension and a detailed explanation that identifies root-cause records, contributing patterns, confidence indicators, optional next actions, and / or the like.

[0109] In various embodiments, the model (e.g., language processing machine learning model 150 of FIG. 1) may be implemented as a transformer-based generative language model, such as an encoder-decoder or decoder-only transformer configured for conditional generation given a composite prompt and context. Alternative embodiments include the language processing machine learning model being implemented as a distilled transformer optimized for domain-specific inference to reduce latency and memory footprint, a retrieval-augmented generator that consumes both the prompt and retrieved artifacts via attention, an instruction-tuned sequence-to-sequence model that maps structured and semi-structured inputs to a normalized, schema-conformant report, and / or the like. These are included as example, and any type of machine learning model capable of processing natural language inputs and generating natural language outputs may be used as the language processing machine learning model. In resource-constrained environments, a non-transformer sequence model, such as a recurrent neural network with attention, may be utilized. In certain examples, the model may be an LLM or small language model.

[0110] In some aspects, the language processing machine learning model may receive a composite context built by concatenating the instructions and / or context form the prompt with normalized artifacts including summaries from analytic tools, selected record fields, calculated features such as outlier scores and temporal deltas, and / or, in some cases, exemplars demonstrating desired reasoning and formatting. This composite context may be tokenized with domain-aware vocabularies and controlled via maximum-token budgets. Lower-importance fields may be truncated or summarized by pre-processors to fit within the inference budget of the language processing machine learning model without compromising essential evidence.

[0111] In some cases, the model (e.g., language processing machine learning model 150 of FIG. 1) may have been trained through one or more supervised learning processes. Such training may, for example, follow a two-stage process comprising pretraining (e.g., general training) and task-specific fine-tuning. During pretraining, the model may be trained using self-supervised objectives on large corpora of text, code, semi-structured data, and / or the like (e.g., such objective may include next-token prediction for decoder-only architectures or masked / denoising objectives for encoder-decoder models) to establish general linguistic and reasoning capabilities. The pretrained model may then be fine-tuned via supervised learning on one or more domain-specific datasets containing pairs of inputs (e.g., tool outputs, retrieved records and associated anomalous values, prompts, etc.) associated with labels indicating target structured reports authored or validated by subject-matter experts (e.g., after being manually or automatically generated). During training, outputs generated by the model based on training inputs may be compared to labels associated with the training inputs, and one or more parameters of the model may be adjusted based on such comparison, such as based on evaluating a loss function that penalizes deviations from target tokens and / or schema constraints. In some aspects, auxiliary losses can be applied to enforce section boundaries, structured-field outputs, and / or the like. Where expert preferences are available, preference-based optimization such as reinforcement learning from human feedback or direct preference optimization may be employed, such as using ranked candidate reports to encourage factual grounding, concision, and proper severity scoring.

[0112] The model may be configured based on such training and based on the inputs it receives to generate a structured report as described herein. Once generated by the language processing machine learning model based on the inputs, the structured report may be stored (indicated at element 320), such as for auditability and later retrieval for subsequent processing, and may be displayed via the user interface (indicated at element 360), enabling immediate understanding and follow-up. An example of such a display is described below with respect to FIG. 4. For instance, generated structured outputs may be stored in a persistent data store with associated prompts, context artifacts, and tool outputs to enable later review, auditing, model training, and / or the like. The user interface may render a concise summary within an insight section and provide navigation to a detailed report view. The user interface may capture user feedback on accuracy and relevance, and such signals may be curated and periodically used for supervised fine-tuning or preference optimization of the language processing machine learning model. In some aspects, automated actions performed by the system based on a generated structured report may include storage, display, and feedback collection while in other aspects automated actions performed by the system based on a generated structured report may include automated corrective action (e.g., after presenting a recommended action to the user and receiving user confirmation to proceed, or automatically without such confirmation). For example, automated corrective action performed based on a generated structured report may include automatic modification to a category of an expense or other value, automatic blocking of traffic to or from a particular destination, automatic delay or blocking of one or more transactions, automatic termination of a process or application, automatic initiation of a retraining process for a machine learning model, and / or the like. In many cases it may be preferable to present a recommendation of such an action via the user interface and perform the action only upon receiving user confirmation of the action (e.g., via a user interface control that, when selected, causes initiation of the action to be automatically performed).

[0113] The workflow described with respect to FIG. 3 provides several technical improvements over prior techniques. Traditional approaches often stop at raising threshold-based alerts and leave root-cause investigation to manual effort. In contrast, FIG. 3 shows an automated pipeline that couples anomaly detection with relationship-aware retrieval, category-specific preprocessing, and parallel analysis tools, followed by schema-constrained language model synthesis. Relationship-aware retrieval reduces noise and compute by fetching only those records linked to the anomaly based on a relational data schema, formatting and rules-based pruning reduce latency and increase determinism for downstream inference, category-specific prompts codify expert knowledge to drive consistent classification and severity scoring as well generation of actionable insights, and executing multiple tools in parallel (e.g., across multiple anomalous values or for a single anomalous value) improves efficiency and further reduces latency while improving the quality of the structured report that is ultimately produced by automatically extracting targeted insights and evidence. By generating an immediately usable structured report that pinpoints root-cause records and explains contributing factors, unlike prior techniques, aspects of the present disclosure remove the need for serial, manual drill-downs, improve reproducibility and auditability, and delivers actionable insights that can be rendered, stored, and iteratively refined with user feedback, all in a low-latency and resource-efficient manner that improves the functioning of the computing applications involved.Example User Interface Screen

[0114] FIG. 4 illustrates example user interface screen 410, displayed on a device 400, related to automated detection and analysis of anomalies in structured data, according to aspects of the present disclosure. For example, user interface screen 410 may represent an example screen of user interface 122 of FIG. 1, and device 400 may represent an example of client 120 of FIG. 1.

[0115] Example user interface screen 410 shows how a user may request initiation of anomaly detection on a structured data set, and how a structured report generated by an anomaly detection agent (e.g., based on such a request or some other triggering condition) may be displayed.

[0116] User interface screen 410 is rendered on device 400 for presenting the structured output generated by the anomaly detection system. The interface includes a control 412 labeled “Run Anomaly Detection,” which, when selected, initiates a workflow that involves time-series analysis, targeted context retrieval, tool execution, and language processing machine learning model based output generation, as described above with respect to FIGS. 1-3. Upon completion of such a workflow, the interface may display an anomaly section 450 containing a concise summary 452 of the detected irregularity for a particular data category. In the example shown, the summary indicates that “Advertising and Marketing increased by 12% ($3,202) from April to May,” reflecting the system's computation of a deviation relative to prior periods.

[0117] Beneath the summary, the user interface presents a root cause section 454 that provides a natural language explanation from the structured output. In the example, the system attributes the increase to “a single payment to ABC Corp,” and further explains that the likely driver is a categorization inconsistency (e.g., amounts categorized as Advertising and Marketing rather than a more typical category such as Supplies and Equipment). This narrative is generated according to prompt-constrained formatting and cites specific records, enabling consistent mapping to underlying evidence while keeping the on-screen explanation succinct and user friendly. In some aspects, the information in root cause section 454 may be considered part of the summary, which also includes the information in concise summary 452. In other aspects, the information in root cause section 454 may be considered part of the detailed report.

[0118] The anomaly section 450 also includes a control 456 labeled “See Detailed Report,” which, when selected, causes a full report view to be displayed, and the full report may enumerate supporting records, contributing patterns, confidence indicators, root cause(s), optional next actions, and / or the like. In some implementations, the detailed report presents ordered sections and key-value fields in a schema-conformant format suitable for downstream storage and auditing. The interface may further capture user feedback on accuracy or relevance of the summary and / or detailed report, and may persist the generated report along with associated feedback (e.g., as a training data instance), enabling later retrieval and iterative improvement of model performance through supervised learning and / or through inclusion of the training data instance as a few-shot learning example or in-context learning example that is provided to the model with a subsequent set of inputs in connection with generating a subsequent structured report. Through this presentation, FIG. 4 demonstrates how the system surfaces an immediately actionable summary while providing a path to deeper, evidence-backed analysis without requiring the user to perform manual drill-downs or initiate further processes.Example Processing Systems

[0119] FIG. 5A illustrates an example system 500A with which embodiments of the present disclosure may be implemented. For example, system 500A may be configured to perform aspects of functionality described above. In one example system 500A corresponds to client 120 of FIG. 1.

[0120] System 500A includes a central processing unit (CPU) 502, one or more I / O device interfaces 504 that may allow for the connection of various I / O devices (e.g., keyboards, displays, mouse devices, pen input, etc.) to the system 500A, network interface 506, a memory 508, and an interconnect 512. It is contemplated that one or more components of system 500A may be located remotely and accessed via a network 510. It is further contemplated that one or more components of system 500A may comprise physical components or virtualized components.

[0121] CPU 502 may retrieve and execute programming instructions stored in the memory 508. Similarly, the CPU 502 may retrieve and store application data residing in the memory 508. The interconnect 512 transmits programming instructions and application data, among the CPU 502, I / O device interface 504, network interface 506, and memory 508. CPU 502 is included to be representative of a single CPU, multiple CPUs, a single CPU having multiple processing cores, and other arrangements.

[0122] Additionally, the memory 508 is included to be representative of a random access memory or the like. In some embodiments, memory 508 may comprise a disk drive, solid state drive, or a collection of storage devices distributed across multiple storage systems. Although shown as a single unit, the memory 508 may be a combination of fixed and / or removable storage devices, such as fixed disc drives, removable memory cards or optical storage, network attached storage (NAS), or a storage area-network (SAN).

[0123] As shown, memory 508 includes a user interface 514, which may be representative of user interface 122 of FIG. 1. For example, a user may interact with user interface 514 to request an anomaly detection process, receive structured reports, provide feedback with respect to structured reports, perform other actions based on or in connection with anomaly detection and / or structured reports, and / or the like.

[0124] FIG. 5B illustrates another example system 500B with which embodiments of the present disclosure may be implemented. For example, system 500B may correspond to server 110 of FIG. 1, and may be configured to perform aspects of the workflows described above.

[0125] System 500B includes a CPU 532, one or more I / O device interfaces 534 that may allow for the connection of various I / O devices (e.g., keyboards, displays, mouse devices, pen input, etc.) to the system 500B, network interface 536, a memory 538, and an interconnect 542. It is contemplated that one or more components of system 500B may be located remotely and accessed via a network 510. It is further contemplated that one or more components of system 500B may comprise physical components or virtualized components.

[0126] CPU 532 may retrieve and execute programming instructions stored in the memory 538. Similarly, the CPU 532 may retrieve and store application data residing in the memory 538. The interconnect 542 transmits programming instructions and application data, among the CPU 532, I / O device interface 534, network interface 536, and memory 538. CPU 532 is included to be representative of a single CPU, multiple CPUs, a single CPU having multiple processing cores, and other arrangements.

[0127] Additionally, the memory 538 is included to be representative of a random access memory or the like. In some embodiments, memory 538 may comprise a disk drive, solid state drive, or a collection of storage devices distributed across multiple storage systems. Although shown as a single unit, the memory 538 may be a combination of fixed and / or removable storage devices, such as fixed disc drives, removable memory cards or optical storage, network attached storage (NAS), or a storage area-network (SAN).

[0128] As shown, memory 538 includes an application 552, which may be representative of a computing application that performs anomaly detection functionality, such as an application that includes data storage, processing, and / or analysis functionality. In some aspects, user interface 514 of FIG. 5A provides user interface screens corresponding to application 552.

[0129] As shown, memory 538 further includes anomaly detection agent 554, language processing machine learning model 556, relational data schema 558, and tools 560, which may be representative of anomaly detection agent 112, language processing machine learning model 150, relational data schema 160, and tools 170 of FIG. 1. In some aspects, anomaly detection agent 554 may be part of application 552, or may be separate from application 552.

[0130] Memory 538 further includes records 562, which may include relevant data 210 of FIG. 2 and / or other records that may be retrieved as described herein in connection with anomaly detection and analysis. Memory 538 further includes structured outputs 564, which may include structured output 126 of FIG. 1, structured output 220 of FIG. 2, the structured report displayed on user interface screen 410 of FIG. 4, and / or the like. While not shown, memory 538 may further include a model training component that performs, training, retraining, fine-tuning, and / or the like for language processing machine learning model 556, as described above. In other aspects, such training operations may be performed on a separate device.

[0131] It is noted that systems 500A and 500B are included as examples, and certain functionality described with respect to systems 500A and / or 500B and / or otherwise described herein may be implemented via more or fewer devices and / or components.EXAMPLE CLAUSES

[0132] Clause 1: A system for automated detection and analysis of anomalies in structured data, comprising: one or more processors; and a non-transitory computer readable medium storing instructions that, when executed by the one or more processors, cause the system to: detect an anomalous data value based on performing a time-series analysis on a data set corresponding to a configured period; automatically retrieve, based on the detecting of the anomalous data value, a set of related data records associated with the anomalous data value, wherein the retrieving is based on configured relationships between data categories and record types and based on relational data stored in a relational data schema; execute a plurality of data processing tools on the retrieved set of related data records, each data processing tool of the plurality of data processing tools being configured to identify a respective pattern or irregularity relevant to a data category of the anomalous value; provide outputs from the plurality of data processing tools based on the executing, together with the retrieved set of related data records, as context to a language processing machine learning model; generate, by the language processing machine learning model based on the context, a structured output that relates to the anomalous data value and that identifies one or more root cause records; and perform one or more actions based on the structured output.

[0133] Clause 2: The system of Clause 1, wherein the automatically retrieving of the set of related data records comprises using the relational data stored in the relational data schema to selectively retrieve only records that are relationally relevant to the detected anomalous data value and that correspond to one or more particular record types related to the data category of the anomalous data value as indicated in the configured relationships.

[0134] Clause 3: The system of any one of Clause 1-2, wherein the time-series analysis comprises computing a statistical deviation between the data value for the configured period and historical data values for one or more prior periods corresponding to the configured period.

[0135] Clause 4: The system of any one of Clause 1-3, wherein the executing of the plurality of data processing tools comprises one or more of: executing a first tool configured to detect duplicate records; executing a second tool configured to analyze temporal patterns; or executing a third tool configured to identify outlier values.

[0136] Clause 5: The system of any one of Clause 1-4, wherein the instructions, when executed by the one or more processors, further cause the system to pre-process and format the outputs from the plurality of data processing tools according to a set of rules prior to the providing of the outputs from the plurality of data processing tools, together with the retrieved set of related data records, as the context to the language processing machine learning model.

[0137] Claus 6: The system of any one of Clause 1-5, wherein the language processing machine learning model is configured to generate the structured output based on a prompt that includes account type specific instructions for analyzing the context.

[0138] Clause 7: The system of Clause 6, wherein the account type specific instructions in the prompt are selected based on an account type related to the anomalous data value and include one or more of: a terminology explanation; a list of anomaly types; an anomaly scoring scheme; or one or more hints for anomaly detection.

[0139] Clause 8: The system of Clause 7, wherein the generating, by the language processing machine learning model based on the context, the structured output comprises generating, according to the prompt, a summary explanation and a detailed report that identifies the one or more root cause records.

[0140] Clause 9: The system of any one of Clause 1-8, wherein the performing one or more actions based on the structured output comprises storing the structured output in a persistent data store for subsequent retrieval and review.

[0141] Clause 10: The system of any one of Clause 1-9, wherein the performing one or more actions based on the structured output comprises displaying the structured output via a user interface.

[0142] Clause 11: The system of Clause 10, wherein the user interface is configured to receive feedback regarding accuracy or relevance of the structured output, and wherein the feedback is used to retrain the language processing machine learning model.

[0143] Clause 12: The system of any one of Clause 1-11, wherein the instructions, when executed by the one or more processors, further cause the system to execute the plurality of data processing tools in parallel with one or more other sets of applicable data processing tools across multiple anomalous data values detected within the configured period.

[0144] Clause 13: A method for automated detection and analysis of anomalies in structured data, comprising: detecting an anomalous data value based on performing a time-series analysis on a data set corresponding to a configured period; automatically retrieving, based on the detecting of the anomalous data value, a set of related data records associated with the anomalous data value, wherein the retrieving is based on configured relationships between data categories and record types and based on relational data stored in a relational data schema; executing a plurality of data processing tools on the retrieved set of related data records, each data processing tool of the plurality of data processing tools being configured to identify a respective pattern or irregularity relevant to a data category of the anomalous value; providing outputs from the plurality of data processing tools based on the executing, together with the retrieved set of related data records, as context to a language processing machine learning model; generating, by the language processing machine learning model based on the context, a structured output that relates to the anomalous data value and that identifies one or more root cause records; and performing one or more actions based on the structured output.

[0145] Clause 14: The method of Clause 13, wherein the automatically retrieving of the set of related data records comprises using the relational data stored in the relational data schema to selectively retrieve only records that are relationally relevant to the detected anomalous data value and that correspond to one or more particular record types related to the data category of the anomalous data value as indicated in the configured relationships.

[0146] Clause 15: The method of any one of Clause 13-14, wherein the time-series analysis comprises computing a statistical deviation between the data value for the configured period and historical data values for one or more prior periods corresponding to the configured period.

[0147] Clause 16: The method of any one of Clause 13-15, wherein the executing of the plurality of data processing tools comprises one or more of: executing a first tool configured to detect duplicate records; executing a second tool configured to analyze temporal patterns; or executing a third tool configured to identify outlier values.

[0148] Clause 17: The method of any one of Clause 13-116, further comprising pre-processing and format the outputs from the plurality of data processing tools according to a set of rules prior to the providing of the outputs from the plurality of data processing tools, together with the retrieved set of related data records, as the context to the language processing machine learning model.

[0149] Clause 18: The method of any one of Clause 13-17, wherein the language processing machine learning model is configured to generate the structured output based on a prompt that includes account type specific instructions for analyzing the context.

[0150] Clause 19: The method of Clause 18, wherein the account type specific instructions in the prompt are selected based on an account type related to the anomalous data value and include one or more of: a terminology explanation; a list of anomaly types; an anomaly scoring scheme; or one or more hints for anomaly detection.

[0151] Clause 20: A non-transitory computer readable medium comprising instructions that, when executed by one or more processors of a computing system, cause the computing system to: detecting an anomalous data value based on performing a time-series analysis on a data set corresponding to a configured period; automatically retrieving, based on the detecting of the anomalous data value, a set of related data records associated with the anomalous data value, wherein the retrieving is based on configured relationships between data categories and record types and based on relational data stored in a relational data schema; executing a plurality of data processing tools on the retrieved set of related data records, each data processing tool of the plurality of data processing tools being configured to identify a respective pattern or irregularity relevant to a data category of the anomalous value; providing outputs from the plurality of data processing tools based on the executing, together with the retrieved set of related data records, as context to a language processing machine learning model; generating, by the language processing machine learning model based on the context, a structured output that relates to the anomalous data value and that identifies one or more root cause records; and performing one or more actions based on the structured output.ADDITIONAL CONSIDERATIONS

[0152] The preceding description provides examples, and is not limiting of the scope, applicability, or embodiments set forth in the claims. Changes may be made in the function and arrangement of elements discussed without departing from the scope of the disclosure. Various examples may omit, substitute, or add various procedures or components as appropriate. For instance, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Also, features described with respect to some examples may be combined in some other examples. For example, an apparatus may be implemented or a method may be practiced using any number of the aspects set forth herein. In addition, the scope of the disclosure is intended to cover such an apparatus or method that is practiced using other structure, functionality, or structure and functionality in addition to, or other than, the various aspects of the disclosure set forth herein. It should be understood that any aspect of the disclosure disclosed herein may be embodied by one or more elements of a claim.

[0153] The preceding description is provided to enable any person skilled in the art to practice the various embodiments described herein. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments. For example, changes may be made in the function and arrangement of elements discussed without departing from the scope of the disclosure. Various examples may omit, substitute, or add various procedures or components as appropriate. Also, features described with respect to some examples may be combined in some other examples. For example, an apparatus may be implemented or a method may be practiced using any number of the aspects set forth herein. In addition, the scope of the disclosure is intended to cover such an apparatus or method that is practiced using other structure, functionality, or structure and functionality in addition to, or other than, the various aspects of the disclosure set forth herein. It should be understood that any aspect of the disclosure disclosed herein may be embodied by one or more elements of a claim.

[0154] As used herein, a phrase referring to “at least one of” a list of items refers to any combination of those items, including single members. As an example, “at least one of: a, b, or c” is intended to cover a, b, c, a-b, a-c, b-c, and a-b-c, as well as any combination with multiples of the same element (e.g., a-a, a-a-a, a-a-b, a-a-c, a-b-b, a-c-c, b-b, b-b-b, b-b-c, c-c, and c-c-c or any other ordering of a, b, and c).

[0155] As used herein, the term “determining” encompasses a wide variety of actions. For example, “determining” may include calculating, computing, processing, deriving, investigating, looking up (e.g., looking up in a table, a database or another data structure), ascertaining and other operations. Also, “determining” may include receiving (e.g., receiving information), accessing (e.g., accessing data in a memory) and other operations. Also, “determining” may include resolving, selecting, choosing, establishing and other operations.

[0156] The methods disclosed herein comprise one or more steps or actions for achieving the methods. The method steps and / or actions may be interchanged with one another without departing from the scope of the claims. In other words, unless a specific order of steps or actions is specified, the order and / or use of specific steps and / or actions may be modified without departing from the scope of the claims. Further, the various operations of methods described above may be performed by any suitable means capable of performing the corresponding functions. The means may include various hardware and / or software component(s) and / or module(s), including, but not limited to a circuit, an application specific integrated circuit (ASIC), or processor. Generally, where there are operations illustrated in figures, those operations may have corresponding counterpart means-plus-function components with similar numbering.

[0157] The various illustrative logical blocks, modules and circuits described in connection with the present disclosure may be implemented or performed with a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device (PLD), discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any commercially available processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.

[0158] A processing system may be implemented with a bus architecture. The bus may include any number of interconnecting buses and bridges depending on the specific application of the processing system and the overall design constraints. The bus may link together various circuits including a processor, machine-readable media, and input / output devices, among others. A user interface (e.g., keypad, display, mouse, joystick, etc.) may also be connected to the bus. The bus may also link various other circuits such as timing sources, peripherals, voltage regulators, power management circuits, and other types of circuits, which are well known in the art, and therefore, will not be described any further. The processor may be implemented with one or more general-purpose and / or special-purpose processors. Examples include microprocessors, microcontrollers, DSP processors, and other circuitry that can execute software. Those skilled in the art will recognize how best to implement the described functionality for the processing system depending on the particular application and the overall design constraints imposed on the overall system.

[0159] If implemented in software, the functions may be stored or transmitted over as one or more instructions or code on a computer-readable medium. Software shall be construed broadly to mean instructions, data, or any combination thereof, whether referred to as software, firmware, middleware, microcode, hardware description language, or otherwise. Computer-readable media include both computer storage media and communication media, such as any medium that facilitates transfer of a computer program from one place to another. The processor may be responsible for managing the bus and general processing, including the execution of software modules stored on the computer-readable storage media. A computer-readable storage medium may be coupled to a processor such that the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. By way of example, the computer-readable media may include a transmission line, a carrier wave modulated by data, and / or a computer readable storage medium with instructions stored thereon separate from the wireless node, all of which may be accessed by the processor through the bus interface. Alternatively, or in addition, the computer-readable media, or any portion thereof, may be integrated into the processor, such as the case may be with cache and / or general register files. Examples of machine-readable storage media may include, by way of example, RAM (Random Access Memory), flash memory, ROM (Read Only Memory), PROM (Programmable Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), registers, magnetic disks, optical disks, hard drives, or any other suitable storage medium, or any combination thereof. The machine-readable media may be embodied in a computer-program product.

[0160] A software module may comprise a single instruction, or many instructions, and may be distributed over several different code segments, among different programs, and across multiple storage media. The computer-readable media may comprise a number of software modules. The software modules include instructions that, when executed by an apparatus such as a processor, cause the processing system to perform various functions. The software modules may include a transmission module and a receiving module. Each software module may reside in a single storage device or be distributed across multiple storage devices. By way of example, a software module may be loaded into RAM from a hard drive when a triggering event occurs. During execution of the software module, the processor may load some of the instructions into cache to increase access speed. One or more cache lines may then be loaded into a general register file for execution by the processor. When referring to the functionality of a software module, it will be understood that such functionality is implemented by the processor when executing instructions from that software module.

[0161] The following claims are not intended to be limited to the embodiments shown herein, but are to be accorded the full scope consistent with the language of the claims. Within a claim, reference to an element in the singular is not intended to mean “one and only one” unless specifically so stated, but rather “one or more.” Unless specifically stated otherwise, the term “some” refers to one or more. No claim element is to be construed under the provisions of 35 U.S.C. § 112(f) unless the element is expressly recited using the phrase “means for” or, in the case of a method claim, the element is recited using the phrase “step for.” All structural and functional equivalents to the elements of the various aspects described throughout this disclosure that are known or later come to be known to those of ordinary skill in the art are expressly incorporated herein by reference and are intended to be encompassed by the claims. Moreover, nothing disclosed herein is intended to be dedicated to the public regardless of whether such disclosure is explicitly recited in the claims.

Claims

1. A system for automated detection and analysis of anomalies in structured data, comprising:one or more processors; anda non-transitory computer readable medium storing instructions that, when executed by the one or more processors, cause the system to:detect an anomalous data value based on performing a time-series analysis on a data set corresponding to a configured period;automatically retrieve, based on the detecting of the anomalous data value, a set of related data records associated with the anomalous data value, wherein the retrieving is based on configured relationships between data categories and record types and based on relational data stored in a relational data schema;execute a plurality of data processing tools on the retrieved set of related data records, each data processing tool of the plurality of data processing tools being configured to identify a respective pattern or irregularity relevant to a data category of the anomalous value;provide outputs from the plurality of data processing tools based on the executing, together with the retrieved set of related data records, as context to a language processing machine learning model;generate, by the language processing machine learning model based on the context, a structured output that relates to the anomalous data value and that identifies one or more root cause records, wherein the language processing machine learning model generates the structured output according to a prompt that includes category-specific context analysis instructions for specific data categories, and wherein the structured output comprises a schema-conformant structured report having deterministic field names and ordering according to the prompt; andperform one or more actions based on the structured output.

2. The system of claim 1, wherein the automatically retrieving of the set of related data records comprises using the relational data stored in the relational data schema to selectively retrieve only records that are relationally relevant to the detected anomalous data value and that correspond to one or more particular record types related to the data category of the anomalous data value as indicated in the configured relationships.

3. The system of claim 1, wherein the time-series analysis comprises computing a statistical deviation between the data value for the configured period and historical data values for one or more prior periods corresponding to the configured period.

4. The system of claim 1, wherein the executing of the plurality of data processing tools comprises one or more of:executing a first tool configured to detect duplicate records;executing a second tool configured to analyze temporal patterns; orexecuting a third tool configured to identify outlier values.

5. The system of claim 1, wherein the instructions, when executed by the one or more processors, further cause the system to pre-process and format the outputs from the plurality of data processing tools according to a set of rules prior to the providing of the outputs from the plurality of data processing tools, together with the retrieved set of related data records, as the context to the language processing machine learning model.

6. The system of claim 1, wherein the specific data categories comprise account types, and wherein the category-specific context analysis instructions include account type-specific instructions for analyzing the context.

7. The system of claim 6, wherein the account type specific instructions are selected based on an account type related to the anomalous data value and include one or more of:a terminology explanation;a list of anomaly types;an anomaly scoring scheme; orone or more hints for anomaly detection.

8. The system of claim 7, wherein the schema-conformant structured report comprises, according to the prompt, a summary explanation and a detailed report that identifies the one or more root cause records.

9. The system of claim 1, wherein the performing one or more actions based on the structured output comprises storing the structured output in a persistent data store for subsequent retrieval and review.

10. The system of claim 1, wherein the performing one or more actions based on the structured output comprises displaying the structured output via a user interface.

11. The system of claim 10, wherein the user interface is configured to receive feedback regarding accuracy or relevance of the structured output, and wherein the feedback is used to retrain the language processing machine learning model.

12. The system of claim 1, wherein the instructions, when executed by the one or more processors, further cause the system to execute the plurality of data processing tools in parallel with one or more other sets of applicable data processing tools across multiple anomalous data values detected within the configured period.

13. A method for automated detection and analysis of anomalies in structured data, comprising:detecting an anomalous data value based on performing a time-series analysis on a data set corresponding to a configured period;automatically retrieving, based on the detecting of the anomalous data value, a set of related data records associated with the anomalous data value, wherein the retrieving is based on configured relationships between data categories and record types and based on relational data stored in a relational data schema;executing a plurality of data processing tools on the retrieved set of related data records, each data processing tool of the plurality of data processing tools being configured to identify a respective pattern or irregularity relevant to a data category of the anomalous value;providing outputs from the plurality of data processing tools based on the executing, together with the retrieved set of related data records, as context to a language processing machine learning model;generating, by the language processing machine learning model based on the context, a structured output that relates to the anomalous data value and that identifies one or more root cause records, wherein the language processing machine learning model generates the structured output according to a prompt that includes category-specific context analysis instructions for specific data categories, and wherein the structured output comprises a schema-conformant structured report having deterministic field names and ordering according to the prompt; andperforming one or more actions based on the structured output.

14. The method of claim 13, wherein the automatically retrieving of the set of related data records comprises using the relational data stored in the relational data schema to selectively retrieve only records that are relationally relevant to the detected anomalous data value and that correspond to one or more particular record types related to the data category of the anomalous data value as indicated in the configured relationships.

15. The method of claim 13, wherein the time-series analysis comprises computing a statistical deviation between the data value for the configured period and historical data values for one or more prior periods corresponding to the configured period.

16. The method of claim 13, wherein the executing of the plurality of data processing tools comprises one or more of:executing a first tool configured to detect duplicate records;executing a second tool configured to analyze temporal patterns; orexecuting a third tool configured to identify outlier values.

17. The method of claim 13, further comprising pre-processing and format the outputs from the plurality of data processing tools according to a set of rules prior to the providing of the outputs from the plurality of data processing tools, together with the retrieved set of related data records, as the context to the language processing machine learning model.

18. The method of claim 13, wherein the specific data categories comprise account types, and wherein the category-specific context analysis instructions include account type-specific instructions for analyzing the context.

19. The method of claim 18, wherein the account type specific instructions are selected based on an account type related to the anomalous data value and include one or more of:a terminology explanation;a list of anomaly types;an anomaly scoring scheme; orone or more hints for anomaly detection.

20. A non-transitory computer readable medium comprising instructions that, when executed by one or more processors of a computing system, cause the computing system to:detecting an anomalous data value based on performing a time-series analysis on a data set corresponding to a configured period;automatically retrieving, based on the detecting of the anomalous data value, a set of related data records associated with the anomalous data value, wherein the retrieving is based on configured relationships between data categories and record types and based on relational data stored in a relational data schema;executing a plurality of data processing tools on the retrieved set of related data records, each data processing tool of the plurality of data processing tools being configured to identify a respective pattern or irregularity relevant to a data category of the anomalous value;providing outputs from the plurality of data processing tools based on the executing, together with the retrieved set of related data records, as context to a language processing machine learning model;generating, by the language processing machine learning model based on the context, a structured output that relates to the anomalous data value and that identifies one or more root cause records, wherein the language processing machine learning model generates the structured output according to a prompt that includes category-specific context analysis instructions for specific data categories, and wherein the structured output comprises a schema-conformant structured report having deterministic field names and ordering according to the prompt; andperforming one or more actions based on the structured output.

Citation Information

Patent Citations

  • Process component recommendation method and related equipment

    CN121561493A

  • Science popularization content propaganda and education method and system based on intelligent interaction

    CN121662320A

  • System and method for adaptive semantic parsing and structured data transformation of digitized documents

    US12417214B1

  • Signal evaluation platform

    US12468696B1

  • Anomaly detection based on relationships between multiple time series

    US20180219889A1