A method, device and storage medium for detecting pumping unit stroke frequency based on seismograph
The vibration signal of the oil pumping unit is collected by the seismometer and processed by the signal to calculate the impulse information of the oil pumping unit, which solves the problems of inaccurate detection and inability to monitor for a long time in the existing technology, and achieves high-accuracy impulse detection and long-term monitoring. Monitoring, suitable for large-scale applications.
Patent Information
- Application Number
- CN202210124047.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-10
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-02-10
AI Technical Summary
The existing pumping unit stroke detection method is difficult to accurately measure stroke information and cannot detect for a long time. It is limited by the vulnerability of external sensors and the inability to meet long-term monitoring requirements.
A seismometer is used to collect the vibration signal of the pumping unit. Through time window division, normalized cross-correlation operation and superimposed signal processing, the time difference of the target moment is calculated to obtain the impulse information of the pumping unit to achieve long-term monitoring.
This method can accurately and reliably detect the stroke information of the pumping unit, is suitable for long-term monitoring, improves detection accuracy, is suitable for large-scale application and promotion, and is not affected by the state of the internal components of the pumping unit.
Smart Images

Figure CN114460645B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of pumping unit stroke frequency detection, and in particular relates to a pumping unit stroke frequency detection method, device and storage medium based on a seismograph. Background Art
[0002] The oil pump is a kind of machine equipment for oil extraction, commonly known as "kowtow machine", and is one of the indispensable equipment in the field of oil extraction. The working condition of the oil pump directly affects the efficiency of oil extraction. Therefore, monitoring the working status of the oil pump has become an important part of oil extraction. At present, most of the working status of the oil pump is obtained by detecting the number of strokes of the oil pump. The stroke refers to the number of times the sucker rod reciprocates up and down per minute, which is one of the important parameters of the operation status of the oil pump system. Accurate measurement of the strokes of the oil pump is the basis for regulating and optimizing the efficiency of the oil pump system, and plays a very important role in extending the service life of the sucker rod pump, reducing the waste of electricity and the loss of oil production.
[0003] At present, the detection methods of the stroke frequency of the oil pump mainly include theoretical formula calculation method and sensor measurement method. Among them, the formula calculation method theoretically calculates the stroke frequency based on parameters such as the speed of the motor, the diameter of the pulley, the diameter of the speed reducer and the speed reduction / transmission ratio. In practical applications, it is easily affected by the operating conditions of the motor and the speed reducer and it is difficult to accurately obtain the actual operating stroke frequency of the oil pump; and the sensor measurement method realizes the stroke frequency measurement of the oil pump by installing corresponding sensors outside the oil pump system, such as using speed sensors, angular displacement sensors and photoelectric switch sensors. In practical applications, it has the disadvantages of high protection level of external sensors and transmission lines, easy damage in the movement vibration of the oil pump and inability to meet long-term monitoring requirements; therefore, it is urgent to provide a method that can accurately and long-term detect the stroke frequency information of the oil pump. Summary of the invention
[0004] The purpose of the present invention is to provide a method, device and storage medium for detecting the stroke frequency of an oil pump based on a seismograph, so as to solve the problems existing in the existing methods for detecting the stroke frequency of an oil pump, that is, it is difficult to accurately measure the stroke frequency information of the oil pump and it is impossible to detect the stroke frequency information for a long time.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] In a first aspect, the present invention provides a method for detecting pumping unit stroke frequency based on a seismograph, comprising:
[0007] Acquire a vibration signal collected by a seismometer arranged within a preset range of the pumping unit;
[0008] Dividing the vibration signal into a plurality of sub-signals with time windows of preset duration;
[0009] Performing a normalized cross-correlation operation on two sub-signals in adjacent time windows among the plurality of sub-signals to obtain a plurality of cross-correlation signals;
[0010] Performing a superposition operation on the multiple cross-correlation signals to obtain a superposition signal;
[0011] According to the superimposed signal, a target moment in the superimposed signal is obtained, wherein the amplitude corresponding to each target moment in the target moments is greater than a preset amplitude threshold, and the time difference between two adjacent target moments is greater than a preset time threshold;
[0012] The time difference between two adjacent target moments in the target moments is calculated, and the stroke frequency detection result of the oil pumping unit is obtained based on the time difference.
[0013] Based on the above disclosed content, the present invention uses the vibration signal generated by the up and down reciprocating motion of the oil pump to detect the stroke frequency, wherein the frequency and characteristic changes of the vibration signal can reflect the actual operating status of the oil pump. Therefore, the present invention first divides the vibration signal into time windows to obtain a number of sub-signals, and then performs normalized cross-correlation operations on the sub-signals of adjacent time windows to obtain cross-correlation signals. Next, the cross-correlation signals are superimposed to obtain a superimposed signal. Finally, the target moment in the superimposed signal is obtained, and based on the time difference between adjacent target moments, the stroke frequency information of the oil pump can be obtained.
[0014] The principle of the above steps is: the time intervals between the maxima of adjacent cross-correlation signals reflect the time intervals of the vibration signals generated during the up and down reciprocating motion of the oil pump. Therefore, it is only necessary to find the position of the maximum value in the superimposed signal (equivalent to finding the target moment) and calculate the time difference between the adjacent maximum value positions to obtain the time interval of the vibration signal. Finally, the stroke frequency information can be obtained based on the time interval. Therefore, the aforementioned detection method is not easily affected by the working state of the internal components of the oil pump, and thus the stroke frequency information of the oil pump can be accurately detected. At the same time, the present invention uses a seismograph to collect the vibration signal of the oil pump. The seismograph will not affect the operation of the oil pump during collection, and therefore, it can be used for long-term monitoring of the working state of the oil pump.
[0015] Through the above design, the present invention collects the vibration signal generated by the up and down movement of the oil pump through a seismograph, and uses the vibration signal to calculate the stroke information of the oil pump. Therefore, the method is safe in construction and reliable in results. It not only has a high detection accuracy, but is also suitable for long-term monitoring of the oil pump. It is of great significance to the regulation and optimization of the efficiency of the oil pump system and is suitable for large-scale application and promotion.
[0016] In a possible design, a normalized cross-correlation operation is performed on two sub-signals in adjacent time windows among the plurality of sub-signals to obtain a plurality of cross-correlation signals, including:
[0017] The following formula is used to perform normalized cross-correlation operation on two sub-signals in adjacent time windows to obtain multiple cross-correlation signals;
[0018]
[0019] In the above formula, x i (m) represents the i-th sub-signal, x i+1 (m) represents the i+1th sub-signal, M represents the number of sampling points of the vibration signal, cc i (k) represents x i (m) and x i+1 (m) The cross-correlation signal after the normalized cross-correlation operation, wherein i=1, ..., L-1, and L represents the total number of sub-signals.
[0020] In a possible design, the following formula is used to perform a superposition operation on the multiple cross-correlated signals to obtain a superposition signal;
[0021]
[0022] In the above formula, CC(k) represents the superimposed signal, cc i (k) represents x i (m) and x i+1 (m) The cross-correlation signal after normalized cross-correlation operation, where x i (m) represents the i-th sub-signal, x i+1 (m) represents the i+1th sub-signal, i=1, ..., L-1, and L represents the total number of sub-signals.
[0023] In a possible design, calculating the time difference between two adjacent target moments in the target moments, and obtaining the stroke frequency detection result of the oil pumping unit based on the time difference, includes:
[0024] The following formula is used to obtain the stroke detection result of the pumping unit according to the time difference;
[0025]
[0026] In the above formula, Nc represents the stroke detection result of the pumping unit, Δt a =t a+1 -t a , where t a represents the ath target moment, t a+1 represents the a+1th target moment, a=1,...,N, and N represents the total number of target moments.
[0027] In a possible design, before dividing the vibration signal into a plurality of sub-signals each having a time window of a preset duration, the method further includes:
[0028] Performing detrending processing and bandpass filtering processing on the vibration signal in sequence to obtain a preprocessed signal;
[0029] Accordingly, the vibration signal is divided into a plurality of sub-signals with time windows of preset duration, including:
[0030] The preprocessed signal is divided into a plurality of sub-signals with time windows of preset duration.
[0031] Based on the above disclosed content, before signal division, the vibration signal is subjected to detrending processing and bandpass filtering processing in turn, wherein the detrending processing can remove background interference in the vibration signal, and the bandpass filtering processing can remove random noise in the vibration signal, thereby improving the signal-to-noise ratio of the vibration signal and thus improving the accuracy of impulse detection.
[0032] In a possible design, the sampling frequency of the vibration signal is greater than or equal to 100 Hz, and the preset time length is 1 minute.
[0033] In a possible design, the amplitude corresponding to each of the target moments is greater than 0.3, and the time difference between two adjacent target moments is greater than 10s.
[0034] In a second aspect, the present invention provides a pumping unit stroke detection device based on a seismograph, comprising:
[0035] An acquisition unit, used to acquire a vibration signal collected by a seismometer arranged within a preset range of the oil pump;
[0036] A signal division unit, used for dividing the vibration signal into a plurality of sub-signals with time windows of preset duration;
[0037] A normalization unit, used for performing a normalized cross-correlation operation on two sub-signals in adjacent time windows among the plurality of sub-signals to obtain a plurality of cross-correlation signals;
[0038] A superposition unit, used for performing a superposition operation on the multiple cross-correlation signals to obtain a superposition signal;
[0039] A time difference calculation unit, configured to obtain a target moment in the superimposed signal according to the superimposed signal, wherein the amplitude corresponding to each target moment in the target moments is greater than a preset amplitude threshold, and the time difference between two adjacent target moments is greater than a preset time threshold;
[0040] The stroke frequency calculation unit is used to calculate the time difference between two adjacent target moments in the target moments, and obtain the stroke frequency detection result of the oil pump based on the time difference.
[0041] In the third aspect, the present invention provides another pumping unit stroke detection device based on a seismograph, taking the device as an electronic device as an example, comprising a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store computer programs, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the seismograph-based pumping unit stroke detection method as in the first aspect or any possible design in the first aspect.
[0042] In a fourth aspect, the present invention provides a storage medium having instructions stored thereon, which, when executed on a computer, executes the seismograph-based pumping unit stroke detection method as in the first aspect or any possible design of the first aspect.
[0043] In a fifth aspect, the present invention provides a computer program product comprising instructions, which, when executed on a computer, causes the computer to execute the seismograph-based pumping unit stroke detection method as described in the first aspect or any possible design of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A schematic diagram of the architecture of a pumping unit stroke detection system based on a seismograph provided by the present invention;
[0045] Figure 2 A schematic diagram of the steps of the pumping unit stroke detection method based on a seismograph provided by the present invention;
[0046] Figure 3 A schematic diagram showing the effect of dividing a 600s vibration signal provided by the present invention into 10 sub-signals with a time window of 1 minute;
[0047] Figure 4 A schematic diagram of a cross-correlation signal obtained after performing normalized cross-correlation operation on sub-signals in two adjacent time windows among the 10 sub-signals provided by the present invention;
[0048] Figure 5 A schematic diagram of a superimposed signal provided by the present invention;
[0049] Figure 6 A schematic diagram of the structure of a pumping unit stroke detection device based on a seismograph provided by the present invention;
[0050] Figure 7 This is a schematic structural diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0051] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments. It should be noted that although the description of these embodiments is used to help understand the present invention, it does not constitute a limitation of the present invention. The specific structures and functional details disclosed herein are only used to describe the exemplary embodiments of the present invention. However, the present invention can be embodied in many alternative forms, and it should not be understood that the present invention is limited to the embodiments set forth herein.
[0052] It should be understood that although the terms first, second, etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are only used to distinguish one unit from another unit. For example, a first unit can be referred to as a second unit, and similarly, a second unit can be referred to as a first unit without departing from the scope of the exemplary embodiments of the present invention.
[0053] It should be understood that the term "and / or" that may appear in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, B exists alone, and A and B exist at the same time. The term " / and" that may appear in this article describes another type of association object relationship, indicating that two relationships may exist. For example, A / and B can represent two situations: A exists alone, and A and B exist alone. In addition, the character " / " that may appear in this article generally indicates that the previous and next associated objects are in an "or" relationship.
[0054] Example
[0055] See also Figure 1 As shown, a system architecture is provided for the present application, wherein the system includes a seismograph and a server, wherein the seismograph is arranged within a preset range of the oil pump (such as arranged at a position 3 meters away from the oil pump) to continuously collect vibration signals generated by the oil pump during its up and down reciprocating movement, and at the same time, the seismograph transmits the collected vibration signals to the server, and the server uses the method provided in this embodiment to perform signal analysis on the vibration signals to obtain the stroke frequency information of the oil pump based on the vibration signals; thus, the arrangement of the system makes it less susceptible to the influence of the working state of the internal components of the oil pump during detection, and thus the stroke frequency information of the oil pump can be accurately detected; at the same time, the present system uses a seismograph to collect the vibration signals of the oil pump, and the seismograph will not affect the operation of the oil pump during collection, and therefore, it can be used for long-term monitoring of the working state of the oil pump, and is suitable for large-scale promotion and application.
[0056] See also Figure 2As shown, the seismograph-based pump stroke detection method provided in the first aspect of this embodiment is suitable for long-term monitoring of the working conditions of oil extraction equipment such as pumps, wherein the method can be but is not limited to being run on the server side, and its operating steps are shown in the following steps S1 to S6.
[0057] S1. Obtain the vibration signal collected by the seismograph arranged within the preset range of the oil pump; in specific application, the present invention realizes the stroke detection based on the vibration signal generated by the oil pump during the up and down reciprocating motion, and its principle is: the frequency and characteristic changes of the vibration signal can reflect the actual operation status of the oil pump, therefore, it is only necessary to perform signal analysis on the vibration signal to obtain the stroke information of the oil pump, and the analysis process can refer to the following steps S2 to S6; at the same time, in specific implementation, the vibration signal is collected by the seismograph, and when the seismograph is working, it will collect the vibration signal generated by the oil pump when working, which will not interfere with the normal operation of the oil pump, therefore, it can carry out long-term monitoring of the working conditions of oil production equipment such as the oil pump.
[0058] Optionally, for example, the seismograph is arranged within the range of 3 to 5 m from the oil pump, and the sampling frequency of the seismograph is set greater than or equal to 100 Hz, that is, the sampling frequency of the vibration signal is greater than or equal to 100 Hz (preferably 100 Hz); of course, the arrangement distance and sampling frequency of the seismograph are not limited to the aforementioned example, and can be specifically set according to actual detection.
[0059] After obtaining the vibration signal generated by the operation of the oil pump, the vibration signal can be analyzed, wherein the main process of the signal analysis is: firstly, the vibration signal is divided into time windows to obtain a number of sub-signals, and then the sub-signals of adjacent time windows are normalized and cross-correlated to obtain a cross-correlation signal, then, the cross-correlation signal is superimposed to obtain a superimposed signal, and finally, the position of the maximum value in the superimposed signal (that is, the target time) is obtained, and based on the time difference between the positions of adjacent maximum values, the stroke information of the oil pump can be obtained; in specific applications, the vibration signal is divided as shown in the following step S2.
[0060] S2. The vibration signal is divided into several sub-signals with a preset time window length; in specific applications, the vibration signal can be divided into several sub-signals with a time window of 1 minute, see Figure 3 As shown, assuming that the total duration of the vibration signal is 600s and the preset duration is 1 minute, the vibration signal can be divided into 10 sub-signals with a time window of 1 minute; of course, the length of the divided time window is not limited to 1 minute and can be adjusted according to the actual detection accuracy.
[0061] After the vibration signal is divided into several sub-signals, a normalized cross-correlation operation can be performed on two sub-signals in adjacent time windows to provide a data basis for the acquisition of subsequent target moments, wherein the specific steps of the normalized cross-correlation operation are shown in the following step S3.
[0062] S3. Performing normalized cross-correlation operation on two sub-signals in adjacent time windows among the plurality of sub-signals to obtain multiple cross-correlation signals; in this embodiment, the essence of step S3 performing normalized cross-correlation operation on two sub-signals in adjacent time windows is equivalent to obtaining similarity and time difference information of the signals in the two time windows.
[0063] In specific applications, the following formula can be used to perform normalized cross-correlation operations on two sub-signals in adjacent time windows:
[0064]
[0065] In the above formula, x i (m) represents the i-th sub-signal, x i+1 (m) represents the i+1th sub-signal, M represents the number of sampling points of the vibration signal, cc i (k) represents x i (m) and x i+1 (m) The cross-correlation signal after the normalized cross-correlation operation, wherein i=1, ..., L-1, and L represents the total number of sub-signals.
[0066] Still based on the above example, step S3 is described in detail:
[0067] The aforementioned vibration signal is divided into 10 sub-signals. Therefore, the first sub-signal and the second sub-signal are subjected to normalized cross-correlation operation to obtain the first cross-correlation signal. The second sub-signal and the third sub-signal are subjected to normalized cross-correlation operation to obtain the second cross-correlation signal. Based on this principle, the cross-correlation signal between the ninth sub-signal and the tenth sub-signal is calculated, that is, the ninth cross-correlation signal. The nine cross-correlation signals calculated can be seen in Figure 4 As shown, the maximum value in the cross-correlation signal reflects the duration of the corresponding two sub-signals, and the time difference information between the maximum value positions in each cross-correlation signal reflects the time interval of the vibration signal of the oil pump. Therefore, the stroke information of the oil pump can be obtained by using the time difference between the maximum value positions of each cross-correlation signal.
[0068] At the same time, in order to accurately obtain the time difference of the maximum position in each cross-correlation signal, this embodiment needs to superimpose multiple cross-correlation signals to improve the signal-to-noise ratio of the signal, thereby improving the accuracy of the time difference calculation, wherein the superposition process of the cross-correlation signals is shown in the following step S4.
[0069] S4. Performing a superposition operation on the multiple cross-correlation signals to obtain a superposition signal; in specific applications, the following formula can be used to perform a superposition operation on the multiple cross-correlation signals:
[0070]
[0071] In the above formula, CC(k) represents the superimposed signal, cc i (k) represents x i (m) and x i+1 (m) The cross-correlation signal after normalized cross-correlation operation, where x i (m) represents the i-th sub-signal, x i+1 (m) represents the i+1th sub-signal, i=1, ..., L-1, and L represents the total number of sub-signals.
[0072] Step S4 is described based on the above example: Based on the above superposition formula, it is equivalent to first summing up 9 cross-correlation signals and then dividing by 9 to obtain the superposition signal, see Figure 5 As shown, Figure 5 It is the superposition signal obtained by superimposing 9 cross-correlated signals.
[0073] After obtaining a signal obtained by superimposing multiple mutually correlated signals, the position of the maximum value can be found in the superimposed signal, wherein the maximum value refers to the maximum value of the signal amplitude, and the position of the maximum value is the moment corresponding to the maximum value of the amplitude. The search process is shown in the following step S5.
[0074] S5. According to the superimposed signal, the target moments in the superimposed signal are obtained, wherein the amplitude corresponding to each target moment in the target moments is greater than a preset amplitude threshold, and the time difference between two adjacent target moments is greater than a preset time threshold; in specific application, for example, the amplitude corresponding to each target moment in the target moments is greater than 0.3, and the time difference between two adjacent target moments is greater than 10s.
[0075] After finding the position of the maximum value in the superposition signal, that is, after finding the target time, the pumping unit's stroke information can be calculated based on the time difference between two adjacent target times. The specific calculation process is shown in the following step S6.
[0076] S6. Calculate the time difference between two adjacent target moments in the target moment, and obtain the stroke detection result of the pumping unit based on the time difference; in specific application, the stroke detection result of the pumping unit can be calculated using the following formula:
[0077]
[0078] In the above formula, Nc represents the stroke detection result of the pumping unit, Δt a =t a+1 -t a , where t a represents the ath target moment, t a+1 represents the a+1th target moment, a=1,...,N, and N represents the total number of target moments.
[0079] The following is still an example to illustrate the above step S5 and step S6, based on the superposition signal obtained by superposition operation of the above nine cross-correlation signals:
[0080] See also Figure 5 As shown, first according to the aforementioned step S4 Figure 5 Find the moment when the amplitude is greater than 0.3 as the pre-selected target moment, and then screen out the pre-selected target moment with a time difference between two adjacent pre-selected target moments greater than 10s as the target moment, that is, according to the aforementioned step S4, 5 maximum value positions can be obtained, that is, the moments corresponding to the 5 maximum values are obtained, which are t1, t2, t3, t4 and t5, respectively. Therefore, 4 time differences can be obtained, namely, the time difference Δt1 between t2 and t1, the time difference Δt2 between t3 and t2, the time difference Δt3 between t4 and t3, and the time difference Δt4 between t5 and t4. Finally, according to the aforementioned stroke calculation formula, the stroke information of the oil pump corresponding to the vibration signal can be calculated.
[0081] Assuming that the above four time differences are: 12.908, 13.320, 12.512, 12.908s, then the above impulse detection results are:
[0082] That is, the stroke count of the oil pump is 2.3234 times; of course, when the number of target moments is different, the stroke count calculation method is consistent with the principle of the aforementioned example, and will not be repeated here.
[0083] Therefore, through the detailed description of the pumping unit stroke detection method based on the seismograph through the aforementioned steps S1 to S6, the present invention collects the vibration signal generated by the up and down movement of the pumping unit through the seismograph, and uses the vibration signal to calculate and obtain the pumping unit stroke information. Therefore, the method is safe to construct and the result is reliable. It not only has a high detection accuracy rate, but is also suitable for long-term monitoring of the pumping unit, which is of great significance to the regulation and optimization of the efficiency of the pumping unit system and is suitable for large-scale promotion and application.
[0084] In a possible design, the second aspect of this embodiment is further optimized on the basis of the first aspect of the embodiment, so as to further improve the accuracy of the pumping unit stroke detection, and its specific configuration is as follows:
[0085] Optionally, in a specific application, before dividing the vibration signal into a plurality of sub-signals with time windows of preset duration, the method further includes the following step S02.
[0086] S02. The vibration signal is sequentially subjected to detrending processing and bandpass filtering processing to obtain a preprocessed signal; in specific applications, the detrending processing can remove background interference in the vibration signal, while the bandpass filtering processing can remove random noise in the vibration signal. Thus, through the aforementioned design, the signal-to-noise ratio of the vibration signal can be improved, thereby improving the accuracy of impulse detection.
[0087] Optionally, the vibration signal may be subjected to detrending processing by using, but not limited to, a polynomial least squares method. Similarly, the vibration signal after detrending processing may be subjected to filtering processing by using, but not limited to, a bandpass filter to obtain a preprocessed signal.
[0088] After the vibration signal is subjected to detrending processing and bandpass filtering processing in turn, the vibration signal is divided into several sub-signals with time windows of preset duration, which includes: dividing the preprocessed signal into several sub-signals with time windows of preset duration; in this embodiment, the preprocessed signal is divided, and the impulse detection result is subsequently calculated, and its principle is consistent with the aforementioned steps S2 to S6, which will not be repeated here.
[0089] like Figure 6 As shown, the third aspect of this embodiment provides a hardware device for implementing the pumping unit stroke detection method based on a seismograph described in the first aspect of the embodiment, including:
[0090] The acquisition unit is used to acquire the vibration signal collected by the seismometer arranged within the preset range of the oil pump.
[0091] The signal division unit is used to divide the vibration signal into a plurality of sub-signals with time windows of preset duration.
[0092] The normalization unit is used to perform normalized cross-correlation operation on two sub-signals in adjacent time windows among the plurality of sub-signals to obtain a plurality of cross-correlation signals.
[0093] The superposition unit is used to perform a superposition operation on the multiple cross-correlation signals to obtain a superposition signal.
[0094] A time difference calculation unit is used to obtain a target moment in the superimposed signal according to the superimposed signal, wherein the amplitude corresponding to each target moment in the target moments is greater than a preset amplitude threshold, and the time difference between two adjacent target moments is greater than a preset time threshold.
[0095] The stroke frequency calculation unit is used to calculate the time difference between two adjacent target moments in the target moments, and obtain the stroke frequency detection result of the oil pump based on the time difference.
[0096] The working process, working details and technical effects of the hardware device provided in this embodiment can be found in the first aspect of the embodiment and will not be described in detail here.
[0097] like Figure 7 As shown, the fourth aspect of this embodiment provides another pumping unit stroke detection device based on a seismograph, taking the device as an electronic device as an example, comprising: a memory, a processor and a transceiver that are communicatively connected in sequence, wherein the memory is used to store computer programs, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the pumping unit stroke detection method based on a seismograph as described in the first aspect or the second aspect of the embodiment.
[0098] For example, the memory may include, but is not limited to, random access memory (RAM), read only memory (ROM), flash memory, first input first output (FIFO) and / or first in last out (FILO), etc. Specifically, the processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array); at the same time, the processor may also include a main processor and a coprocessor, the main processor is a processor for processing data in the awake state, also known as CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state.
[0099] In some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. For example, the processor may not be limited to a microprocessor of the STM32F105 series, a reduced instruction set computer (RSIC) microprocessor, an X86 architecture processor, or a processor with an integrated embedded neural network processing unit (NPU); the transceiver may be, but is not limited to, a wireless fidelity (WIFI) wireless transceiver, a Bluetooth wireless transceiver, a general packet radio service technology (General Packet Radio Service, GPRS) wireless transceiver, a ZigBee protocol (a low-power local area network protocol based on the IEEE802.15.4 standard, ZigBee) wireless transceiver, a 3G transceiver, a 4G transceiver and / or a 5G transceiver, etc. In addition, the device may also include, but is not limited to, a power module, a display screen, and other necessary components.
[0100] The working process, working details and technical effects of the electronic device provided in this embodiment can be found in the first and second aspects of the embodiments, and will not be described in detail here.
[0101] The fifth aspect of this embodiment provides a storage medium storing instructions for the method for detecting the frequency of pumping unit strokes based on a seismograph as described in the first aspect or the second aspect of the embodiment, that is, the storage medium stores instructions, and when the instructions are run on a computer, the method for detecting the frequency of pumping unit strokes based on a seismograph as described in the first aspect or the second aspect is executed.
[0102] The storage medium refers to a carrier for storing data, which may include but is not limited to a floppy disk, a CD, a hard disk, a flash memory, a USB flash drive and / or a memory stick, and the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
[0103] The working process, working details and technical effects of the storage medium provided in this embodiment can be found in the first aspect or the second aspect of the embodiment, and will not be described in detail here.
[0104] A sixth aspect of the present embodiment provides a computer program product comprising instructions, which, when executed on a computer, causes the computer to execute the seismograph-based pumping unit stroke detection method as described in the first or second aspect of the embodiment, wherein the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
[0105] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for detecting pumping unit stroke frequency based on a seismograph, characterized in that: include: Acquire a vibration signal collected by a seismometer arranged within a preset range of the pumping unit; Dividing the vibration signal into a plurality of sub-signals with time windows of preset duration; Performing a normalized cross-correlation operation on two sub-signals in adjacent time windows among the plurality of sub-signals to obtain a plurality of cross-correlation signals; Performing a superposition operation on the multiple cross-correlation signals to obtain a superposition signal; According to the superimposed signal, a target moment in the superimposed signal is obtained, wherein the amplitude corresponding to each target moment in the target moments is greater than a preset amplitude threshold, and the time difference between two adjacent target moments is greater than a preset time threshold; The time difference between two adjacent target moments in the target moments is calculated, and the stroke frequency detection result of the oil pumping unit is obtained based on the time difference.
2. The method according to claim 1, characterized in that Performing a normalized cross-correlation operation on two sub-signals in adjacent time windows among the plurality of sub-signals to obtain a plurality of cross-correlation signals, including: The following formula is used to perform normalized cross-correlation operation on two sub-signals in adjacent time windows to obtain multiple cross-correlation signals; In the above formula, x i (m) represents the i-th sub-signal, x i+1 (m) represents the i+1th sub-signal, M represents the number of sampling points of the vibration signal, cc i (k) represents x i (m) and x i+1 (m) The cross-correlation signal after the normalized cross-correlation operation, wherein i=1, ..., L-1, and L represents the total number of sub-signals.
3. The method according to claim 1, characterized in that The multiple cross-correlation signals are superimposed by using the following formula to obtain a superimposed signal; In the above formula, CC(k) represents the superimposed signal, cc i (k) represents x i (m) and x i+1 (m) The cross-correlation signal after normalized cross-correlation operation, where x i (m) represents the i-th sub-signal, x i+1 (m) represents the i+1th sub-signal, i=1, ..., L-1, and L represents the total number of sub-signals.
4. The method according to claim 1, characterized in that Calculating the time difference between two adjacent target moments in the target moments, and obtaining the stroke frequency detection result of the oil pumping unit based on the time difference, including: The following formula is used to obtain the stroke detection result of the pumping unit according to the time difference; In the above formula, Nc represents the stroke detection result of the pumping unit, Δt a =t a+1 -t a , where t a represents the ath target moment, t a+1 represents the a+1th target moment, a=1,...,N, and N represents the total number of target moments.
5. The method according to claim 1, before dividing the vibration signal into a plurality of sub-signals with time windows of preset duration, the method further comprises: Performing detrending processing and bandpass filtering processing on the vibration signal in sequence to obtain a preprocessed signal; Accordingly, the vibration signal is divided into a plurality of sub-signals with time windows of preset duration, including: The preprocessed signal is divided into a plurality of sub-signals with time windows of preset duration.
6. The method according to claim 1, characterized in that The sampling frequency of the vibration signal is greater than or equal to 100 Hz, and the preset time length is 1 minute.
7. The method according to claim 1, characterized in that The amplitude corresponding to each of the target moments is greater than 0.3, and the time difference between two adjacent target moments is greater than 10s.
8. A pumping unit stroke detection device based on a seismograph, characterized in that: include: An acquisition unit, used to acquire a vibration signal collected by a seismometer arranged within a preset range of the oil pump; A signal division unit, used for dividing the vibration signal into a plurality of sub-signals with time windows of preset duration; A normalization unit, used for performing a normalized cross-correlation operation on two sub-signals in adjacent time windows among the plurality of sub-signals to obtain a plurality of cross-correlation signals; A superposition unit, used for performing a superposition operation on the multiple cross-correlation signals to obtain a superposition signal; A time difference calculation unit, configured to obtain a target moment in the superimposed signal according to the superimposed signal, wherein the amplitude corresponding to each target moment in the target moments is greater than a preset amplitude threshold, and the time difference between two adjacent target moments is greater than a preset time threshold; The stroke frequency calculation unit is used to calculate the time difference between two adjacent target moments in the target moments, and obtain the stroke frequency detection result of the oil pump based on the time difference.
9. A pumping unit stroke detection device based on a seismograph, characterized in that: include: A memory, a processor and a transceiver which are sequentially connected in communication, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the pumping unit stroke detection method based on a seismograph as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions are executed on a computer, the pumping unit stroke detection method based on a seismograph as claimed in any one of claims 1 to 7 is executed.
