# US 2023/0055312 A1 · Environment agnostic invariant risk minimization for classification of sequential datasets

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0055312 A1
- Document ID: US20230055312A1
- Status: Published application
- Kind: A1
- Application number: 17/400,900
- Filed: 2021-08-12
- Published: 2023-02-23
- Earliest claimed: 2021-08-12
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Vinod Muthusamy; Praveen Venkateswaran; Vatche Isahagian
- Web page: https://patentgrep.com/patent/US20230055312A1

## CPC

- G06N 3/09: Supervised learning
- G06N 20/00: Machine learning
- G06F 18/2193: {based on specific statistical tests}
- G06F 18/241: relating to the classification model, e.g. parametric or non-parametric approaches
- G06N 3/0985: Hyperparameter optimisation; Meta-learning; Learning-to-learn
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method of generating a model for classifying sequential data, the method including receiving the sequential data including records having features; initializing mask weights and classifier weights on the features; processing, iteratively, frames of the sequential data using the model comprising the mask and classifier weights, wherein at each iteration the processing includes generating a current one of the frames, computing a penalty term over a data space of the current frame, and updating the mask weights using the classifier weights on the features and the penalty term; and outputting the machine learning model including updated ones of the mask weights to a service for performing a classification task based on a detection of at least one of the features in test data.

## Claims

### Claim 1

A method of generating a machine learning model for classifying sequential data, the method comprising:
receiving the sequential data, wherein the sequential data comprises a plurality of records having a plurality of features in a plurality of environments;
initializing a set of mask weights on the features;
initializing a set of classifier weights on the features;
processing, iteratively, a plurality of frames of the sequential data using the machine learning model comprising the mask weights and the classifier weights, wherein at each iteration the processing comprises:
generating a current one of the frames of the sequential data;
computing a penalty term over a data space of the current frame; and
updating the mask weights using the classifier weights on the features and the penalty term; and
outputting the machine learning model including updated ones of the mask weights to a service for performing a classification task based on a detection of at least one of the features in test data.

### Claim 2 (depends on 1)

The method of claim 1, wherein: the data space of the current frame is an entire data space of the current frame, the method includes no assumption on a degree of invariance of the mask weights, and the machine learning model is one of an existing model and a newly instantiated model.

### Claim 3 (depends on 1)

The method of claim 1, wherein the method includes no assumption on whether each instance of a given one of the features is invariant or spurious and no labeled data about the environments.

### Claim 4 (depends on 1)

The method of claim 1, wherein a number of iterations, s, is pre-defined for the processing of the frames.

### Claim 5 (depends on 1)

The method of claim 1, wherein computing the penalty term over the data space of the current frame further comprises:
computing a penalty loss term over the data space of the current frame of the classifier weights across the current frame; and
computing a total loss as a function of a prediction error for the mask weights on the features of the current frame and the penalty loss,
wherein the method further comprises:
determining a variance of the classifier weights on the features of the current frame, and wherein the updating of the mask weights increases the mask weights of invariant ones of the features according to the variance.

### Claim 6 (depends on 1)

The method of claim 1, wherein computing the penalty term over the data space of the current frame further comprises:
computing a penalty loss term over the data space of the current frame of the classifier weights across the current frame; and
computing a total loss as a function of a prediction error for the mask weights on the features of the current frame and the penalty loss,
wherein the method further comprises:
determining a variance of the classifier weights on the features of the current frame, and
wherein the updating of the mask weights decreases the mask weights of spurious ones of the features according to the variance.

### Claim 7 (depends on 1)

The method of claim 1, wherein the test data includes a text corpus of documents, and wherein the classification task comprises:
processing each of the documents using the machine learning model to identify instances of the features in each of the documents;
classifying each of the documents according to respective ones of the identified instances of the features; and
adding an indication of the respective classifications to each of the documents.

### Claim 8 (depends on 1)

The method of claim 1, wherein the test data includes a document, and the classification task comprises:
processing the document using the machine learning model to identify instances of the features in the document;
identifying a sentiment for each of a plurality of portions of the document according to corresponding ones of the identified instances of the features; and
adding an indication of the sentiments to the document.

### Claim 9 (depends on 1)

The method of claim 1, further comprising receiving the test data from at least one sensor and the classification task comprises processing the test data received from the at least one sensor using the machine learning model, wherein the machine learning model detects at least one event in the data.

### Claim 10 (depends on 9)

The method of claim 9, wherein the at least one sensor includes an accelerometer and a gyroscope, and the at least one event is a selected from at least one of a walking event, a walking upstairs event, a walking downstairs event, a sitting event, a standing event, and a laying down event.

### Claim 11

A computer readable medium comprising computer executable instructions which when executed by a computer system cause the computer to perform a method for generating a machine learning model for classifying sequential data, the method comprising:
accessing the sequential data, wherein the sequential data comprises a plurality of records having a plurality of features in a plurality of environments;
initializing a set of mask weights on the features;
initializing a set of classifier weights on the features;
processing, iteratively, a plurality of frames of the sequential data using the machine learning model comprising the mask weights and the classifier weights, wherein at each iteration the processing comprises:
generating a current one of the frames of the sequential data;
computing a penalty term over a data space of the current frame; and
updating the mask weights using the mean and the variance of the classifier weights on the features and the penalty term; and
outputting the machine learning model including updated ones of the mask weights to a service for performing a classification task based on a detection of at least one of the features in test data.

### Claim 12 (depends on 11)

The computer readable medium of claim 11, wherein: the data space of the current frame is an entire data space of the current frame, the method includes no assumption on a degree of invariance of the mask weights and the machine learning model is one of an existing model and a newly instantiated model.

### Claim 13 (depends on 11)

The computer readable medium of claim 11, wherein the method includes no assumption on whether each instance of a given one of the features is invariant or spurious and no labeled data about the environments.

### Claim 14 (depends on 11)

The computer readable medium of claim 11, wherein a number of iterations, s, is pre-defined for the processing of the frames.

### Claim 15 (depends on 11)

The computer readable medium of claim 11, wherein computing the penalty term over the data space of the current frame further comprises:
computing a penalty loss term over the data space of the current frame of the classifier weights across the current frame; and
computing a total loss as a function of a prediction error for the mask weights on the features of the current frame and the penalty loss,
wherein the method further comprises:
determining a variance of the classifier weights on the features of the current frame, and
wherein the updating of the mask weights increases the mask weights of invariant ones of the features according to the variance.

### Claim 16 (depends on 11)

The computer readable medium of claim 11, wherein computing the penalty term over the data space of the current frame further comprises:
computing a penalty loss term over the data space of the current frame of the classifier weights across the current frame; and
computing a total loss as a function of a prediction error for the mask weights on the features of the current frame and the penalty loss,
wherein the method further comprises:
determining a variance of the classifier weights on the features of the current frame, and
wherein the updating of the mask weights decreases the mask weights of spurious ones of the features according to the variance.

### Claim 17 (depends on 11)

The computer readable medium of claim 11, wherein the test data includes a text corpus of documents, and wherein the classification task comprises:
processing each of the documents using the machine learning model to identify instances of the features in each of the documents;
classifying each of the documents according to respective ones of the identified instances of the features; and
adding an indication of the respective classifications to each of the documents.

### Claim 18 (depends on 11)

The computer readable medium of claim 11, wherein the test data includes a document, and the classification task comprises:
processing the document using the machine learning model to identify instances of the features in the document;
identifying a sentiment for each of a plurality of portions of the document according to corresponding ones of the identified instances of the features; and
adding an indication of the sentiments to the document.

### Claim 19 (depends on 11)

The computer readable medium of claim 11, further comprising receiving the test data from at least one sensor and the classification task comprises processing the test data received from the at least one sensor using the machine learning model, wherein the machine learning model detects at least one event in the data.

### Claim 20 (depends on 19)

The computer readable medium of claim 19, wherein the at least one sensor includes an accelerometer and a gyroscope, and the at least one event is a selected from at least one of a walking event, a walking upstairs event, a walking downstairs event, a sitting event, a standing event, and a laying down event.
