Working condition identification method, device, computer equipment and storage medium
By detecting pipeline working condition parameters in real time and using the decision tree model, abnormal working conditions in liquid pipeline transportation are quickly identified, which solves the problem of low identification efficiency in the existing technology, realizes rapid locking of the location and type of abnormal working conditions, and facilitates timely deal with.
Patent Information
- Application Number
- CN202010105092.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-20
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-02-20
AI Technical Summary
In the existing technology, the identification efficiency of abnormal working conditions in liquid pipeline transportation is low, resulting in the inability to handle them in time and affecting production efficiency.
By detecting the working condition parameters of stations along the pipeline in real time and using the decision tree model to classify abnormal pressure, the working condition information of the target station can be quickly determined and the burden of manual operations can be reduced.
It improves the efficiency and accuracy of working condition identification, can quickly locate the location and type of abnormal working conditions, facilitates subsequent maintenance, and improves the efficiency of working condition processing.
Smart Images

Figure CN113283455B
Abstract
Description
Technical Field
[0001] The present application relates to the field of liquid pipeline transportation, and in particular to a working condition identification method, device, computer equipment and storage medium. Background Art
[0002] In pipeline management, pipelines are often divided into multiple stations, such as the first station, intermediate pump station, intermediate heat station, and terminal station. Multiple stations cooperate with each other to complete the liquid transportation. In the process of liquid transportation, there may be various normal working conditions, such as starting and stopping the pump and opening and closing the regulating valve. There may also be various abnormal working conditions, such as leakage, malfunction of the pressure relief valve, and malfunction of the valve. The occurrence of abnormal working conditions will affect the normal liquid transportation, reduce production efficiency, and even cause transportation interruption.
[0003] At present, the judgment and identification of abnormal operating conditions often rely on the experience of business personnel. When identifying abnormal operating conditions, business personnel often first observe the pressure and flow, then observe the opening and closing conditions of some major valves, gradually analyze various situations, and finally determine the station and type of abnormal operating conditions.
[0004] However, the pressure and flow characteristics exhibited by some abnormal operating conditions may be relatively close to those of normal operating conditions. Business personnel are often unable to identify whether an abnormal operating condition has occurred or the station or type of abnormal operating condition in a short period of time, resulting in the inability to handle abnormal conditions in a timely manner and low efficiency in condition identification. Summary of the invention
[0005] The embodiments of the present application provide a method, device, computer equipment and storage medium for identifying working conditions, which can improve the efficiency of identifying working conditions. The technical solution is as follows:
[0006] In one aspect, a method for identifying an operating condition is provided, the method comprising:
[0007] Real-time detection of operating parameters of multiple stations along the pipeline, the operating parameters including inlet and outlet pressures and inlet and outlet flow rates of liquid when flowing through the multiple stations, and valve openings of multiple valves in the multiple stations;
[0008] If the inlet and outlet pressure of the liquid in the pipeline flowing through any station is abnormal pressure, the any station is determined as a target station, and the abnormal pressure is that the change of the inlet and outlet pressure when the liquid in the pipeline flows through the station exceeds the target change;
[0009] If there is no operation record within the target historical time period, the operating condition parameters of the target station are input into a decision tree model corresponding to the target station, and the decision tree model classifies the operating condition parameters of the target station based on multiple nodes to determine the operating condition information of the target station;
[0010] The nodes in the decision tree model include root nodes and leaf nodes, and the nodes are used to represent conditions for classifying the operating condition parameters.
[0011] In a possible implementation manner, after determining any station as the target station, the method further includes:
[0012] If there is an operation record within the target historical time period, the operating condition information of the target station is determined based on the state change of the oil delivery pump of the target station.
[0013] In a possible implementation manner, the determining the operating condition information of the target station based on the state change of the oil pump of the target station includes:
[0014] Determine the state change of the oil pump, if the state of the oil pump changes, obtain the pressure change value of the manifold connected to the oil pump, if the pressure change value of the manifold is greater than the target change value, determine the operating condition information of the target station as the oil pump startup, or, if the pressure change value of the manifold is less than the target change value, determine the operating condition information of the target station as the oil pump trial operation;
[0015] If the state of the oil pump has not changed, the opening change of any one of the first valves is determined based on the operating condition parameters; if the opening change of any one of the first valves is greater than the target opening change, the operating condition information of the target station is determined as the first valve opening adjustment.
[0016] In a possible implementation, the method further includes:
[0017] If the state of the oil delivery pump does not change and the opening of the plurality of first valves does not change, the operating condition information of the target station is determined based on the operating condition parameters and the decision tree model.
[0018] In a possible implementation manner, if the inlet and outlet pressure of the liquid in the pipeline flowing through any station is abnormal pressure, determining any station as a target station includes:
[0019] Based on the operating condition parameters, determining the occurrence time of the abnormal pressure;
[0020] The station where the abnormal pressure occurs earliest is determined as the target station.
[0021] In a possible implementation, the method further includes:
[0022] The sample operating condition parameters are input into the initial model, and the initial model performs prediction based on the sample operating condition parameters to obtain the probability that the target station belongs to multiple operating condition information, and the operating condition information with the probability of meeting the target condition is determined as the target operating condition information of the target station, and based on the difference between the target operating condition information and the actual operating condition information corresponding to the sample operating condition parameters, the model parameters of the initial model are adjusted until the initial model meets the iteration cutoff condition, and the initial model at this time is used as the decision tree model.
[0023] In one aspect, a working condition identification device is provided, the device comprising:
[0024] A real-time monitoring module, used to detect the operating parameters of multiple stations along the pipeline in real time, wherein the operating parameters include the inlet and outlet pressures and inlet and outlet flow rates of the liquid when flowing through the multiple stations, and the valve openings of multiple valves in the multiple stations;
[0025] A target station determination module, configured to determine any station as a target station if the inlet and outlet pressure of the liquid in the pipeline flowing through any station is abnormal pressure;
[0026] An input module is used to input the operating parameters of the target station into a decision tree model corresponding to the target station if there is no operation record within the target historical time period, and the decision tree model classifies the operating parameters of the target station based on multiple nodes to determine the operating information of the target station, wherein the nodes in the decision tree model include root nodes and leaf nodes, which are used to represent the conditions for classifying the operating parameters.
[0027] In a possible implementation, the device further includes:
[0028] The first operating condition information determination module is used to determine the operating condition information of the target station based on the state change of the oil delivery pump of the target station if there is an operation record within the target historical time period.
[0029] In a possible implementation manner, the first operating condition information determination module is used to determine the state change of the oil pump. If the state of the oil pump changes, a pressure change value of a manifold connected to the oil pump is obtained. If the pressure change value of the manifold is greater than a target change value, the operating condition information of the target station is determined as the oil pump startup. Alternatively, if the pressure change value of the manifold is less than the target change value, the operating condition information of the target station is determined as the oil pump trial operation.
[0030] If the state of the oil pump has not changed, the opening change of any one of the first valves is determined based on the operating condition parameters; if the opening change of any one of the first valves is greater than the target opening change, the operating condition information of the target station is determined as the first valve opening adjustment.
[0031] In a possible implementation, the device further includes:
[0032] The second operating condition information determination module determines the operating condition information of the target station based on the operating condition parameters and the decision tree model if the oil pump has not undergone a state change and the openings of the plurality of first valves have not undergone a change.
[0033] In a possible implementation manner, the target station determination module includes:
[0034] a time determination unit, configured to determine the occurrence time of the abnormal pressure based on the operating condition parameter;
[0035] The target station determining unit is used to determine the station where the abnormal pressure occurs earliest as the target station.
[0036] In a possible implementation, the device further includes:
[0037] An input module is used to input sample operating condition parameters into an initial model, and the initial model makes predictions based on the sample operating condition parameters to obtain the probability that the target station belongs to multiple operating condition information, and the operating condition information with the probability of meeting the target condition is determined as the target operating condition information of the target station, and based on the difference between the target operating condition information and the actual operating condition information corresponding to the sample operating condition parameters, the model parameters of the initial model are adjusted until the initial model meets the iteration cutoff condition, and the initial model at this time is used as the decision tree model.
[0038] On the one hand, a computer device is provided, which includes one or more processors and one or more memories, wherein at least one instruction is stored in the one or more memories, and the instruction is loaded and executed by the one or more processors to implement the operations performed by the operating condition identification method.
[0039] On the one hand, a computer-readable storage medium is provided, wherein at least one instruction is stored in the computer-readable storage medium, and the instruction is loaded and executed by a processor to implement the operation performed by the operating condition identification method.
[0040] Through the technical solution provided by the embodiment of the present application, the computer equipment can obtain the operating parameters in real time, and when abnormal pressure is detected at any station, the station can be quickly determined as the target station. If the operation record of the target station in the target historical time period is not found, the computer equipment can input the operating parameters corresponding to the target station into the decision tree model corresponding to the target station, and the decision tree model determines the operating information of the target station based on the operating parameters of the target station. The whole process does not require manual operation, which reduces the burden on the staff and improves the efficiency of operating condition identification. When an abnormal operating condition occurs, the staff can also quickly determine the location and type of the abnormal operating condition, which is convenient for subsequent maintenance and improves the efficiency of operating condition processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 is a flow chart of a working condition identification method provided in an embodiment of the present application;
[0043] Figure 2 is a flow chart of a working condition identification method provided in an embodiment of the present application;
[0044] Figure 3 It is a logic block diagram of a working condition identification method provided in an embodiment of the present application;
[0045] Figure 4 It is a flow chart of a method for judging starting a pump, stopping a pump, throwing off a pump, and opening and closing a regulating valve provided in an embodiment of the present application;
[0046] Figure 5 This is a flow chart of a method for determining leakage of fuel oil and liquid provided in an embodiment of the present application;
[0047] Figure 6 It is a flow chart of a can cutting judgment method provided in an embodiment of the present application;
[0048] Figure 7 It is a flow chart of a method for judging misoperation of a pressure relief valve and erroneous shutoff of a valve provided in an embodiment of the present application;
[0049] Figure 8 This is a flow chart of a method for determining working condition information of a first station provided in an embodiment of the present application;
[0050] Fig. 9 It is a flow chart of a method for determining working condition information of an intermediate pump station provided in an embodiment of the present application;
[0051] Fig.10 It is a flow chart of a method for determining operating condition information of an intermediate heat station provided in an embodiment of the present application;
[0052] Fig.11 It is a flow chart of a method for determining the working condition information of a terminal provided in an embodiment of the present application;
[0053] Fig.12 is a flow chart of a method for determining working condition information provided in an embodiment of the present application;
[0054] Fig.13 This is a schematic diagram of an alarm effect provided by an embodiment of the present application;
[0055] Fig.14 It is a schematic diagram of the structure of a working condition identification device provided in an embodiment of the present application;
[0056] Fig.15 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0058] A decision tree is an algorithm that partitions the feature space on the input space for classification or regression based on the inherent complexity of the distribution of training data.
[0059] Pump throw-off is a phenomenon in which the oil pump stops abnormally.
[0060] Tank cutting is a phenomenon in which when there are two or more tanks for storing liquid, when one tank is full of liquid, the valve between the tanks opens and the liquid flows into the second tank for storage.
[0061] Downloading fuel oil is a normal operation for workers to take liquid out of the pipeline.
[0062] Figure 1 is a flowchart of a working condition identification method provided in an embodiment of the present application, see Figure 1 , methods include:
[0063] 101. Real-time detection of operating parameters of multiple stations along the pipeline, including the inlet and outlet pressure, inlet and outlet flow rate of the liquid when flowing through multiple stations, and the valve opening of multiple valves in multiple stations.
[0064] 102. If the inlet and outlet pressure of the liquid in the pipeline flowing through any station is abnormal pressure, any station will be determined as the target station. The abnormal pressure means that the change of the inlet and outlet pressure when the liquid in the pipeline flows through the station exceeds the target change.
[0065] 103. If there is no operation record within the target historical time period, the operating parameters of the target station are input into the decision tree model corresponding to the target station, and the decision tree model classifies the operating parameters of the target station based on multiple nodes to determine the operating information of the target station. The nodes in the decision tree model include root nodes and leaf nodes, and the nodes are used to represent the conditions for classifying the operating parameters.
[0066] Through the technical solution provided by the embodiment of the present application, the computer equipment can obtain the operating parameters in real time, and when abnormal pressure is detected in any station, the station can be quickly determined as the target station. If the operation record of the target station in the target historical time period is not found, the computer equipment can input the operating parameters corresponding to the target station into the decision tree model corresponding to the target station, and the decision tree model determines the operating information of the target station based on the operating parameters of the target station. The whole process does not require manual operation, which reduces the burden on the staff and improves the efficiency of operating condition identification. When an abnormal operating condition occurs, the staff can also quickly determine the location and type of the abnormal operating condition, which is convenient for subsequent maintenance and improves the efficiency of operating condition processing.
[0067] In a possible implementation manner, after any station is determined as a target station, the method further includes:
[0068] If there are operation records within the target historical time period, the operating condition information of the target station is determined based on the state change of the oil delivery pump of the target station.
[0069] In a possible implementation manner, based on the state change of the oil delivery pump of the target station, determining the operating condition information of the target station includes:
[0070] Determine the state change of the oil pump. If the state of the oil pump changes, obtain the pressure change value of the manifold connected to the oil pump. If the pressure change value of the manifold is greater than the target change value, the operating condition information of the target station is determined as the start of the oil pump. Or, if the pressure change value of the manifold is less than the target change value, the operating condition information of the target station is determined as the trial operation of the oil pump.
[0071] If the oil pump has not changed its state, the opening change of any first valve is determined based on the operating condition parameters. If the opening change of any first valve is greater than the target opening change, the operating condition information of the target station is determined as the first valve opening adjustment.
[0072] In a possible implementation, the method further includes:
[0073] If the oil pump does not change its state and the openings of the plurality of first valves do not change, the operating condition information of the target station is determined based on the operating condition parameters and the decision tree model.
[0074] In a possible implementation, if the inlet and outlet pressures of the liquid in the pipeline flowing through any station are abnormal pressures, determining any station as a target station includes:
[0075] Based on the operating parameters, determine the time when abnormal pressure occurs.
[0076] The station where abnormal pressure occurs earliest is determined as the target station.
[0077] In a possible implementation, the method further includes:
[0078] The sample operating condition parameters are input into the initial model, and the initial model makes predictions based on the sample operating condition parameters to obtain the probability that the target station belongs to multiple operating condition information. The operating condition information with the probability of meeting the target conditions is determined as the target operating condition information of the target station. Based on the difference between the target operating condition information and the actual operating condition information corresponding to the sample operating condition parameters, the model parameters of the initial model are adjusted until the initial model meets the iteration cutoff conditions, and the initial model at this time is used as the decision tree model.
[0079] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0080] Figure 2 is a flow chart of a working condition identification method provided in an embodiment of the present application, Figure 3 This is a logic block diagram of a working condition identification method provided in an embodiment of the present application, see Figure 2 and Figure 3 , methods include:
[0081] 201. Computer equipment detects the operating parameters of multiple stations along the pipeline in real time. The operating parameters include the inlet and outlet pressures and inlet and outlet flow rates of the liquid when flowing through multiple stations, as well as the valve openings of multiple valves in multiple stations.
[0082] The inlet and outlet pressures may include inlet pressure and outlet pressure, and the inlet and outlet flows may include inlet flow and outlet flow.
[0083] In one possible implementation, sensors for detecting liquid inlet and outlet pressure and inlet and outlet flow may be installed in multiple stations along the pipeline, sensors for detecting valve opening may be installed on multiple valves in multiple stations, and computer equipment may obtain operating parameters in real time through multiple sensors in multiple stations along the pipeline.
[0084] 202. If the inlet and outlet pressures of the liquid in the pipeline flowing through any station are abnormal pressures, the computer equipment will determine any station as a target station. The abnormal pressure means that the change in the inlet and outlet pressures when the liquid in the pipeline flows through the station exceeds the target change.
[0085] Among them, abnormal pressure may refer to a large-scale sudden change in the inlet pressure or outlet pressure of the liquid when it flows through the station. The computer equipment can determine the pressure change of the liquid flowing through the station in real time by any of the following methods.
[0086] In one possible implementation, the computer device can calculate in real time the inlet pressure change value and the outlet pressure change value of the liquid flowing through each station field. When the inlet pressure change value or the outlet pressure change value of any station field exceeds the first target change value, the computer device can determine the station field where the inlet pressure change value or the outlet pressure change value exceeds the first target change value as the target station field; in another possible implementation, the computer device can calculate in real time the inlet pressure change rate and the outlet pressure change rate of the liquid flowing through each station field. When the inlet pressure change rate or the outlet pressure change rate of any station field exceeds the target change rate, the computer device can determine the station field where the inlet pressure change rate or the outlet pressure change rate exceeds the target change rate as the target station field. For example, the computer device obtains that the inlet pressure of the liquid at a certain station at the previous sampling moment is 20KPa, and at the next sampling moment the inlet pressure of the station changes to 25KPa. The computer device can calculate that the inlet pressure change rate of the station is 25%. If the target change rate is 5%, the computer device can determine that the inlet pressure change rate of the station exceeds the target change rate and determine the station as the target station.
[0087] The above implementation is described by taking the example of a computer device calculating the inlet pressure change value / change rate and the outlet pressure change value / change rate of the liquid flowing through each station in real time to determine the target station. In another possible implementation, in addition to obtaining the inlet pressure change value / change rate and the outlet pressure change value / change rate of the liquid flowing through each station in real time through a sensor, the computer device can also determine the time when abnormal pressure occurs in each station, and determine the station with the earliest abnormal pressure occurrence time as the target station. Specifically, when the computer device obtains the operating parameters in real time, it can add a timestamp to the obtained operating parameters, that is, the operating parameters obtained at different times correspond to different timestamps. When the computer device detects abnormal pressure at the station along the pipeline at a certain moment, it can determine the time when abnormal pressure occurs at each station based on the timestamp of the operating parameters, and the computer device can determine the station with the earliest abnormal pressure occurrence time as the target station. In this implementation mode, the computer device can quickly lock the station where abnormal pressure occurs, which is convenient for subsequent data processing.
[0088] 203. If there is no operation record within the target historical time period, the computer device inputs the operating parameters of the target station into a decision tree model corresponding to the target station, and the decision tree model classifies the operating parameters of the target station based on multiple nodes to determine the operating information of the target station, wherein the nodes in the decision tree model include root nodes and leaf nodes, and the nodes are used to represent the conditions for classifying the operating parameters.
[0089] Among them, the operation record may refer to the record of the operation behavior uploaded by the staff to the computer device or server after the staff performs the operation in the station. If the staff uploads the operation record to the computer device, the computer device can query the operation record of the target station within the target time period in its own storage space; if the staff uploads the operation record to the server, the computer device can send a query request to the server, and the query request carries the identification of the target station and the target historical time period. The server can query the operation record of the target station within the target historical time period in the database maintained by it based on the query request; if the computer device queries the operation record of the target station within the target historical time period, execute step 204, otherwise execute this step.
[0090] Different operating condition information refers to different operating conditions that may occur in a station. The operating conditions that may occur in different stations may be different. Each station may have a corresponding decision tree model. The decision tree model has the ability to determine the operating condition information of each station based on the operating condition parameters of each station. The specific training method of the decision tree model is described after step 204. Based on this, in one implementation of the above step 203, the computer device can call the decision tree model corresponding to the station identification of the target station from the computer device according to the station identification of the target station, and input the operating condition parameters of the target station into the decision tree model corresponding to the station identification. The decision tree model classifies the operating condition parameters of the target station based on multiple nodes to determine the operating condition information of the target station. In this implementation method, the decision tree model corresponding to each station is adopted, and the prediction of the decision tree model is more targeted and has a better prediction effect.
[0091] In the above step 203, if there is no operation record within the target historical time period, it can be determined that the abnormal pressure in the target station is not caused by the operator operating the equipment in the pipeline, but may be caused by an abnormal situation in the target station. Therefore, the operating condition information can be determined through a prediction process based on a decision tree model. In an embodiment of the present application, the decision tree model can be composed of multiple root nodes and multiple leaf nodes, each root node and leaf node can be a weight matrix corresponding to the node, each root node can have multiple leaf nodes, and each leaf node at the bottom can correspond to two operating condition information. Based on this decision tree model, the following describes the processing process of the operating condition parameters in the decision tree model. Specifically, after the computer device inputs the operating condition parameters into the decision tree model, the decision tree model can input the operating condition parameters into any root node, multiply the operating condition parameters by the weight matrix corresponding to the root node, obtain a first prediction value, and determine which leaf node the operating condition parameters will be input into next based on the relationship between the first prediction value and the first judgment value. After that, the decision tree model can judge the operating condition parameters based on the leaf nodes under the root node, determine which leaf node the operating condition parameters will be input into later, or determine the operating condition information corresponding to the operating condition parameters. When there are no other leaf nodes under any leaf node, the output of the leaf node can correspond to two types of operating condition information.
[0092] For example, if the computer device determines the first station as the target station, the decision tree model corresponding to the station identifier of the first station can be called from the computer device, and the operating parameters of the first station [2, 3, 4, 5, 0.2, 0.3... ] are input into the decision tree model corresponding to the first station, where 2 represents the liquid inlet pressure of the first station, 3 represents the liquid outlet pressure of the first station, 4 represents the liquid inlet flow rate of the first station, 5 represents the liquid outlet flow rate of the first station, 0.2 and 0.3 represent the opening changes of two valves in the first station, and ... represents the opening changes of other valves in the first station. The decision tree model can input the operating parameters of the first station into any root node, and compare the operating parameters of the first station with the weight matrix corresponding to the root node [0.1, 0.1, 0.2, 0.2, 0.8, 0.9... ] TMultiply to get the first prediction value, for example 0.7. If the first judgment value of the root node is 0.5, and the judgment rule of the root node is: when the first prediction value is greater than or equal to the first judgment value, the decision tree model will input the operating condition parameters into the first leaf node in the next step; when the first prediction value is less than the first judgment value, the decision tree model will input the operating condition parameters into the second leaf node in the next step. According to the above rules, the decision tree model can determine that the leaf node that inputs the operating parameters in the next step is the first leaf node, and the first leaf node continues to make judgments similar to the root node until there are no other leaf nodes under any leaf node. Then the output of the leaf node can correspond to two operating information, such as oil pump pumping and oil pump stopping. The specific output of which operating information depends on the relationship between the second predicted value after multiplying the weight matrix corresponding to the leaf node and the operating parameter and the second judgment value corresponding to the leaf node. For example, the second predicted value of the weight matrix corresponding to the leaf node and the operating parameter is 0.3, and the second judgment value corresponding to the leaf node is 0.5. The judgment rule of the leaf node is that when the second predicted value is greater than or equal to the second judgment value, the operating information corresponding to the operating parameter is output as oil pump pumping, and when the second predicted value is less than or equal to the second judgment value, the operating information corresponding to the operating parameter is output as oil pump stopping. According to the above rules, the decision tree model can output the operating information corresponding to the operating parameter of the first station as oil pump stopping.
[0093] The above is explained by taking the nodes of the decision tree model as the weight matrix as an example. In a possible implementation, the root node and leaf nodes of the decision tree model can be specific judgment conditions. After the computer device inputs the operating parameters of the target station into the decision tree model, the decision tree model can input the operating parameters into any root node, and based on the specific judgment conditions of the node, determine which leaf node the operating parameters will be input into next. After that, the decision tree model can judge the operating parameters based on the leaf nodes under the root node, determine which leaf node the operating parameters will be input into later, or determine the operating information corresponding to the operating parameters. When there are no other leaf nodes under any leaf node, the output of the leaf node can correspond to two types of operating information. Specifically, the computer device can input the operating parameters of the target station [2, 3, 4, 5, 0.2, 0.3. . . . . . . . ] Input the decision tree model, where 2 represents the liquid inlet pressure of the target station, 3 represents the liquid outlet pressure of the target station, 4 represents the liquid inlet flow of the target station, 5 represents the liquid outlet flow of the target station, 0.2, 0.3 represent the opening changes of the two valves in the target station, ... represent the opening changes of other valves in the target station. The decision tree model inputs the operating condition parameter into a root node. The judgment condition corresponding to the root node is whether the liquid inlet pressure is greater than 1. If so, the operating condition parameter is input into the A leaf node for the next judgment. If not, the operating condition parameter is input into the B leaf node for the next judgment. Based on the above judgment rules, the decision tree model can input the operating condition parameter into the A leaf node, and the A node judges the operating condition parameter based on its corresponding judgment rule. If the judgment condition corresponding to the A leaf node is whether the liquid outlet pressure is less than 5, if so, the operating condition information corresponding to the operating condition parameter is output as pump cutting. If not, it is input into the leaf of the C leaf node for subsequent judgment. Based on the above rules, the decision tree model can determine that the operating condition information corresponding to the operating condition parameters [2, 3, 4, 5, 0.2, 0.3...] is pump cutting. Of course, the above description is only for ease of understanding. The actual judgment conditions may be more complex, and the number of decision tree nodes may be more. The embodiment of the present application does not limit the number of nodes of the decision tree model and the judgment conditions corresponding to the nodes.
[0094] To further illustrate how to set the nodes of the decision tree model as specific judgment conditions in the actual pipeline operation, three specific examples are given below:
[0095] Example 1: Starting the pump, stopping the pump, throwing the pump, and judging the opening and closing of the regulating valve, see Figure 4 , methods include:
[0096] In one possible implementation, a computer device may obtain status change information of an oil pump, and a root node may be a node for determining whether a status change occurs in the oil pump. If the status of the oil pump changes, the computer device may further determine whether there is a record of sending a pump start command to the oil pump. If so, the computer device may determine based on operating condition parameters whether the liquid flowing through the target station has a decrease in inlet pressure, an increase in outlet pressure, and an increase in inlet and outlet flow. If the above three conditions are met, the operating condition information of the target station is determined to be pump start; if there is no record of sending a pump start command, the decision tree model may determine based on the operating condition parameters whether the liquid flowing through the target station has an increase in inlet pressure, an increase in outlet pressure, and a decrease in inlet and outlet flow. If the above three conditions are met, the decision tree model may determine based on the operating condition parameters whether there is a change in valve opening. If so, the operating condition information of the target station is determined to be pump stop. If not, the operating condition information of the target station is determined to be pump rejection.
[0097] In a possible implementation, if the oil pump does not change state, the decision tree model can determine whether the regulating valve changes based on the operating parameters. If it changes, it further determines whether the valve opening of the regulating valve belongs to the target opening range. If so, it determines whether the inlet pressure of the liquid flowing through the target station field decreases, and whether the inlet flow, outlet pressure and outlet flow increase. If all of the above conditions are met, the operating information of the target station field is determined as the regulating valve is open; if the valve opening of the regulating valve does not belong to the target opening range, it determines whether the inlet pressure of the liquid flowing through the target station field increases, and whether the outlet pressure, inlet flow and outlet flow decrease. If all of the above conditions are yes, the operating information of the target station field is determined as the regulating valve is closed. It should be noted that the target opening range can be set according to the actual conditions of different stations, for example (50%-90%), and the embodiment of the present application does not limit the setting of the target opening range.
[0098] Example 2: Cutting tanks, unloading fuel oil, and judging liquid leakage, see Figure 5 and Figure 6 , methods include:
[0099] In one possible implementation, if there are multiple tanks storing liquid in the target station, the computer device can obtain the values of the liquid level gauges on different tanks. If the computer device detects that the value of the liquid level gauge of a certain tank has changed, the decision tree model can determine whether the valve opening of the tank is within the target opening range based on the operating parameters. If so, it is determined whether the inlet pressure of the liquid flowing through the target station is reduced and the inlet flow rate is increased and the increase value is less than the target increase value. If all the above conditions are yes, the operating condition information of the target station is determined as tank cutting.
[0100] In a possible implementation, if there are multiple tanks storing liquids in the target station, the computer device can obtain the values of the liquid level gauges on different tanks. If the computer device detects that the value of the liquid level gauge of a certain tank has changed, the decision tree model can determine whether the valve opening of the tank is within the target opening range based on the operating parameters. If so, it is determined whether the inlet pressure of the liquid flowing through the target station decreases, whether the inlet flow increases, whether the outlet pressure decreases, and whether the outlet flow decreases. If all of the above conditions are yes, the operating condition information of the target station is determined to be downloaded fuel oil.
[0101] In one possible implementation, if there are multiple tanks storing liquid in the target station, the computer device can obtain the values of the liquid level gauges on different tanks. If the computer device does not detect a change in the value of the liquid level gauge of any tank, the decision tree model can determine based on the operating condition parameters whether the inlet pressure of the liquid flowing through the target station decreases, whether the inlet flow increases, whether the outlet pressure decreases, and whether the outlet flow decreases. If all of the above conditions are yes, the operating condition information of the target station is determined to be a liquid leakage.
[0102] Example 3: Determination of misoperation of the pressure relief valve and incorrect valve shutoff, see Figure 7 , methods include:
[0103] In one possible implementation, the decision tree model can determine whether the opening of the pressure relief valve of the target station has changed based on the operating condition parameters. If so, it can determine whether the inlet pressure of the fluid flowing through the target station has decreased, whether the inlet flow has increased, whether the outlet pressure has decreased, and whether the outlet flow has decreased. If all of the above conditions are yes, the operating condition information of the target station is determined as a misoperation of the pressure relief valve.
[0104] In one possible implementation, if the decision tree model determines that the opening of the pressure relief valve of the target station has not changed based on the operating condition parameters, then it is determined whether the opening of the inlet valve of the target station has changed. If so, it is determined whether the inlet pressure of the liquid flowing through the target station increases, whether the inlet pressure decreases, whether the outlet pressure decreases, and whether the outlet flow rate decreases. If all of the above conditions are yes, the operating condition information of the target station is determined as the inlet valve is incorrectly closed.
[0105] In one possible implementation, if the decision tree model determines that the opening of the inlet valve of the target station has not changed based on the operating condition parameters, then it is determined whether the opening of the outlet valve of the target station has changed. If so, it is determined whether the inlet pressure of the liquid flowing through the target station increases, whether the inlet flow rate decreases, whether the outlet pressure decreases, and whether the outlet flow rate decreases. If all of the above conditions are yes, the operating condition information of the target station is determined as the outlet valve is incorrectly closed.
[0106] In one possible implementation, if the decision tree model determines based on the operating condition parameters that the opening of the outlet valve of the target station has not changed, then it is determined whether the opening of the pump valve of the target station has changed. If so, it is determined whether the outlet pressure and outlet flow of the liquid flowing through the target station are both reduced. If so, the operating condition information of the target station is determined as the pump valve is incorrectly shut down.
[0107] It should be noted that the above sequence of determining the valve opening is only set for ease of understanding and can actually be adjusted according to specific circumstances, and the embodiments of the present application do not limit this.
[0108] In addition, the above examples 1 to 3 are based on the common operating parameters of different stations. In fact, different stations can have corresponding decision tree models. For example, the first station has a decision tree model corresponding to the first station, the middle station has a decision tree model corresponding to the middle station, and the last station has a decision tree model corresponding to the last station. The following will specifically explain how to determine the operating parameters of the target station based on the decision tree models corresponding to different stations.
[0109] Example 4: Method for determining the working condition information of the first station, see Figure 8 , methods include:
[0110] In a possible implementation, the first station may include an oil pump, a filter, an oil feed pump, a heating furnace, a manifold connected to the oil pump, and different types of valves. If the target station is the first station, the decision tree model corresponding to the first station can determine whether the outlet pressure and the outlet flow rate of the liquid when it flows through the first station decrease based on the operating parameters of the first station. If all of the above conditions are yes, the operating information of the first station is determined as downstream leakage; if the outlet pressure of the liquid flowing through the first station increases and the outlet flow rate decreases, the operating information of the first station is determined as the valve of the lower oil valve chamber is closed; if the outlet flow of the liquid flowing through the first station increases and the pressure of the pump outlet manifold decreases, the operating information of the first station is determined as the increase in the opening of the regulating valve; if the pressure of the oil pump outlet manifold increases and the pressure of the oil pump inlet manifold decreases, the operating information of the first station is determined as the oil pump is started; if the pressure of the oil pump inlet manifold increases, the filter pressure increases, and the inlet pressure of the oil feed pump decreases, the operating information of the first station is determined as the oil feed pump is running. If the outlet pressure of the liquid flowing through the first station decreases, the outlet flow rate decreases, the pressure of the oil pump outlet manifold increases, and the opening of the first type of valve in the first station does not change, the operating condition information of the target station is determined as a pipeline leakage in the outlet area; if the pressure of the oil pump outlet manifold decreases, the pressure of the oil pump inlet manifold decreases, the pressure in the filter area increases, and the opening of the second type of valve does not change, the operating condition information of the first station is determined as a filter blockage. If the outlet pressure of the liquid flowing through the first station drops, the outlet flow rate drops, the oil pump outlet manifold pressure drops, the oil pump inlet manifold pressure drops, the filter area pressure drops, the oil pump inlet pressure rises, and the oil pump status does not change, then the operating condition information of the first station is determined as the heating furnace area valve is closed; if the oil pump status changes, then the operating condition information of the first station is determined as the oil pump is thrown off; if the oil pump inlet pressure drops and the opening of the third type valve does not change, then the operating condition information of the first station is determined as upstream leakage or oil interruption; if the status of the third type valve changes, then the operating condition information of the first station is determined as the third type valve is closed.
[0111] Example 5: Method for determining the working condition information of the intermediate station, see Fig. 9 and Fig.10 , methods include:
[0112] In a possible implementation, the intermediate station can be divided into an intermediate pump station and an intermediate heating station. The intermediate pump station may include an oil transfer pump, a filter, an oil feed pump, a heating furnace, a manifold connected to the oil pump, and different types of valves. If the target station is an intermediate pump station, see Fig. 9, the decision tree model corresponding to the intermediate pump station can judge whether the outlet pressure and the outlet flow rate of the liquid decrease when flowing through the intermediate pump station based on the operating parameters of the intermediate pump station. If all the above conditions are yes, the operating information of the intermediate pump station is determined as downstream leakage; if the outlet pressure of the liquid flowing through the intermediate pump station increases and the outlet flow rate decreases, the operating information of the intermediate pump station is determined as the valve in the lower oil valve chamber is closed; if the outlet flow rate of the liquid flowing through the intermediate pump station increases and the pressure of the pump outlet manifold decreases, the operating information of the intermediate pump station is determined as the increase in the opening of the regulating valve; if the pressure of the oil pump outlet manifold increases and the pressure of the oil pump inlet manifold decreases, the operating information of the intermediate pump station is determined as the start of the oil pump; if the pressure of the oil pump inlet manifold increases, the filter pressure increases, and the inlet pressure increases, the operating information of the intermediate pump station is determined as the upstream pump start. If the outlet pressure of the liquid flowing through the intermediate pump station decreases, the outlet flow rate decreases, the pressure of the oil pump outlet manifold increases, and the opening of the first type of valve in the intermediate pump station does not change, the operating condition information of the target station is determined as a pipeline leakage in the outlet area; if the pressure of the oil pump outlet manifold decreases, the pressure of the oil pump inlet manifold decreases, the pressure in the filter area increases, and the opening of the second type of valve does not change, the operating condition information of the intermediate pump station is determined as a filter blockage. If the outlet pressure of the liquid flowing through the intermediate pump station drops, the outlet flow rate drops, the oil pump outlet manifold pressure drops, the oil pump inlet manifold pressure drops, the filter area pressure drops, the oil pump inlet pressure rises, and the oil pump status does not change, then the operating condition information of the intermediate pump station is determined as the heating furnace area valve is closed; if the oil pump status changes, then the operating condition information of the intermediate pump station is determined as the oil pump is thrown off; if the oil pump inlet pressure drops and the opening of the third type valve does not change, then the operating condition information of the intermediate pump station is determined as upstream leakage or oil interruption; if the status of the third type valve changes, then the operating condition information of the intermediate pump station is determined as the third type valve is closed.
[0113] The intermediate heat station includes heating furnaces and various types of valves. If the target station is an intermediate heat station, refer to Fig.10, the decision tree model corresponding to the intermediate heat station can determine the operating information of the intermediate heat station based on the operating parameters of the intermediate heat station. If the outlet pressure of the liquid flowing through the intermediate heat station increases and the outlet flow rate decreases, the operating information of the intermediate heat station can be determined as the downstream valve is closed; if the outlet pressure of the liquid flowing through the intermediate heat station increases, the outlet flow rate increases, the inlet pressure decreases, the flow rate of the liquid flowing through the previous station increases, and the opening of the regulating valve changes, the operating information of the intermediate heat station can be determined as the opening of the regulating valve increases. If the outlet pressure of the liquid flowing through the intermediate heat station decreases and the outlet flow rate increases, the operating information of the intermediate heat station can be determined as downstream leakage. If the outlet pressure of the liquid flowing through the intermediate heat station decreases, the outlet flow rate decreases, the inlet pressure decreases, the flow rate of the liquid flowing through the previous station decreases, and the opening of the regulating valve changes, the operating information of the intermediate heat station can be determined as the opening of the regulating valve decreases. If the outlet pressure of the liquid flowing through the intermediate heat station decreases, the outlet flow decreases, the inlet pressure decreases, the flow of the liquid flowing through the previous station increases, and the opening of the inlet valve changes, the operating condition information of the intermediate heat station can be determined as the inlet valve is closed; if the outlet pressure of the liquid flowing through the intermediate heat station decreases, the outlet flow decreases, the inlet pressure decreases, the flow of the liquid flowing through the previous station increases, and the opening of the inlet valve does not change, the operating condition information of the intermediate heat station can be determined as the heating furnace valve is closed.
[0114] Example 6: Method for determining the working condition information of the terminal yard, see Fig.11 , methods include:
[0115] In one possible implementation, the terminal may include multiple types of valves and multiple tanks for storing liquids, and the decision tree model corresponding to the terminal may determine the operating information of the terminal based on the operating parameters of the terminal. If the outlet pressure of the liquid flowing through the terminal increases and the outlet flow rate decreases, the operating information of the terminal may be determined as an increase in the opening of the regulating valve. If the outlet pressure of the fluid flowing through the terminal decreases, the inlet pressure increases, and the inlet opening changes, the operating information of the terminal may be determined as the inlet valve is closed. If the outlet pressure of the fluid flowing through the terminal decreases, the inlet pressure decreases, and the inlet flow rate increases, the operating information of the terminal may be determined as tank cutting.
[0116] 204. If there is an operation record within the target historical time period, the computer device outputs the operating condition information of the target station based on the state change of the oil pump of the target station.
[0117] In a possible implementation, a sensor for determining a state change of the oil pump may be installed on the oil pump. The computer device may determine the state change of the oil pump based on the sensor installed on the oil pump. Fig.12If the state of the oil pump changes, the pressure change value of the manifold connected to the oil pump is obtained. If the pressure change value of the manifold is greater than the target change value, the operating condition information of the target station is determined as the start of the oil pump, or, if the pressure change value of the manifold is less than the target change value, the operating condition information of the target station is determined as the trial operation of the oil pump. If the state of the oil pump does not change, the computer device can determine the opening change of any first valve based on the operating condition parameters. If the opening change of any first valve is greater than the target opening change, the operating condition information of the target station is determined as the first valve opening adjustment. If the state of the oil pump does not change and the opening of multiple first valves does not change, the computer device can determine the operating condition information of the target station based on the operating condition parameters and the decision tree model.
[0118] Through the working condition identification method provided by the present application, when a pressure anomaly occurs, the computer equipment can determine the target station field where the pressure anomaly occurs, and input the working condition parameters of the target station field into the decision tree model corresponding to the target station field. The decision tree model corresponding to the target station field classifies and predicts based on the working condition parameters of the target station field, and determines the working condition information of the target station field. The staff can quickly determine whether the working condition corresponding to the pressure anomaly is a normal working condition or an abnormal working condition based on the prediction results of the decision tree model, which reduces the burden on the staff and improves the efficiency of working condition identification. When an abnormal working condition occurs, the staff can also quickly determine the location and type of the abnormal working condition, which is convenient for subsequent maintenance and improves the efficiency of working condition processing.
[0119] The following is an explanation of the training method of the decision tree model provided in the embodiment of the present application:
[0120] In a possible implementation, the computer device can input the sample operating condition parameters into the initial model, and the initial model predicts based on the sample operating condition parameters to obtain the probability that the target station belongs to multiple operating condition information, and the operating condition information with the probability meeting the target condition is determined as the target operating condition information of the target station, and the model parameters of the initial model are adjusted based on the difference between the target operating condition information and the actual operating condition information corresponding to the sample operating condition parameters, until the initial model meets the iteration cutoff condition, and the initial model at this time is used as a decision tree model. Among them, the sample operating condition parameters are the historical operating condition parameters of the station, specifically. The computer device can store the operating condition information of different stations acquired historically in the corresponding storage space. When training the decision tree model corresponding to any station, the computer device can call the historical operating condition parameters of the station, and use the historical operating condition parameters of the station as the sample operating condition parameters. In addition, the computer device can also obtain the actual operating condition information corresponding to the historical operating condition parameters, and the actual operating condition information can be input into the computer device after confirmation by the operator. After the computer device initializes the initial model, the sample operating condition parameters are input into the initial model, and the initial model predicts the category of the sample operating condition information based on multiple nodes, and obtains the probability that the sample operating condition parameters belong to different operating condition information, and determines the operating condition information with the highest probability as the target operating condition information. Based on the difference between the actual operating condition information and the target operating condition information, the parameters of the nodes of the initial model are adjusted until the loss function value of the initial model reaches the target function value or the number of iterations reaches the target number. The training of the initial model is stopped, and the initial model at this time is used as a decision tree model. It should be noted that when training the decision tree model, the root node of the initial model can be trained first, that is, the ability of the decision tree model to divide the operating condition parameters into large categories is first trained, and then the leaf nodes under the root node are trained. The leaf nodes are small categories under large categories, which can improve the convergence speed of the decision tree model and improve the efficiency of model training. It should be noted that the computer device can obtain the decision tree model in any of the above ways, and the embodiment of the present application does not limit the way to obtain the decision tree model.
[0121] In addition, the above description is based on the example of a decision tree model trained by a computer device for prediction. In fact, the decision tree model can be trained by other devices with computing capabilities, and the trained decision tree model can be published to the above-mentioned computer device for use. The embodiment of the present application does not limit the device for training the decision tree model.
[0122] During the experiment, the experiment time was set to 30 minutes, and the decision tree model provided in the embodiment of the present application was used to predict the operating condition information every 1 minute. It was recorded that it took an average of 6.6 seconds for the decision tree model to determine the location and type of the operating condition, and the recognition efficiency of the model was relatively high. In terms of the accuracy of model recognition, the decision tree model provided in the embodiment of the present application can automatically identify operating conditions such as starting the pump, stopping the pump, throwing the pump, cutting the pump, changes in the opening of the regulating valve, and downloading fuel oil when the operating condition occurs, with good accuracy.
[0123] See also Fig.13 , below, only an example of the alarm effect of the decision tree model is provided as a reference for the operating effect of the above embodiment:
[0124] The following (!) is used to alert the staff to abnormal conditions, and (*) is used to indicate that no abnormal conditions have occurred and no action is required.
[0125] (!) Current time: 2019-05-01 17:43:00, Shapotou Station working condition regulating valve change - open small start
[0126] (!) Current time: 2019-05-01 17:45:00, Shapotou Station working condition reduction begins
[0127] (!) Current time: 2019-05-01 17:45:30, Shapotou station working condition download fuel oil / leakage (flow) starts
[0128] (!) Current time: 2019-05-01 17:46:30, Shapotou station working condition alarm-untriggered working condition starts
[0129] (*) Current time: 2019-05-01 17:47:30, Shapotou station operating condition control valve change - small opening ended, this condition was first discovered at 2019-05-01 17:43:00, and last discovered at 2019-05-01 17:45:00
[0130] (!) Current time: 2019-05-01 17:48:00, Hongwan Station working condition alarm-untriggered working condition starts
[0131] (*) Current time: 2019-05-01 17:49:30, Shapotou station working condition download fuel oil / leakage (flow) ended, this working condition was first discovered at 2019-05-01 17:45:30, and last discovered at 2019-05-01 17:46:00
[0132] (*)Current time: 2019-05-01 17:49:30, the reduction of the working condition of Shapotou Station has ended. The working condition was first discovered on 2019-05-01 17:45:00 and last discovered on 2019-05-01 17:46:00
[0133] (!) Current time: 2019-05-01 17:51:30, Jingtai Station working condition alarm-untriggered working condition starts
[0134] (*)Current time: 2019-05-01 17:54:30, Shapotou station working condition alarm-untriggered working condition ended, the working condition was first discovered at 2019-05-01 17:46:30, and the last discovered at 2019-05-01 17:49:30
[0135] (*)Current time: 2019-05-01 17:54:30, Jingtai station working condition alarm-untriggered working condition ended, the working condition was first discovered at 2019-05-01 17:51:30, and the last discovered at 2019-05-01 17:51:30
[0136] (*)Current time: 2019-05-01 17:55:00, Hongwan Station working condition alarm-untriggered working condition ended, the working condition was first discovered at 2019-05-01 17:48:00, and the last discovered at 2019-05-01 17:52:30
[0137] It can be seen from the above examples that the operating condition identification method provided by the present application can not only identify the actual operating conditions of each station, but also identify the time of occurrence of the operating condition and other information, providing effective data reference for alarm.
[0138] Fig.14 A schematic diagram of a working condition identification device provided in an embodiment of the present application is shown in FIG. Fig.14 The device includes: a real-time monitoring module 1401, a target station determination module 1402 and an input module 1403.
[0139] The real-time monitoring module 1401 is used to detect the operating parameters of multiple stations along the pipeline in real time. The operating parameters include the inlet and outlet pressures and inlet and outlet flow rates of the liquid when flowing through the multiple stations, and the valve openings of multiple valves in the multiple stations.
[0140] The target station determination module 1402 is used to determine any station as a target station if the inlet and outlet pressures of the liquid in the pipeline flowing through any station are abnormal pressures.
[0141] Input module 1403 is used to input the operating parameters of the target station into a decision tree model corresponding to the target station if there is no operation record within the target historical time period. The decision tree model classifies the operating parameters of the target station based on multiple nodes to determine the operating information of the target station, wherein the nodes in the decision tree model include root nodes and leaf nodes, which are used to represent the conditions for classifying the operating parameters.
[0142] In a possible implementation, the device further includes:
[0143] The first operating condition information determination module is used to determine the operating condition information of the target station based on the state change of the oil delivery pump of the target station if there is an operation record within the target historical time period.
[0144] In a possible implementation, the first operating condition information determination module is used to determine the state change of the oil pump. If the state of the oil pump changes, the pressure change value of the manifold connected to the oil pump is obtained. If the pressure change value of the manifold is greater than the target change value, the operating condition information of the target station is determined as the start of the oil pump, or, if the pressure change value of the manifold is less than the target change value, the operating condition information of the target station is determined as the trial operation of the oil pump.
[0145] If the oil pump has not changed its state, the opening change of any first valve is determined based on the operating condition parameters. If the opening change of any first valve is greater than the target opening change, the operating condition information of the target station is determined as the first valve opening adjustment.
[0146] In a possible implementation, the device further includes:
[0147] The second operating condition information determination module determines the operating condition information of the target station based on the operating condition parameters and the decision tree model if the oil pump has not changed its state and the openings of the plurality of first valves have not changed.
[0148] In a possible implementation, the target station determination module includes:
[0149] The time determination unit is used to determine the occurrence time of abnormal pressure based on the operating condition parameters.
[0150] The target station determining unit is used to determine the station where the abnormal pressure occurs earliest as the target station.
[0151] In a possible implementation, the device further includes:
[0152] The input module is used to input the sample operating condition parameters into the initial model. The initial model makes predictions based on the sample operating condition parameters to obtain the probability that the target station belongs to multiple operating condition information. The operating condition information with the probability of meeting the target conditions is determined as the target operating condition information of the target station. Based on the difference between the target operating condition information and the actual operating condition information corresponding to the sample operating condition parameters, the model parameters of the initial model are adjusted until the initial model meets the iteration cutoff conditions, and the initial model at this time is used as the decision tree model.
[0153] It should be noted that: the working condition identification device provided in the above embodiment only uses the division of the above functional modules as an example to illustrate when identifying the working condition. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the working condition identification device provided in the above embodiment and the working condition identification method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0154] Through the working condition identification device provided by the present application, when a pressure anomaly occurs, the computer device can determine the target station field where the pressure anomaly occurs, and input the working condition parameters of the target station field into the decision tree model corresponding to the target station field. The decision tree model corresponding to the target station field classifies and predicts based on the working condition parameters of the target station field, and determines the working condition information of the target station field. The staff can quickly determine whether the working condition corresponding to the pressure anomaly is a normal working condition or an abnormal working condition based on the prediction results of the decision tree model, which reduces the burden on the staff and improves the efficiency of working condition identification. When an abnormal working condition occurs, the staff can also quickly determine the location and type of the abnormal working condition, which is convenient for subsequent maintenance and improves the efficiency of working condition processing.
[0155] Fig.15 15 is a schematic diagram of a computer device provided in an embodiment of the present application. The computer device 1500 may be a laptop computer or a desktop computer. The computer device 1500 may also be called a user device, a portable computer device, a laptop computer device, a desktop computer device, or other names.
[0156] Typically, the computer device 1500 includes: one or more processors 1501 and one or more memories 1502 .
[0157] The processor 1501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1501 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1501 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 a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1501 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. In some embodiments, the processor 1501 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0158] The memory 1502 may include one or more computer-readable storage media, which may be non-transitory. The memory 1502 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1502 is used to store at least one instruction, which is used to be executed by the processor 1501 to implement the working condition identification method provided in the method embodiment of the present application.
[0159] In some embodiments, the computer device 1500 may also optionally include: a peripheral device interface 1503 and at least one peripheral device. The processor 1501, the memory 1502 and the peripheral device interface 1503 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1503 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1504, a display screen 1505, a camera 1506, an audio circuit 1507, a positioning component 1508 and a power supply 1509.
[0160] The peripheral device interface 1503 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1501 and the memory 1502. In some embodiments, the processor 1501, the memory 1502, and the peripheral device interface 1503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1501, the memory 1502, and the peripheral device interface 1503 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0161] The radio frequency circuit 1504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1504 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1504 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1504 can communicate with other computer devices through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1504 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0162] The display screen 1505 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1505 is a touch display screen, the display screen 1505 also has the ability to collect touch signals on the surface or above the surface of the display screen 1505. The touch signal can be input to the processor 1501 as a control signal for processing. At this time, the display screen 1505 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1505 can be one, and the front panel of the computer device 1500 is set; in other embodiments, the display screen 1505 can be at least two, which are respectively set on different surfaces of the computer device 1500 or are folded; in some other embodiments, the display screen 1505 can be a flexible display screen, which is set on the curved surface or folded surface of the computer device 1500. Even, the display screen 1505 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1505 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0163] The camera assembly 1506 is used to capture images or videos. Optionally, the camera assembly 1506 includes a front camera and a rear camera. Typically, the front camera is set on the front panel of the computer device, and the rear camera is set on the back of the computer device. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1506 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0164] The audio circuit 1507 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1501 for processing, or input them into the radio frequency circuit 1504 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the computer device 1500. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1501 or the radio frequency circuit 1504 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1507 may also include a headphone jack.
[0165] Positioning component 1508 is used to locate the current geographic location of computer device 1500 to implement navigation or LBS (Location Based Service). Positioning component 1508 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system, Russia's Grenas system or the European Union's Galileo system.
[0166] The power supply 1509 is used to power various components in the computer device 1500. The power supply 1509 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1509 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0167] In some embodiments, the computer device 1500 further includes one or more sensors 1510 , including but not limited to: an acceleration sensor 1511 , a gyroscope sensor 1512 , a pressure sensor 1513 , a fingerprint sensor 1514 , an optical sensor 1515 , and a proximity sensor 1516 .
[0168] The acceleration sensor 1511 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the computer device 1500. For example, the acceleration sensor 1511 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1501 can control the display screen 1505 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1511. The acceleration sensor 1511 can also be used to collect game or user motion data.
[0169] The gyro sensor 1512 can detect the body direction and rotation angle of the computer device 1500, and the gyro sensor 1512 can cooperate with the acceleration sensor 1511 to collect the user's 3D actions on the computer device 1500. The processor 1501 can implement the following functions based on the data collected by the gyro sensor 1512: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0170] The pressure sensor 1513 can be set on the side frame of the computer device 1500 and / or the lower layer of the display screen 1505. When the pressure sensor 1513 is set on the side frame of the computer device 1500, it can detect the user's grip signal of the computer device 1500, and the processor 1501 performs left and right hand recognition or shortcut operations according to the grip signal collected by the pressure sensor 1513. When the pressure sensor 1513 is set on the lower layer of the display screen 1505, the processor 1501 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 1505. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0171] The fingerprint sensor 1514 is used to collect the user's fingerprint, and the processor 1501 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 1514, or the fingerprint sensor 1514 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 1501 authorizes the user to perform relevant sensitive operations, which include unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 1514 can be set on the front, back, or side of the computer device 1500. When a physical button or a manufacturer logo is set on the computer device 1500, the fingerprint sensor 1514 can be integrated with the physical button or the manufacturer logo.
[0172] The optical sensor 1515 is used to collect the ambient light intensity. In one embodiment, the processor 1501 can control the display brightness of the display screen 1505 according to the ambient light intensity collected by the optical sensor 1515. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1505 is increased; when the ambient light intensity is low, the display brightness of the display screen 1505 is decreased. In another embodiment, the processor 1501 can also dynamically adjust the shooting parameters of the camera assembly 1506 according to the ambient light intensity collected by the optical sensor 1515.
[0173] The proximity sensor 1516, also called a distance sensor, is usually disposed on the front panel of the computer device 1500. The proximity sensor 1516 is used to collect the distance between the user and the front of the computer device 1500. In one embodiment, when the proximity sensor 1516 detects that the distance between the user and the front of the computer device 1500 is gradually decreasing, the processor 1501 controls the display screen 1505 to switch from the screen-on state to the screen-off state; when the proximity sensor 1516 detects that the distance between the user and the front of the computer device 1500 is gradually increasing, the processor 1501 controls the display screen 1505 to switch from the screen-off state to the screen-on state.
[0174] Those skilled in the art will understand that Fig.15 The structure shown in the figure does not constitute a limitation on the computer device 1500, and the computer device 1500 may include more or less components than shown in the figure, or combine some components, or adopt a different arrangement of components.
[0175] In an exemplary embodiment, a storage medium is also provided, such as a memory including instructions, and the instructions can be executed by a processor to complete the working condition identification method in the above embodiment. For example, the storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device.
[0176] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0177] The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A method for identifying a working condition, characterized in that: The method comprises: Real-time detection of operating parameters of multiple stations along the pipeline, the operating parameters including inlet and outlet pressures and inlet and outlet flow rates of liquid when flowing through the multiple stations, and valve openings of multiple valves in the multiple stations; If the inlet and outlet pressure of the liquid in the pipeline flowing through any station is abnormal pressure, the any station is determined as a target station, and the abnormal pressure is that the change of the inlet and outlet pressure when the liquid in the pipeline flows through the station exceeds the target change; If there is an operation record within the target historical time period, determine the state change of the oil pump of the target station; if the state of the oil pump changes, obtain the pressure change value of the manifold connected to the oil pump; if the pressure change value of the manifold is greater than the target change value, determine the operating condition information of the target station as the start of the oil pump; or, if the pressure change value of the manifold is less than the target change value, determine the operating condition information of the target station as the trial operation of the oil pump; if the state of the oil pump does not change, determine the opening change of any first valve based on the operating condition parameters; if the opening change of any first valve is greater than the target opening change, determine the operating condition information of the target station as the first valve opening adjustment; if the state of the oil pump does not change and the opening of multiple first valves does not change, determine the operating condition information of the target station based on the operating condition parameters and the decision tree model corresponding to the target station; If there is no operation record within the target historical time period, the operating condition parameters of the target station are input into the decision tree model, and the decision tree model classifies the operating condition parameters of the target station based on multiple nodes to determine the operating condition information of the target station; The nodes in the decision tree model include root nodes and leaf nodes, and the nodes are used to represent conditions for classifying the operating condition parameters.
2. The method according to claim 1, characterized in that If the inlet and outlet pressure of the liquid in the pipeline flowing through any station is abnormal pressure, determining any station as a target station includes: Based on the operating condition parameters, determining the occurrence time of the abnormal pressure; The station where the abnormal pressure occurs earliest is determined as the target station.
3. The method according to claim 1, characterized in that: The method further comprises, The sample operating condition parameters are input into the initial model, and the initial model performs prediction based on the sample operating condition parameters to obtain the probability that the target station belongs to multiple operating condition information, and the operating condition information with the probability of meeting the target condition is determined as the target operating condition information of the target station, and based on the difference between the target operating condition information and the actual operating condition information corresponding to the sample operating condition parameters, the model parameters of the initial model are adjusted until the initial model meets the iteration cutoff condition, and the initial model at this time is used as the decision tree model.
4. A working condition identification device, characterized in that: The device comprises: A real-time monitoring module, used to detect the operating parameters of multiple stations along the pipeline in real time, wherein the operating parameters include the inlet and outlet pressures and inlet and outlet flow rates of the liquid when flowing through the multiple stations, and the valve openings of multiple valves in the multiple stations; A target station determination module, used for determining any station as a target station if the inlet and outlet pressure of the liquid in the pipeline flowing through any station is abnormal pressure, wherein the abnormal pressure is that the change of the inlet and outlet pressure when the liquid in the pipeline flows through the station exceeds the target change; A first operating condition information determination module is used to determine the state change of the oil pump of the target station if there is an operation record within the target historical time period. If the state of the oil pump changes, the pressure change value of the manifold connected to the oil pump is obtained. If the pressure change value of the manifold is greater than the target change value, the operating condition information of the target station is determined as the start of the oil pump, or, if the pressure change value of the manifold is less than the target change value, the operating condition information of the target station is determined as the test operation of the oil pump; if the state of the oil pump does not change, the opening change of any first valve is determined based on the operating condition parameters, and if the opening change of any first valve is greater than the target opening change, the operating condition information of the target station is determined as the first valve opening adjustment; if the state of the oil pump does not change and the opening of multiple first valves does not change, the operating condition information of the target station is determined based on the operating condition parameters and the decision tree model corresponding to the target station; An input module is used to input the operating parameters of the target station into the decision tree model if there is no operation record within the target historical time period, and the decision tree model classifies the operating parameters of the target station based on multiple nodes to determine the operating information of the target station, wherein the nodes in the decision tree model include root nodes and leaf nodes, which are used to represent the conditions for classifying the operating parameters.
5. A computer device, characterized in that: The computer device includes one or more processors and one or more memories, wherein the one or more memories store at least one instruction, and the instruction is loaded and executed by the one or more processors to implement the operations performed by the operating condition identification method according to any one of claims 1 to 3.
6. A storage medium, characterized in that: The storage medium stores at least one instruction, which is loaded and executed by the processor to implement the operation performed by the operating condition identification method according to any one of claims 1 to 3.
