Real-Time Measurement of Drilling Fluid Rheological Properties: A Review

The accurate and frequent measurement of the drilling fluid’s rheological properties is essential for proper hydraulic management. It is also important for intelligent drilling, providing drilling fluid data to establish the optimization model of the rate of penetration. Appropriate drilling fluid properties can improve drilling efficiency and prevent accidents. However, the drilling fluid properties are mainly measured in the laboratory. This hinders the real-time optimization of drilling fluid performance and the decision-making process. If the drilling fluid’s properties cannot be detected and the decision-making process does not respond in time, the rate of penetration will slow, potentially causing accidents and serious economic losses. Therefore, it is important to measure the drilling fluid’s properties for drilling engineering in real time. This paper summarizes the real-time measurement methods for rheological properties. The main methods include the following four types: an online rotational Couette viscometer, pipe viscometer, mathematical and physical model or artificial intelligence model based on a Marsh funnel, and acoustic technology. This paper elaborates on the principle, advantages, limitations, and usage of each method. It prospects the real-time measurement of drilling fluid rheological properties and promotes the development of the real-time measurement of drilling rheological properties.


Introduction
In the drilling industry, almost every step requires drilling fluid [1]. The drilling fluid's properties have a significant impact on drilling efficiency and safety. The successful completion and cost of an oil well depend mainly on the drilling fluid's performance. The cost of the drilling fluid itself is relatively small, but the choice of the right drilling fluid program and maintenance of fluid properties while drilling profoundly influence the total well costs [2]. The cost of drilling fluid accounts for 5% to 15% of the entire drilling cost, but it can solve 100% of drilling problems [3]. The physical and chemical properties of drilling fluid, such as its density and rheological properties, have a significant impact on the processing and control of well conditions [4,5]. A high-viscosity drilling fluid is desirable to transport cuttings from downhole up to the surface and suspend weighting agents (such as barite). However, if the viscosity is too high, the friction is high, which may hinder the circulation of the mud, resulting in excessive pump pressure, reducing the drilling speed and hindering the solids removal equipment [3].
The drilling fluid properties play an important role in the optimization of the rate of penetration. In the rate of penetration models established by many scholars, such

Rheological Properties of Drilling Fluid
The drilling fluid's rheological properties refer to the characteristics of flow and deformation under the action of external force. The drilling fluid's rheological properties are essential for the following determinations: estimation of hole cleaning efficiency, calculation of frictional pressure losses in pipes and annuli, determination of equivalent circulating density (ECD) under downhole conditions, determination of prevailing flow regime in pipes and annuli, estimation of swab and surge pressures, and hydraulic optimization for improved drilling efficiency. Proper rheological properties can carry bottom hole cuttings to the ground quickly, increase the rate of penetration, reduce power consumption, ensure drilling safety, and improve economic benefits. In order to estimate the above-mentioned functions of the drilling fluid in time, it is important to measure the drilling fluid rheological properties in real time. Figure 1 depicts how fluids can be classified based on their rheological behavior. There are Newtonian and non-Newtonian fluids. The viscosity of a Newtonian fluid does not change under different shear rates, while the viscosity of a non-Newtonian fluid changes under different shear rates (e.g., water, salt solutions, and light oil) [2]. The behavior of non-Newtonian fluid mainly includes three types: dilatant behavior (e.g., water-based polyethylene glycol drilling fluid [19]), pseudoplastic behavior (e.g., drilling fluid with high clay content, high waxy crude oil, and paint), and plastic behavior (e.g., aqueous solutions and emulsions of polymer compounds). The viscosity of the dilatant fluid increases with the increase in the shear rate, while the viscosity of the pseudoplastic fluid and the plastic fluid decreases with the increase in the shear rate. Plastic fluid starts to flow after a given shear stress is applied, while pseudoplastic fluid can flow under any shear force. Drilling fluids rarely exhibit dilatant behavior, as most of the drilling fluids used are plastic and pseudoplastic fluids. Through the rheological curve of the drilling fluid, we can more accurately evaluate the ECD and the ability of carry cuttings, optimize the hydraulic parameters, etc. The most common models used to describe the drilling fluid rheology in the petroleum industry are the Bingham plastic model (Equation (1)), Power law (PL) model (Equation (2)), and Herschel-Bulkley model (Equation (3)): = YP + PV * (1) where YP is yield point, PV is the plastic viscosity, τ0 is the fluid yield stress, K is the consistency factor, n is the flow behavior index, and γ is the shear rate. The total ability for a Bingham plastic fluid to resist flow could be expressed by an apparent viscosity (AV) or effective viscosity for a given shear stress [2]. Generally, the shear rate of apparent viscosity is 1021 s −1 in API.
The Herschel-Bulkley model is used when the accuracy of the rheological parameter measurement is high or in laboratory research. The API recommends using this model; it consistently provides good simulations of measured rheological data for both waterbased and non-aqueous drilling fluids. For this reason, it has become the de facto rheological model for engineering calculations in the petroleum industry [2].

Real-Time Measurement Technologies
The current measurement of rheological properties utilizes a typical manually controlled rotational Couette viscometer. In recent years, many scholars have researched realtime measurement of drilling fluid rheological properties. The real-time measurement technology of drilling fluid rheology mainly includes the following four methods: (1) online rotational Couette viscometer, (2) pipe viscometer, (3) mathematical and physical model or artificial intelligence (AI) model based on a Marsh funnel, and (4) tuning fork technology. The most common models used to describe the drilling fluid rheology in the petroleum industry are the Bingham plastic model (Equation (1)), Power law (PL) model (Equation (2)), and Herschel-Bulkley model (Equation (3)): where YP is yield point, PV is the plastic viscosity, τ 0 is the fluid yield stress, K is the consistency factor, n is the flow behavior index, and γ is the shear rate. The total ability for a Bingham plastic fluid to resist flow could be expressed by an apparent viscosity (AV) or effective viscosity for a given shear stress [2]. Generally, the shear rate of apparent viscosity is 1021 s −1 in API.
The Herschel-Bulkley model is used when the accuracy of the rheological parameter measurement is high or in laboratory research. The API recommends using this model; it consistently provides good simulations of measured rheological data for both water-based and non-aqueous drilling fluids. For this reason, it has become the de facto rheological model for engineering calculations in the petroleum industry [2].

Real-Time Measurement Technologies
The current measurement of rheological properties utilizes a typical manually controlled rotational Couette viscometer. In recent years, many scholars have researched real-time measurement of drilling fluid rheological properties. The real-time measurement technology of drilling fluid rheology mainly includes the following four methods: (1) online rotational Couette viscometer, (2) pipe viscometer, (3) mathematical and physical model or artificial intelligence (AI) model based on a Marsh funnel, and (4) tuning fork technology.

Online Rotational Couette Viscometer
The recommended methods for drilling fluid analysis are presented in API 13B [20]. The drilling fluid's rheological properties are measured using a standard rotational Couette viscometer as shown in Figure 2. The drilling fluid is placed in the measurement chamber, the motor drives the rotor sleeve to rotate at a constant speed through the transmission device. The viscosity of the measured liquid acts on the bob to generate a certain torque that drives the torsion spring, which is connected to the bob to produce an angle (dial reading). The dial reading is proportional to the viscosity of the fluid; thus, the viscosity of the fluid is calculated by the measured value of the dial reading. The standard rotational The recommended methods for drilling fluid analysis are presented in API 13B [20]. The drilling fluid's rheological properties are measured using a standard rotational Couette viscometer as shown in Figure 2. The drilling fluid is placed in the measurement chamber, the motor drives the rotor sleeve to rotate at a constant speed through the transmission device. The viscosity of the measured liquid acts on the bob to generate a certain torque that drives the torsion spring, which is connected to the bob to produce an angle (dial reading). The dial reading is proportional to the viscosity of the fluid; thus, the viscosity of the fluid is calculated by the measured value of the dial reading. The standard rotational Couette viscometer has six rotation speeds: 3, 6, 100, 200, 300, and 600 r/min, related to shear rate: 5  The parameters of the Bingham model (PV, YP, and AV) [19], PL model (n and K), Herschel-Bulkley model (τ0, n, and K), and 10 s and 10 min gel strength can be obtained using a standard rotational Couette viscometer. Many scholars developed an online rotational Couette viscometer based on a standard rotational Couette viscometer to measure the drilling fluid's rheological properties. The main improvement method is to add a control circuit to control the speed of the motor, turn the reading into an electrical signal output, and add the drilling fluid pipeline to automatically fill the measurement chamber with the drilling fluid. Figure 3 shows a typical online rotational Couette viscometer schematic diagram.   The parameters of the Bingham model (PV, YP, and AV) [19], PL model (n and K), Herschel-Bulkley model (τ 0 , n, and K), and 10 s and 10 min gel strength can be obtained using a standard rotational Couette viscometer. Many scholars developed an online rotational Couette viscometer based on a standard rotational Couette viscometer to measure the drilling fluid's rheological properties. The main improvement method is to add a control circuit to control the speed of the motor, turn the reading into an electrical signal output, and add the drilling fluid pipeline to automatically fill the measurement chamber with the drilling fluid. Figure 3 shows a typical online rotational Couette viscometer schematic diagram.
The recommended methods for drilling fluid analysis are presented in API 13B [20]. The drilling fluid's rheological properties are measured using a standard rotational Couette viscometer as shown in Figure 2. The drilling fluid is placed in the measurement chamber, the motor drives the rotor sleeve to rotate at a constant speed through the transmission device. The viscosity of the measured liquid acts on the bob to generate a certain torque that drives the torsion spring, which is connected to the bob to produce an angle (dial reading). The dial reading is proportional to the viscosity of the fluid; thus, the viscosity of the fluid is calculated by the measured value of the dial reading. The standard rotational Couette viscometer has six rotation speeds: 3, 6, 100, 200, 300, and 600 r/min, related to shear rate: 5  The parameters of the Bingham model (PV, YP, and AV) [19], PL model (n and K), Herschel-Bulkley model (τ0, n, and K), and 10 s and 10 min gel strength can be obtained using a standard rotational Couette viscometer. Many scholars developed an online rotational Couette viscometer based on a standard rotational Couette viscometer to measure the drilling fluid's rheological properties. The main improvement method is to add a control circuit to control the speed of the motor, turn the reading into an electrical signal output, and add the drilling fluid pipeline to automatically fill the measurement chamber with the drilling fluid. Figure 3 shows a typical online rotational Couette viscometer schematic diagram.   Saasen et al. [21,22] developed an online rotational Couette viscometer. The control box is used to change the rotational speed; shear stress readings were collected and transmuted to the acquisition device. In order to calibrate the drilling fluid's temperature response over a suitable temperature range, a temperature sensor was attached to the measuring unit. The measurements of the online rotational Couette viscometer were compared to and corresponded well with the standard rotational Couette viscometer. Broussard et al. [23] also developed an online rotational Couette viscometer and conducted experiments in water-based and oil-based mud wells. It demonstrated the possibilities of automated drilling fluid measurements by using an online rotational Couette viscometer. However, there were some shortcomings such as that the viscometer was easily plugged up by gels particles and solids. No data were recorded during the brief testing of the waterbased fluid at the first well due to the revealed heavy buildup of gel particles within the unit. During the first oil-based mud well, the automated sensor, equivalent to 600 rpm, measurements were consistently higher than the standard rotational Couette viscometer measurements. The 6 and 3 rpm equivalent measurements taken by the online viscometer trended very well when compared to the standard viscometer. For the second well, the online viscometer measurements for the water-based mud were significantly lower than the corresponding standard viscometer in the measurements below 300 rpm. Rheological property measurements taken by the online viscometer had an increased amount of noise in the measurements due to the significant accumulation of solids on the equipment. In order to avoid solids accumulation, Stock et al. [24] and Ronaes et al. [25] used a built-in pump and valve system for fluid sampling and cleaning cycles.
Magalhães et al. [26,27] used a rheology measurement instrument obtained by a modifying a Brookfield process viscometer, TT-100. The operational condition limits of the device were 1 to 15 bar (14.7 to 220.5 psi) of total pressure, temperature up to 160 • C (256 • F), and volumetric flow rate between 1 and 3 m 3 /h. There were four types of drilling fluid tested, namely, Newtonian fluid, pseudoplastic fluid, water-based drilling fluid, and synthetic-based drilling fluid. The measurement results showed that Newtonian fluid, represented by glycerin, and pseudoplastic fluid, represented by CMC solution, were statically consistent in terms of curve fitting. The results of the water-based mud and non-aqueous drilling fluid found some divergences. Compared with the standard viscometer measurement, the TT-100 tended to underestimate the shear stress in waterbased mud, while in the non-aqueous drilling fluid, TT-100 overestimated the shear stress. The limitation of the viscometer was the size of the solids suspended. This article points out that the maximum diameter of the solids in the drilling fluid tested by the instrument must be less than 1 mm. Magalhães et al. [28] installed it on an onshore rig site near the northeast of Brazil, and operated it for several weeks. The proposed device and methodology for measuring online rheology produced similar results to the standard offline technique.
Dotson et al. [29] used a different rotor-bob geometry Couette viscometer from the standard rational Couette viscometer. The relevant non-Newtonian correction factor was applied to agree with the standard rational Couette viscometer reading. Rheological property measurements were performed by batch analysis of the fluid every 10 to 60 min. Once the previous sample was fully displaced, the inlet and outlet valves on the respective flowlines were closed. The sample was then pressurized to 0.55 to 0.69 MPa to collapse large air/bubbles in the fluid and to help ensure the viscometer was filled. Then, the fluid was agitated and heated to a user-defined temperature, typically 120 • F (48.9 • C) or 150 • F (65.5 • C). After each rheology measurement, the measurement chamber was cleaned before the next fluid sample entered the viscometer, and the process was repeated. The online viscometer measurements were in agreement with those from the API viscometers. The rheology data from the two instruments were well within the desired tolerance of ±1.5 dial readings at all rotational speeds investigated. This technology is combined with a density meter to form a density rheological unit (DRU). The DRU helps reduce nonproductive time and manage pressure drilling. However, the conventional mud tests still must be performed and recorded. This can verify the accuracy of the DRU measurement and provide redundant measurements in the event of a DRU failure [30].

Pipe Viscometer
Because the online rotational Couette viscometer is easily blocked, Vajargah [31], Magalhães [27], Sercan Gul [32], Knut Taugbøl [33,34], Hansen [2], Krogsaeter [35], and Frøyland [36] used pipe viscometers to test drilling fluid rheological properties. According to Ahmed and Miska [37], the reliability and accuracy of pipe viscometers often outweigh rotational viscometers. Figure 4 shows a schematic example of the pipe viscometer. The test equipment requires a variable pump, a flow meter, mud with a known density, and a differential pressure sensor to measure the pressure difference in the test section of the straight pipe. Because screw pumps have no pressure pulsation and Coriolis flow meters can measure density and flow rate, pipe viscometers usually use a screw pump and a Coriolis flow meter. Pipe viscometer can measure drilling fluid rheological properties under laminar, transitional, and turbulent flow conditions. The data in the laminar flow state is calculated to characterize the rheological constant of the non-Newtonian fluid. The data obtained in transitional and turbulent conditions can be used to calculate the critical Reynolds number and friction factor in real time. Figure 5 shows the velocity profile in pipe laminar flow. The drilling fluid's rheological properties can be obtained from the follow equations.

Pipe Viscometer
Because the online rotational Couette viscometer is easily blocked, Vajargah [31], Magalhães [27], Sercan Gul [32], Knut Taugbøl [33,34], Hansen [2], Krogsaeter [35], and Frøyland [36] used pipe viscometers to test drilling fluid rheological properties. According to Ahmed and Miska [37], the reliability and accuracy of pipe viscometers often outweigh rotational viscometers. Figure 4 shows a schematic example of the pipe viscometer. The test equipment requires a variable pump, a flow meter, mud with a known density, and a differential pressure sensor to measure the pressure difference in the test section of the straight pipe. Because screw pumps have no pressure pulsation and Coriolis flow meters can measure density and flow rate, pipe viscometers usually use a screw pump and a Coriolis flow meter. Pipe viscometer can measure drilling fluid rheological properties under laminar, transitional, and turbulent flow conditions. The data in the laminar flow state is calculated to characterize the rheological constant of the non-Newtonian fluid. The data obtained in transitional and turbulent conditions can be used to calculate the critical Reynolds number and friction factor in real time. Figure 5 shows the velocity profile in pipe laminar flow. The drilling fluid's rheological properties can be obtained from the follow equations. In laminar flow, wall shear stress can be obtained when the differential pressure across the measurement section is known: where τw is the wall shear stress (Pa), D is pipe inner diameter (m), ΔP is the friction pressure loss (Pa), and ΔL is the pipe length of the test section (m). It can be shown that for pipes, the shear rate at the wall can be obtained from [38]: where is the shear rate (1/s) and v is the velocity (m/s). Introducing the generalized flow behavior index, N, as: weigh rotational viscometers. Figure 4 shows a schematic example of the pip The test equipment requires a variable pump, a flow meter, mud with a kn and a differential pressure sensor to measure the pressure difference in the the straight pipe. Because screw pumps have no pressure pulsation and Cor ters can measure density and flow rate, pipe viscometers usually use a screw Coriolis flow meter. Pipe viscometer can measure drilling fluid rheological der laminar, transitional, and turbulent flow conditions. The data in the lam is calculated to characterize the rheological constant of the non-Newtonian f obtained in transitional and turbulent conditions can be used to calculate the olds number and friction factor in real time. Figure 5 shows the velocity p laminar flow. The drilling fluid's rheological properties can be obtained fr equations. In laminar flow, wall shear stress can be obtained when the differe across the measurement section is known: where τw is the wall shear stress (Pa), D is pipe inner diameter (m), ΔP is the sure loss (Pa), and ΔL is the pipe length of the test section (m). It can be shown that for pipes, the shear rate at the wall can be obtaine where is the shear rate (1/s) and v is the velocity (m/s). Introducing the generalized flow behavior index, N, as: In laminar flow, wall shear stress can be obtained when the differential pressure across the measurement section is known: where τ w is the wall shear stress (Pa), D is pipe inner diameter (m), ∆P is the friction pressure loss (Pa), and ∆L is the pipe length of the test section (m). It can be shown that for pipes, the shear rate at the wall can be obtained from [38]: where . γ w is the shear rate (1/s) and v is the velocity (m/s). Introducing the generalized flow behavior index, N, as: Then Equation (7) is now rewritten as: .
According to Equation (7), the slope of the "flow curve" (ln τ w vs. ln(8v/D)) represents the generalized flow behavior index, N. Once N is obtained from the flow curve, the shear rate at the wall can be calculated by using Equation (8). Subsequently, rheological parameters for any desired rheological model can be obtained by plotting the shear stress vs. shear rate at the wall and applying a proper curve fitting technique. The Herschel-Bulkley model (Equation (3)) exhibits an acceptable accuracy for the majority of drilling, completion, and cementing fluids and is therefore usually used to fit rheological curves.
Once the rheological constants are obtained, the Reynolds number can be calculated by mud velocity, density, and the wall shear stress as: where ρ is the mud density (kg/m 3 ).
The friction factor f is calculated from the frictional pressure loss measurements using: Vajargah et al. [31] designed and tested a pipe viscometer in 2016. The main measurement section was approximately 5.5 m long and consisted of two pipe sections 1.27 cm and 0.9525 cm in diameter. The pipe viscometer was calibrated with water before testing. Three types of drilling fluid (i.e., bentonite drilling fluid, polymer-based drilling fluid, and synthetic-based drilling fluid) were used to perform the pipeline rheometer. A standard viscometer was also used to obtain rheology data. The rheological diagrams of the two different methods are relatively similar. The test results are shown in Table 1.
The pipe viscometer designed by Sercan Gul et al. [32] has the test sections of the flow loop 1.25 m and 3.80 m long with an outside diameter of 2.54 cm. A comprehensive system calibration was achieved by circulating water at different flow rates through the flow loop. Excellent agreement was observed between the measurement results and the theoretical results. The mean absolute percentage error (MAPE) was calculated by taking the mean of the absolute percentage error (APE) for each single data point, as shown in Equations (11) and (12). The maximum APE was 3.5%, the MAPE was 1.6%, and the coefficient of determination (R 2 ) was 0.99. In experimental verifications, a total of fifteen tests were performed using various water-based mud and oil-based mud formulations at 25 • C, 50 • C, and 65.5 • C. It showed the precision and robustness of the pipe viscometer method and that it could be used to provide a quality and frequent fluid characterization for field muds. In field testing, the pipe viscometer measurements of both PV and YP were a perfect match to the data reported in daily mud reports by the mud engineer.
where ∆p is the pressure loss (Pa), i is each measured data point, and n is the total number of measurements. Taugbøl et al. [33,34] use the above principles to design pipe automatic drilling fluid measurement. The total length of the equipment was 3.3 m, the width was 0.7 m, and the height was 0.9 m. It converted the measurement results of the pipe viscometer to the standard Couette viscometer's dial readings and achieved good results. It was set to measure the viscosity every 15 min. It was installed and ran on several offshore drilling platforms and provided high-quality real-time drilling fluid data. It highly reduced the sampling time intervals, enabling improved fluid control and improved fluid quality.
Magalhães Filho et al. [27] compared three drilling fluid rheological property real-time testing methods: a standard Couette viscometer FANN35A, online Couette viscometer TT-100, and pipe viscometer. For the Newtonian fluids, the viscosities measured by the three instruments were consistent. For non-Newtonian fluids, the PL parameters provided by each instrument were different, including drilling fluid (with suspended solids) and polymer solutions. These variations can mainly be caused by the consequences of fluid/gap interfaces, homogeneity, and slipperiness. However, these differences were not severe when the pressure drop was estimated using these parameters. The error between the pressure drop calculated by the TT-100 and the experimental value was the smallest. The error of the FANN35A was 17.81%, the error of the TT-100 was 0.41%, and the error of the pipe viscometer was 6.27%.
Some methods have the same theory as the pipe viscometer. Compared with the abovementioned pipe viscometers, these methods are convenient and do not take up much space. A novel downhole sensor was developed by Rondon et al. [39]. It can be inserted into the drill string to measure the rheological properties of fluids in real-time. The mixtures of glycerin and water were used to test and calibrate this sensor. Real crude oil samples were also used to test the performance of this sensor. The error between the designed sensor's measurement value and the standard measurement value was within 2%. However, drilling fluids need further testing to evaluate the performance of the sensor. This sensor needs to further consider the flow rate and viscosity range of the drilling fluid and optimize the dimensions of the sensor. Carlsen et al. [40] measured the pressure at various positions in the drilling fluid's circulation system. Various flow rates and pressures were used to measure the friction coefficient of the drilling fluid. The results show that it can also be used to calculate other drilling fluid rheological properties such as shear stress and viscosity. Vajargah et al. [41,42] proposed a method to determine rheology in real time from downhole measurements of pressure drop and temperature, considering the well as an annulus pipe viscometer. It can directly obtain the ECD of the well. The results were compared to offline data taken from an offline high-pressure, high-temperature rheometer. It can estimate the gel strength by peak pressure loss. However, the time-dependent behavior of the drilling fluid theory needs to be developed through this method. We think, with the development of measurement while drilling (MWD) technology, it is a good method to obtain the rheological properties of drilling fluid by measuring downhole pressure. This method does not require further surface measurements, which can greatly simplify the rheological measurement methods and equipment and eliminate the labor required for operation and maintenance.
Pipe viscometers usually use a round pipe, the sensor installed in the round pipe may affect the flow rate, resulting in inaccurate pressure measurement. Therefore, Liu et al. [43] developed a rectangle pipe viscometer. During the test, a 5% bentonite slurry with a density of 1.03 g/cm 3 was prepared, and 0.1% polyacrylamide glue solution, 0.1% polyacrylonitrile ammonium, and xanthan gum was added successively. The pipe viscometer continuously recorded the change process of the rheological properties of the drilling fluid, the measurement results were the same as the standard viscometer measurement results, and the error was small. Sun et al. [44] developed a type of altered-diameter rectangle pipe viscometer to realize continuous online monitoring. Through altered-diameter pipes, different flow rates can be generated under constant flow. Fresh water and bentonite drilling fluid are tested in the laboratory. Compared with the standard viscometer, the results show that the error of AV and PV are both within the allowable range. The field test results show that the performance of the tested data was stable and reliable. Compared with the API standard method, the error was within the allowable range. While a pipe viscometer takes up a lot of space, Sercan Gul [45,46] developed a helical pipe viscometer to measure rheological properties. The system included four test parts (two horizontal straight pipes and two vertical spiral pipes), four differential pressure sensors, a 40 L liquid storage tank, a Coriolis flowmeter, and a variable frequency drive screw pump. It tested the rheological properties of 20 polymer-based fluids. These fluids were based on water and added xanthan gum to increase the viscosity. The equivalent straight pipe pressure losses needed to be calculated accurately by using the pressure loss data obtained from a helical pipe viscometer. However, none of the papers [47][48][49] reported correlations of PL fluids were valid for Herschel-Bulkley fluids. Thus, a random forest regression model was used to predict the friction coefficient with friction pressure loss, the mean absolute error was 0.803 × 10 −3 , and the mean absolute percentage error was 4.55%. The algorithm was developed using the trained machine learning model and the pipe viscometer equations. The rheogram results matched the standard Couette viscometer. Table 1 shows a comparative study of the online Couette viscometers and the pipe viscometers conducted by previous researchers, and the results are similar to the standard Couette viscometer.

The Technology Based on Marsh Funnel
Marsh funnel is a commonly used instrument for viscosity analysis, calculating the final fluid release time of almost 1.5 L. Marsh [50] invented the Marsh funnel ( Figure 6) in 1931 as a quick and easy way to estimate the viscosity of drilling fluids. Pitt et al. [19,[51][52][53][54][55][56] analyzed the relationship between rheological properties and the Marsh funnel and established models for estimating drilling fluid rheological properties by using Marsh funnel time such as Equation (13) [51], Equation (14) [53], and Equation (15) [53]:

The Technology Based on Marsh Funnel
Marsh funnel is a commonly used instrument for viscosity analysis, final fluid release time of almost 1.5 L. Marsh [50] invented the Marsh funn 1931 as a quick and easy way to estimate the viscosity of drilling fluids. Pi 56] analyzed the relationship between rheological properties and the Mar established models for estimating drilling fluid rheological properties by funnel time such as Equation (13)  An artificial neural network (ANN) is an effective technology that im logical neurons of the human brain [57]. The main processing element of the ral network system is the neuron. The ANN model is composed of netwo with at least three layers (i.e., input, hidden, and output layers), a training a a transfer function [58]. Each layer is connected to other layers, and the con layers are called weights. The backpropagation technology is used in the t ficial neural networks. By Comparing the estimated data and actual data layer, it updates the weight between the deviation of each connection and e An artificial neural network (ANN) is an effective technology that imitates the biological neurons of the human brain [57]. The main processing element of the artificial neural network system is the neuron. The ANN model is composed of network architecture with at least three layers (i.e., input, hidden, and output layers), a training algorithm, and a transfer function [58]. Each layer is connected to other layers, and the constants of these layers are called weights. The backpropagation technology is used in the training of artificial neural networks. By Comparing the estimated data and actual data in the output layer, it updates the weight between the deviation of each connection and each layer. This is repeated until the desired improvement is achieved and the error is reduced to a certain threshold [59].
According to the above theories, artificial intelligence methods are used to estimate rheological properties more accurately in real time based on parameters such as the Marsh funnel viscosity, mud weight, and solid content [60][61][62][63][64][65][66][67][68][69][70][71]. Bispo et al. [72] used temperature, xanthan gum, bentonite, and barite to estimate AV. The main model used was the ANN. Figure 7 shows a schematic of the ANN model to estimate rheological properties. The model usually consists of three layers: an input layer-in addition to the Marsh funnel viscosity, the other drilling fluid parameters, such as mud weight and solid content, are also added as input elements; a hidden layer, which contains an optimized number of neurons; an output layer, which contains output parameters (PV, YP, AV, K, n, and τ 0 ). Abdelgawad et al. [63] and Elkatatny et al. [66] used the self-adaptive differential evolution (SaDe) algorithm to optimize the best combination of the ANN's parameters for rheological property estimation. SaDe proposed by Qin et al. [57] is a special differential evolution algorithm with adaptive control parameters and mutation strategies based on learning experience [57,58]. The trial-and-error procedure required to obtain the optimized solution is avoided in SaDe, which reduces the time required for optimization problems [70].
As shown in Table 2, scholars use the ANN model to predict the drilling fluid rheological properties (PV, AV, n, K, τ0, reading of 300 rpm and 600 rpm) in real time and show good results. The methods to evaluate the performance of the ANN model are average absolute error (AAE) (Equation (16)), average absolute percentage error, AAPE (Equation (17)), R 2 , and mean square error (MSE). In all these papers, the predicted result for R 2 was greater than 0.89, AAE was less than 4.7, and AAPE was less than 8.6%. This inexpensive technique will help drilling engineers to control the drilling operation better and predict drilling problems before they occur. Moreover, it will reduce the total cost of drilling operations. However, different ANN models need to be established by training drilling fluid data in different mud systems. One artificial intelligence model can be used in wells located in the same block or in the same drilling fluid system.
where i is each measured data point, yreal is real measured value, and ypredict is predict measured value. Abdelgawad et al. [63] and Elkatatny et al. [66] used the self-adaptive differential evolution (SaDe) algorithm to optimize the best combination of the ANN's parameters for rheological property estimation. SaDe proposed by Qin et al. [57] is a special differential evolution algorithm with adaptive control parameters and mutation strategies based on learning experience [57,58]. The trial-and-error procedure required to obtain the optimized solution is avoided in SaDe, which reduces the time required for optimization problems [70].
As shown in Table 2, scholars use the ANN model to predict the drilling fluid rheological properties (PV, AV, n, K, τ 0 , reading of 300 rpm and 600 rpm) in real time and show good results. The methods to evaluate the performance of the ANN model are average absolute error (AAE) (Equation (16)), average absolute percentage error, AAPE (Equation (17)), R 2 , and mean square error (MSE). In all these papers, the predicted result for R 2 was greater than 0.89, AAE was less than 4.7, and AAPE was less than 8.6%. This inexpensive technique will help drilling engineers to control the drilling operation better and predict drilling problems before they occur. Moreover, it will reduce the total cost of drilling operations. However, different ANN models need to be established by training drilling fluid data in different mud systems. One artificial intelligence model can be used in wells located in the same block or in the same drilling fluid system.
where i is each measured data point, y real is real measured value, and y predict is predict measured value.

Acoustic Technology
In 2011, Miller et al. [73] introduced a system for continuously measuring and recording mud density and viscosity, using an instrument based on tuning fork technology as shown in Figure 8. The instrument can measure density and viscosity, and the viscosity is in units of equivalent Marsh funnel seconds. The instrument was mounted in-line with a constant fluid flow rate past it. This method has a wide spectrum of industrial applications; it is robust and reliable and takes into account the separation of the fork teeth, so it is not easy to block. The instrument measures the standing wave generated by the vibrating teeth of the fork and calculates the density and viscosity of the fluid based on the amplitude and frequency measurement results. The density and viscosity values are output with 4-20 mA signals, which can be displayed locally in any required oilfield unit and output to the drilling rig data collection or logging tool computer software package.

Acoustic Technology
In 2011, Miller et al. [73] introduced a system for continuously measur ing mud density and viscosity, using an instrument based on tuning fork shown in Figure 8. The instrument can measure density and viscosity, and in units of equivalent Marsh funnel seconds. The instrument was mounted constant fluid flow rate past it. This method has a wide spectrum of ind tions; it is robust and reliable and takes into account the separation of the is not easy to block. The instrument measures the standing wave generated ing teeth of the fork and calculates the density and viscosity of the fluid amplitude and frequency measurement results. The density and viscosity put with 4-20 mA signals, which can be displayed locally in any required o output to the drilling rig data collection or logging tool computer software The tuning fork instrument kit operates at a back pressure of 0.7-0 density read is equal to the density of the normal pressurized drilling flui viscosity are calibrated by manual readings per shift. The instrument ki brated based on the new readings of the standard Marsh funnel viscometer sity or viscosity significantly changes. Experience in fields showed that a ca is sufficient at the start of each shift to ensure that readings are compara manual readings. The sensor is small and easy to install but requires manu Ofoche et al. [74] presents a novel approach of continuously measurin rheology and density by use of sound signals. Figure 9 shows the schemati flow of drilling fluid in the pipeline is Poiseuille flow. Sound waves gene zoelectric transducer are passed though the fluid and the resultant dampi signals are used to drive a receiver piezo disc. The data acquisition dev frequency response and voltage by use of a fast Fourier transform routin with a constant rate designed to simultaneously calculate the six API recom rates. Therefore, six pipe sections were designed that have diameters corres six normal shear rates used in the petroleum industry. Since both density will affect the signal response, a multivariate random forest method was e used to predict the dial readings. All dial readings measured by the acousti within ±1 of the dial readings of the rotational viscometer.  The tuning fork instrument kit operates at a back pressure of 0.7-0.8 MPa, so the density read is equal to the density of the normal pressurized drilling fluid. Density and viscosity are calibrated by manual readings per shift. The instrument kit can be recalibrated based on the new readings of the standard Marsh funnel viscometer when the density or viscosity significantly changes. Experience in fields showed that a calibration check is sufficient at the start of each shift to ensure that readings are comparable directly to manual readings. The sensor is small and easy to install but requires manual calibration.
Ofoche et al. [74] presents a novel approach of continuously measuring drilling fluid rheology and density by use of sound signals. Figure 9 shows the schematic diagram. The flow of drilling fluid in the pipeline is Poiseuille flow. Sound waves generated by a piezoelectric transducer are passed though the fluid and the resultant damping effect of the signals are used to drive a receiver piezo disc. The data acquisition device records the frequency response and voltage by use of a fast Fourier transform routine. A flow loop with a constant rate designed to simultaneously calculate the six API recommended shear rates. Therefore, six pipe sections were designed that have diameters corresponding to the six normal shear rates used in the petroleum industry. Since both density and viscosity will affect the signal response, a multivariate random forest method was established and used to predict the dial readings. All dial readings measured by the acoustic method were within ±1 of the dial readings of the rotational viscometer. frequency response and voltage by use of a fast Fourier transform routine. A flow loop with a constant rate designed to simultaneously calculate the six API recommended shear rates. Therefore, six pipe sections were designed that have diameters corresponding to the six normal shear rates used in the petroleum industry. Since both density and viscosity will affect the signal response, a multivariate random forest method was established and used to predict the dial readings. All dial readings measured by the acoustic method were within ±1 of the dial readings of the rotational viscometer.  Table 3 briefly compares the real-time measurement techniques, and the detailed analysis are as follows.  [73,74] (1) The online Couette viscometer is the most similar to the API standard measurement method, so it has the highest accuracy and can measure all drilling fluid rheological properties. However, the gap between the rotor and the stator is narrow, and the diameter of solids must less than 1 mm. Solid or gels particles may be sedimented in the viscometer, so the online Couette viscometer is easily plugged. It is inconvenient to use and requires regular cleaning and maintenance. This viscometer is suitable for drilling fluids with low viscosity and low solid content. (2) Compared with the online Couette viscometer, the pipe viscometer provides better automatic measurement technology. The solid and gel particles in the drilling fluid will not settle in the pipe. By adding additional sensors to the pipe, additional variables can be obtained such as fluid density, temperature, critical Reynolds number, and real-time friction coefficient. However, it cannot measure the 10 s and 10 min gel strength. The pipe viscometer is large, and it occupies a large space for installation. Compared with the pipe viscometer, the helical pipe viscometer has obvious advantages, having a compact size and more general friction pressure loss curve. At the same time, the helical pipe increases the friction pressure loss and delayed flow state transition, so the helical pipe viscometer can be used to collect more data in the laminar flow state, thereby improving the accuracy of low shear rheological parameter estimation. However, the theoretical basis for the helical pipe viscometer is still under development. (3) Artificial intelligence technology is the cheapest method, because only the Marsh funnel is needed, and the mud balance and solid content meter may be added optionally. Although the test of the Marsh funnel, density, and sand content was simple and quick, it still required manual testing. The neural network model was different when the drilling system was different. One artificial intelligence method can be used in wells which are in the same block or in the same drilling system. The test results of the tuning fork technology were Marsh funnel viscosity and density, which can be combined with artificial intelligence technology to form an automatic online measurement of drilling fluid rheological properties. (4) The current drilling fluid rheology measurement is offline in API recommended practice for field testing drilling fluids, which can no longer meet the needs of intelligent drilling. In order to control and optimize rheological parameters in real-time, it is necessary to consider developing a criterion that can measure drilling rheological properties in real time. The standard Couette viscometer also has shortcomings [75][76][77][78] analyzing the end-effect, correction, and reliability of the Couette viscometer. It is an opportunity to use real-time drilling fluid rheological properties measurement to improve the current criteria. The pipe viscometer is good in automation and will not be plugged by solids and gel. The reliability and accuracy of pipe viscometers often outweigh rotational viscometers. At present, the pipe viscometer used is large, so it is necessary to miniaturize the instrument for convenient use in the field. The helical pipe viscometer requires further mechanism research in theory to promote the real-time measurement of rheology. (5) The practicability of the instrument is relatively not good. We think two convenient methods can be considered in the future. One method is using MWD technology to measure the pressure in the drill string and annulus while drilling, the ECD can be accurately obtained. The drill pipe and annulus are considered as a large pipe viscometer, which can calculate the drilling fluid rheological properties. The other method is acoustic technology, including tuning fork technology, ultrasonic technology, etc. There are many articles using ultrasound to measure fluid parameters [79][80][81][82][83], but the composition of the drilling fluid is complex, and the ultrasonic attenuation is related to many factors [26] (temperature, density, viscosity, solid content, etc.). For example, if an increase in ultrasonic attenuation is due to the entrance of solids into the system, the density should also increase, and some increase may be observed in the viscosity.

Discussion and Prospects
On the other hand, if an increase in the attenuation is observed due to the addition of polymers, the density may change slightly or not even change, but viscosity will significantly increase. The sound speed is also important since it helps the system to discern when the density is rising due to the solids suspended or solids dissolved. Therefore, the theory of ultrasound technology needs to be developed by simulation and experiment [21,22,83]. Magalhães et al. [26] used density, viscosity, ultrasound attenuation, and sound speed as inputs to establish an ANN model of concentration of the suspended solids. The installation of these two methods is convenient, but further technology and theoretical research are needed. (6) The current drilling fluid performance testing mainly measures the drilling fluid that samples from the mud pit. The drilling fluid returning from the annulus contains a lot of stratum information, so its testing is also very important and can help judge the formation. Testing its performance can also make better decisions for processing to maintain the performance of drilling fluid. However, the mud returning from the annulus contains many solid particles, and some particles have large diameters. Therefore, the allowable particle diameter of the instrument needs to be further considered in the selection of equipment.

Conclusions
This article analyzes the four real-time measurement technologies of drilling fluids, and the measurement results of each technology are within the tolerance range compared with the standard rotational Couette viscometer in field test. At present, there is no industry standard handbook for real-time drilling fluid measurement. This status hinders the automatic control of drilling fluid. In the future, technical standards for real-time drilling fluid measurement will be established based on standard laboratory testing methods. This article analyzed the four methods in terms of principles, implementation methods, advantages, limitations, etc. Engineers can choose one of the four methods for real-time measurement according to their requirements in the field. The online rotational Couette viscometer is suitable for the low-viscosity and low-solid content drilling fluid. The pipe viscometer is a reliable real-time measurement method. As a result, a standard and small pipe viscometer may be formed to test the drilling fluid rheological properties in the future. The technology of MWD downhole pressure measurement and ultrasound technology can also be considered to measure drilling fluid rheological properties. Through real-time measurement of the rheological properties of drilling fluids, the performance of drilling fluids can be grasped in real-time, the drilling status can be judged in time, and relevant drilling fluid processing decisions can be made to ensure drilling safety. Through big data, artificial intelligence, and other technologies, the drilling fluid performance can be optimized in real time to achieve the optimal rate of penetration, thereby improving economic benefits.