Patentable/Patents/US-12591818-B2
US-12591818-B2

Forecasting and mitigating concept drift using natural language processing

PublishedMarch 31, 2026
Assigneenot available in USPTO data we have
Inventorsnot available in USPTO data we have
Technical Abstract

An embodiment for automatically forecasting and mitigating concept drift in machine learning models using natural language processing. The embodiment may automatically detect features and variables considered by a target machine learning model. The embodiment may automatically store and update a configurable corpus of relevant documents pertaining to a domain of the target machine learning model. The embodiment may automatically extract event types and corresponding time stamps from the configurable corpus of relevant documents. The embodiment may automatically correlate the extracted event types with drift detection probabilities to detect expected concept drift in the target machine learning model at a given timestamp. The embodiment may automatically generate an ensemble of replacement models based on probabilities derived from a historical database of models including corresponding keys given by event types. The embodiment may automatically retrain or replace the target machine learning model at the given timestamp.

Patent Claims

Legal claims defining the scope of protection, as filed with the USPTO.

1

. A computer-based method of automatically forecasting and mitigating concept drift in machine learning models using natural language processing comprising:

2

. The computer-based method of, wherein automatically extracting the event types and the corresponding time stamps from the configurable corpus of relevant documents further comprises:

3

. The computer-based method of, wherein automatically correlating the extracted event types with the drift detection probabilities to detect the expected concept drift in the target machine learning model at the given timestamp further comprises:

4

. The computer-based method of, wherein automatically correlating the extracted event types with the drift detection probabilities to detect the expected concept drift in the target machine learning model at the given timestamp further comprises:

5

. The computer-based method of, wherein automatically retraining or replacing the target machine learning model at the given timestamp at which the expected concept drift was detected further comprises:

6

. The computer-based method of, further comprising:

7

. The computer-based method of, further comprising:

8

. A computer system, the computer system comprising:

9

. The computer system of, wherein automatically extracting the event types and the corresponding time stamps from the configurable corpus of relevant documents further comprises:

10

. The computer system of, wherein automatically correlating the extracted event types with the drift detection probabilities to detect the expected concept drift in the target machine learning model at the given timestamp further comprises:

11

. The computer system of, wherein automatically correlating the extracted event types with the drift detection probabilities to detect the expected concept drift in the target machine learning model at the given timestamp further comprises:

12

. The computer system of, wherein automatically retraining or replacing the target machine learning model at the given timestamp at which the expected concept drift was detected further comprises:

13

. The computer system of, further comprising:

14

. The computer system of, further comprising:

15

. A computer program product, the computer program product comprising:

16

. The computer program product of, wherein automatically extracting the event types and the corresponding time stamps from the configurable corpus of relevant documents further comprises:

17

. The computer program product of, wherein automatically correlating the extracted event types with the drift detection probabilities to detect the expected concept drift in the target machine learning model at the given timestamp further comprises:

18

. The computer program product of, wherein automatically correlating the extracted event types with the drift detection probabilities to detect the expected concept drift in the target machine learning model at the given timestamp further comprises:

19

. The computer program product of, wherein automatically retraining or replacing the target machine learning model at the given timestamp at which the expected concept drift was detected further comprises:

20

. The computer program product of, further comprising:

Detailed Description

Complete technical specification and implementation details from the patent document.

The present application relates generally to computers, and more particularly, to forecasting and mitigating concept drift in machine learning models using natural language processing.

Many businesses employ machine learning models to automate and improve a variety of tasks. Over time, it is common for machine learning models to experience concept drift. Typically concept drift involves changes over time in the underlying probability distribution of input data used to train a given machine learning model. Concept drift may ultimately result in decreased accuracy of a given machine learning model's predictions.

According to one embodiment, a method, computer system, and computer program product for automatically forecasting and mitigating concept drift in machine learning models using natural language processing is provided. The embodiment may include automatically detecting features and variables considered by a target machine learning model. The embodiment may also include automatically storing and updating a configurable corpus of relevant documents pertaining to a domain of the target machine learning model. The embodiment may further include automatically extracting event types and corresponding time stamps from the configurable corpus of relevant documents. The embodiment may also include automatically correlating the extracted event types with drift detection probabilities to detect expected concept drift in the target machine learning model at a given timestamp. The embodiment may further include, in response to detecting expected concept drift in the target machine learning model, automatically generating an ensemble of replacement models based on probabilities derived from a historical database of models including corresponding keys given by event types. The embodiment may also include automatically retraining or replacing the target machine learning model at the given timestamp at which the expected concept drift was detected.

Detailed embodiments of the claimed structures and methods are disclosed herein; however, it can be understood that the disclosed embodiments are merely illustrative of the claimed structures and methods that may be embodied in various forms. The present disclosure may, however, be embodied in many different forms and should not be construed as limited to the exemplary embodiments set forth herein. In the description, details of well-known features and techniques may be omitted to avoid unnecessarily obscuring the presented embodiments.

It is to be understood that the singular forms “a,” “an,” and “the” include plural referents unless the context clearly dictates otherwise. Thus, for example, reference to “a component surface” includes reference to one or more of such surfaces unless the context clearly dictates otherwise.

Embodiments of the present application relate relates generally to machine learning, and more particularly, to forecasting and mitigating concept drift in machine learning models using natural language processing. The following described exemplary embodiments provide a system, method, and program product to, among other things, automatically detect features and variables considered by a target machine learning model, automatically store and update a configurable corpus of relevant documents pertaining to a domain of the target machine learning model, automatically extract event types and corresponding time stamps from the configurable corpus of relevant documents, and automatically correlate the extracted event types with drift detection probabilities to detect expected concept drift in the target machine learning model at a given timestamp. The described exemplary embodiments may then, in response to detecting the expected concept drift in the target machine learning model, automatically generate an ensemble of replacement models based on probabilities derived from a historical database of models including corresponding keys given by the event types, and automatically retrain or replace the target machine learning model at the given timestamp at which the expected concept drift was detected. Therefore, the presently described embodiments have the capacity to improve the ability of businesses to forecast and mitigate concept drift in machine learning models using natural language processing.

As previously described, many businesses employ machine learning models to automate and improve a variety of tasks. Over time, it is common for machine learning models to experience concept drift. Typically concept drift involves changes over time in the underlying probability distribution of input data used to train a given machine learning model. Concept drift may ultimately result in decreased accuracy of a given machine learning model's predictions.

Some methods of addressing concept drift may involve periodic retraining, online learning approaches, or retraining based on drift detection. However, often models underperform until concept drift is detected and a new model is retrained. Periodic training can be costly and does not always succeed in capturing all experienced concept drift. Online learning approaches may allow users to update models upon arrival of samples, but the process is costly, particularly when a given update occurs when it is not needed. Lastly, retraining based on drift detection presents challenges related to data availability, as the required data for retraining may not be easily obtainable.

Accordingly, a method, computer system, and computer program product for improved forecasting and mitigating of concept drift in machine learning models using natural language processing is provided. The method, system, and computer program product may automatically detect features and variables considered by a target machine learning model. The method, system, computer program product may automatically store and update a configurable corpus of relevant documents pertaining to a domain of the target machine learning model. The method, system, computer program product may automatically extract event types and corresponding time stamps from the configurable corpus of relevant documents. The method, system, computer program product may then automatically correlate the extracted event types with drift detection probabilities to detect expected concept drift in the target machine learning model at a given timestamp. Then, the method, system, computer program product may, in response to detecting the expected concept drift in the target machine learning model, automatically generate an ensemble of replacement models based on probabilities derived from a historical database of models including corresponding keys given by the event types. Thereafter, the method, system, computer program product may automatically retrain or replace the target machine learning model at the given timestamp at which the expected concept drift was detected. In turn, the method, system, computer program product has provided for improved forecasting and mitigating of concept drift in machine learning models using natural language processing. Described embodiments provide for an automated system to detect expected concept drift ahead of time. Furthermore, the described embodiments may leverage historical databases of models, including their associated features, response variables, corpuses, and other data to generate replacement models to substitute or train a target machine learning model that is expected to experience concept drift. This may allow for retraining of a target model even if there is no availability of training data including the requisite new features or labels needed to perform more conventional retraining approaches.

The present invention may be a system, a method, and/or a computer program product at any possible technical detail level of integration. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.

Various aspects of the present disclosure are described by narrative text, flowcharts, block diagrams of computer systems and/or block diagrams of the machine logic included in computer program product (CPP) embodiments. With respect to any flowcharts, depending upon the technology involved, the operations can be performed in a different order than what is shown in a given flowchart. For example, again depending upon the technology involved, two operations shown in successive flowchart blocks may be performed in reverse order, as a single integrated step, concurrently, or in a manner at least partially overlapping in time.

A computer program product embodiment (“CPP embodiment” or “CPP”) is a term used in the present disclosure to describe any set of one, or more, storage media (also called “mediums”) collectively included in a set of one, or more, storage devices that collectively include machine readable code corresponding to instructions and/or data for performing computer operations specified in a given CPP claim. A “storage device” is any tangible device that can retain and store instructions for use by a computer processor. Without limitation, the computer readable storage medium may be an electronic storage medium, a magnetic storage medium, an optical storage medium, an electromagnetic storage medium, a semiconductor storage medium, a mechanical storage medium, or any suitable combination of the foregoing. Some known types of storage devices that include these mediums include: diskette, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), static random access memory (SRAM), compact disc read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanically encoded device (such as punch cards or pits/lands formed in a major surface of a disc) or any suitable combination of the foregoing. A computer readable storage medium, as that term is used in the present disclosure, is not to be construed as storage in the form of transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide, light pulses passing through a fiber optic cable, electrical signals communicated through a wire, and/or other transmission media. As will be understood by those of skill in the art, data is typically moved at some occasional points in time during normal operations of a storage device, such as during access, de-fragmentation or garbage collection, but this does not render the storage device as transitory because the data is not transitory while it is stored.

Referring now to, computing environmentcontains an example of an environment for the execution of at least some of the computer code involved in performing the inventive methods, such as concept drift mitigation program/code. In addition to concept drift mitigation code, computing environmentincludes, for example, computer, wide area network (WAN), end user device (EUD), remote server, public cloud, and private cloud. In this embodiment, computerincludes processor set(including processing circuitryand cache), communication fabric, volatile memory, persistent storage(including operating systemand concept drift mitigation code, as identified above), peripheral device set(including user interface (UI), device set, storage, and Internet of Things (IoT) sensor set), and network module. Remote serverincludes remote database. Public cloudincludes gateway, cloud orchestration module, host physical machine set, virtual machine set, and container set.

COMPUTERmay take the form of a desktop computer, laptop computer, tablet computer, smart phone, smart watch or other wearable computer, mainframe computer, quantum computer or any other form of computer or mobile device now known or to be developed in the future that is capable of running a program, accessing a network or querying a database, such as remote database. As is well understood in the art of computer technology, and depending upon the technology, performance of a computer-implemented method may be distributed among multiple computers and/or between multiple locations. On the other hand, in this presentation of computing environment, detailed discussion is focused on a single computer, specifically computer, to keep the presentation as simple as possible. Computermay be located in a cloud, even though it is not shown in a cloud in. On the other hand, computeris not required to be in a cloud except to any extent as may be affirmatively indicated.

PROCESSOR SETincludes one, or more, computer processors of any type now known or to be developed in the future. Processing circuitrymay be distributed over multiple packages, for example, multiple, coordinated integrated circuit chips. Processing circuitrymay implement multiple processor threads and/or multiple processor cores. Cacheis memory that is located in the processor chip package(s) and is typically used for data or code that should be available for rapid access by the threads or cores running on processor set. Cache memories are typically organized into multiple levels depending upon relative proximity to the processing circuitry. Alternatively, some, or all, of the cache for the processor set may be located “off chip.” In some computing environments, processor setmay be designed for working with qubits and performing quantum computing.

Computer readable program instructions are typically loaded onto computerto cause a series of operational steps to be performed by processor setof computerand thereby effect a computer-implemented method, such that the instructions thus executed will instantiate the methods specified in flowcharts and/or narrative descriptions of computer-implemented methods included in this document (collectively referred to as “the inventive methods”). These computer readable program instructions are stored in various types of computer readable storage media, such as cacheand the other storage media discussed below. The program instructions, and associated data, are accessed by processor setto control and direct performance of the inventive methods. In computing environment, at least some of the instructions for performing the inventive methods may be stored in concept drift mitigation codein persistent storage.

COMMUNICATION FABRICis the signal conduction paths that allow the various components of computerto communicate with each other. Typically, this fabric is made of switches and electrically conductive paths, such as the switches and electrically conductive paths that make up busses, bridges, physical input/output ports and the like. Other types of signal communication paths may be used, such as fiber optic communication paths and/or wireless communication paths.

VOLATILE MEMORYis any type of volatile memory now known or to be developed in the future. Examples include dynamic type random access memory (RAM) or static type RAM. Typically, the volatile memory is characterized by random access, but this is not required unless affirmatively indicated. In computer, the volatile memoryis located in a single package and is internal to computer, but, alternatively or additionally, the volatile memory may be distributed over multiple packages and/or located externally with respect to computer.

PERSISTENT STORAGEis any form of non-volatile storage for computers that is now known or to be developed in the future. The non-volatility of this storage means that the stored data is maintained regardless of whether power is being supplied to computerand/or directly to persistent storage. Persistent storagemay be a read only memory (ROM), but typically at least a portion of the persistent storage allows writing of data, deletion of data and re-writing of data. Some familiar forms of persistent storage include magnetic disks and solid state storage devices. Operating systemmay take several forms, such as various known proprietary operating systems or open source Portable Operating System Interface type operating systems that employ a kernel. The code included in concept drift mitigation codetypically includes at least some of the computer code involved in performing the inventive methods.

PERIPHERAL DEVICE SETincludes the set of peripheral devices of computer. Data communication connections between the peripheral devices and the other components of computermay be implemented in various ways, such as Bluetooth connections, Near-Field Communication (NFC) connections, connections made by cables (such as universal serial bus (USB) type cables), insertion type connections (for example, secure digital (SD) card), connections made though local area communication networks and even connections made through wide area networks such as the internet. In various embodiments, UI device setmay include components such as a display screen, speaker, microphone, wearable devices (such as goggles and smart watches), keyboard, mouse, printer, touchpad, game controllers, and haptic devices. Storageis external storage, such as an external hard drive, or insertable storage, such as an SD card. Storagemay be persistent and/or volatile. In some embodiments, storagemay take the form of a quantum computing storage device for storing data in the form of qubits. In embodiments where computeris required to have a large amount of storage (for example, where computerlocally stores and manages a large database) then this storage may be provided by peripheral storage devices designed for storing very large amounts of data, such as a storage area network (SAN) that is shared by multiple, geographically distributed computers. IoT sensor setis made up of sensors that can be used in Internet of Things applications. For example, one sensor may be a thermometer and another sensor may be a motion detector.

NETWORK MODULEis the collection of computer software, hardware, and firmware that allows computerto communicate with other computers through WAN. Network modulemay include hardware, such as modems or Wi-Fi signal transceivers, software for packetizing and/or de-packetizing data for communication network transmission, and/or web browser software for communicating data over the internet. In some embodiments, network control functions and network forwarding functions of network moduleare performed on the same physical hardware device. In other embodiments (for example, embodiments that utilize software-defined networking (SDN)), the control functions and the forwarding functions of network moduleare performed on physically separate devices, such that the control functions manage several different network hardware devices. Computer readable program instructions for performing the inventive methods can typically be downloaded to computerfrom an external computer or external storage device through a network adapter card or network interface included in network module.

WANis any wide area network (for example, the internet) capable of communicating computer data over non-local distances by any technology for communicating computer data, now known or to be developed in the future. In some embodiments, the WAN may be replaced and/or supplemented by local area networks (LANs) designed to communicate data between devices located in a local area, such as a Wi-Fi network. The WAN and/or LANs typically include computer hardware such as copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and edge servers.

END USER DEVICE (EUD)is any computer system that is used and controlled by an end user (for example, a customer of an enterprise that operates computer) and may take any of the forms discussed above in connection with computer. EUDtypically receives helpful and useful data from the operations of computer. For example, in a hypothetical case where computeris designed to provide a recommendation to an end user, this recommendation would typically be communicated from network moduleof computerthrough WANto EUD. In this way, EUDcan display, or otherwise present, the recommendation to an end user. In some embodiments, EUDmay be a client device, such as thin client, heavy client, mainframe computer, desktop computer and so on.

REMOTE SERVERis any computer system that serves at least some data and/or functionality to computer. Remote servermay be controlled and used by the same entity that operates computer. Remote serverrepresents the machine(s) that collect and store helpful and useful data for use by other computers, such as computer. For example, in a hypothetical case where computeris designed and programmed to provide a recommendation based on historical data, then this historical data may be provided to computerfrom remote databaseof remote server.

PUBLIC CLOUDis any computer system available for use by multiple entities that provides on-demand availability of computer system resources and/or other computer capabilities, especially data storage (cloud storage) and computing power, without direct active management by the user. Cloud computing typically leverages sharing of resources to achieve coherence and economies of scale. The direct and active management of the computing resources of public cloudis performed by the computer hardware and/or software of cloud orchestration module. The computing resources provided by public cloudare typically implemented by virtual computing environments that run on various computers making up the computers of host physical machine set, which is the universe of physical computers in and/or available to public cloud. The virtual computing environments (VCEs) typically take the form of virtual machines from virtual machine setand/or containers from container set. It is understood that these VCEs may be stored as images and may be transferred among and between the various physical machine hosts, either as images or after instantiation of the VCE. Cloud orchestration modulemanages the transfer and storage of images, deploys new instantiations of VCEs and manages active instantiations of VCE deployments. Gatewayis the collection of computer software, hardware, and firmware that allows public cloudto communicate through WAN.

Some further explanation of virtualized computing environments (VCEs) will now be provided. VCEs can be stored as “images.” A new active instance of the VCE can be instantiated from the image. Two familiar types of VCEs are virtual machines and containers. A container is a VCE that uses operating-system-level virtualization. This refers to an operating system feature in which the kernel allows the existence of multiple isolated user-space instances, called containers. These isolated user-space instances typically behave as real computers from the point of view of programs running in them. A computer program running on an ordinary operating system can utilize all resources of that computer, such as connected devices, files and folders, network shares, CPU power, and quantifiable hardware capabilities. However, programs running inside a container can only use the contents of the container and devices assigned to the container, a feature which is known as containerization.

PRIVATE CLOUDis similar to public cloud, except that the computing resources are only available for use by a single enterprise. While private cloudis depicted as being in communication with WAN, in other embodiments a private cloud may be disconnected from the internet entirely and only accessible through a local/private network. A hybrid cloud is a composition of multiple clouds of different types (for example, private, community or public cloud types), often respectively implemented by different vendors. Each of the multiple clouds remains a separate and discrete entity, but the larger hybrid cloud architecture is bound together by standardized or proprietary technology that enables orchestration, management, and/or data/application portability between the multiple constituent clouds. In this embodiment, public cloudand private cloudare both part of a larger hybrid cloud.

According to the present embodiment, the concept drift mitigation programmay be a program capable of automatically detecting features and variables considered by a target machine learning model. Concept drift detection programmay then automatically store and update a configurable corpus of relevant documents pertaining to a domain of the target machine learning model. Next, concept drift detection programmay automatically extract event types and corresponding time stamps from the configurable corpus of relevant documents. Concept drift detection programmay then automatically correlate the extracted event types with drift detection probabilities to detect expected concept drift in the target machine learning model at a given timestamp. Next, concept drift detection programmay, in response to detecting the expected concept drift in the target machine learning model, automatically generate an ensemble of replacement models based on probabilities derived from a historical database of models including corresponding keys given by the event types. Thereafter, concept drift detection programmay automatically retrain or replace the target machine learning model at the given timestamp at which the expected concept drift was detected. Described embodiments thus provide for improved forecasting and mitigating of concept drift in machine learning models using natural language processing. Described embodiments provide for an automated system to detect expected concept drift ahead of time. Furthermore, the described embodiments may leverage historical databases of models, including their associated features, response variables, corpuses, and other data to generate replacement models and relevant data to substitute or train a target machine learning model that is expected to experience concept drift. This may allow for retraining of a target model even if there is no availability of training data including the requisite new features or labels needed to perform more conventional retraining approaches.

Referring now to, an operational flowchart for a processof automatically forecasting and mitigating concept drift in machine learning models using natural language processing according to at least one embodiment is provided.

Illustrative embodiments capable of performing processmay include exemplary system architectureas depicted in. For example, described embodiments may include an exemplary data input modulefor gathering the variables and features considered by a target model, an exemplary concept drift forecasting modulefor detecting expected concept drift in a target model, an exemplary model correction modulefor performing model retraining or model substitution to mitigate expected concept drift in a target model at a given timestamp, an exemplary explainability modulefor logging and presenting the reasoning behind an instance of expected concept drift in a target model, and a databasefor storing historical database data and events that may be queried by the exemplary concept drift forecasting module. The exemplary architecture ofwill be referenced and described in further detail below in connection with the description of processin.

At, concept drift detection programmay automatically detect features and variables considered by a target machine learning model. In embodiments, once employed, concept drift detection programmay utilize an exemplary data input modulethat is configured to perform any suitable and known model interpretability techniques to detect the features and variables considered by a target model. For example, concept drift detection programmay perform various model visualization techniques or determine from a target model's codebase which features and variable are considered based on logic of how the model uses the features and variables. In embodiments, concept drift detection programmay be configured to perform further suitable known model interpretability techniques to gather additional information about a target model's domain, weight or importance assigned to the detected features and variables using known model agnostic interpretability methods such as Local Interpretable Model-Agnostic Explanations (LIME), Shapley Additive explanations (SHAP), Anchors, counterfactuals, etc., attention weight visualization techniques, saliency map techniques, activation maximization techniques, model architecture interpretation techniques, and any other known suitable techniques for gathering data about the features and variables considered by a target machine learning model.

Next, at, concept drift detection programmay automatically store and update a configurable corpus of relevant documents pertaining to a domain of the target machine learning model. In embodiments, a user may manually provide a pre-built or publicly available corpus of relevant documents for concept drift detection program. In other embodiments, concept drift detection programmay be configured to automatically collect and update a corpus of relevant documents through various known data collection techniques. For example, concept drift detection programmay collect relevant documents and texts from various newspapers, magazines, government websites, and any other relevant sources that pertain to the target model's domain or considered features and variables previously detected at step. Concept drift detection programmay automatically store and update the collected corpus of relevant documents within an exemplary databaseas it continuously obtains additional text data from appropriate sources. In embodiments, the corpus of relevant documents being stored by concept drift detection programmay be processed or customized via annotating, preprocessing, splitting, modifying of format, or other suitable customization tasks depending on the target model domain. Thus, concept drift detection programstores and updates a configurable corpus of relevant documents that is directly pertinent to the domain of the target machine learning model.

At, concept drift detection programautomatically extract event types and corresponding time stamps from the configurable corpus of relevant documents. In embodiments, concept drift detection programmay, for example, utilize an event extraction model configured to extract event types and corresponding time stamps from the configurable corpus obtained at stepusing multi-label classification techniques. In embodiments, concept drift detection programmay utilize any suitable natural language processing techniques to extract event types from the configurable corpus including techniques involving rule-based approaches, machine learning-based approaches such as decision trees, random forests, and support vector machines to train models to extract event types from text, semantic labeling, or suitable hybrid approaches of the aforementioned techniques.illustrates exemplary extracted event typesandthat may be extracted from a configurable corpus of relevant documents according to at least one embodiment. As shown in, using natural language processing techniques to extract the event types allows for the gathering of a variety of useful data. For example, extracted event typemay include event information extracted from an article about a wildfire at a given location at a specific time (timestamp). The extracted data for extracted event typemay further include, for example, an event type, sub-type, description, timeline, location, and group of persons influenced by the event based upon the relevant document or text being considered.

At, concept drift detection programmay automatically correlate the extracted event types with drift detection probabilities to detect expected concept drift in the target machine learning model at a given timestamp. Concept drift detection programmay utilize exemplary concept drift forecasting modelto determine if there are extracted event types in the stored corpus of relevant documents that are likely to result in concept drift for the target machine learning model. In embodiments, concept drift detection programmay utilize a supervised classification model with event types as features and drift detection as target variables, or key-value pairing with event types as keys and drift detection as values, to forecast or detect drift based upon the extracted events obtained at. This allows concept drift detection programto forecast drift in real-time even in environments where the data distribution may change over time. It also allows concept drift detection programto forecast drift based upon individual features rather than a whole dataset and can be useful to identify which specific features may cause drift. This data may be stored in databaseto improve the amount of collected and stored historical data. In embodiments, key-value pairs can be used to forecast concept drift using a variety of metrics, such as, for example, mean, standard deviation, entropy, kurtosis, skewness, etc. In embodiments, the threshold for drift forecasting or detection may be manually set at a pre-selected percentage or probability based on a user's desired level of sensitivity and can be adjusted over time as the system adapts to additional data. For example, exemplary concept drift forecasting moduleof concept drift detection programmay utilize key-value pairings to determine that the data associated with extracted event, namely a blizzard event in California on January 28-29, has a 98 percent likelihood of causing concept drift for an exemplary target model ‘Model A’ designed to predict expected demand for taxi rides. If an exemplary drift detection probability threshold for exemplary ‘Model A’ is below 98, then concept drift detection programwill determine that there is expected concept drift for target ‘Model A’ based on extracted event.

may be used to further illustrate the importance of stepdescribed above.illustrates an exemplary graphical depictionof an average expected hourly taxi ride demand curvefor a specific date generated by an exemplary machine learning model, and a second actual hourly taxi demand curvefor the specific date during which an event has occurred. The hourly taxi ride demand curvegenerated by the exemplary machine learning model would generally be accurate for that specific date, however, as shown by the actual hourly taxi demand curve, the effect of a blizzard occurring that day drastically shifts the demand curve downwards, as demand for taxi rides decreases. Detecting the concept drift and adjusting the exemplary model after the prediction is already made may be too slow, time consuming, or costly. Accordingly, forecasting the expected concept drift ahead of time using the above-described techniques may allow for quicker retraining or substitution of the exemplary model to ensure that the concept drift does not lead to inaccurate predictions.

At, concept drift detection programmay, in response to detecting expected concept drift in the target machine learning model, automatically generate an ensemble of replacement models based on probabilities derived from a historical database of models including corresponding keys given by event types. At this step, exemplary model correction moduleof concept drift detection programmay be configured to identify an ensemble of potential replacement models derived from models stored in exemplary databasethat may be pertinent to the expected concept drift based on the relevant event types and corresponding keys. The event type keys allow for the categorization of different types of events in the stored data to allow for pattern detection, event correlation, and anomaly detection as it relates to concept drift for the given domain and event type. For example, at this step, exemplary model correction moduleof concept drift detection programmay query exemplary databaseto identify from a historical collection of models an ensemble of replacement models that have significant probabilities of improving the performance of the predictive accuracy of the target model.

In some instances, a new event type may be associated with forecasted or expected drift. In the context of this disclosure, a new event type is an event type for which there is no history for learning based on similar event types or models within exemplary databaserelated to the new event type. In this instance, concept drift detection programmay perform data collection pertaining to the new event and store the corresponding data within exemplary database. This process may then be repeated until the history is sufficient to allow for inferring of which model may be used to improve predictive performance upon detection of expected concept drift due to that key event. In some embodiments, concept drift detection programmay be manually configured to include a defined default model to be used when drift is detected for an event type for which on historical data exists.

Thereafter, at, concept drift detection programmay automatically retrain or replace the target machine learning model at the given timestamp at which the expected concept drift was detected. In embodiments, concept drift detection programmay utilize exemplary model correction moduleto schedule a job to retrain or replace the target machine learning model at the timestamp where the expected concept drift was detected. Concept drift detection program may utilize a replacement model with the highest probability of improving the predictive capabilities of the target model identified at step.

Concept drift detection programmay include a process for correcting a target model for which expected concept drift has been detected as illustrated in processshown in the flow chart depicted in. Illustrative processstarts at. At, concept drift detection programdetects if there is expected concept drift. If there is no drift detected, the process ends at. At, if expected concept drift is detected, concept drift detection programwill attempt to identify and obtain a replacement model (sometimes abbreviated as ‘RM’) corresponding to the event type correlated to the expected concept drift. If a relevant replacement modelexists within the accessible collection of stored models and historical data, concept drift detection programmay schedule a job to replace the model at the time stamp corresponding to the expected drift at. If there is no relevant replacement model present within collection of deployed models and historical data, then concept drift detection programmay check for a default model atwith which to replace the target model and subsequently schedule model replacement and correction atin a similar manner. However, if there is no default model, then concept drift detection programmay schedule a job to collect data at the given time stamp corresponding to the expected concept drift at.

In embodiments, once the RM is deployed, it may be used for scoring and, optionally, the performance of the model may be assessed through the residuals to infer the performance of the model. After several scoring iterations and sufficient labels are available, if the performance of the RM is not very high, a new model reflective of the actual situation may be determined irrespective of the presence of concept drift.

In embodiments, concept drift detection programmay further be configured to utilize an exemplary explainability moduleto output to an end user explainability statements including reasons for why the forecasted concept drift is likely to be experienced. This may be presented to an end user using any suitable user interface.

It will be appreciated that concept drift detection programthus provides for improved forecasting and mitigating of concept drift in machine learning models using natural language processing. Described embodiments provide for an automated system to detect expected concept drift before it occurs. Furthermore, the described embodiments may leverage historical databases of models, including their associated features, response variables, corpuses, and other data to generate replacement models and relevant data to substitute or train a target machine learning model that is expected to experience concept drift. This may allow for retraining of a target model even if there is no availability of training data including the requisite new features or labels needed to perform more conventional retraining approaches.

It may be appreciated thatprovides only illustrations of an exemplary implementation and does not imply any limitations with regard to how different embodiments may be implemented. Many modifications to the depicted environment may be made based on design and implementation requirements.

The descriptions of the various embodiments of the present invention have been presented for purposes of illustration but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Patent Metadata

Filing Date

Unknown

Publication Date

March 31, 2026

Inventors

Unknown

Want to explore more patents?

Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.

Citation & reuse

Analysis on this page is generated by Patentable — an AI-powered patent intelligence platform. AI-generated summaries, explanations, and analysis may be reused with attribution and a visible link back to the canonical URL below. Patent abstracts and claims are USPTO public domain.

Cite as: Patentable. “Forecasting and mitigating concept drift using natural language processing” (US-12591818-B2). https://patentable.app/patents/US-12591818-B2

© 2026 Patentable. All rights reserved.

Patentable is a research and drafting-assistant tool, not a law firm, and does not provide legal advice. Documents we generate are drafts for review by a licensed patent attorney.

Forecasting and mitigating concept drift using natural language processing | Patentable