A method, device, cloud platform system, electronic equipment and storage medium for detecting anomalies in oil wells.

CN122565408APending Publication Date: 2026-08-14PETROCHINA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-14
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

[0004]本发明提供了一种油井异常检测方法、装置、云平台系统、电子设备及存储介质,以解决现有技术中存在缺乏对油井进行智能检测和管控的问题

Benefits of technology

[0026]本发明实施例的技术方案,通过获取油井控制柜在运行过程中生成的记录信息,记录信息包括油井控制柜在响应控制指令时生成的操作记录信息和/或在任一工作模式下的运行记录信息,其中,控制指令包括控制模式切换指令、工作模式切换指令和启停控制指令的一项或多项;记录信息中包括控制模式、工作模式、启停状态的一项和多项以及抽油机运行参数;基于记录信息确定油井控制柜的制动状态,基于制动状态和抽油机运行参数确定油井生产状态;在油井生产状态为异常状态时,将油井生产状态发送至云平台系统,以使云平台系统生成异常报警,实现了根据油井控制柜生成的多项记录信息确定油井生产状态,并在油井生产状态为异常状态的情况下,将油井生产状态发送至云平台系统,并生成对应的异常报警,以完成通过云边协同互补方法对油井进行智能异常检测,解决了无法智能地对油井进行异常检测的问题,减少人员成本,提高了油井异常检测的实时性、准确性和高效性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122565408A_ABST
    Figure CN122565408A_ABST
Patent Text Reader

Abstract

This invention discloses a method, device, cloud platform system, electronic equipment, and storage medium for detecting oil well anomalies. The method includes: acquiring recorded information generated by the oil well control cabinet during operation; the recorded information includes operation record information generated by the oil well control cabinet when responding to control commands and / or operation record information in any working mode; the control commands include one or more of control mode switching commands, working mode switching commands, and start / stop control commands; determining the braking state of the oil well control cabinet based on one or more of the control mode, working mode, start / stop state, and pumping unit operating parameters in the recorded information; determining the oil well production state based on the braking state and pumping unit operating parameters; and sending the oil well production state to the cloud platform system when the oil well production state is abnormal, thereby generating an anomaly alarm. This method enables intelligent detection of oil wells based on the recorded information from the oil well control cabinet, improving the real-time performance and accuracy of oil well anomaly detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automatic detection technology, and in particular to a method, device, cloud platform system, electronic equipment and storage medium for detecting anomalies in oil wells. Background Technology

[0002] In recent years, the situation of low production and low efficiency of oil wells has become severe. The traditional continuous pumping mode has caused a huge waste of energy. Achieving coordinated supply and drainage of oil wells through intermittent pumping is an important technical means to save energy and reduce consumption in low-production and low-efficiency wells. The number of intermittent pumping wells has increased rapidly in recent years. The on-site management of traditional intermittent pumping wells relies on manual labor, which is labor-intensive, inefficient, costly and difficult to popularize.

[0003] Digital transformation and intelligent development are the choices for high-quality development of oilfields. To adapt to the development needs of new oil production technologies, achieve intelligent management of the entire production process, and promote lean production, oilfields are accelerating the construction of the Internet of Things (IoT), laying a solid foundation for reduced or unmanned operation of stations. Oilfield IoT construction involves installing sensor equipment such as electrical parameter sensors, dynamometer cards, and casing pressure sensors. Through IoT technology, real-time production data is comprehensively collected, enabling real-time calculation of important indicators such as fluid production and power consumption, as well as real-time monitoring of well operating status. However, the operating conditions of intermittent pumping wells are more complex than those of continuous pumping wells. Traditional well management models and technologies are insufficient to meet the needs of intelligent intermittent pumping management, lacking intelligent detection and control methods for wells. Summary of the Invention

[0004] This invention provides a method, device, cloud platform system, electronic equipment, and storage medium for detecting anomalies in oil wells, in order to solve the problem of the lack of intelligent detection and control of oil wells in the prior art.

[0005] According to one aspect of the present invention, a method for detecting anomalies in oil wells is provided, comprising:

[0006] Acquire the recorded information generated by the oil well control cabinet during operation. The recorded information includes the operation record information generated by the oil well control cabinet when responding to control commands and / or the operation record information in any working mode. The control commands include one or more of the control mode switching command, working mode switching command, and start / stop control command. The recorded information includes one or more of the control mode, working mode, start / stop status, and pumping unit operating parameters.

[0007] The braking status of the oil well control cabinet is determined based on the recorded information, and the oil well production status is determined based on the braking status and the operating parameters of the pumping unit.

[0008] When the oil well production status is abnormal, the oil well production status is sent to the cloud platform system so that the cloud platform system can generate an abnormal alarm.

[0009] Optionally, the control modes include local mode and remote mode; the operating modes include continuous pumping mode and intermittent pumping mode; the pumping unit operating parameters include the maximum electrical power within a single cycle.

[0010] Optionally, the oil well production status is determined based on the braking status and pumping unit operating parameters, including one or more of the following: When the braking status is in local mode, continuous pumping mode, or start-up mode, if the pumping unit operating parameters are greater than or equal to a first preset threshold, the oil well production status is determined to be local start-up normal; if the pumping unit operating parameters are less than the first preset threshold, the oil well production status is determined to be local start-up abnormal, and the oil well is not started. During continuous pumping mode operation in local mode, if the pumping unit operating parameters are greater than or equal to the first preset threshold, the oil well production status is determined to be continuous pumping operation normal; if the pumping unit operating parameters are less than the first preset threshold, the oil well production status is determined to be continuous pumping abnormal shutdown. When the braking status is in local mode or stop mode, if the pumping unit operating parameters are greater than or equal to the first preset threshold, the oil well production status is determined to be local shutdown abnormal, and the oil well is not shut down; if the pumping unit operating parameters are less than the first preset threshold, the oil well production status is local shutdown normal.

[0011] Optionally, the well production status is determined based on the braking state and pumping unit operating parameters, including one or more of the following: When the braking state is in remote mode, continuous pumping mode, or start-up state, if the pumping unit operating parameters are greater than or equal to a first preset threshold, the well production status is determined to be remote start-up normal; if the pumping unit operating parameters are less than the first preset threshold, the well production status is determined to be remote start-up abnormal, and the well is not started; during continuous pumping mode operation in remote mode, if the pumping unit operating parameters are greater than or equal to the first preset threshold, the well production status is determined to be continuous pumping operation normal; if the pumping unit operating parameters are less than the first preset threshold, the well production status is continuous pumping abnormal shutdown; during intermittent pumping mode operation in remote mode, in the start-up state of intermittent pumping mode, if the pumping unit... If the pumping unit's operating parameters are greater than or equal to the first preset threshold, the well's production status is determined to be normal operation in intermittent pumping mode. If the pumping unit's operating parameters are less than the first preset threshold, the well's production status is determined to be abnormal operation in intermittent pumping mode, and the intermittent pumping mode is abnormally shut down. In the shutdown state of intermittent pumping mode, if the pumping unit's operating parameters are greater than or equal to the first preset threshold, the well's production status is determined to be abnormal shutdown in intermittent pumping mode, and the intermittent pumping mode changes to continuous pumping mode. If the pumping unit's operating parameters are less than the first preset threshold, the well's production status is determined to be normal shutdown in intermittent pumping mode. In the braking state, which is either remote mode or stop mode, if the pumping unit's operating parameters are greater than or equal to the first preset threshold, the well's production status is determined to be abnormal remote shutdown, and the well is not shut down. If the pumping unit's operating parameters are less than the first preset threshold, the well's production status is determined to be normal remote shutdown.

[0012] Optionally, the method further includes: in intermittent pumping mode, receiving an intermittent pumping parameter update instruction, and a first startup duration for completing the intermittent pumping parameter update instruction; after the first startup duration, if the pumping unit operating parameters in the latest received record information are less than a second preset threshold, then the intermittent pumping parameter update is determined to be successful; if the pumping unit operating parameters in the latest received record information are greater than or equal to the second preset threshold, then the intermittent pumping parameter update is determined to be unsuccessful.

[0013] Optionally, the method further includes: if the pumping unit operating parameters in the latest received record information are greater than or equal to a second preset threshold, obtaining the second start-up duration and the second shutdown duration in the intermittent pumping parameter update instruction, as well as the well shutdown time; determining the expected start-up time based on the well shutdown time and the second shutdown duration; if the expected start-up time is greater than the current time, determining the well production status as a normal shutdown in intermittent pumping mode; if the expected start-up time is less than the current time, determining the well production status as an abnormal shutdown in intermittent pumping mode.

[0014] According to another aspect of the present invention, an oil well anomaly detection device is provided, comprising:

[0015] The recording information acquisition module is used to acquire the recording information generated by the oil well control cabinet during operation. The recording information includes the operation record information generated by the oil well control cabinet when responding to control commands and / or the operation record information in any working mode. The control commands include one or more of the control mode switching command, working mode switching command, and start / stop control command. The recording information includes one or more of the control mode, working mode, start / stop status, and pumping unit operating parameters.

[0016] The oil well production status determination module is used to determine the braking status of the oil well control cabinet based on recorded information, and to determine the oil well production status based on the braking status and the operating parameters of the pumping unit.

[0017] The oil well abnormal status transmission module is used to send the oil well production status to the cloud platform system when the oil well production status is abnormal, so that the cloud platform system can generate an abnormal alarm.

[0018] According to another aspect of the present invention, a cloud platform system is provided, comprising: an oil well operating condition management module and an oil well equipment management module;

[0019] The oil well operating condition management module receives the oil well production status transmitted by the oil well edge device. When the oil well production status is abnormal, it generates an abnormal alarm and pushes the abnormal alarm to the oil well abnormal processing terminal. The oil well production status is determined by the oil well edge device based on the recorded information generated by the oil well control cabinet during operation.

[0020] The oil well equipment management module receives status detection data transmitted by remote terminal equipment and / or sensor equipment of the oil well based on a preset time interval. It determines the operating status of the remote terminal equipment and / or sensor equipment based on the received status of the status detection data at any given time and the received status of the status detection data at the previous time.

[0021] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0022] At least one processor; and

[0023] A memory that is communicatively connected to at least one processor; wherein,

[0024] The memory stores a computer program that can be executed by at least one processor, such that the at least one processor is able to perform the oil well anomaly detection method according to any embodiment of the present invention.

[0025] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions for causing a processor to execute and implement the oil well anomaly detection method of any embodiment of the present invention.

[0026] The technical solution of this invention acquires recorded information generated by the oil well control cabinet during operation. This recorded information includes operation records generated by the control cabinet in response to control commands and / or operation records in any working mode. The control commands include one or more of control mode switching commands, working mode switching commands, and start / stop control commands. The recorded information includes one or more of control modes, working modes, start / stop states, and pumping unit operating parameters. Based on the recorded information, the braking state of the oil well control cabinet is determined, and based on the braking state and pumping unit operating parameters, the oil well production state is determined. When the oil well production state is abnormal, it is sent to the cloud platform system to generate an abnormal alarm. This achieves the determination of the oil well production state based on multiple recorded information generated by the oil well control cabinet, and in cases of abnormal production state, the transmission of the oil well production state to the cloud platform system and the generation of a corresponding abnormal alarm. This completes intelligent anomaly detection of the oil well through a cloud-edge collaborative complementary method, solving the problem of the inability to intelligently detect oil well anomalies, reducing personnel costs, and improving the real-time performance, accuracy, and efficiency of oil well anomaly detection.

[0027] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0028] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0029] Figure 1 This is a flowchart of an oil well anomaly detection method provided in Embodiment 1 of the present invention;

[0030] Figure 2 This is a flowchart of an oil well anomaly detection method provided in Embodiment 2 of the present invention;

[0031] Figure 3 This is a schematic diagram of the structure of an oil well anomaly detection device provided in Embodiment 3 of the present invention;

[0032] Figure 4 This is a schematic diagram of the structure of a cloud platform system provided in Embodiment 4 of the present invention;

[0033] Figure 5 This is a schematic diagram of the structure of an electronic device for implementing the oil well anomaly detection method of this invention. Detailed Implementation

[0034] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0035] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0036] Example 1

[0037] Figure 1This is a flowchart of an oil well anomaly detection method provided in Embodiment 1 of the present invention. This embodiment is applicable to the detection of anomalies in oil wells. The method can be executed by an oil well anomaly detection device, which can be implemented in hardware and / or software. This oil well anomaly detection device can be configured in electronic devices such as terminal devices, edge devices, and computers. Figure 1 As shown, the method includes:

[0038] S110. Obtain the recording information generated by the oil well control cabinet during operation. The recording information includes the operation record information generated by the oil well control cabinet when responding to control commands and / or the operation record information in any working mode.

[0039] The control commands include one or more of the control mode switching command, the working mode switching command, and the start / stop control command; the recorded information includes one or more of the control mode, the working mode, the start / stop status, and the pumping unit operating parameters.

[0040] Specifically, an oil well control cabinet is a device used to control oil well production. Through intelligent integrated control technology, it controls and regulates the oil well production process to ensure safe production. To promptly determine the oil well's production status and ensure traceability of operation records, the control cabinet records operational and running information generated during the well's operation. This information can be stored according to a preset data format to generate corresponding records for the control cabinet. This allows for timely retrieval of these records during anomaly detection, facilitating rapid determination of the oil well's production status.

[0041] In this embodiment, to quickly determine the production status of the oil well, an edge computing device can be installed on the oil well control cabinet side to acquire the corresponding record information of the oil well control cabinet and determine the oil well production status based on the record information. The record information includes, but is not limited to, operation record information generated by the oil well control cabinet in response to control commands and operation record information in any working mode. It should be noted that the control command specifically refers to the command to operate the oil well control cabinet. This can be triggered by the display screen of the oil well control cabinet and generate a corresponding touch screen operation command, or it can be a control command sent from a remote control terminal. The control command includes, but is not limited to, control mode switching commands, working mode switching commands, and start / stop control commands. The control mode switching command specifically switches the control mode of the oil well control cabinet, and the control mode includes, but is not limited to, local mode and remote mode. The working mode switching command specifically switches the working mode of the oil well connected to the oil well control cabinet, and the working mode includes continuous pumping mode and intermittent pumping mode. The start / stop control command specifically refers to the command used to control the start or stop of the oil well's production equipment. For example, the production equipment can be an oil well pumping unit. The operating record information in the working mode specifically refers to the operating data of the oil well pumping unit, including the operating parameters of the pumping unit. For example, the operating parameters of the pumping unit can be electrical power data.

[0042] Specifically, edge computing devices can be installed on the side of the oil well control cabinet to acquire the recorded information of the corresponding oil well control cabinet and to determine the subsequent oil well production status. The acquisition of the oil well control cabinet's recorded information can be done in real time or periodically, depending on the specific anomaly detection task of the oil well.

[0043] S120. Determine the braking status of the oil well control cabinet based on the recorded information, and determine the oil well production status based on the braking status and the operating parameters of the pumping unit.

[0044] The braking state can be understood as representing the operating status of the oil well control cabinet. It is determined by one or more of the control mode, operating mode, and start / stop status. For example, the braking state can be represented by local mode, continuous pumping mode, and start-up status; it can be represented by local mode and continuous pumping mode; or it can be represented by remote mode, continuous pumping mode, and start-up status. These are not listed here. The braking states can be preset according to the control mode, operating mode, and start / stop status, and the preset braking states and their determination rules can be stored. When the braking state of the oil well control cabinet is determined, the determination rules can be directly invoked to accurately determine the braking state based on the acquired recorded information. It should be noted that the braking state can be adjusted based on the recorded information of the oil well control cabinet. That is, if the control mode, operating mode, and start / stop status change, the specified state can be adjusted according to the changes. This is not limited here. The operating parameters of the pumping unit specifically refer to the operating parameters of the oil well pumping unit, which can be electrical power data. It should be noted that within a single data acquisition cycle, the electrical power data of the oil well pumping unit includes multiple data points. In this embodiment, the maximum electrical power data within a single data acquisition cycle is determined as the operating parameter of the pumping unit.

[0045] Specifically, upon obtaining the recorded information from the oil well control cabinet, a pre-built braking state determination rule is acquired. The recorded information is then matched against this rule, and the braking state in the successfully matched rule is determined as the braking state of the oil well control cabinet. In a specific embodiment, a pre-deployed braking state determination algorithm can be directly invoked to process the recorded information to determine the braking state of the oil well control cabinet. Once the braking state is determined, the pumping unit operating parameters are extracted from the recorded information. The oil well production state determination rule is then invoked, and the braking state and pumping unit operating parameters are matched against the rule to obtain the oil well production state. Alternatively, a pre-trained oil well production state determination model can be acquired. This model is used to process the braking state and pumping unit operating parameters to obtain the oil well production state. Specifically, the braking state and pumping unit operating parameters are used as input parameters to the oil well production state determination model, and the output is the oil well production state.

[0046] In a specific embodiment, the braking state determination rule can be set according to a predefined list of oil well production states. The recorded information is matched with the braking state determination rule, and the oil well production state is determined based on the matching result. The list of oil well production states is shown in Table 1.

[0047] Table 1. List of Oil Well Production Status Information

[0048]

[0049] In Table 1, the Px value is the data used to determine whether the operating parameters of the pumping unit meet the requirements for normal startup or operation. These operating parameters include electrical power. For example, if the maximum value of the electrical power in a single cycle is greater than Px, then the well is determined to have started normally. The rules for identifying the production status in Table 1 can be interpreted as follows:

[0050] Local power-on is normal. If the latest collected power is greater than Px after triggering the start button in local continuous pumping mode, the local power-on is considered normal, and the recorded signal protocol is 1.

[0051] Local startup malfunction, well not started. If the latest measured power output is less than Px after triggering the start button in local continuous pumping mode, the local startup is considered malfunctioning, and the recorded signal protocol is 2.

[0052] Local shutdown is normal. If the latest collected power is less than Px after triggering the stop button in local continuous pumping mode, the local shutdown is considered normal, and the recorded signal protocol is 3.

[0053] Local shutdown malfunction, well not shut down. If the latest measured power is greater than Px after triggering the stop button in local continuous pumping mode, the local shutdown is considered malfunctioning, and the recorded signal protocol is 4.

[0054] Remote power-on is normal. After triggering the start function in remote continuous pumping mode, if the latest collected power is greater than Px, then remote power-on is considered normal, and the recorded signal protocol is 5.

[0055] Remote start-up is abnormal; the oil well has not started. If the latest measured electrical power is less than Px after triggering the start-up function in remote continuous pumping mode, the remote start-up is considered abnormal, and the recorded signal protocol is 6.

[0056] Remote shutdown is normal. If the latest collected power is less than Px after triggering the stop function in remote continuous pumping mode, the remote shutdown is considered normal, and the recorded signal protocol is 7.

[0057] Remote shutdown malfunction, well not shut down. If the latest measured power is greater than Px after triggering the stop function in remote continuous pumping mode, the remote shutdown is considered malfunctioning, and the recorded signal protocol is 8.

[0058] Abnormal shutdown during continuous pumping. If the latest collected electrical power is less than Px during continuous pumping operation, it is considered an abnormal shutdown, and the recorded signal protocol is 9.

[0059] The continuous pumping is operating normally. If the latest collected electrical power is greater than Px during continuous pumping, the continuous pumping is considered to be operating normally, and the recorded signal protocol is 10.

[0060] Intermittent pumping startup malfunction, intermittent pumping shutdown due to malfunction. If the latest collected electrical power is less than Px after the well triggers the start-up function during intermittent pumping, the intermittent pumping record is considered abnormal, and the recording signal protocol is 11.

[0061] Intermittent pumping startup is normal. If the latest collected electrical power is greater than Px after the well triggers the start-up function during intermittent pumping, the intermittent pumping startup is considered normal, and the recorded signal protocol is 12.

[0062] If the intermittent pumping shutdown fails, intermittent pumping will become continuous pumping. If the latest acquired electrical power is greater than Px after the well triggers the stop function during intermittent pumping, the intermittent pumping shutdown is considered to be abnormal, and the recorded signal protocol is 13.

[0063] Intermittent pumping shutdown is normal. If the latest collected electrical power is less than Px after the well triggers the stop function during intermittent pumping, the intermittent pumping shutdown is considered abnormal, and the recorded signal protocol is 14.

[0064] The intermittent pumping system modification was successful. The software side issued the intermittent pumping system modification, set the timer countdown for the start-up duration, and the timer completed. If the maximum power of the latest pumping unit operating parameter is less than 0.5KW, the intermittent pumping system modification is considered successful; otherwise, the modification failed. The recorded signal protocol is 15.

[0065] Intermittent pumping system modification failed. Query the current operating system (including start-up and shutdown durations) and shutdown time for the corresponding oil well. If the sum of the shutdown time and shutdown duration is greater than the current time, and there is no start-up time record, or the system is determined to be in a shutdown state based on electrical parameters and dynamometer diagrams, then the intermittent pumping shutdown is confirmed as normal. If the sum of the shutdown time and shutdown duration is less than the current time, and there is no start-up time record, or the system is determined to be in a shutdown state based on electrical parameters and dynamometer diagrams, then the intermittent pumping shutdown is confirmed as abnormal. The accuracy of the abnormal shutdown is then verified by checking that the maximum value of the electrical parameters is less than 0.5 kW. The recorded signal protocol is 16.

[0066] In this embodiment, the braking state of the oil well control cabinet is determined based on the recorded information, and then the oil well production state is determined based on the braking state and the pumping unit operating parameters. This allows for the determination of the corresponding braking state by considering the various modes and operating states of the oil well control cabinet, and the determination of the oil well production state based on the braking state and the pumping unit operating parameters. This achieves intelligent detection of the oil well production state and improves the accuracy and speed of the intelligent detection results.

[0067] S130. When the oil well production status is abnormal, the oil well production status is sent to the cloud platform system so that the cloud platform system generates an abnormal alarm.

[0068] Understandably, to meet users' high demand for oil, a large number of oil wells need to be operated. If only the cloud platform is used to process the recorded information, it will be impossible to determine the production status of each oil well in a timely manner. Therefore, edge computing devices can be used to determine the production status of the corresponding oil wells. If the production status of an oil well is abnormal, the production status of the oil well can be sent to the cloud platform system, which will then generate an abnormal alarm to remind relevant personnel to handle the alarm in a timely manner, so as to ensure the normal and safe operation of the oil wells.

[0069] In this embodiment, when the oil well production status is abnormal, the oil well production status can be transmitted to the cloud simultaneously with the cloud platform system. The cloud then retrieves the recorded information from the oil well control cabinet, reprocesses the information to obtain the corresponding oil well production status, and transmits the re-obtained status to the cloud platform system. Alternatively, it can be simultaneously fed back to the corresponding oil well control cabinet. The cloud platform system verifies the oil well production status received from the edge computing device based on the re-obtained status. If the two obtained statuses are the same, the verification is successful. If they are different, the cloud transmits the re-obtained status to the cloud platform system. The cloud platform system then compares the oil well production status received from the edge device with that received from the cloud to determine whether the oil well production status is abnormal. This can be done by relevant personnel. In response to the personnel's selection, the cloud platform system processes the data accordingly. For example, if an abnormal status is selected, an abnormal alarm is generated; if a non-abnormal status is selected, no alarm is generated.

[0070] Optionally, the control mode includes local mode and remote mode; the operating mode includes continuous pumping mode and intermittent pumping mode; the pumping unit operating parameters include the maximum electrical power within a single cycle; the method further includes: in intermittent pumping mode, receiving an intermittent pumping parameter update command, and a first start-up duration for completing the intermittent pumping parameter update command; after the first start-up duration, if the pumping unit operating parameters in the latest received record information are less than a second preset threshold, then the intermittent pumping parameter update is determined to be successful; if the pumping unit operating parameters in the latest received record information are greater than or equal to the second preset threshold, then the intermittent pumping parameter update is determined to be unsuccessful.

[0071] The first startup duration specifically refers to the time period required to complete the intermittent pumping update command, that is, the time period between the moment the intermittent pumping parameter update command is received and the moment the intermittent pumping update command is completed. It is used to detect whether the working mode has been successfully updated, avoid the problem of operating in the event of update failure, and improve the safety of the operation of the pumping unit and the well control cabinet.

[0072] Specifically, in intermittent pumping mode, the pumping unit can receive control commands sent by a remote terminal. Upon receiving an intermittent pumping parameter update command, the well control cabinet responds by updating the intermittent pumping parameters. A timed task is set according to the first start-up duration. The timed task is started when the intermittent pumping parameter update begins. After the timed task ends, i.e., after the first start-up duration, the pumping unit operating parameters in the latest recorded information are obtained. The pumping unit operating parameters are compared with a second preset threshold. For example, the second preset threshold can be set to 0.5KW. If the pumping unit operating parameters are less than the second preset threshold, the intermittent pumping parameter update is determined to be successful; if the pumping unit operating parameters are greater than or equal to the second preset threshold, the intermittent pumping parameter update is determined to be unsuccessful.

[0073] Based on the above embodiments, the method further includes: if the pumping unit operating parameters in the latest received record information are greater than or equal to a second preset threshold, obtaining the second start-up duration and the second shutdown duration in the intermittent pumping parameter update instruction, as well as the well shutdown time; determining the expected start-up time based on the well shutdown time and the second shutdown duration; if the expected start-up time is greater than the current time, determining the well production status as a normal shutdown in intermittent pumping mode; if the expected start-up time is less than the current time, determining the well production status as an abnormal shutdown in intermittent pumping mode.

[0074] In this embodiment, if the pumping unit operating parameters in the latest received record information are greater than or equal to a second preset threshold, the expected start-up time is determined based on the second start-up duration and second shutdown duration in the intermittent pumping parameter update instruction, as well as the well shutdown time. The well production status is then determined based on the expected start-up time and the current time. Specifically, the second start-up duration represents the start-up time of the pumping unit within one working cycle, and the second shutdown duration represents the shutdown time of the pumping unit within one working cycle.

[0075] Specifically, if the pumping unit operating parameters in the latest received record information are greater than or equal to the second preset threshold, the second start-up duration and the second shutdown duration in the intermittent pumping parameter update instruction are obtained. The well shutdown time is obtained from the record information, and the well shutdown time and the second shutdown duration are summed to obtain the expected start-up time. The expected start-up time is compared with the current time. If the expected start-up time is greater than the current time, the well production status is determined to be a normal shutdown in intermittent pumping mode, that is, the pumping unit has not yet started, indicating that the current well production status is a normal shutdown in intermittent pumping mode. If the expected start-up time is less than the current time, the well production status is determined to be an abnormal shutdown in intermittent pumping mode, that is, the pumping unit has not started even after the expected start-up time has passed, indicating that the current well production status is an abnormal shutdown in intermittent pumping mode.

[0076] The technical solution of this embodiment acquires the recorded information generated by the oil well control cabinet during operation. This recorded information includes operation logs generated by the oil well control cabinet when responding to control commands and / or operation logs in any working mode. The control commands include one or more of the control mode switching command, working mode switching command, and start / stop control command. The recorded information includes one or more of the control mode, working mode, start / stop status, and pumping unit operating parameters. Based on the recorded information, the braking state of the oil well control cabinet is determined, and based on the braking state and pumping unit operating parameters, the oil well production state is determined. When the oil well production state is abnormal, the oil well production state is sent to the cloud platform system, causing the cloud platform system to generate an abnormal alarm. This achieves the determination of the oil well production state based on multiple recorded information generated by the oil well control cabinet, and in the case of an abnormal oil well production state, the transmission of the oil well production state to the cloud platform system and the generation of a corresponding abnormal alarm. This completes intelligent anomaly detection of the oil well through a cloud-edge collaborative complementary method, solving the problem of the inability to intelligently detect oil well anomalies, reducing personnel costs, and improving the real-time performance, accuracy, and efficiency of oil well anomaly detection.

[0077] Example 2

[0078] Figure 2 This is a flowchart of an oil well anomaly detection method provided in Embodiment 2 of the present invention. The method in this embodiment is a further optimization of the method in the above embodiments. Optionally, when the braking state is local mode, continuous pumping mode, or start-up state, if the pumping unit operating parameters are greater than or equal to a first preset threshold, the oil well production state is determined to be local start-up normal; if the pumping unit operating parameters are less than the first preset threshold, the oil well production state is determined to be local start-up abnormal, and the oil well is not started. During continuous pumping mode operation in local mode, if the pumping unit operating parameters are greater than or equal to the first preset threshold, the oil well production state is determined to be continuous pumping operation normal; if the pumping unit operating parameters are less than the first preset threshold, the oil well production state is determined to be continuous pumping abnormal shutdown. When the braking state is local mode or stop state, if the pumping unit operating parameters are greater than or equal to the first preset threshold, the oil well production state is determined to be local shutdown abnormal, and the oil well is not shut down; if the pumping unit operating parameters are less than the first preset threshold, the oil well production state is local shutdown normal. Figure 2 As shown, the method includes:

[0079] S210. Obtain the recording information generated by the oil well control cabinet during operation. The recording information includes the operation record information generated by the oil well control cabinet when responding to control commands and / or the operation record information in any working mode.

[0080] S220. Determine the braking status of the oil well control cabinet based on the recorded information.

[0081] S230. When the braking state is in local mode, continuous pumping mode, or start-up state, if the operating parameters of the pumping unit are greater than or equal to the first preset threshold, the oil well production state is determined to be local start-up normal; if the operating parameters of the pumping unit are less than the first preset threshold, the oil well production state is determined to be local start-up abnormal, and the oil well is not started.

[0082] Specifically, the first preset threshold can be understood as an electrical power threshold set to determine whether the operating parameters of the pumping unit meet the electrical power corresponding to the braking state of the well control cabinet, and is used as the basis for determining the start-up state of the well control cabinet.

[0083] Specifically, after determining the braking status of the oil well control cabinet as local mode, continuous pumping mode, or start-up status based on recorded information, the pumping unit operating parameters in the recorded information are obtained. The oil well production status is determined based on the pumping unit operating parameters. Specifically, the pumping unit operating parameters are compared with a first preset threshold. If the pumping unit operating parameters are greater than or equal to the first preset threshold, the oil well production status is determined to be local start-up normal, meaning that the pumping unit operating parameters meet the electrical power corresponding to the current braking status, and the pumping unit starts normally. The oil well production status can be set to local start-up normal. If the pumping unit operating parameters are less than the first preset threshold, the oil well production status is determined to be local start-up abnormal, and the oil well is not started, meaning that the pumping unit operating parameters do not meet the electrical power corresponding to the current braking status, and the pumping unit starts abnormally. The oil well production status can be set to local start-up abnormal, and the oil well is not started.

[0084] S240. During continuous pumping operation in local mode with braking status, if the pumping unit operating parameters are greater than or equal to the first preset threshold, the oil well production status is determined to be normal continuous pumping operation; if the pumping unit operating parameters are less than the first preset threshold, the oil well production status is determined to be abnormal continuous pumping shutdown.

[0085] Specifically, during continuous pumping operation in local braking mode, the pumping unit operating parameters are acquired from the recorded information. Based on these parameters, the well production status is determined. This is done by comparing the pumping unit operating parameters with a first preset threshold. If the parameters are greater than or equal to the threshold, the well production status is determined to be normal continuous pumping operation, meaning the pumping unit operating parameters meet the power requirements of the current braking state. Conversely, if the parameters are less than the threshold, the well production status is determined to be abnormal continuous pumping shutdown, meaning the pumping unit operating parameters do not meet the power requirements of the current braking state.

[0086] S250. When the braking state is in local mode and stop state, if the operating parameters of the pumping unit are greater than or equal to the first preset threshold, the oil well production state is determined to be local shutdown abnormal and the oil well has not stopped; if the operating parameters of the pumping unit are less than the first preset threshold, the oil well production state is determined to be local shutdown normal.

[0087] Specifically, when the braking state is in local mode and stopped state, the pumping unit operating parameters in the recorded information are obtained, and the oil well production status is determined based on the pumping unit operating parameters. Specifically, the pumping unit operating parameters are compared with a first preset threshold. If the pumping unit operating parameters are greater than or equal to the first preset threshold, the oil well production status is determined to be local shutdown abnormal, and the oil well has not stopped. That is, it means that in the stopped state, the pumping unit operating parameters still meet the first preset threshold and have failed to shut down normally. Therefore, the oil well production status is set to local shutdown abnormal, and the oil well has not stopped. If the pumping unit operating parameters are less than the first preset threshold, the oil well production status is determined to be local shutdown normal.

[0088] Based on the above embodiments, the oil well production status is determined based on the braking status and pumping unit operating parameters, including one or more of the following:

[0089] (1) When the braking state is in remote mode, continuous pumping mode and start-up state, if the operating parameters of the pumping unit are greater than or equal to the first preset threshold, the oil well production state is determined to be remote start-up normal; if the operating parameters of the pumping unit are less than the first preset threshold, the oil well production state is determined to be remote start-up abnormal and the oil well is not started.

[0090] (2) During the continuous pumping operation in the remote mode of braking state, if the operating parameters of the pumping unit are greater than or equal to the first preset threshold, the oil well production status is determined to be normal continuous pumping operation; if the operating parameters of the pumping unit are less than the first preset threshold, the oil well production status is determined to be abnormal continuous pumping shutdown.

[0091] (3) During the operation of the intermittent pumping mode in the remote braking state, if the pumping unit operating parameters are greater than or equal to the first preset threshold when the pumping unit is in the start-up state in the intermittent pumping mode, the oil well production status is determined to be normal start-up in the intermittent pumping mode; if the pumping unit operating parameters are less than the first preset threshold, the oil well production status is determined to be abnormal start-up in the intermittent pumping mode, and the intermittent pumping mode is abnormally shut down.

[0092] (4) When the pumping unit is shut down in the intermittent pumping mode, if the pumping unit operating parameters are greater than or equal to the first preset threshold, the oil well production status is determined to be an abnormal shutdown in the intermittent pumping mode, and the intermittent pumping mode is changed to continuous pumping mode; if the pumping unit operating parameters are less than the first preset threshold, the oil well production status is determined to be a normal shutdown in the intermittent pumping mode.

[0093] (5) When the braking state is in remote mode and stop state, if the operating parameters of the pumping unit are greater than or equal to the first preset threshold, the oil well production state is determined to be remote shutdown abnormal and the oil well is not stopped; if the operating parameters of the pumping unit are less than the first preset threshold, the oil well production state is determined to be remote shutdown normal.

[0094] Specifically, in remote mode, the braking state includes the braking state consisting of remote mode, continuous pumping mode, and start-up state. It also includes the continuous pumping mode operation process of remote mode, the intermittent pumping mode operation process of remote mode, the shutdown state in intermittent pumping mode, and the remote mode and stop state. For each braking state in remote mode, the pumping unit operating parameters corresponding to the current braking state are compared with a first preset threshold to obtain the well generation state corresponding to the current braking state.

[0095] When the braking state is in remote mode, continuous pumping mode, or start-up state, the pumping unit operating parameters are compared with a first preset threshold. If the pumping unit operating parameters are greater than or equal to the first preset threshold, it means that the pumping unit operating parameters meet the electrical power corresponding to the current braking state, the oil well production state is continuous pumping operation is normal, and it can be determined that the oil well production state is remote start-up is normal. If the pumping unit operating parameters are less than the first preset threshold, it means that the pumping unit operating parameters do not meet the electrical power corresponding to the current braking state, and it can be determined that the oil well production state is remote start-up abnormal, and the oil well is not started.

[0096] During continuous pumping operation in remote braking mode, the pumping unit operating parameters are compared with a first preset threshold. If the pumping unit operating parameters are greater than or equal to the first preset threshold, it indicates that the pumping unit operating parameters meet the electrical power requirements of the current braking state, and the oil well production status is determined to be normal continuous pumping operation. If the pumping unit operating parameters are less than the first preset threshold, it indicates that the pumping unit operating parameters do not meet the electrical power requirements of the current braking state, and the oil well production status is determined to be abnormal continuous pumping shutdown.

[0097] During the intermittent pumping operation in remote braking mode, when the pumping unit is in the start-up state in intermittent pumping mode, the pumping unit operating parameters are compared with a first preset threshold. If the pumping unit operating parameters are greater than or equal to the first preset threshold, it means that the pumping unit operating parameters meet the electrical power corresponding to the current braking state, and it can be determined that the oil well production state is normal start-up in intermittent pumping mode. If the pumping unit operating parameters are less than the first preset threshold, it means that the pumping unit operating parameters do not meet the electrical power corresponding to the current braking state, and it is determined that the oil well production state is abnormal start-up in intermittent pumping mode, and the intermittent pumping mode is abnormally shut down.

[0098] In the shutdown state of intermittent pumping mode, the pumping unit operating parameters are compared with a first preset threshold. If the pumping unit operating parameters are greater than or equal to the first preset threshold, it indicates that the pumping unit operating parameters still meet the first preset threshold in the shutdown state, and the shutdown has failed normally. It can be determined that the oil well production status is an abnormal shutdown in intermittent pumping mode, and the shutdown has failed to be completed within the shutdown time, causing the intermittent pumping mode to change to continuous pumping mode. If the pumping unit operating parameters are less than the first preset threshold, it indicates that the pumping unit operating parameters are shut down normally in the shutdown state, and the oil well production status is a normal shutdown in intermittent pumping mode.

[0099] When the braking state is in remote mode and stop state, the pumping unit operating parameters are compared with the first preset threshold. If the pumping unit operating parameters are greater than or equal to the first preset threshold, it indicates that the pumping unit operating parameters still meet the first preset threshold in the stop state and are not in a shutdown state. It can be determined that the oil well production status is remote shutdown abnormal and the oil well has not stopped. If the pumping unit operating parameters are less than the first preset threshold, it indicates that the pumping unit is shut down normally in the stop state. It can be determined that the oil well production status is remote shutdown normal.

[0100] S260. When the oil well production status is abnormal, the oil well production status is sent to the cloud platform system so that the cloud platform system generates an abnormal alarm.

[0101] The technical solution of this embodiment acquires the recorded information generated by the oil well control cabinet during operation. This recorded information includes operation logs generated by the oil well control cabinet when responding to control commands and / or operation logs in any working mode. Based on the recorded information, the braking state of the oil well control cabinet is determined. One or more methods are used to determine the oil well production state based on the braking state and the pumping unit's operating parameters. When the oil well production state is abnormal, it is sent to the cloud platform system to generate an anomaly alarm. This achieves the determination of the oil well control cabinet's braking state based on multiple recorded information generated by the control cabinet, and then determines the oil well production state based on the braking state and the pumping unit's operating parameters. When the oil well production state is abnormal, it sends the oil well production state to the cloud platform system and generates a corresponding anomaly alarm. This completes intelligent anomaly detection of oil wells through a cloud-edge collaborative complementary method, solving the problem of the inability to intelligently detect oil well anomalies, reducing personnel costs, and improving the real-time performance, accuracy, and efficiency of oil well anomaly detection.

[0102] Example 3

[0103] Figure 3 This is a schematic diagram of the structure of an oil well anomaly detection device provided in Embodiment 3 of the present invention.

[0104] like Figure 3 As shown, the device includes:

[0105] The recording information acquisition module 310 is used to acquire the recording information generated by the oil well control cabinet during operation. The recording information includes the operation recording information generated by the oil well control cabinet when responding to control commands and / or the operation recording information in any working mode. The control commands include one or more of the control mode switching command, working mode switching command, and start / stop control command. The recording information includes one or more of the control mode, working mode, start / stop status, and pumping unit operating parameters.

[0106] The oil well production status determination module 320 is used to determine the braking status of the oil well control cabinet based on recorded information, and to determine the oil well production status based on the braking status and the operating parameters of the pumping unit.

[0107] The oil well abnormal status transmission module 330 is used to send the oil well production status to the cloud platform system when the oil well production status is abnormal, so that the cloud platform system can generate an abnormal alarm.

[0108] The technical solution of this embodiment acquires the recording information generated by the oil well control cabinet during operation through the recording information acquisition module. The recording information includes the operation record information generated by the oil well control cabinet when responding to control commands and / or the operation record information in any working mode. The control commands include one or more of the control mode switching command, working mode switching command, and start / stop control command. The recording information includes one or more of the control mode, working mode, start / stop status, and pumping unit operating parameters. The oil well production status determination module determines the braking status of the oil well control cabinet based on the recording information and determines the oil well production status based on the braking status and pumping unit operating parameters. When the oil well production status is abnormal, the oil well abnormal status transmission module sends the oil well production status to the cloud platform system so that the cloud platform system generates an abnormal alarm. This system enables the determination of oil well production status based on multiple records generated by the oil well control cabinet. When the oil well production status is abnormal, it sends the oil well production status to the cloud platform system and generates a corresponding abnormal alarm. This achieves intelligent anomaly detection of oil wells through cloud-edge collaborative and complementary methods, solving the problem of not being able to intelligently detect anomalies in oil wells, reducing personnel costs, and improving the real-time performance, accuracy, and efficiency of oil well anomaly detection.

[0109] Example 4

[0110] Figure 4 This is a schematic diagram of the structure of a cloud platform system provided in Embodiment 4 of the present invention. Figure 4As shown, the system includes: an oil well operating condition management module 410 and an oil well equipment management module 420; wherein, the oil well operating condition management module 410 receives the oil well production status transmitted by the oil well edge device, and generates an abnormal alarm when the oil well production status is abnormal, and pushes the abnormal alarm to the oil well abnormal processing terminal; wherein, the oil well production status is determined by the oil well edge device based on the recorded information generated by the oil well control cabinet during operation; the oil well equipment management module 420 receives the status detection data transmitted by the remote terminal device and / or sensor device of the oil well based on a preset time interval, and determines the operating status of the remote terminal device and / or sensor device for the received status detection data at any time and the received status detection data at the previous time.

[0111] In this embodiment, in order to better manage the various edge devices and oil well equipment, a cloud platform system is set up, including an oil well operating condition management module 410 and an oil well equipment management module 420.

[0112] The oil well operating condition management module 410 communicates with each oil well edge device via a communication module. For example, the communication module can be an RTU (Remote Terminal Unit) terminal communication module, which can receive the oil well production status transmitted by each oil well edge device. When the oil well production status is abnormal, it can generate an abnormal alarm according to the abnormal alarm template based on the abnormal status and push the abnormal alarm to the oil well abnormal processing terminal. The oil well production status is determined by the oil well edge device based on the recorded information generated by the oil well control cabinet during operation. The abnormal processing terminal can be each edge device or a remote control terminal.

[0113] The oil well equipment management module 420 can receive status detection data transmitted by remote terminal devices and / or sensor devices of the oil well at preset time intervals. The remote terminal devices include, but are not limited to, oil well control cabinets and communication terminal devices. The status detection data includes, but is not limited to, device online status, device offline status, and device abnormal status. The total number of devices refers to the total number of registered RTUs; the number of online devices refers to the number of RTU terminals with normal communication capabilities, mainly obtained by the cloud counting the RTU terminal heartbeat data sent from the edge terminal; the number of abnormal devices mainly counts RTU devices with sensor malfunctions or abnormal remote control functions. Based on the received status detection data, the module can statistically analyze the remote terminal devices and / or sensor devices of the oil well, determining one or more of the following: total number of devices, number of online devices, number of offline devices, device online rate, number of intermittent pumping wells, number of consecutive pumping wells, and number of abnormal devices. The operating status of remote terminal devices and / or sensor devices is determined by the received status of status detection data at any given time and the received status of status detection data at the previous time. Specifically, for any remote device and / or sensor device at any given time, the status detection data of each device and the status detection data of the previous time are acquired. In this embodiment, the status detection data represents the device's offline and online status. For example, the character "1" can be set to represent the device being online, and the character "0" can be set to represent the device being offline. If the status detection data at two adjacent times are both "1", it means that the device's operating status is "always online"; if the status detection data at two adjacent times are both "0", it means that the device's operating status is "always offline"; if the status detection data at two adjacent times changes from "1" to "0", it means that the device's operating status is "disconnected"; if the status detection data at two adjacent times changes from "0" to "1", it means that the device's operating status is "reconnected". Through the above method, the normal, fault, always faulty, and restored normal status information of the device can be stored, enabling more accurate anomaly detection for each device.

[0114] In a specific embodiment, the operating status of the RTU device is determined by matching the status identifiers of the RTU device at time t and t+Δt with the RTU operating status judgment table to determine whether the RTU operating status at time t+Δt is always online, offline, always offline, or re-online. The RTU operating status judgment table is shown in Table 2.

[0115] Table 2 RTU Operating Status Judgment Table

[0116] time t At time t+Δt RTU operating status 1 1 Always online 1 0 Disconnection 0 0 Always offline 0 1 Relaunch

[0117] Accordingly, the determination of the operating status of sensor devices can be achieved by matching the status identifiers of the sensor devices at time t and t+Δt with the sensor device operating status judgment table to determine whether the sensor device at time t+Δt is in a normal, fault, persistent fault, or normal recovery state. The sensor device operating status judgment table is shown in Table 3:

[0118] Table 3 Sensor Equipment Operation Status Judgment Table

[0119] time t At time t+Δt Sensor device operating status 1 1 normal 1 0 Fault 0 0 Persistent failure 0 1 Return to normal

[0120] By determining the operating status of each RTU and sensor device, the times of disconnection and reconnection are recorded, tracked, and pushed to enable real-time monitoring and alarm of faults in each RTU and sensor device.

[0121] It should be noted that the oil well equipment management module 420, upon determining that the operating status of each piece of equipment in the oil well is abnormal, generates corresponding abnormal control commands based on the operating status and sends these commands to the corresponding equipment to control it to perform remote start-up or shutdown operations. If the operating status of the corresponding equipment remains abnormal after performing a preset number of start-up or shutdown operations, an abnormal alarm is generated and transmitted to the abnormal processing terminal to alert on-site maintenance personnel to perform maintenance.

[0122] In this embodiment, the cloud platform system receives and analyzes data transmitted from edge devices and remote terminal devices and / or sensor devices of oil wells, thereby generating abnormal alarms and determining the operating status of each terminal device and / or sensor. This achieves intelligent detection and equipment management through cloud-edge complementarity, improves real-time detection and management of oil well-related equipment and real-time alarms for abnormal production states, and enhances the safety and stability of oil well production.

[0123] Example 5

[0124] Figure 5 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0125] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0126] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0127] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, central processing unit (CPU), graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as oil well anomaly detection methods.

[0128] In some embodiments, the oil well anomaly detection method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the oil well anomaly detection method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the oil well anomaly detection method by any other suitable means (e.g., by means of firmware).

[0129] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0130] Computer programs for implementing the oil well anomaly detection method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The computer programs can be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0131] Example 6

[0132] Embodiment 6 of the present invention also provides a computer-readable storage medium storing computer instructions for causing a processor to execute an oil well anomaly detection method, the method comprising:

[0133] Acquire the recorded information generated by the oil well control cabinet during operation. The recorded information includes the operation record information generated by the oil well control cabinet when responding to control commands and / or the operation record information in any working mode. The control commands include one or more of the control mode switching command, working mode switching command, and start / stop control command. The recorded information includes one or more of the control mode, working mode, start / stop status, and pumping unit operating parameters.

[0134] The braking status of the oil well control cabinet is determined based on the recorded information, and the oil well production status is determined based on the braking status and the operating parameters of the pumping unit.

[0135] When the oil well production status is abnormal, the oil well production status is sent to the cloud platform system so that the cloud platform system can generate an abnormal alarm.

[0136] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0137] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0138] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0139] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0140] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0141] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for detecting anomalies in oil wells, characterized in that, include: Acquire the recording information generated by the oil well control cabinet during operation. The recording information includes the operation record information generated by the oil well control cabinet when responding to control commands and / or the operation record information in any working mode. The control commands include one or more of the control mode switching command, working mode switching command, and start / stop control command. The recording information includes one or more of the control mode, working mode, start / stop status, and pumping unit operating parameters. The braking status of the oil well control cabinet is determined based on the recorded information, and the oil well production status is determined based on the braking status and the pumping unit operating parameters. When the oil well production status is abnormal, the oil well production status is sent to the cloud platform system so that the cloud platform system generates an abnormal alarm.

2. The method according to claim 1, characterized in that, The control modes include local mode and remote mode; the working modes include continuous extraction mode and intermittent extraction mode. The operating parameters of the oil pumping unit include the maximum electrical power within a single cycle.

3. The method according to claim 2, characterized in that, Determining the well production status based on the braking state and the pumping unit operating parameters includes one or more of the following: When the braking state is local mode, continuous pumping mode, or start-up state, if the operating parameters of the pumping unit are greater than or equal to the first preset threshold, then the oil well production state is determined to be local start-up normal. If the operating parameters of the pumping unit are less than the first preset threshold, the production status of the oil well is determined to be local start-up abnormality, and the oil well is not started. During the continuous pumping operation in the local mode when the braking state is the same, if the operating parameters of the pumping unit are greater than or equal to the first preset threshold, then the production state of the oil well is determined to be normal continuous pumping operation. If the operating parameters of the pumping unit are less than the first preset threshold, the production status of the oil well is determined to be an abnormal shutdown due to continuous pumping. When the braking state is in local mode and stop state, if the operating parameters of the pumping unit are greater than or equal to the first preset threshold, the production state of the oil well is determined to be local shutdown abnormal and the oil well has not stopped. If the operating parameters of the pumping unit are less than the first preset threshold, then the production status of the oil well is determined to be normal local shutdown.

4. The method according to claim 2, characterized in that, Determining the well production status based on the braking state and the pumping unit operating parameters includes one or more of the following: When the braking state is in remote mode, continuous pumping mode, or start-up state, if the operating parameters of the pumping unit are greater than or equal to the first preset threshold, then the oil well production state is determined to be remote start-up normal. If the operating parameters of the pumping unit are less than the first preset threshold, then the production status of the oil well is determined to be remote start-up abnormal, and the oil well is not started. During the continuous pumping operation in the remote mode when the braking state is the same, if the operating parameters of the pumping unit are greater than or equal to the first preset threshold, then the oil well production state is determined to be normal continuous pumping operation. If the operating parameters of the pumping unit are less than the first preset threshold, the production status of the oil well is determined to be an abnormal shutdown due to continuous pumping. During the intermittent pumping mode operation in the braking state of the remote mode, if the operating parameters of the pumping unit are greater than or equal to the first preset threshold when the pumping unit is in the start-up state in the intermittent pumping mode, then the oil well production state is determined to be normal start-up in the intermittent pumping mode. If the operating parameters of the pumping unit are less than the first preset threshold, the production status of the oil well is determined to be an abnormal start-up in the intermittent pumping mode, and the intermittent pumping mode is abnormally shut down. In the shutdown state of the intermittent pumping mode, if the operating parameters of the pumping unit are greater than or equal to the first preset threshold, the production status of the oil well is determined to be an abnormal shutdown in the intermittent pumping mode, and the intermittent pumping mode is changed to continuous pumping mode; if the operating parameters of the pumping unit are less than the first preset threshold, the production status of the oil well is determined to be a normal shutdown in the intermittent pumping mode. When the braking state is in remote mode and stop state, if the operating parameters of the pumping unit are greater than or equal to the first preset threshold, the production state of the oil well is determined to be remote shutdown abnormal and the oil well has not been shut down. If the operating parameters of the pumping unit are less than the first preset threshold, then the production status of the oil well is determined to be normal remote shutdown.

5. The method according to claim 2, characterized in that, The method further includes: In the intermittent sampling mode, an intermittent sampling parameter update instruction is received, and a first power-on duration is used to complete the intermittent sampling parameter update instruction. After the first startup time, if the pumping unit operating parameters in the latest received record information are less than the second preset threshold, then the intermittent pumping parameter update is determined to be successful; if the pumping unit operating parameters in the latest received record information are greater than or equal to the second preset threshold, then the intermittent pumping parameter update is determined to be unsuccessful.

6. The method according to claim 5, characterized in that, The method further includes: If the pumping unit operating parameters are greater than or equal to the second preset threshold in the latest received record information, the second start-up duration and the second shutdown duration, as well as the well shutdown time, are obtained from the intermittent pumping parameter update instruction. The estimated start-up time is determined based on the well shutdown time and the second shutdown duration. If the estimated start-up time is greater than the current time, the well production status is determined to be a normal shutdown in intermittent pumping mode. If the estimated start-up time is less than the current time, the well production status is determined to be an abnormal shutdown in intermittent pumping mode.

7. An oil well anomaly detection device, characterized in that, include: The recording information acquisition module is used to acquire the recording information generated by the oil well control cabinet during operation. The recording information includes the operation recording information generated by the oil well control cabinet when responding to control commands and / or the operation recording information in any working mode. The control commands include one or more of the control mode switching command, working mode switching command, and start / stop control command. The recording information includes one or more of the control mode, working mode, start / stop status, and pumping unit operating parameters. The oil well production status determination module is used to determine the braking status of the oil well control cabinet based on the recorded information, and to determine the oil well production status based on the braking status and the pumping unit operating parameters. The oil well abnormal status transmission module is used to send the oil well production status to the cloud platform system when the oil well production status is abnormal, so that the cloud platform system can generate an abnormal alarm.

8. A cloud platform system, characterized in that, include: Oil well condition management module and oil well equipment management module; The oil well operating condition management module receives the oil well production status transmitted by the oil well edge device. When the oil well production status is abnormal, it generates an abnormal alarm and pushes the abnormal alarm to the oil well abnormal processing terminal. The oil well production status is determined by the oil well edge device based on the recorded information generated by the oil well control cabinet during operation. The oil well equipment management module receives status detection data transmitted by the remote terminal equipment and / or sensor equipment of the oil well based on a preset time interval, and determines the operating status of the remote terminal equipment and / or sensor equipment based on the reception status of the status detection data at any given time and the reception status of the status detection data at the previous time.

9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the oil well anomaly detection method according to any one of claims 1-6.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the oil well anomaly detection method according to any one of claims 1-7.