# US 2026/0235003 A1 · Computer-implemented method for detecting and diagnosing failures in the fluid properties in a drilling system and computer-readable storage media

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

- Number: US 2026/0235003 A1
- Document ID: US20260235003A1
- Status: Published application
- Kind: A1
- Application number: 19/537,027
- Filed: 2026-02-11
- Published: 2026-08-13
- Earliest claimed: 2025-02-12
- Assignees: Petroleo Brasileiro S.A. - Petrobras; Universidade Federal Rural Do Rio De Janeiro - Ufrrj
- Applicants: Petroleo Brasileiro S.A. - Petrobras; Universidade Federal Rural Do Rio De Janeiro - Ufrrj
- Inventors: Alex Tadeu De Almeida WALDMANN; Leonardo Silva MENDES; Thalles Pereira De MELLO; Andre Leibsohn MARTINS; Melquisedeque Nonato De OLIVEIRA; Cláudia Mìriam SCHEID; Moacyr Nogueira Borges FILHO; Luiz Augusto Da Cruz MELEIRO; Jonatan De Almeida Torres SOUZA; Gleber Tacio TEIXEIRA; Marcus Felipe De Oliveira QUETEZ; Luis Americo CALÇADA
- Web page: https://patentgrep.com/patent/US20260235003A1

## CPC

- E21B 21/062: {by mixing components}
- E21B 44/00: Automatic control systems specially adapted for drilling operations, i.e. self-operating systems which function to carry out or modify a drilling operation without intervention of a human operator, e.g. computer-controlled drilling systems; Systems specially adapted for monitoring a plurality of drilling variables or conditions
- E21B 21/06: Arrangements for treating drilling fluids outside the borehole
- E21B 44/02: Automatic control of the tool feed ({E21B44/005,} E21B44/10 take precedence)
- E21B 44/04: in response to the torque of the drive {; Measuring drilling torque (E21B44/06 takes precedence; measuring stresses in a well bore pipe E21B47/007)}
- E21B 47/00: Survey of boreholes or wells (monitoring pressure or flow of drilling fluid E21B21/08)
- E21B 2200/20: Computer models or simulations, e.g. for reservoirs under production, drill bits
- E21B 2200/22: Fuzzy logic, artificial intelligence, neural networks or the like
- E21B: EARTH OR ROCK DRILLING; OBTAINING OIL, GAS, WATER, SOLUBLE OR MELTABLE MATERIALS OR A SLURRY OF MINERALS FROM WELLS

## Abstract

The present disclosure relates to a computer-implemented method for detecting and diagnosing failures in the fluid properties in a drilling system, including: performing training using a first set of training data; sending the training data to the database; defining the limit local density values, coefficient of variation, and derivative window limits used to establish the steady state regime; receiving data from the drilling system with the point to be analyzed; calculating the local outlier factor; comparing the local outlier factor with the outlier factor of the training set; calculating the numerical derivative of the point to be analyzed; comparing the number of points in failure and the number of points in steady state with the tolerance of points in failure and the tolerance of points in steady state; calculating the dispersion coefficient of the new set of training data; isolating the failure and identifying with a label the variable that contributes most to the occurrence of a failure; isolating the failure and identifying with a label the variable that contributes most to the occurrence of a failure.

## Claims

### Claim 1

A computer-implemented method for detecting and diagnosing failures in the fluid properties in a drilling system, the method comprising:
performing training using a first set of training data;
sending the first set of training data to the database;
defining values of limit local density, coefficient of variation, and derivative window limits used to establish a steady state regime;
receiving data from the drilling system with a point to be analyzed;
calculating a local outlier factor, by using the equation:
LOF
MinPts
(
p
)
=
∑
o
∈
N
MinPts
(
p
)
Ird
Minpts
(
o
)
Ird
Minpts
(
p
)
❘
"\[LeftBracketingBar]"
N
MinPts
(
p
)
❘
"\[RightBracketingBar]"
,
equation
⁢
1
wherein
:
N
k
-
dist
⁡
(
p
)
(
p
)
=
{
q
∈
D
⁢
{
p
}
❘
d
⁡
(
p
,
q
)
≤
k
-
dist
⁡
(
p
)
}
,
equation
⁢
2
reach
-
dist
k
(
p
,
o
)
=
max
⁢
{
k
-
distance
(
o
)
,
d
⁡
(
p
,
o
)
}
,
equation
⁢
3
Ird
Minpts
(
p
)
=
(
∑
o
∈
N
MinPts
(
p
)
R
k
(
p
,
o
)
❘
"\[LeftBracketingBar]"
N
MinPts
(
p
)
❘
"\[RightBracketingBar]"
)
-
1
,
equation
⁢
4
and wherein:
p and q are objects belonging to a data set D;
d(p,q) is the minimum distance between p and the object q in D;
k-dist(p) is a distance between p and an object o belonging to D, such that, for at least k objects o′∈D\{p}, it is valid that d(p,o′)≤d(p,o) and for at most k−1 objects o∈D\{p} it is valid that d(p,o′)<d(p,o); and
k is a real and positive value;
comparing the local outlier factor with an outlier factor of the training set;
calculating a numerical derivative of the point to be analyzed, by using the finite difference technique, and analyzing whether this point is contained in an interval defined by the equation below:
OR
=
μ
training
±
x
·
σ
training
,
equation
⁢
5
wherein:
μtraining represents the mean of the training series;
x represents the number of standard deviations used; and
σtraining represents the standard deviation of the training series;
comparing the number of points in failure and the number of points in steady state with the tolerance for points in failure and the tolerance for points in steady state; wherein, if the comparisons exceed the established limits, identifying a possible new steady state and collecting a new set of training data;
calculating the dispersion coefficient of the new set of training data using the equation below:
cv
=
s
x
,
equation
⁢
6
wherein:
s represents the sample standard deviation;
x is the sample mean;
wherein, if the dispersion coefficient of the new set of training data is equal to or less than the first set of training data, the drilling system is established in a new steady state and a decision window is opened;
isolating the failure and identifying with a label the variable that most contributes to the occurrence of a failure in the drilling system, through the local outlier factor, by using the equations below:
Contr
j
LOF
=
η
p
⁢
∑
o
∈
N
MinPts
(
p
)
[
ξ
j
T
(
x
p
-
x
o
)
]
2
,
equation
⁢
7
η
p
=
1
❘
"\[LeftBracketingBar]"
N
MinPts
(
p
)
❘
"\[RightBracketingBar]"
2
⁢
∑
o
∈
N
MinPts
(
p
)
lrd
MinPts
(
o
)
,
equation
⁢
8
where
ζ
j
T
is the vector of the j-th column of the identity matrix; and
J is the number of variables being analyzed at each point; and
issuing an output message including at least one of: the variable identified with the label that most contributes to the occurrence of failure in the drilling system; the health of the operation, whether in training, normal or anomaly; and the components of the system that are in failure, if the operation is in anomaly.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the first set of training data includes at least one variable, wherein the at least one variable includes at: least one of: rheological properties of the fluids, fluid density, electrical conductivity, percentage of water in synthetic fluids, and apparent viscosity.

### Claim 3 (depends on 1)

The method according to claim 1, wherein if the local outlier factor is greater than the outlier factor of the training set, the density of this point relative to its k-neighbors is lower compared to the training set, and the point is classified as a failure; wherein if the number of points classified as failure is greater than a predefined value, the number of points classified as failure is continuously summed; and wherein a normal point zeroes the number of points in failure.

### Claim 4 (depends on 1)

The method according to claim 1, wherein if the derivative of the point is contained in the interval and the number of points in steady state is greater than a predefined value, then the number of points in steady state is summed; and wherein, if a point whose derivative is not contained in this interval, the number of points in steady state is zeroed.

### Claim 5 (depends on 1)

The method according to claim 1, wherein if the dispersion coefficient of a new set of training data is equal to or less than the first set of training data, the drilling system is established in a new steady state and a decision window is opened; wherein the operator decides whether or not to perform the training in this new steady state; wherein if the operator decides to perform the training in this new steady state, the operator confirms that this new steady state is a desired state, and the training is performed.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the output message can be issued in an application to an operator.

### Claim 7 (depends on 1)

A computer-readable storage media, for a process comprising storing, a set of computer-readable instructions, when executed by a computer, executes the method according to claim 1.
