# US 2021/0342207 A1 · Computer error prevention and reduction

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

- Number: US 2021/0342207 A1
- Document ID: US20210342207A1
- Status: Published application
- Kind: A1
- Application number: 16/861,931
- Filed: 2020-04-29
- Published: 2021-11-04
- Earliest claimed: 2020-04-29
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Facundo Miguel Oliveri; Tiago Dias Generoso; Danilo Souza Moraes; Fabio Perale de Araujo; Igor Alves Perin
- Web page: https://patentgrep.com/patent/US20210342207A1

## CPC

- G06F 11/079: {Root cause analysis, i.e. error or fault diagnosis (in a hardware test environment G06F11/22; in a software test environment G06F11/36)}
- G06F 21/552: {involving long-term monitoring or reporting}
- G06F 11/0754: {by exceeding limits}
- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G06F 21/31: User authentication
- G06F 21/316: {by observing the pattern of computer usage, e.g. typical user behaviour}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for automatically reducing computer errors is provided. The method may include in response to detecting an interactive session, dynamically extracting data associated with a user by using a keylogging component and a camera associated with the computer. The method may further include performing real-time analysis on the extracted data to determine a risk score, whereby the risk score is used to determine whether a potential risk for a computer error exists based on the extracted data associated with the user. The method may further include in response to a command being entered on the command line interface, determining a risk score associated with the entered command. The method may also include in response to determining that the risk score is at or above a threshold risk level based on the real-time analysis, preventing the entered command from being executed and taking an additional preventive computing action.

## Claims

### Claim 1

A method for automatically reducing computer errors, the method comprising:
in response to detecting an interactive session on a command line interface associated with a computer, dynamically extracting, by the computer, data associated with a user by using a keylogging component and a camera associated with the computer, wherein the extracted data comprises user behavior data and user interaction data based on user interaction with the command line interface;
based on performed real-time analysis on the extracted data and in response to a command being entered on the command line interface, determining, by the computer, a risk score associated with the entered command, whereby the risk score is used to dynamically determine whether to allow execution of the entered command or prevent execution of the entered command based on a risk that the entered command when executed causes a computer error; and
in response to initiation of the entered command and determining that the risk score is at or above a threshold risk level based on the real-time analysis, automatically preventing, by the computer, the entered command from being executed and taking an additional preventive computing action, wherein the additional preventive computing action is proportional to a determined level at which the risk score exceeds the threshold risk level.

### Claim 2 (depends on 1)

The method of claim 1, wherein the extracted data is selected from a group comprising user sentiment data, syntax error detection data, face recognition data, user typing history and pattern data, out-of-context command data, and user credentials data.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
generating, by the computer, a user profile for the user based on the extracted data, wherein the user profile is used to detect deviations from the user behavior data and the user interaction data.

### Claim 4 (depends on 1)

The method of claim 1, wherein performing the real-time analysis on the extracted data further comprises:
determining, by the computer, whether to perform online real-time analysis or offline real-time analysis based on computer connectivity issues and response time.

### Claim 5 (depends on 1)

The method of claim 1, wherein determining, by the computer, the risk score associated with the entered command further comprises:
assigning a different weighted value to different types of data associated with the extracted data.

### Claim 6 (depends on 1)

The method of claim 1, wherein the entered command performs an operation that is selected from a group comprising installing new software, updating or configuring existing software, troubleshooting and fixing an existing issue on the computer, and giving a specific order to an operating system or application.

### Claim 7 (depends on 1)

The method of claim 1, wherein the additional preventive computer action is selected from a group comprising displaying a warning message on the computer and advising the user to seek assistance, interacting with computer monitoring systems associated with a computing environment that includes the computer to generate and display an incident report on at least one of the computer monitoring systems to get the attention of other users, terminating a computer session associated with the user and displaying an explanatory message that explains why the entered command is determined to be the risk.

### Claim 8

A computer system for automatically reducing computer errors, comprising:
one or more processors, one or more computer-readable memories, one or more computer-readable tangible storage devices, and program instructions stored on at least one of the one or more computer-readable tangible storage devices for execution by at least one of the one or more processors via at least one of the one or more computer-readable memories, wherein the computer system is capable of performing a method comprising:
in response to detecting an interactive session on a command line interface associated with a computer, dynamically extracting data associated with a user by using a keylogging component and a camera associated with the computer, wherein the extracted data comprises user behavior data and user interaction data based on user interaction with the command line interface;
based on performed real-time analysis on the extracted data and in response to a command being entered on the command line interface, determining a risk score associated with the entered command, whereby the risk score is used to dynamically determine whether to allow execution of the entered command or prevent execution of the entered command based on a risk that the entered command when executed causes a computer error; and
in response to initiation of the entered command and determining that the risk score is at or above a threshold risk level based on the real-time analysis, automatically preventing the entered command from being executed and taking an additional preventive computing action, wherein the additional preventive computing action is proportional to a determined level at which the risk score exceeds the threshold risk level.

### Claim 9 (depends on 8)

The computer system of claim 8, wherein the extracted data is selected from a group comprising user sentiment data, syntax error detection data, face recognition data, user typing history and pattern data, out-of-context command data, and user credentials data.

### Claim 10 (depends on 8)

The computer system of claim 8, further comprising:
generating a user profile for the user based on the extracted data, wherein the user profile is used to detect deviations from the user behavior data and the user interaction data.

### Claim 11 (depends on 8)

The computer system of claim 8, wherein performing the real-time analysis on the extracted data further comprises:
determining whether to perform online real-time analysis or offline real-time analysis based on computer connectivity issues and response time.

### Claim 12 (depends on 8)

The computer system of claim 8, wherein determining the risk score associated with the entered command further comprises:
assigning a different weighted value to different types of data associated with the extracted data.

### Claim 13 (depends on 8)

The computer system of claim 8, wherein the entered command performs an operation that is selected from a group comprising installing new software, updating or configuring existing software, troubleshooting and fixing an existing issue on the computer, and giving a specific order to an operating system or application.

### Claim 14 (depends on 8)

The computer system of claim 8, wherein the additional preventive computer action is selected from a group comprising displaying a warning message on the computer and advising the user to seek assistance, interacting with computer monitoring systems associated with a computing environment that includes the computer to generate and display an incident report on at least one of the computer monitoring systems to get the attention of other users, terminating a computer session associated with the user and displaying an explanatory message that explains why the entered command is determined to be the risk.

### Claim 15

A computer program product for automatically reducing computer errors, comprising:
one or more tangible computer-readable storage devices and program instructions stored on at least one of the one or more tangible computer-readable storage devices, the program instructions executable by a processor, the program instructions comprising:
program instructions to, in response to detecting an interactive session on a command line interface associated with a computer, dynamically extract data associated with a user by using a keylogging component and a camera associated with the computer, wherein the extracted data comprises user behavior data and user interaction data based on user interaction with the command line interface;
program instructions to, based on performed real-time analysis on the extracted data and in response to a command being entered on the command line interface, determine a risk score associated with the entered command, whereby the risk score is used to dynamically determine whether to allow execution of the entered command or prevent execution of the entered command based on a risk that the entered command when executed causes a computer error; and
program instructions to, in response to initiation of the entered command and determining that the risk score is at or above a threshold risk level based on the real-time analysis, automatically prevent the entered command from being executed and taking an additional preventive computing action, wherein the additional preventive computing action is proportional to a determined level at which the risk score exceeds the threshold risk level.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the extracted data is selected from a group comprising user sentiment data, syntax error detection data, face recognition data, user typing history and pattern data, out-of-context command data, and user credentials data.

### Claim 17 (depends on 15)

The computer program product of claim 15, further comprising:
program instructions to generate a user profile for the user based on the extracted data, wherein the user profile is used to detect deviations from the user behavior data and the user interaction data.

### Claim 18 (depends on 15)

The computer program product of claim 15, wherein the program instructions to perform the real-time analysis on the extracted data further comprises:
program instructions to determine whether to perform online real-time analysis or offline real-time analysis based on computer connectivity issues and response time.

### Claim 19 (depends on 15)

The computer program product of claim 15, wherein the program instructions to determine the risk score associated with the entered command further comprises:
program instructions to assign a different weighted value to different types of data associated with the extracted data.

### Claim 20 (depends on 15)

The method of claim 15, wherein the additional preventive computer action is selected from a group comprising displaying a warning message on the computer and advising the user to seek assistance, interacting with computer monitoring systems associated with a computing environment that includes the computer to generate and display an incident report on at least one of the computer monitoring systems to get the attention of other users, terminating a computer session associated with the user and displaying an explanatory message that explains why the entered command is determined to be the risk.
