<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">OJOGas</journal-id><journal-title-group><journal-title>Open Journal of Yangtze Oil and Gas</journal-title></journal-title-group><issn pub-type="epub">2473-1889</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/ojogas.2021.63011</article-id><article-id pub-id-type="publisher-id">OJOGas-110884</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Engineering</subject></subj-group></article-categories><title-group><article-title>
 
 
  Intelligent Recognition Method of Insufficient Fluid Supply of Oil Well Based on Convolutional Neural Network
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Yanfeng</surname><given-names>He</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Zhenlong</surname><given-names>Wang</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Bin</surname><given-names>Liu</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Xiang</surname><given-names>Wang</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Bingchao</surname><given-names>Li</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>The Eighth Oil Production Plant, Petrochina Changqing Oilfield Branch, Xi’an, China</addr-line></aff><aff id="aff1"><addr-line>School of Petroleum Engineering, Changzhou University, Changzhou, China</addr-line></aff><pub-date pub-type="epub"><day>05</day><month>07</month><year>2021</year></pub-date><volume>06</volume><issue>03</issue><fpage>116</fpage><lpage>128</lpage><history><date date-type="received"><day>28,</day>	<month>June</month>	<year>2021</year></date><date date-type="rev-recd"><day>25,</day>	<month>July</month>	<year>2021</year>	</date><date date-type="accepted"><day>28,</day>	<month>July</month>	<year>2021</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  Traditional methods for judging the degree of insufficient fluid supply in oil wells have low efficiency and limited accuracy. To address this problem, a method for intelligently identifying the degree of insufficient fluid supply in oil wells based on convolutional neural networks is proposed in this paper. Firstly, 5000 indicator diagrams with insufficient liquid supply were collected from the oilfield site, and a sample set was established after preprocessing; then based on the AlexNet model, combined with the characteristics of the indicator diagram, a convolutional neural network model including 4 layers of convolutional layers, 3 layers of down-pooling layers and 2 layers of fully connected layers is established. The backpropagation, ReLu activation function and dropout regularization method are used to complete the training of the convolutional neural network; finally, the performance of the convolutional neural network under different iteration times and network structure is compared, and the super parameter optimization of the model is completed. It has laid a good foundation for realizing the self-adaptive and intelligent matching of oil well production parameters and formation fluid supply conditions. It has certain application prospects. The results show that the accuracy of training and verification of the method exceeds 98%, which can meet the actual application requirements on site.
 
</p></abstract><kwd-group><kwd>Degree of Insufficient Fluid Supply in Oil Wells</kwd><kwd> Indicator Diagram</kwd><kwd> Convolutional Neural Network</kwd><kwd> Alexnet</kwd><kwd> Backpropagation Algorithm</kwd><kwd> ReLu Activation Function</kwd><kwd> Dropout Regularization</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>At present, most of my country’s oil fields are in the middle and late stages of exploitation, and the shortage of oil wells is becoming more and more serious [<xref ref-type="bibr" rid="scirp.110884-ref1">1</xref>]. Insufficient fluid supply in oil wells usually causes empty pumping and hydraulic shock conditions. It does not only increase the risk of damage to the pumping equipment but also causes a waste of electrical energy, which virtually increases the development cost of the oil field. Therefore, accurately judging the degree of insufficient fluid supply in oil wells is essential for improving the above-mentioned problems and the efficiency of oil well production.</p><p>The degree of insufficient fluid supply in oil wells can be intuitively reflected in the dynamometer image of the pumping well. The dynamometer is the relationship curve between displacement and load in a reciprocating motion of the rod pump in the oil well. When there is insufficient fluid supply in the oil well, the lower right corner of the indicator graph curve will appear missing, showing a “knife handle”, and the higher the fluid supply shortage, the more serious the missing. On-site personnel, based on experience, can intuitively judge the degree of insufficient liquid supply reflected in the power diagram, but it is difficult to accurately quantify. Meanwhile, due to limited human energy, it is impossible to conduct a comprehensive analysis of the massive indicator diagrams which can be automatically collected in real-time. To realize automated quantitative analysis, scholars at home and abroad have carried out research and proposed a series of methods, including 1) The method of judging the degree of insufficient liquid supply by using the area of the indicator diagram [<xref ref-type="bibr" rid="scirp.110884-ref2">2</xref>]. The higher the degree of insufficient liquid supply, the greater the lack of indicator diagrams, and the smaller the corresponding indicator diagram area. However, this method is difficult to distinguish similar indicator diagrams under different working conditions; 2) Judging the degree of insufficient liquid supply using effective stroke [<xref ref-type="bibr" rid="scirp.110884-ref3">3</xref>]. The ratio of the long side to the short side of the indicator diagram is the effective stroke, but the judgment of the long and short sides is more complicated, and it is difficult to automatically and accurately calculate the complex indicator diagram. In recent years, with the rapid development of a new generation of artificial intelligence technology, the example of convolutional neural networks in deep learning algorithms has attracted more and more attention from researchers. Compared with the traditional shallow neural network, the convolutional neural network can directly recognize pictures, avoid the influence of loss information caused by the extraction of feature values, and has achieved a large number of successful applications in image recognition and other fields [<xref ref-type="bibr" rid="scirp.110884-ref4">4</xref>]. In the field of petroleum engineering [<xref ref-type="bibr" rid="scirp.110884-ref5">5</xref>] [<xref ref-type="bibr" rid="scirp.110884-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.110884-ref7">7</xref>], oil well condition diagnosis based on the convolutional neural network has also achieved remarkable results [<xref ref-type="bibr" rid="scirp.110884-ref8">8</xref>] [<xref ref-type="bibr" rid="scirp.110884-ref9">9</xref>] [<xref ref-type="bibr" rid="scirp.110884-ref10">10</xref>]. Based on the above analysis, it can be predicted that analyzing the degree of insufficient fluid supply by using a convolutional neural network in oil wells has great potential.</p><p>To conclude, this paper proposes an intelligent recognition method of oil well fluid supply shortage based on a convolutional neural network. Combining the principle of convolutional neural network algorithm and the characteristics of the indicator diagram [<xref ref-type="bibr" rid="scirp.110884-ref11">11</xref>], the corresponding convolutional neural network architecture is researched and designed, and the recognition model is constructed in combination with the Softmax classifier. The model is trained and optimized on this basis. Experiments show that the accuracy of the model is over 98%, which provides effective methods and tool support for the accurate and efficient analysis of insufficient fluid supply in oil wells.</p></sec><sec id="s2"><title>2. Convolutional Neural Network</title><sec id="s2_1"><title>2.1. The Basic Principles of Convolutional Neural Networks</title><p>The basic principle of the convolutional neural network [<xref ref-type="bibr" rid="scirp.110884-ref12">12</xref>] [<xref ref-type="bibr" rid="scirp.110884-ref13">13</xref>]: Input the recognized target image, convolution operation to obtain the feature image; pooling operation to achieve dimensionality reduction of the image; repeated operations for multiple convolution and pooling to fully extract image features; The classification of the target image is completed in the fully connected layer. The convolution operation is mainly operated on the original image of X to obtain a featured image, using H i to represent the feature image of the i layer of the convolutional neural network. H i can be expressed by the following formula:</p><p>H i = f ( H i − 1 * W i + b i ) .</p><p>In the formula, W<sub>i</sub> represents the weight vector of the i layer convolution kernel, the symbol of * represents the convolution operation of the image or feature map of the layer i − 1, b<sub>i</sub> represents the offset vector of the i layer convolution kernel, and f ( x ) represents the activation function.</p></sec><sec id="s2_2"><title>2.2. AlexNet Network Model</title><p>In 1998, Yann Lecun proposed the classic LeNet-5 network model [<xref ref-type="bibr" rid="scirp.110884-ref14">14</xref>], which recognizes handwritten digits, and the input image size is 32 &#215; 32. The network structure is configured as follows: the first and second convolutional layers are connected to the pooling layer respectively, and the third convolutional layer is connected to the two fully connected layers. As the first-generation classic convolutional neural network model, there is room for improvement and optimization of its network structure, convolution kernel size, activation function, and pooling kernel size in the diagnosis of insufficient fluid supply in oil wells.</p><p>AlexNet was created by Krizhevsky [<xref ref-type="bibr" rid="scirp.110884-ref15">15</xref>] [<xref ref-type="bibr" rid="scirp.110884-ref16">16</xref>] and others and won the ImageNet competition in 2012, which improved double the recognition accuracy of ImageNet. The model consists of an 8-layer structure and has outstanding advantages in image classification. The network structure of AlexNet is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><p>The network structure is matched as follows: the first, second, and fifth convolutional layers are connected to the pooling layer, the third and fourth convolutional layers are continuously convolved, finally, and the three fully connected</p><p>layers are connected. The AlexNet model is compared with the LeNet-5 model: A local response normalization mechanism (LRN) [<xref ref-type="bibr" rid="scirp.110884-ref17">17</xref>] is proposed. LRN creates a weight setting for the activity of local neurons in the model, which makes the image recognition process more effective Purposeful. The convolutional layer uses the ReLu activation function to replace the traditional Tanh activation function [<xref ref-type="bibr" rid="scirp.110884-ref18">18</xref>], which improves the accuracy and time of recognizing images. The pooling layer uses maximum pooling instead of traditional average pooling, which avoids the problem of blurring image feature extraction. The Dropout layer [<xref ref-type="bibr" rid="scirp.110884-ref19">19</xref>] is added to the fully connected layer to interrupt all connection parameters in proportion to prevent the occurrence of over-fitting. However, its relatively large network structure and large-size convolution kernel and pooling kernel still spend a lot of time in identifying the indicator diagram and the recognition accuracy is low.</p></sec><sec id="s2_3"><title>2.3. Improved AlexNet Network Model</title><p>Aiming at the problem of diagnosing the degree of insufficient fluid supply in oil wells, the traditional Alexnet model has low recognition accuracy for similar indicator diagrams and takes more time. Therefore, by improving the AlexNet model [<xref ref-type="bibr" rid="scirp.110884-ref9">9</xref>] [<xref ref-type="bibr" rid="scirp.110884-ref20">20</xref>], it can not only meet the requirements of image recognition accuracy but also reduce the image recognition time. Based on the traditional AlexNet, there are mainly the following improvements:</p><p>1) The input size of the improved AlexNet model is 227 &#215; 227 &#215; 3 pixels changed to 100 &#215; 200 &#215; 1 pixels, and the 1000 neurons in the output layer are changed to 10 neurons;</p><p>2) The improved AlexNet model is composed of 4 layers of convolutional layers, 3 layers of pooling, and 2 layers of fully connected, which reduces training time and improves model convergence speed;</p><p>3) To improve the learning ability of the AlexNet model, a small convolution kernel with a size of 3 &#215; 3 is used to replace the 5 &#215; 5 and 11 &#215; 11 convolution kernels in the original AlexNet network model, and a 2 &#215; 2 pooling kernel is used Replace the 3 &#215; 3 pooling core in the original AlexNet network model, increase the number of nonlinear operations, and enhance the ability of image feature learning. The improved AlexNet network structure is shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p></sec></sec><sec id="s3"><title>3. Recognition of Insufficient Fluid Supply in Oil Wells Based on Convolutional Neural Network</title><p>With the development of deep learning technology, convolutional neural networks perform well in the field of image recognition and are widely used. For judging the degree of insufficient fluid supply in oil wells, it is necessary to identify and classify the indicator diagrams. Therefore, the convolutional neural network is chosen as the diagnosis method.</p><sec id="s3_1"><title>3.1. Insufficient Liquid Supply Indicator Diagram Pretreatment</title><p>In the training process of the neural network, the indicator diagram needs to be preprocessed first. The quality of the preprocessing determines the level of the sample set and the training effect of the network. The specific steps are as follows:</p><p>1) Drawing and marking of the indicator diagram</p><p>This paper collects the suspension point load and displacement data of a rod pump in an oil field and draws it into a standardized indicator diagram: The size is 100 &#215; 200 pixels, the DPI is 50 pixels/inches, the curve line width is 3 pixels, and the color black. Then classify and filter the indicator diagrams, and obtain 10 groups of indicator diagrams representing the degree of insufficient fluid supply in oil wells. As shown in <xref ref-type="table" rid="table1">Table 1</xref>.</p><p>2) Pixel normalization [<xref ref-type="bibr" rid="scirp.110884-ref21">21</xref>] [<xref ref-type="bibr" rid="scirp.110884-ref22">22</xref>]</p><p>The input original indicator diagram has pixels between 0 and 255, and the difference of the pixels will interfere with the learning ability of the neural network, creating an error invisibly. So further, this article uses the maximum and minimum normalization method, the formula is as follows.</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Degree of insufficient liquid supply</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >ID</th><th align="center" valign="middle" >Indicator diagrams</th><th align="center" valign="middle" >Liquid supply degree</th><th align="center" valign="middle" >Label</th><th align="center" valign="middle" >Data set/sheet</th></tr></thead><tr><td align="center" valign="middle" >01</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="/html.scirp.org/file/4-2890167x8.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Normal</td><td align="center" valign="middle" >10</td><td align="center" valign="middle" >500</td></tr><tr><td align="center" valign="middle" >02</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="/html.scirp.org/file/4-2890167x9.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Level 9</td><td align="center" valign="middle" >9</td><td align="center" valign="middle" >500</td></tr><tr><td align="center" valign="middle" >03</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="/html.scirp.org/file/4-2890167x10.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Level 8</td><td align="center" valign="middle" >8</td><td align="center" valign="middle" >500</td></tr><tr><td align="center" valign="middle" >04</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="/html.scirp.org/file/4-2890167x11.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Level 7</td><td align="center" valign="middle" >7</td><td align="center" valign="middle" >500</td></tr><tr><td align="center" valign="middle" >05</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="/html.scirp.org/file/4-2890167x12.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Level 6</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >500</td></tr><tr><td align="center" valign="middle" >06</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="/html.scirp.org/file/4-2890167x13.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Level 5</td><td align="center" valign="middle" >5</td><td align="center" valign="middle" >500</td></tr><tr><td align="center" valign="middle" >07</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="/html.scirp.org/file/4-2890167x14.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Level 4</td><td align="center" valign="middle" >4</td><td align="center" valign="middle" >500</td></tr><tr><td align="center" valign="middle" >08</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="/html.scirp.org/file/4-2890167x15.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Level 3</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >500</td></tr><tr><td align="center" valign="middle" >09</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="/html.scirp.org/file/4-2890167x16.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Level 2</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >500</td></tr><tr><td align="center" valign="middle" >10</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="/html.scirp.org/file/4-2890167x17.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Level 1</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >500</td></tr></tbody></table></table-wrap><p>norm = x i − min ( x ) max ( x ) − min ( x )</p><p>x i is the image pixel value in the formula; min ( x ) and max ( x ) are the maximum and minimum values of image pixels.</p><p>The image is processed by the normalization method, and the pixels are returned to between 0 and 1, without changing the image characteristics, and eliminating the difference between the wells. Make the required information more prominent, hide noise information, and save training time.</p></sec><sec id="s3_2"><title>3.2. Recognition Process of Insufficient Liquid Supply Based on Convolutional Neural Network</title><p>The flow chart for identifying the degree of insufficient fluid supply in oil wells designed in this paper is shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>.</p><p>Step 1: First, the load and displacement data collected from the oil field production site are drawn into an indicator diagram. The indicator diagrams that do not meet the conditions are screened, and a sample set of indicator diagrams containing 10 types of insufficient liquid supply is established through the 5000 images obtained through the screening.</p><p>Step 2: Disrupt the sample set data, and divide the sample set into a training set and a validation set at a ratio of 8:2. According to the characteristics of the indicator diagram of insufficient liquid supply, a convolutional neural network structure is created.</p><p>Step 3: Input the training set and validation set data into the convolutional neural network model. Use the backpropagation algorithm to continuously update the weight parameters of the convolutional neural network to obtain the appropriate accuracy and recognition time, and save the trained model.</p><p>Step 4: Use the trained model to identify the indicator diagrams collected on site.</p><p>Step 5: For the wrong indicator diagram, correct the wrong recognition result. Put the corrected indicator diagram into the corresponding classification sample set, training the convolutional neural network again, and continuously optimizes the recognition model of the convolutional neural network.</p></sec></sec><sec id="s4"><title>4. Experiments</title><p>In this paper, a total of 5000 under-supply indicator diagrams are collected. First, the 5000 under-supply indicator diagrams are preprocessed according to the method described in section 2.1 of this article to obtain a sample set of 5000</p><p>indicators with a size of 100 &#215; 200. The experimental environment uses a 64-bit Win10 system; the computer’s CPU is Intel(R)Core(TM)i7-10750K; the CPU’s main frequency is 2.59 GHz; the memory is 16 GB; the GPU is NVIDIA GeForce GTX 1650.</p><sec id="s4_1"><title>4.1. Experimental Results</title><p>In this experiment, the fast training method of multi-layer neural network based on GPU [<xref ref-type="bibr" rid="scirp.110884-ref23">23</xref>] [<xref ref-type="bibr" rid="scirp.110884-ref24">24</xref>], the training time needs 485 s in the case of GPU training, and 2501 s in the case of no GPU training. The number of iteration steps in the experiment is set to 200 steps, the learning rate is 0.0001, and 200 images are learned each iteration. The total sample is divided into a training set and a verification set at a ratio of 8:2. The training set contains 4000 samples, and the verification set contains 1000 samples. The training accuracy and verification accuracy are shown in <xref ref-type="fig" rid="fig4">Figure 4</xref> and <xref ref-type="fig" rid="fig5">Figure 5</xref>. We will standardize the confusion matrix by row before drawing, that is, the probability value is obtained, and the sum of all the probabilities in each row is 1, so the diagonal line represents the recall rate (recall rate) of each category. The Confusion matrix is shown in <xref ref-type="fig" rid="fig6">Figure 6</xref>.</p></sec><sec id="s4_2"><title>4.2. Analysis of Experimental Results</title><p>The experiment was conducted with the sample set of the indicator diagram of insufficient liquid supply, and the learning was carried out 200 times. The network model converged about 75 times. It can be seen from <xref ref-type="fig" rid="fig4">Figure 4</xref> that the initial training accuracy is on the rise, and after a period of time, the training accuracy remains above 99%; from <xref ref-type="fig" rid="fig5">Figure 5</xref>, it can be seen that the initial training loss results have a downward trend. After a period of time, training the loss result is basically maintained at about 0.06; it can be seen that the training model is relatively successful. Using the validation set to verify the training model, it can be seen that after a period of time, the verification accuracy rate is basically maintained above 98%, and the training loss result basically keeps it around 0.08, which can meet actual functional requirements.</p><p>It can be seen from the confusion matrix that the recognition recall rate for 10 different degrees of insufficient liquid supply exceeds 90%, which can meet the actual application requirements.</p></sec><sec id="s4_3"><title>4.3. Comparative Experiment</title><p>In order to compare the performance of the convolutional neural network in this paper to identify the degree of insufficient liquid supply, the experiment verified the recognition performance of the other two methods on the same indicator diagram sample set, including the different iteration times and network structure of the convolutional neural network.</p><sec id="s4_3_1"><title>4.3.1. Comparison of Iteration Times</title><p>As shown in <xref ref-type="table" rid="table2">Table 2</xref>, when the number of iterations is 100, compared with the number of iterations of 200, the accuracy of the verification sample is increased by 1.51%, which takes 165 s longer; when the number of iterations is 300, compared with the number of iterations of 200, the accuracy of the verification sample is not much different. It takes 270s more time; when the number of iterations is 400, compared with the number of iterations of 200, there is little difference in the accuracy of the verification sample, which takes 313 s more time. Therefore, when the number of iterations is 200, the model can be fully learned and converged.</p><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Comparison of different iteration times</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Epochs</th><th align="center" valign="middle" >Validation accuracy</th><th align="center" valign="middle" >Time-consuming/s</th></tr></thead><tr><td align="center" valign="middle" >100</td><td align="center" valign="middle" >0.9760</td><td align="center" valign="middle" >320</td></tr><tr><td align="center" valign="middle" >200</td><td align="center" valign="middle" >0.9911</td><td align="center" valign="middle" >485</td></tr><tr><td align="center" valign="middle" >300</td><td align="center" valign="middle" >0.9912</td><td align="center" valign="middle" >755</td></tr><tr><td align="center" valign="middle" >400</td><td align="center" valign="middle" >0.9911</td><td align="center" valign="middle" >1068</td></tr></tbody></table></table-wrap></sec><sec id="s4_3_2"><title>4.3.2. Network Structure Comparison</title><p>For convolutional neural networks, the structural ability is too strong, which will lead to data overfitting, because the number of layers increases. However, if the number of layers is too small and the structural capability is too weak, which will lead to underfitting of the data. In order to select the number of convolutional layers, the method of increasing layer by layer is used until the recognition rate no longer changes significantly as the number of layers increases, and the optimal number of layers can be determined. The first layer of this paper uses 16 convolution kernels with a size of 3 &#215; 3, and the pooling layer uses 2 &#215; 2 pooling kernels. The second layer uses 32 convolution kernels with a size specification of 3 &#215; 3. The third layer uses 32 convolution kernels with a size specification of 3 &#215; 3. The fourth layer uses 64 convolution kernels with a size specification of 3 &#215; 3. The fifth layer uses 64 convolution kernels with a size specification of 3 &#215; 3. As shown in <xref ref-type="table" rid="table3">Table 3</xref>.</p><p>The experimental results are shown in <xref ref-type="table" rid="table4">Table 4</xref>. As the number of convolutional layers increases, the recognition rate gradually increases, and then remains unchanged or decreases. Therefore, C is the most appropriate choice for the convolutional neural network structure, and the recognition rate is also the highest.</p></sec></sec></sec><sec id="s5"><title>5. Conclusions</title><p>1) This paper, based on convolutional neural networks, proposes an intelligent analysis method for the degree of insufficient fluid supply in oil wells. Based on the indicator diagram data collected on the oilfield, a sample set of 10 indicator diagrams is established for the degree of insufficient fluid supply in oil wells.</p><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Comparison of different network structures</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  colspan="4"  >ConvNet Configuration</th></tr></thead><tr><td align="center" valign="middle" >A</td><td align="center" valign="middle" >B</td><td align="center" valign="middle" >C</td><td align="center" valign="middle" >D</td></tr><tr><td align="center" valign="middle" >2 weight layers</td><td align="center" valign="middle" >3 weight layers</td><td align="center" valign="middle" >4 weight layers</td><td align="center" valign="middle" >5 weight layers</td></tr><tr><td align="center" valign="middle"  colspan="4"  >Input (100 &#215; 200 &#215; 1 image)</td></tr><tr><td align="center" valign="middle" >Conv3-16</td><td align="center" valign="middle" >Conv3-16</td><td align="center" valign="middle" >Conv3-16</td><td align="center" valign="middle" >Conv3-16</td></tr><tr><td align="center" valign="middle"  colspan="4"  >MaxPool</td></tr><tr><td align="center" valign="middle" >Conv3-32</td><td align="center" valign="middle" >Conv3-32 Conv3-32</td><td align="center" valign="middle" >Conv3-32 Conv3-32</td><td align="center" valign="middle" >Conv3-32 Conv3-32</td></tr><tr><td align="center" valign="middle"  colspan="4"  >MaxPool</td></tr><tr><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" >Conv3-64</td><td align="center" valign="middle" >Conv3-64</td></tr><tr><td align="center" valign="middle"  colspan="4"  >MaxPool</td></tr><tr><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" >Conv3-64</td></tr><tr><td align="center" valign="middle"  colspan="4"  >FC-512</td></tr><tr><td align="center" valign="middle"  colspan="4"  >Softmax-10</td></tr></tbody></table></table-wrap><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> Comparison of accuracy rates of different network structures</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Network structure</th><th align="center" valign="middle" >Validation accuracy</th></tr></thead><tr><td align="center" valign="middle" >A</td><td align="center" valign="middle" >0.9421</td></tr><tr><td align="center" valign="middle" >B</td><td align="center" valign="middle" >0.9823</td></tr><tr><td align="center" valign="middle" >C</td><td align="center" valign="middle" >0.9911</td></tr><tr><td align="center" valign="middle" >D</td><td align="center" valign="middle" >0.9848</td></tr></tbody></table></table-wrap><p>2) In order to meet the needs of insufficient liquid supply indicator diagram recognition, the structure of the traditional AlexNet model is improved. The research results show that the recognition rate of the improved AlexNet model can reach 99.11%, which improves the stability and accuracy of traditional methods for identifying insufficient fluid supply in oil wells, and greatly promotes safe production, environmentally friendly production, and efficient production in oil fields. In addition, the performance of the AlexNet model obtained from the experiment is closely related to the number of iterations and the network structure.</p><p>3) Training, verifying and optimizing the established neural network based on the sample set of “Indicator Diagram-Formation Fluid Supply Capability”, an accurate and efficient intelligent quantitative analysis model of oil well fluid supply capability based on indicator diagram is formed. The self-adaptive and intelligent matching of oil well production parameters and formation fluid supply status has made a good foundation. It has certain application prospects.</p></sec><sec id="s6"><title>Fund Project</title><p>Natural Science Research Project of Higher Education Institutions in Jiangsu Province (17KJB440001).</p></sec><sec id="s7"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s8"><title>Cite this paper</title><p>He, Y.F., Wang, Z.L., Liu, B., Wang, X. and Li, B.C. (2021) Intelligent Recognition Method of Insufficient Fluid Supply of Oil Well Based on Convolutional Neural Network. Open Journal of Yangtze Gas and Oil, 6, 116-128. https://doi.org/10.4236/ojogas.2021.63011</p></sec></body><back><ref-list><title>References</title><ref id="scirp.110884-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Li, X., Fu, Z. and Liu, X.D. (2019) Research on the Reasonable Working System of Pumping Wells with Insufficient Liquid Supply. Petrochemical Technology, 26, 197+199.</mixed-citation></ref><ref id="scirp.110884-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Xu, X.Q., Zhou, H.B. and Li, M. (2017) Optimization and Adjustment Method of Pumping Unit Stroke Rate Based on the Area Change of the Hanging Point Indicator. Petrochemical Industry Automation, 53, 44-46.</mixed-citation></ref><ref id="scirp.110884-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Qu, B.L. and Ma, W.G. (2018) Calculation Method and Influence Analysis of Fullness of Rod Pump. Petroleum Machinery, 46, 79-84.</mixed-citation></ref><ref id="scirp.110884-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Li, X.Y., Xie, H.Y., Han, Z.H., Guo, H. and Fan, H. (2020) Research on Application of Convolutional Neural Network in Image Recognition Technology. Energy and Environmental Protection, 42, 73-76.</mixed-citation></ref><ref id="scirp.110884-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Jiao, H.H. (2020) Research on Centrifugal Pump Fault Diagnosis Method Based on Hybrid Domain Features and Convolutional Neural Network. Thesis, Beijing University of Chemical Technology, Beijing.</mixed-citation></ref><ref id="scirp.110884-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Du, Y. (2020) Research on Motor Bearing Fault Diagnosis Based on Deep Learning. Northeast Petroleum University, Heilongjiang.</mixed-citation></ref><ref id="scirp.110884-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Tang, Z.G. (2019) Research on Fault Indicator Diagram Diagnosis Method Based on Convolutional Neural Network. Thesis, Xi’an University of Science and Technology, Xi’an.</mixed-citation></ref><ref id="scirp.110884-ref8"><label>8</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Wang</surname><given-names> Y. </given-names></name>,<etal>et al</etal>. (<year>2020</year>)<article-title>Research on Intelligent Monitoring and Risk Prevention and Control Technology of Oil Wells</article-title><source> Henan Science</source><volume> 38</volume>,<fpage> 63</fpage>-<lpage>68</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.110884-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">He, Y.F., Liu, C. and Wang, X. (2020) Application of Improved AlexNet Model in Fault Diagnosis of Rod Pump. Industrial Safety and Environmental Protection, 46, 22-26.</mixed-citation></ref><ref id="scirp.110884-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Wang, X., He, Y., Li, F., et al. (2021) A Working Condition Diagnosis Model of Sucker Rod Pumping Wells Based on Deep Learning. SPE Production &amp; Operations, 32, 1-10.</mixed-citation></ref><ref id="scirp.110884-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Li, M.J., Li, Z., Qiu, L. and Qiu, Q. (2015) Application of Indicator Diagram Technology in Changqing Oilfield. Petrochemical Industry Automation, 51, 43-45.</mixed-citation></ref><ref id="scirp.110884-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Lee, H. and Whang, M. (2018) Heart Rate Estimated from Body Movements at Six Degrees of Freedom by Convolutional Neural Networks. Sensors, 18, Article No. 1392. https://doi.org/10.3390/s18051392</mixed-citation></ref><ref id="scirp.110884-ref13"><label>13</label><mixed-citation publication-type="book" xlink:type="simple">Ghosh, A., Sufian, A., Sultana, F., et al. (2020) Fundamental Concepts of Convolutional Neural Network. In: Balas, V., Kumar, R. and Srivastava, R., Eds., Recent Trends and Advances in Artificial Intelligence and Internet of Things, Springer, Cham, 519-567. https://doi.org/10.1007/978-3-030-32644-9_36</mixed-citation></ref><ref id="scirp.110884-ref14"><label>14</label><mixed-citation publication-type="book" xlink:type="simple">El-Sawy, A., El-Bakry, H. and Loey, M. (2016) CNN for Handwritten Arabic Digits Recognition Based on Lenet-5. In: Hassanien, A., Shaalan, K., Gaber, T., Azar, A., Tolba, M., Eds., Proceedings of the International Conference on Advanced Intelligent Systems and Informatics, Springer, Switzerland, 566-575. https://doi.org/10.1007/978-3-319-48308-5_54</mixed-citation></ref><ref id="scirp.110884-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Krizhevsky, A., Sutskever, I. and Hinton, G.E. (2012) ImageNet Classification with Deep Convolutional Neural Networks. Proceedings of the 25th International Conference on Neural Information Processing Systems, stand university, 2018, 1097-1105.</mixed-citation></ref><ref id="scirp.110884-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Dhar, P., Dutta, S. and Vivekananda, M. (2021) Cross-Wavelet Assisted Convolution Neural Network (AlexNet) Approach for Phonocardiogram Signals Classification. Biomedical Signal Processing and Control, 63, Article ID: 102142. https://doi.org/10.1016/j.bspc.2020.102142</mixed-citation></ref><ref id="scirp.110884-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Yuan, Y. (2017) Research on Image Quality Evaluation Method Based on Deep Convolutional Network. Thesis, Wuhan University, Wuhan.</mixed-citation></ref><ref id="scirp.110884-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Wang, S.Y. and Teng, G.W. (2018) Optimization Design of ReLU Activation Function in Convolutional Neural Network. Information and Communication, 42-43.</mixed-citation></ref><ref id="scirp.110884-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">Zhang, W.F. and Zhou, J. (2019) Research on Fault Diagnosis of Rolling Bearing Based on Dropout-CNN. Light Industry Machinery, 37, 62-67.</mixed-citation></ref><ref id="scirp.110884-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Zhao, X.Q. and Zhang, Q.Q. (2020) Improved Alexnet’s Fault Diagnosis Method for Rolling Bearing under Variable Conditions. Vibration, Test and Diagnosis, 40, 472-480+623.</mixed-citation></ref><ref id="scirp.110884-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">Gao, H.Y. (2018) Research and Application of Image Recognition Based on Machine Learning. Master’s Thesis, Central China Normal University, Wuhan.</mixed-citation></ref><ref id="scirp.110884-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">Chen, T., Cheng, Y., Gan, Z., et al. (2021) Adversarial Feature Augmentation and Normalization for Visual Recognition. https://www.researchgate.net/publication/350341593_Adversarial_Feature_Augmentation_and_Normalization_for_Visual_Recognition</mixed-citation></ref><ref id="scirp.110884-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">Bi, Z.J. (2015) Research on Parallel Accelerated Training Algorithm of Multi-GPU Multi-layer Neural Network. Thesis, Harbin Institute of Technology, Harbin.</mixed-citation></ref><ref id="scirp.110884-ref24"><label>24</label><mixed-citation publication-type="other" xlink:type="simple">Wang, Y.M. (2016) Convolutional Neural Network Parallel Algorithm in Multi-GPU Environment. Thesis, University of Science and Technology of China, Hefei.</mixed-citation></ref></ref-list></back></article>