Next Article in Journal
Estimation of Kinetics Using IMUs to Monitor and Aid in Clinical Decision-Making during ACL Rehabilitation: A Systematic Review
Previous Article in Journal
A Self-Powered Lactate Sensor Based on the Piezoelectric Effect for Assessing Tumor Development
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Advancing Slim-Hole Drilling Accuracy: A C-I-WOA-CNN Approach for Temperature-Compensated Pressure Measurements

1
School of Electronic Engineering, Xi’an Shiyou University, Xi’an 710312, China
2
School of Mechanical and Electrical Engineering, Xi’an University of Architecture and Technology, Xi’an 710064, China
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(7), 2162; https://doi.org/10.3390/s24072162
Submission received: 8 March 2024 / Revised: 24 March 2024 / Accepted: 25 March 2024 / Published: 28 March 2024
(This article belongs to the Section Industrial Sensors)

Abstract

:
This paper presents a novel method to improve drill pressure measurement accuracy in slim-hole drilling within the petroleum industry, a sector often plagued by extreme conditions that compromise data integrity. We introduce a temperature compensation model based on a Chaotic-Initiated Adaptive Whale Optimization Algorithm (C-I-WOA) for optimizing Convolutional Neural Networks (CNNs), dubbed the C-I-WOA-CNN model. This approach enhances the Whale Optimization Algorithm (WOA) initialization through chaotic mapping, boosts the population diversity, and features an adaptive weight recalibration mechanism for an improved global search and local optimization. Our results reveal that the C-I-WOA-CNN model significantly outperforms traditional CNNs in its convergence speed, global searching, and local exploitation capabilities, reducing the average absolute percentage error in pressure parameter predictions from 1.9089% to 0.86504%, thereby providing a dependable solution for correcting temperature-induced measurement errors in downhole settings.

1. Introduction

In the evolving landscape of the petroleum industry, slim-hole drilling technology emerges as a pivotal advancement. It addresses the dual challenges of a rising hydrocarbon demand and the escalating costs associated with traditional drilling practices. Characterized by its reduced dependence on drilling consumables, this technology offers significant economic advantages in exploratory projects and minimizes environmental impacts. This has attracted considerable attention within the field. Moreover, in the drilling process, the monitoring of the drilling pressure is crucial for safety and efficiency, making the accurate measurement of the drilling pressure especially critical [1,2].
A critical aspect of drilling operations, especially under the severe high-temperature conditions typical of downhole environments, is the integrity of pressure measurements. Such extreme conditions often induce nonlinear deviations in pressure data, underscoring the necessity for advanced temperature compensation methods. Among the various solutions, software-based compensation stands out due to its cost-effectiveness, flexibility, and customization options, providing a practical alternative to the more cumbersome hardware-based approaches.
Despite their advantages, each software compensation method comes with inherent limitations. For instance, linear interpolation methods may introduce significant errors when applied beyond the original data range [3]. Polynomial fitting can effectively handle nonlinear sensor data but requires high-order polynomials, which are susceptible to overfitting [4]. Lookup table methods, reliant on extensive data and computational resources, often struggle with adaptability to new temperature conditions [5,6]. The BP neural network, while offering robust learning capabilities and an adaptability to sensor nonlinearities, may not perform well with complex datasets or in capturing spatial hierarchies [7,8]. CNNs excel in identifying local patterns and establishing spatial hierarchies, providing translational and spatial invariance, but can be hindered by slow convergence rates and a propensity for overfitting [9,10,11].
Addressing these challenges, this manuscript introduces the C-I-WOA-CNN model, an innovative integration of the Chaotic Whale Optimization Algorithm (CWOA) with the Integrated Whale Optimization Algorithm (IWOA), specifically tailored for the CNN framework. This hybrid approach leverages the strengths of the CWOA and IWOA, promoting faster convergence, enhancing global search capabilities, and facilitating more effective exploitation and an improved stability. The C-I-WOA-CNN model represents a sophisticated solution for temperature compensation in slim-hole drilling pressure measurement, offering significant advancements over existing methods [12,13].

2. Related Works

Numerical analysis methods: In the realm of numerical analysis, a plethora of techniques are employed to tackle various computational problems, among which Cubic Spline Interpolation, the Least Squares Method, and the Gradient Descent Method stand out for their effectiveness and widespread application. High-degree polynomial interpolation, while powerful, can sometimes lead to undesirable oscillations or inaccuracies, particularly in scenarios where data points are influenced by external factors, such as temperature-induced changes in drilling pressure. In such cases, piecewise interpolation methods, which segment the interpolation range into smaller intervals and apply lower-degree polynomials within each, prove to be more reliable. Unlike basic piecewise methods that may result in discontinuous or non-smooth junctions between segments, Cubic Spline Interpolation ensures a smooth transition by maintaining continuous second-order derivatives at the boundaries of each interval, thus providing a more accurate and visually pleasing interpolation [14,15].
The Least Squares Method, pivotal in the field of optimization, seeks to minimize the sum of squared residuals, representing the differences between observed values and those predicted by a model. This method is foundational in regression analysis and curve fitting, providing a robust approach to model estimation and prediction [16,17].
Gradient Descent, a cornerstone algorithm in both numerical analysis and machine learning, iteratively adjusts parameters in a model to minimize a defined loss function. This method is particularly effective for finding local minima in complex optimization problems, and its variants, such as Stochastic Gradient Descent and the Adam optimizer, have further enhanced its efficiency and applicability across various domains [18,19].
Neural network methods: The integration of optimization algorithms with neural networks has catalyzed significant breakthroughs in this field. Innovations such as Particle Swarm Optimization combined with Backpropagation Neural Networks (PSO-BP), Genetic Algorithms integrated with Convolutional Neural Networks (GA-CNN), and the fusion of Ant Colony Optimization with Backpropagation Neural Networks (ACO-BP) exemplify the synergy between optimization techniques and neural computation [20,21,22,23,24].
Particle Swarm Optimization, drawing inspiration from the social dynamics observed in bird flocks or fish schools, enhances the initialization and adjustment of neural network parameters, such as weights and biases, through a collaborative search mechanism. This approach not only improves the efficiency of the search process but also aids in circumventing suboptimal local minima, thereby enhancing the overall performance of BP neural networks [25,26].
Genetic Algorithms, modeled after evolutionary processes and natural selection, offer a powerful framework for optimizing the architecture and parameters of neural networks. By simulating the process of mutation, crossover, and selection among a population of potential solutions, GAs can effectively identify optimal or near-optimal configurations for CNNs, thus leveraging the evolutionary principles for computational advantage [27,28].
Ant Colony Optimization, inspired by the foraging behavior of ants, applies a probabilistic technique to explore and exploit solutions in the training of BP neural networks. By simulating the way ants deposit pheromones and follow the most promising paths to food sources, ACO algorithms diversify the search strategy of neural networks, enhancing their ability to escape local optima and converge towards globally optimal solutions [23,29].

3. Principle of Drilling Pressure Measurement

The methodology for drilling pressure measurement leverages the strain sensitivity of resistive strain gauges incorporated into a Wheatstone bridge circuit, a design chosen for its proficiency in translating minute changes in resistance into discernible electrical signals. In the operational framework, the imposition of drilling pressure induces a deformation in the strain gauge, manifesting as a variation in its electrical resistance. This alteration is pivotal, as the Wheatstone bridge, through its balanced circuitry, adeptly converts these resistance fluctuations into voltage outputs, thereby quantifying the drilling pressure with precision. Figure 1 expounds on the schematic representation of the Wheatstone bridge’s principle. It is imperative to note that the downhole environment, characterized by its elevated temperature conditions, can skew the strain gauge’s response, introducing nonlinear errors. To counteract this, a meticulous temperature compensation protocol is indispensable to ensure the fidelity and accuracy of the drilling pressure measurements [30,31].

4. Principle of C-I-WOA-CNN

4.1. Neural Network Methods

Addressing the challenge posed by temperature-induced nonlinearities in strain gauges, the application of Convolutional Neural Networks (CNNs) enables the modeling of intricate nonlinear relationships that are essential for precise temperature compensation [9]. This study proposes an optimized CNN architecture, comprising two convolutional layers, two pooling layers, ReLU activation functions, and a single fully connected layer, specifically tailored for drilling pressure measurement correction. Figure 2 conceptualizes the CNN framework tailored for temperature compensation, encapsulating an input layer, convolutional layers, activation layers, pooling layers, a fully connected layer, and an output layer. The CNN’s input layer accepts temperature data (Ut) from the drilling pressure measurement setup and the corresponding output voltage (UP), aiming to predict the drilling pressure (FP) based on the applied force (FN) to the strain gauge.
The convolutional layers, fundamental to the CNN, are tasked with the extraction of salient features from the input data. Considering the input’s one-dimensional nature against the desired singular output, a 1 × 3 convolutional kernel is employed for its efficacy in handling one-dimensional inputs while maintaining sensitivity to local data features. The ReLU activation function is selected for its proficiency in addressing the vanishing gradient problem that arises during the training of deep neural networks, as well as for its computational efficiency. It offers a straightforward yet potent nonlinear transformation that promotes quicker convergence and accelerates the training process. Moreover, ReLU’s capability to manage potential gradient explosion issues ensures the stability of the network architecture.
Pooling layers within the CNN play a crucial role in reducing the dimensionality of the feature maps, thereby enhancing feature extraction capabilities. In the context of temperature compensation, these layers aid the network in identifying temperature-invariant features, thus enhancing the model’s resilience to temperature fluctuations and reducing computational demands. The fully connected layer integrates the features derived from previous layers to execute the final regression or classification tasks. For temperature compensation, this layer empowers the CNN to generalize across varying temperature conditions, improving the robustness and adaptability of the model to different thermal environments. It enables the network to learn and adjust to temperature variations, facilitating effective temperature compensation across diverse operational settings [32,33,34].

4.2. Enhancing CNN with Whale Optimization Algorithm (WOA)

The Whale Optimization Algorithm (WOA) stands out as an innovative meta-heuristic optimization framework, drawing inspiration from the sophisticated hunting techniques of humpback whales. The appeal of meta-heuristic algorithms like the WOA lies in their gradient-free operation, which allows for a broad exploration of the solution space, thereby mitigating the risk of convergence to local minima—a common challenge in gradient-based optimization methods. These algorithms have found increasing application across various engineering domains due to their flexibility, simplicity in implementation, and robustness in navigating complex optimization landscapes. As depicted in Figure 3, meta-heuristic algorithms can be classified into three principal categories. The first category encompasses evolutionary-based intelligent optimization algorithms, such as Evolutionary Strategies (ESs) and Genetic Algorithms (GAs), which mimic natural evolutionary processes. The second category includes physics-inspired intelligent optimization strategies, exemplified by Simulated Annealing (SA) and the Black Hole Algorithm (BH), which draw analogies from physical phenomena to guide the search process. The third category comprises swarm intelligence-based optimization methods, such as Particle Swarm Optimization (PSO) and Ant Colony Optimization (ACO), which are inspired by the collective behavior of social organisms. Incorporating a Whale Optimization Algorithm (WOA) into CNN architectures presents a compelling strategy for refining network parameters. This enhancement strengthens the model’s ability to identify optimal feature representations, thereby boosting its overall efficacy in complex pattern recognition tasks, such as temperature compensation in drilling pressure measurements [35].
The Whale Optimization Algorithm (WOA) is a sophisticated optimization approach inspired by the social and hunting strategies of humpback whales, particularly their methods of encircling prey and employing bubble-net feeding tactics. This algorithm mirrors the phases of prey encirclement and exploration, incorporating these natural strategies into a computational framework for solving optimization problems [36,37]. The mathematical model underlying the WOA is outlined in the following sections.

4.2.1. Encircling Prey

The strategy of encircling prey is mathematically modeled on the humpback whale’s innate ability to locate and surround its target. This is mathematically represented as follows:
D = | C · X * ( t ) X ( t ) | .
X ( t + 1 ) = X * ( t ) A · D .
Here, t denotes the iteration index and D represents the distance vector between a whale and the prey, with X * ( t ) indicating the position vector of the optimal solution (prey) at iteration t and X ( t ) being the position vector of a whale. The coefficients A and C play crucial roles in adjusting the movement direction and length of the step towards the prey.
The coefficients are defined as in Equation (3).
A = 2 a · r 1 a ,
C = 2 · r 2 .
In the equations above, r 1 and r 2 are random vectors with values in the range [0, 1]. The vector a is a linearly decreasing coefficient from 2 to 0 as the iterations proceed, as defined by the following:
a = 2 2 t T max .
This decreasing nature of a ensures that the algorithm shifts its focus from exploration to exploitation, effectively mimicking the transition from searching for prey to encircling and capturing it as the iteration count t approaches the maximum number of iterations  T max .
Figure 4 illustrates the strategic maneuvering of a whale within a two-dimensional space, adapting its coordinates (X, Y) towards the optimal position (X*, Y*) identified within the same iteration. This adaptation is facilitated through the modulation of coefficients A and C , which are influenced by the stochastic vectors r 1 and r 2 . Consequently, the whale’s subsequent position in the iterative cycle is determined within a defined range, as depicted in Figure 4. At each iteration, the whale optimizes its spatial location, progressively converging towards the current optimum, thereby emulating the natural predatory behavior of encircling its prey. This principle is scalable to multidimensional spaces, where the whale navigates the hyperdimensional landscape to encircle the optimal solution point, with “n” denoting the dimensionality of the problem’s parameter space, thus ensuring a comprehensive exploration and exploitation in the search for the global optimum.

4.2.2. Bubble-Net Attacking Method

In simulating the sophisticated hunting strategy of humpback whales, which includes a blend of encircling contraction and spiral movement towards the prey, mathematical formulations are developed to model both the shrinking encircling mechanism and the spiral approach strategy:
1. Shrinking encircling mechanism: This strategy is modeled by progressively diminishing the magnitude of the a parameter in Equation (3), where the value of A oscillates within the range [ a , a ] . The decrement of a is linear as per Equation (5), facilitating a simulated contraction towards the prey. Specifically, when a lies within [ 1 , 1 ] , the subsequent position of the whale is determined within the bounds defined by its current location and the optimal target position. As depicted in Figure 5, within a two-dimensional framework, if A falls within [ 0 , 1 ] , the prospective position of the whale is constrained to the region demarcated by points (X, Y) and (X*, Y*).
2. Spiral position update: As depicted in Figure 6, this method starts by calculating the gap between the whale’s present coordinates (X, Y) and the prime location (X*, Y*). A logarithmic spiral route is then established between these coordinates, mimicking the humpback whale’s helical approach to its prey. The principal formula for this helical trajectory is presented in Equation (6).
X ( t + 1 ) = D i · e b l · cos ( 2 π l ) + X * ( t ) ,
where D i = X * ( t ) X ( t ) denotes the distance between the ith whale’s coordinates and the optimal position, b is a constant shaping the spiral’s contour, and l is a random variable within [ 1 , 1 ] .
To accurately reflect the dual nature of the humpback whale’s hunting behavior, incorporating both the spiral path and the constricting circle pattern, the model posits a 50% likelihood for each strategy during the optimization process. This balanced approach is essential for optimizing the whale’s position through iterations, as formalized below:
X ( t + 1 ) = X * ( t ) A · D , if p < 0.5 D i · e b l · cos ( 2 π l ) + X * ( t ) , if p 0.5 ,
where p is a random number selected from the interval [ 0 , 1 ] , facilitating the stochastic selection between the shrinking encirclement and the spiral approach.

4.2.3. Search for Prey

The Whale Optimization Algorithm (WOA) employs a nuanced search strategy that includes both targeted and exploratory behaviors to effectively navigate the solution space. In this context, the algorithm incorporates a random search mechanism distinct from its bubble-net attacking strategy. During this phase, a whale’s position is updated by diverging from the location of a randomly chosen peer from the population rather than moving towards it. This approach is designed to widen the exploration area, fostering a more comprehensive search and mitigating the risk of premature convergence on suboptimal solutions. The mathematical representation of this behavior is given by the following:
D = C · X rand X X ( t + 1 ) = X rand A · D .
Here, D denotes the distance vector between the current whale’s position and that of a randomly selected whale, indicated by X r a n d .
The Whale Optimization Algorithm (WOA) initializes with a diverse population of candidate solutions and iteratively refines these solutions through a simulated foraging behavior of humpback whales. The algorithm’s core mechanic, the parameter A , dynamically decreases from 2 to 0 over the course of iterations. This decrement facilitates a shift from a detailed local search towards a more expansive global search as the algorithm progresses. The WOA employs two primary search strategies based on a stochastic parameter p: the shrinking encircling mechanism, which mimics the humpback whales’ bubble-net hunting method, and the Spiral Update path, emulating the helix-shaped movement of whales approaching prey. These strategies are probabilistically selected to update the positions of the “whales” within the search space, guiding them towards the optimum solution. The algorithm terminates when it meets specified end conditions, such as a maximum number of iterations or a satisfactory error threshold. The sequential steps of the WOA, delineated in the accompanying pseudocode, encapsulate the algorithm’s systematic approach to optimization, as outlined below (Algorithm 1).
Algorithm 1 Whale Optimization Algorithm
1:
Input: The fitness of each individual whale
2:
Output: The position of the whale with the best fitness in the current iteration
3:
Initialize the whales population X i ( i = 1 , 2 , . . . , 40 )
4:
The maximum number of iterations is set to 40
5:
Calculate the fitness of each individual whale and retain the optimal individual
6:
X * = The position of the whale with the best fitness in the current iteration
7:
while ( t < maximum number of iterations) do
8:
    For the position of each whale during the current iteration update parameters a , A , C , l and p
9:
    if  p < 0.5  then
10:
        if  | A | < 1  then
11:
           update position according to Equation (1)
12:
        else
13:
           select a random whale location X rand
14:
           update position according to Equation (8)
15:
        end if
16:
    else
17:
        update position according to Equation (6)
18:
    end if
19:
    Check if any whale individual exceeds the search space and amend it
20:
    Calculate the fitness of each individual whale and retain the optimal individual
21:
    Update X * if there is a better solution
22:
     t = t + 1
23:
end while
24:
return  X *

4.3. Whale Optimization Algorithm Improvement

The traditional Whale Optimization Algorithm (WOA) is known for its simplicity, minimal control parameters, and effectiveness in avoiding local optima, making it widely applicable in various domains. However, it has been observed that the WOA may suffer from limitations in terms of its convergence speed and solution accuracy. To address these concerns, an Adaptive Whale Optimization Algorithm incorporating Chaos Mapping, named the C-I-WOA-CNN model, has been introduced.

4.3.1. Chaotic Mapping Whale Optimization Algorithm

Chaos mapping generates chaotic sequences through the iterative application of certain functions, exhibiting properties such as nonlinearity, a high sensitivity to initial conditions, strong ergodicity, and unpredictability. These mappings are often employed for population initialization to enhance the diversity and randomness of the algorithm, improving its overall performance [38,39].
In the evaluation of 16 chaotic optimization algorithms, the Cubic mapping was found to have a maximum Lyapunov exponent that exceeds those of the Sine, Circle, Liebovitch, Intermittency, Singer, and Kent mappings. It is comparable to the Logistic, Sinusoidal, Tent, Gauss, and Bernoulli mappings but is lower than the Chebyshev, ICMIC, and Piecewise mappings [40,41]. Despite this, the Cubic mapping was chosen for optimizing the traditional WOA due to its balance of performance and practicality, considering the complexity of its formula and the characteristics of the chaotic sequences it produces. The Cubic mapping is defined as in Equation (9).
x n + 1 = ρ x n ( 1 x n 2 ) .
Here, ρ denotes the control parameter. This enhancement aims to leverage the dynamic and unpredictable nature of chaotic sequences to potentially improve the WOA’s convergence speed and the accuracy of its solutions.

4.3.2. Combining Multiple Strategies in Whale Optimization

In the framework of the Whale Optimization Algorithm, achieving a balance between exploration (searching for prey) and exploitation (bubble-net attacking strategy) is crucial for enhancing the algorithm’s performance in terms of its convergence speed and solution precision. The dynamic interplay between these strategies, governed by the algorithm’s parameters, dictates its ability to efficiently navigate the search space and avoid premature convergence [35].
The incorporation of an adaptive inertia weight mechanism, inspired by its successful application in various meta-heuristic algorithms, offers a method to modulate the algorithm’s search behavior over time [42]. This mechanism adjusts the algorithm’s tendency to explore new areas or exploit known regions based on the progress of the search process. The adaptive inertia weight is mathematically represented as follows:
ω = ( ω m a x ω m i n ) m m e ( τ / t m a x ) + ω m i n .
where ω is the inertia weight, ω m a x and ω m i n are the maximum and minimum inertia weights, respectively, iter is the current iteration, and iter max is the maximum number of iterations. This adaptive approach allows for a more flexible and efficient search process, initially favoring global exploration and gradually shifting towards local exploitation as the search progresses.
By integrating this adaptive mechanism, the enhanced Whale Optimization Algorithm can dynamically adjust its behavior, effectively balancing between the diverse strategies of encircling prey and bubble-net attacking. The improved algorithmic steps, incorporating the adaptive inertia weight, are defined as in Equation (11).
X ( t + 1 ) = ω X * ( t ) A · D , if p < 0.5 and | A | < 1 , ω D · e b l · cos ( 2 π l ) + X * ( t ) , if p 0.5 , ω X rand A · D , if p < 0.5 and | A | 1 ,
where p is a random number in [0, 1], A and D are coefficient vectors, X * is the position vector of the best solution found so far, and X rand is a position vector chosen randomly from the current population. This approach enhances the algorithm’s adaptability and efficiency, ensuring a more robust search process capable of achieving high-quality solutions.

5. Enhanced Temperature Error Mitigation

5.1. Experimental Setup for Pressure Measurement

In our experimental framework, we employed a Honeywell ASDX100D44R pressure sensor combined with PT100-RTD temperature sensors. The setup was meticulously calibrated to measure temperatures ranging from 0 °C to 78 °C at 6 °C intervals, resulting in 14 distinct temperature points. Pressure measurements spanned from 0.4 MPa to 0.8 MPa, at 0.05 MKPa intervals, yielding nine discrete pressure points. Through extensive calibration, we amassed over 2000 datasets. Table 1 showcases a subset of the calibration data for the pressure sensor, indicating the applied pressure (p), the sensor’s voltage output (Up), and the corresponding temperature measurement (Ut), providing a comprehensive overview of the sensor’s performance across a spectrum of conditions.

5.2. Temperature Compensation Approach

We designed a Convolutional Neural Network (CNN) that takes the voltage output (Up), the measured temperature (Ut), and the measured pressure (p) as inputs, predict the applied pressure (p). To optimize the network’s learning efficiency and accuracy, we strategically selected calibration data at a range of specific temperatures (0 °C, 6 °C, 18 °C, 24 °C, 36 °C, 42 °C, 54 °C, 60 °C, 72 °C, and 78 °C) for the training phase. Conversely, data collected at intermediate temperatures of 12 °C, 30 °C, 48 °C, and 66 °C were earmarked for the testing phase to validate the model’s performance under varied thermal conditions. All input data were normalized within a 0-1 scale to facilitate optimal network training conditions.
In the domain of Convolutional Neural Network (CNN) model optimization, the delineation of learning rate and batch size parameters emerges as pivotal. The learning rate orchestrates the model’s pace of acquisition through the training trajectory, while the batch size plays a crucial role in modulating the model’s fitting prowess and generalization aptitude. Hence, the calibration of these parameters is paramount. We employ the Whale Optimization Algorithm (WOA) to ascertain the optimal settings for the learning rate and batch size, with both the population size and the iteration threshold of the algorithm set to 40. This strategy is further refined through the adjustment of the Cubic mapping function’s control parameter and the adaptive weight adjustment coefficient to unity, intending to equilibrate the exploration and exploitation phases within the optimization continuum. Following optimization, the optimal learning rate was determined to be 0.0064, and the optimal batch size was established at 36.
During the CNN training process, our network architecture was structured to include two convolutional layers, with the first and second layers having four and eight channels, respectively. The ReLU was utilized as the activation function throughout, and a fully connected layer was integrated at the conclusion of the network. For optimization, we employed the Adam optimizer, selecting a learning rate of 0.0064 and a batch size of 36. Both parameters were finely tuned and optimized through the Chaotic-Initiated Whale Optimization Algorithm (C-I-WOA) method. Additionally, the dataset was split into a training set and a test set at a ratio of 3:1.
We conducted multiple training sessions, initially training for 30 epochs with the optimized learning rate. Subsequently, we manually adjusted the learning rate to 80% of its original value and trained for another 30 epochs. This process was repeated five times, ultimately yielding a stable model. Table 2 displays some of the pressure measurements at different temperatures after algorithmic correction.

5.3. Comparative Analysis of Optimized Neural Network Models

To validate the efficacy of the proposed algorithm, we compared five neural network models, CNN, WOA-CNN, C-WOA-CNN, I-WOA-CNN, and C-I-WOA-CNN, using the test data for training. Figure 7 and Figure 8 depict the comparison of predicted versus actual pressure values and the error analysis post-optimization, respectively.
The analysis indicates that the C-I-WOA-CNN model exhibits the lowest error margins, maintaining an error range within ±2.5. Table 3 summarizes the error metrics for different temperature compensation models, showcasing the superior performance of the C-I-WOA-CNN model across several evaluation criteria.
The analysis derived from Table 3 illustrates that the C-I-WOA-CNN temperature compensation model surpasses alternative approaches in terms of the R-Squared, RPD, mean square error, and mean absolute percentage error values, showcasing its superior predictive capabilities. The R-Squared value, a measure of the model’s ability to capture the variance in the dataset, approaches 1 for the C-I-WOA-CNN model, indicating a high level of accuracy in predictions. The Ratio of Performance to Deviation (RPD), which compares the standard deviation of the validation set to the standard error of prediction, further reinforces the model’s reliability. RPD values exceeding 3, as observed with the C-I-WOA-CNN model, denote a robust predictive model capable of making precise and reliable forecasts. This high RPD value underscores the model’s exceptional performance in temperature compensation, emphasizing its potential for accurate and dependable applications in pressure measurement and other related fields.

6. Conclusions

In this study, we introduced an advanced temperature compensation technique for downhole pressure measurements in slim-hole drilling, leveraging the innovative C-I-WOA-CNN framework. This framework synergizes the adaptability of Convolutional Neural Networks (CNNs) with the robust optimization prowess of the Whale Optimization Algorithm (WOA), further augmented by chaotic mapping and adaptive mechanisms. Our approach overcomes the traditional challenges faced by CNNs, such as the entrapment in local optima and protracted convergence times, by endowing the model with superior exploratory and exploitative strengths.
The C-I-WOA-CNN model stands out for its exceptional accuracy and resilience, showcasing a marked reduction in error rates alongside a heightened prediction reliability in the realm of downhole pressure measurement. Notably, the model’s integration of chaotic dynamics and adaptive weighting not only enriches the solution space but also fine-tunes the balance between global and local search strategies, culminating in a faster convergence and enhanced model robustness.
Our findings herald a significant step forward in the domain of drilling technology, offering a robust framework for temperature compensation that could be extended to other complex measurement challenges within the petroleum industry and beyond. The C-I-WOA-CNN model’s adaptability and precision pave the way for future explorations into other applications where temperature fluctuations pose a significant challenge to measurement accuracy.

Author Contributions

F.W. spearheaded the conceptual design of the article and the algorithm’s framework. X.Z. and G.G. were in charge of conducting the experiments and crafting the manuscript. X.L. and X.Z. contributed to the experimental work and offered editorial revisions to enhance the manuscript’s linguistic clarity. All authors have read and agreed to the published version of the manuscript.

Funding

The project was supported by the Shaanxi Province Key R&D Program Project No. 2022GY-435, the Shaanxi Province Key R&D Program Project 2024GX-YBXM-507, and the Innovation and Practical Ability Cultivation Program for Postgraduates of Xi’an Shiyou University (YCS23213112).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Bai, J.; Zhang, B.; Zhang, C. Status quo of directional drilling technology for ultra deep ultra slim holes and proposals for future development. Oil Drill. Prod. Technol. 2018, 41, 5–8. [Google Scholar]
  2. Jones, S.; Smith, J. Advancements in small borehole drilling: A review. J. Pet. Technol. 2019, 71, 430–441. [Google Scholar]
  3. Smith, A.; Johnson, E. Evaluating the accuracy of linear interpolation for atmospheric and environmental data. Environ. Model. Softw. 2020, 127, 104673. [Google Scholar]
  4. Thompson, M.; Davis, L. Polynomial fitting for sensor data analysis: Risks and alternatives. Sens. Actuators A Phys. 2021, 319, 112489. [Google Scholar]
  5. Zhu, Z.F.; Zhang, H.N. Research on nonlinear calibration and temperature compensation method of pressure transmitter. Electron. Meas. Technol. 2021, 44, 71–76. [Google Scholar]
  6. Martin, G.; Patel, A. Lookup table optimization for sensor data compensation. IEEE Sens. J. 2020, 20, 6789–6796. [Google Scholar]
  7. Liu, H.; Li, H. Research on temperature compensation method of pressure sensor based on BP neural network. Chin. J. Sens. Actuators 2020, 33, 688–692+732. [Google Scholar]
  8. Williams, R.; O’Connor, M. Improving BP neural network performance in complex data environments. Neurocomputing 2020, 407, 86–94. [Google Scholar]
  9. Kumari, N.; Sathiya, S. An Intelligent Temperature Sensor with Non-linearity Compensation Using Convolutional Neural Network. In Proceedings of the International Conference on Industrial Instrumentation and Control: ICI2C 2021, Khourigba, Morocco, 10–11 November 2021; Springer: Singapore, 2022; pp. 319–327. [Google Scholar]
  10. Chae, M.; Han, S.; Lee, H. Outdoor particulate matter correlation analysis and prediction based deep learning in the Korea. Electronics 2020, 9, 1146. [Google Scholar] [CrossRef]
  11. Lopez, J.; Hernandez, S. Challenges and strategies for CNN-based image recognition. Artif. Intell. Rev. 2021, 54, 3213–3234. [Google Scholar]
  12. Nguyen, T.T.; Nguyen, T.H.; Nguyen, T.T.; Nguyen, T.N. Whale optimization algorithm combined with chaotic maps for feature selection. Expert Syst. Appl. 2021, 173, 114726. [Google Scholar]
  13. Patel, H.; Singh, R.; Kumar, R. Chaotic salp swarm algorithm based optimal power flow for microgrid. Swarm Evol. Comput. 2021, 63, 100899. [Google Scholar]
  14. Wang, B.; Li, H. Temperature compensation of piezoresistive pressure sensor based on the interpolation of third order splines. Chin. J. Sens. Actuators 2015, 28, 1003–1007. [Google Scholar]
  15. He, X.; Yuan, Y. Cubic regularization for nonconvex optimization. arXiv 2021, arXiv:2104.06487. [Google Scholar]
  16. Björck, Å.; Vandewalle, S. Numerical Methods for Least Squares Problems; SIAM: Philadelphia, PA, USA, 1996; Volume 57, pp. 1–32. [Google Scholar]
  17. Lawson, C.; Hanson, R. Solving Least Squares Problems; SIAM: Philadelphia, PA, USA, 1995; Volume 15. [Google Scholar]
  18. Ruder, S. An overview of gradient descent optimization algorithms. arXiv 2016, arXiv:1609.04747. [Google Scholar]
  19. Kingma, D.; Ba, J. Adam: A method for stochastic optimization. arXiv 2014, arXiv:1412.6980. [Google Scholar]
  20. Zhang, Y.; Wang, J.; Wang, X. Short-term load forecasting by BP neural network with rough set and PSO. Energy Procedia 2011, 12, 471–477. [Google Scholar]
  21. Young, S.R.; Rose, D.C.; Karnowski, T.P.; Lim, S.H.; Patton, R.M. Optimizing deep learning hyper-parameters through an evolutionary algorithm. In Proceedings of the Workshop on Machine Learning in High-Performance Computing Environments, Austin, TX, USA, 15 November 2015; p. 4. [Google Scholar]
  22. Shen, H.; Wang, R.; Zhang, J.; McKenna, S.J. Brain tumor segmentation and survival prediction using 3D attention UNet. arXiv 2019, arXiv:1907.07000. [Google Scholar]
  23. Dorigo, M.; Stützle, T. Ant Colony Optimization; MIT Press: Cambridge, MA, USA, 2006. [Google Scholar]
  24. Zhang, H.; Yang, Z. Image pattern recognition using neural network based on ant colony optimization. Int. J. Comput. Sci. Netw. Secur. 2008, 8, 109–114. [Google Scholar]
  25. Eberhart, R.; Kennedy, J. A new optimizer using particle swarm theory. In Proceedings of the MHS’95. Sixth International Symposium on Micro Machine and Human Science, Nagoya, Japan, 4–6 October 1995; pp. 39–43. [Google Scholar]
  26. Kennedy, J. Particle Swarm Optimization. In Encyclopedia of Machine Learning; Springer: Boston, MA, USA, 2011; pp. 760–766. [Google Scholar]
  27. Holland, J.H. Adaptation in Natural and Artificial Systems: An Introductory Analysis with Applications to Biology, Control, and Artificial Intelligence; MIT Press: Cambridge, MA, USA, 1992. [Google Scholar]
  28. Whitley, D. A genetic algorithm tutorial. Stat. Comput. 1994, 4, 65–85. [Google Scholar] [CrossRef]
  29. Dorigo, M.; Maniezzo, V.; Colorni, A. Ant system: Optimization by a colony of cooperating agents. IEEE Trans. Syst. Man, Cybern. Part B 1996, 26, 29–41. [Google Scholar] [CrossRef] [PubMed]
  30. Ma, H.; Zeng, G.; Huang, B. Research on temperature compensation of pressure transmitter based on WOA-BP. Instrum. Tech. Sens. 2020, 6, 33–36. [Google Scholar]
  31. Zhou, L.; Wang, J.; Li, S.; Zhang, Q.; Liu, Y. Temperature compensation of gas sensor array based on improved whale optimization algorithm. Sens. Actuators B Chem. 2022, 350, 130845. [Google Scholar]
  32. Yusuf, S.A.; Samad, A.; Garrity, D.J. CLEverReg: A CNN-LSTM based Linear Regression Technique for Temporal Fire Event Modelling. In Proceedings of the 2019 International Joint Conference on Neural Networks (IJCNN), Budapest, Hungary, 14–19 July 2019; pp. 1–7. [Google Scholar]
  33. Gao, J.; Ye, X.; Lei, X.; Huang, B.; Wang, X.; Wang, L. A Multichannel-Based CNN and GRU Method for Short-Term Wind Power Prediction. Electronics 2023, 12, 4479. [Google Scholar] [CrossRef]
  34. Apeiranthitis, S.; Zacharia, P.; Chatzopoulos, A.; Papoutsidakis, M. Predictive Maintenance of Machinery with Rotating Parts Using Convolutional Neural Networks. Electronics 2024, 13, 460. [Google Scholar] [CrossRef]
  35. Mirjalili, S.; Lewis, A. The whale optimization algorithm. Adv. Eng. Softw. 2016, 95, 51–67. [Google Scholar] [CrossRef]
  36. Xu, D.; Wang, Z.; Guo, Y.; Xing, K. Review of whale optimization algorithm. Appl. Res. Comput. 2023, 40, 328–336. [Google Scholar]
  37. Sun, Y.; Wang, X.; Chen, Y.; Liu, Z. A modified whale optimization algorithm for large-scale global optimization problems. Expert Syst. Appl. 2018, 114, 563–577. [Google Scholar] [CrossRef]
  38. Li, M.; Xu, G.; Lai, Q.; Chen, J. A chaotic strategy-based quadratic opposition-based learning adaptive variable-speed whale optimization algorithm. Math. Comput. Simul. 2022, 193, 71–99. [Google Scholar] [CrossRef]
  39. Wu, G.; Li, Y. Non-maximum suppression for object detection based on the chaotic whale optimization algorithm. J. Vis. Commun. Image Represent. 2021, 74, 102985. [Google Scholar] [CrossRef]
  40. Feng, J.; Zhang, J.; Zhu, X.; Lian, W. A novel chaos optimization algorithm. Multimed. Tools Appl. 2017, 76, 17405–17436. [Google Scholar] [CrossRef]
  41. Zhang, M.; Zhang, H.; Chen, X.; Yang, J. A grey wolf optimization algorithm based on Cubic mapping and its application. Comput. Eng. Sci. 2021, 43, 2035–2042. [Google Scholar]
  42. Shi, Y.; Eberhart, R.C. A modified particle swarm optimizer. In Proceedings of the Evolutionary Computation Proceedings, 1998 IEEE World Congress on Computational Intelligence, the 1998 IEEE International Conference on Computational Intelligence (Cat. No.98TH8360), Anchorage, AK, USA, 4–9 May 1998; pp. 69–73. [Google Scholar]
Figure 1. Schematic diagram of Wheatstone bridge.
Figure 1. Schematic diagram of Wheatstone bridge.
Sensors 24 02162 g001
Figure 2. Structure of CNN for temperature compensation.
Figure 2. Structure of CNN for temperature compensation.
Sensors 24 02162 g002
Figure 3. Types of meta-heuristic algorithms.
Figure 3. Types of meta-heuristic algorithms.
Sensors 24 02162 g003
Figure 4. Schematic diagram of encircling prey. The red dots represent the positions in the current iteration cycle, with X, Y being the positions at this cycle, and X*, Y* being the optimal positions in the current iteration.
Figure 4. Schematic diagram of encircling prey. The red dots represent the positions in the current iteration cycle, with X, Y being the positions at this cycle, and X*, Y* being the optimal positions in the current iteration.
Sensors 24 02162 g004
Figure 5. Visualization of the shrinking encircling mechanism in a two-dimensional space, the red dot (X, Y) represents the current position of the whale, (X*, Y*) represents the optimal position, and dots of other colors represent the position of the whale when the value of A varies.
Figure 5. Visualization of the shrinking encircling mechanism in a two-dimensional space, the red dot (X, Y) represents the current position of the whale, (X*, Y*) represents the optimal position, and dots of other colors represent the position of the whale when the value of A varies.
Sensors 24 02162 g005
Figure 6. Spiral Updating Position strategy in action, the red dot (X, Y) represents the current position of the whale, (X*, Y*) represents the optimal position.
Figure 6. Spiral Updating Position strategy in action, the red dot (X, Y) represents the current position of the whale, (X*, Y*) represents the optimal position.
Sensors 24 02162 g006
Figure 7. Predicted vs. Actual pressure values for optimized CNN models.
Figure 7. Predicted vs. Actual pressure values for optimized CNN models.
Sensors 24 02162 g007
Figure 8. Error analysis for optimized CNN models.
Figure 8. Error analysis for optimized CNN models.
Sensors 24 02162 g008
Table 1. Pressure sensor calibration data.
Table 1. Pressure sensor calibration data.
p/MPa0 °C6 °C12 °C18 °C24 °C30 °C36 °C
Up/mVUt/°CUp/mVUt/°CUp/mVUt/°CUp/mVUt/°CUp/mVUt/°CUp/mVUt/°CUp/mVUt/°C
0.483.240.3483.416.5986.9512.4587.12318.5788.5624.5190.4630.2191.3636.32
0.4595.710.3796.376.6198.3612.51101.5418.62103.1824.56104.8430.41106.1236.41
0.5104.80.421066.65108.0312.56111.3218.65112.2424.62113.8730.43115.5436.52
0.55113.40.46115.66.73118.3712.58120.5118.67122.5624.75123.6730.47125.1736.56
0.6124.40.57129.16.76130.0912.62131.8618.71133.2324.78134.5130.62135.6236.61
0.65136.50.63138.56.79141.3912.65143.2318.73144.0424.83146.1330.64147.8636.65
0.7147.90.74149.46.83151.3112.68152.6418.78153.6224.87155.0530.71156.6336.68
0.75155.80.78157.36.87158.5512.71160.4618.81162.8724.76164.0530.75165.7436.71
0.8164.80.81167.76.93168.3112.73172.0418.83173.1624.51174.8330.83176.0436.76
p/MPa42 °C 48 °C 54 °C 60 °C 66 °C72 °C78 °C
Up/mVUt/°CUp/mVUt/°CUp/mVUt/°CUp/mVUt/°CUp/mVUt/°CUp/mVUt/°CUp/mVUt/°C
0.492.6542.6594.1448.3695.6554.3696.0460.2496.7466.4597.4572.2498.2478.46
0.45107.842.68109.248.39110.3654.39110.8760.26111.6366.47112.3172.26113.7978.48
0.511742.71118.548.42119.6554.42121.2460.34121.8766.51122.4772.29123.1478.51
0.55126.742.73128.248.46129.4154.48130.6360.39131.4266.56131.8972.34132.4178.53
0.6137.142.76138.848.51139.8754.51140.7460.42141.3666.59141.7672.37142.3278.57
0.65149.242.82150.648.56151.6454.53152.6860.47153.1366.62153.8972.41154.6578.62
0.7158.142.86159.648.63161.1354.56161.9760.51162.7566.63163.4572.46164.2778.65
0.75167.242.87168.748.68169.6554.57170.1260.58170.8466.69171.5372.48171.8278.68
0.8176.542.9317848.74179.2154.63180.0460.64180.7666.84181.4672.53181.7678.74
Table 2. Compensated pressure measurements across varied temperatures using C-I-WOA-CNN model.
Table 2. Compensated pressure measurements across varied temperatures using C-I-WOA-CNN model.
P/MPa12 °C30 °C48 °C66 °C
0.4039.832339.660639.524439.3895
0.4546.048545.930545.804746.0165
0.5050.76450.589850.43150.2723
0.5555.212855.226155.057154.8855
0.6059.693759.528559.287559.0914
0.6565.454365.231165.197665.1327
0.7070.264570.209170.134270.0941
0.7574.458674.37374.295873.982
0.8079.565379.47379.408579.099
Table 3. Error Metrics for Different Temperature Compensation Models.
Table 3. Error Metrics for Different Temperature Compensation Models.
ModelR-SquaredRPDMean Square ErrorMean Absolute Percentage Error
CNN0.987089.04891.16411.91%
WOA-CNN0.9948512.24130.743581.38%
C-WOA-CNN0.9960314.05990.678281.14%
I-WOA-CNN0.9965714.24820.640911.11%
C-I-WOA-CNN0.9980618.74640.486780.87%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wang, F.; Zhang, X.; Li, X.; Gao, G. Advancing Slim-Hole Drilling Accuracy: A C-I-WOA-CNN Approach for Temperature-Compensated Pressure Measurements. Sensors 2024, 24, 2162. https://doi.org/10.3390/s24072162

AMA Style

Wang F, Zhang X, Li X, Gao G. Advancing Slim-Hole Drilling Accuracy: A C-I-WOA-CNN Approach for Temperature-Compensated Pressure Measurements. Sensors. 2024; 24(7):2162. https://doi.org/10.3390/s24072162

Chicago/Turabian Style

Wang, Fei, Xing Zhang, Xintong Li, and Guowang Gao. 2024. "Advancing Slim-Hole Drilling Accuracy: A C-I-WOA-CNN Approach for Temperature-Compensated Pressure Measurements" Sensors 24, no. 7: 2162. https://doi.org/10.3390/s24072162

APA Style

Wang, F., Zhang, X., Li, X., & Gao, G. (2024). Advancing Slim-Hole Drilling Accuracy: A C-I-WOA-CNN Approach for Temperature-Compensated Pressure Measurements. Sensors, 24(7), 2162. https://doi.org/10.3390/s24072162

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop