Abnormal node terminal alarm method, electronic device and computer readable medium
By constructing a node attribute table containing node paths and optimizing alarm logic, the problem of wasting computing and communication resources when the master node terminal alarms when an abnormal node terminal is alarmed is solved, and alarm efficiency is improved.
Patent Information
- Application Number
- CN202311506755.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-13
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-11-13
AI Technical Summary
In the existing technology, when an abnormal node terminal alarms, the node attribute table constructed by the master node terminal does not consider the node path, resulting in a waste of computing resources, and when the preset value threshold is small, frequent alarms result in a waste of communication resources.
By obtaining the basic information of each first node and second node, a node information tree and an initial node attribute table are constructed, including node paths, to reduce computing resource traversal and optimize alarm logic to reduce communication resource consumption.
It effectively reduces the waste of computing resources and the consumption of communication resources, and improves the efficiency of abnormal node terminal alarms.
Smart Images

Figure CN117675507B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to an abnormal node terminal alarm method, an electronic device, and a computer-readable medium. Background Art
[0002] When the value attribute value of the second node terminal is small, it is difficult to obtain raw materials for producing power equipment from the first node terminal, which makes it difficult for the second node terminal to produce power equipment. After the main node terminal identifies the abnormal second node terminal (with a small value attribute value), it can alarm the abnormal node terminal to increase the value attribute value, so as to facilitate the subsequent second node terminal to obtain raw materials from the first node terminal to produce power equipment. At present, the method usually adopted for alarming abnormal power terminals is: first, the main node terminal constructs a node attribute table according to the relationship between each first node terminal and each second node terminal. Then, the main node terminal receives the value attribute value sent by the second node terminal and the preset value threshold sent by the first node terminal. Then, the main node terminal alarms the second node terminal whose value attribute value is less than the preset value threshold.
[0003] However, the above method usually has the following technical problems:
[0004] First, the node attribute table constructed by the master node terminal does not take into account the node path. When the master node terminal receives the value attribute value of the first node terminal and the preset value threshold of the second node terminal, it needs to consume a lot of computing resources to re-traverse the information of each first node terminal and the second node terminal to update the node attribute table, resulting in a waste of computing resources;
[0005] Second, when the preset value threshold is small, it is necessary to consume communication resources to frequently alert the second node terminal in order to obtain the value attribute value from the second node terminal, resulting in a waste of communication resources.
[0006] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention
[0007] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.
[0008] Some embodiments of the present disclosure propose an abnormal node terminal alarm method, an electronic device, and a computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.
[0009] In a first aspect, some embodiments of the present disclosure provide an abnormal node terminal alarm method, the method comprising: the master node terminal obtains the first node basic information of each first node terminal to obtain a first node basic information set, wherein the first node basic information in the first node basic information set includes: node identification, parent node identification; the master node terminal obtains the second node basic information of each second node terminal to obtain a second node basic information set, wherein the second node basic information in the second node basic information set includes: node identification, parent node identification, and initial value attribute information; the master node terminal determines a node information tree and an initial node attribute table based on the first node basic information set and the second node basic information set, wherein the initial node attribute table includes: initial node attribute information, and the initial node attribute information includes: node identification, node path; the master node terminal responds to receiving the first node basic information set. The value threshold information sent by the point terminal is used to update the above-mentioned initial node attribute table to generate a first node attribute table, and the above-mentioned first node attribute table is sent to the first node terminal; the first node terminal responds to receiving the first node attribute table sent by the above-mentioned master node terminal, and sends value reminder information to each second node terminal that meets the preset reminder condition; the first node terminal responds to receiving the value attribute information sent by the second node terminal, updates the above-mentioned first node attribute table to generate a second node attribute table, and sends the above-mentioned second node attribute table and the above-mentioned value attribute information to the above-mentioned master node terminal; the above-mentioned master node terminal responds to receiving the value attribute information sent by the first node terminal, and stores the above-mentioned value attribute information in a database; the above-mentioned master node terminal responds to receiving the second node attribute table sent by the first node terminal, and performs alarm processing on each second node terminal that meets the preset alarm condition.
[0010] In a second aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.
[0011] In a third aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the first aspect is implemented.
[0012] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the abnormal node terminal alarm method of some embodiments of the present disclosure, the waste of computing resources can be reduced. Specifically, the reason for wasting computing resources is that the node attribute table constructed by the master node terminal does not take into account the node path. When the master node terminal receives the value attribute value of the first node terminal and the preset value threshold of the second node terminal, it needs to consume a lot of computing resources to re-traverse the information of each first node terminal and the second node terminal to update the node attribute table. Based on this, the abnormal node terminal alarm method of some embodiments of the present disclosure, first, the master node terminal obtains the first node basic information of each first node terminal to obtain the first node basic information set. Among them, the first node basic information in the above-mentioned first node basic information set includes: node identification, parent node identification. Thus, the basic information of each first node including the node identification and the parent node identification can be obtained, so as to subsequently determine the node information tree and the initial node attribute table. Secondly, the above-mentioned master node terminal obtains the second node basic information of each second node terminal to obtain the second node basic information set. Among them, the second node basic information in the above-mentioned second node basic information set includes: node identification, parent node identification, and initial value attribute information. Thus, the basic information of each second node including the node identifier and the parent node identifier can be obtained, so as to subsequently determine the node information tree and the initial node attribute table. Then, the master node terminal determines the node information tree and the initial node attribute table based on the first node basic information set and the second node basic information set. Among them, the initial node attribute table includes: initial node attribute information, and the initial node attribute information includes: node identifier and node path. Thus, the node path between the first node basic information and the second node basic information can be determined according to the node identifier and the parent node identifier included in the first node basic information set and the node identifier and the parent node identifier included in the second node basic information set, so as to obtain the node information tree and the initial node attribute table. Then, in response to receiving the value threshold information sent by the first node terminal, the master node terminal updates the initial node attribute table to generate the first node attribute table, and sends the first node attribute table to the first node terminal. Thus, when the value threshold information of the first node terminal is received, according to the node path included in the initial node attribute table, each initial node attribute information corresponding to the first node terminal can be found from the initial node attribute table with less computing resources, and each initial node attribute information found is updated to obtain the first node attribute table. Then, in response to receiving the first node attribute table sent by the above-mentioned master node terminal, the first node terminal sends value reminder information to each second node terminal that meets the preset reminder condition. Thus, the first node terminal can send value reminder information to each second node terminal to remind the second node terminal to send the value attribute value.Subsequently, in response to receiving the value attribute information sent by the second node terminal, the first node terminal updates the first node attribute table to generate a second node attribute table, and sends the second node attribute table and the value attribute information to the master node terminal. Thus, after the first node terminal receives the value attribute information sent by the second node terminal, it can find the first node attribute information corresponding to the second node terminal from the first node attribute table with less computing resources according to the node identifier and node path included in the first node attribute table, and update the first node attribute information found to obtain the second node attribute table. Afterwards, in response to receiving the value attribute information sent by the first node terminal, the master node terminal stores the value attribute information in the database. Finally, in response to receiving the second node attribute table sent by the first node terminal, the master node terminal performs an alarm process on each second node terminal that meets the preset alarm condition. Thus, the master node terminal can perform an alarm process on the second node terminal that has not sent the value attribute information for a long time. Therefore, the master node terminal can reduce the waste of computing resources by constructing a node attribute information table including a node path. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0014] Figure 1 is a flow chart of some embodiments of the abnormal node terminal alarm method according to the present disclosure;
[0015] Figure 2 It is a structural schematic diagram of an initial node information tree according to the abnormal node terminal alarm method disclosed in the present invention;
[0016] Figure 3 It is a structural schematic diagram of a target node information tree according to the abnormal node terminal alarm method disclosed in the present invention;
[0017] Figure 4 It is a schematic diagram of the structure of a node information tree according to the abnormal node terminal alarm method disclosed in the present invention;
[0018] Figure 5 It is a structural schematic diagram of an initial node attribute table according to the abnormal node terminal alarm method disclosed in the present invention;
[0019] Figure 6 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0020] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0021] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0022] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0023] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0024] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0025] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0026] refer to Figure 1 , shows a process 100 of some embodiments of the abnormal node terminal alarm method according to the present disclosure. The abnormal node terminal alarm method includes the following steps:
[0027] Step 101: The master node terminal obtains the first node basic information of each first node terminal to obtain a first node basic information set.
[0028] In some embodiments, the master node terminal can obtain the first node basic information of each first node terminal from the terminal device through a wired connection or a wireless connection to obtain a first node basic information set. Among them, the first node basic information in the above-mentioned first node basic information set may include but is not limited to: node identification, parent node identification. Here, the master node terminal may be a terminal that monitors the first node terminal and the second node terminal. The first node terminal may be a terminal that transports raw materials of power equipment to the second node terminal. The node identification can uniquely identify a first node terminal. The parent node identification can represent the terminal of the parent node of the first node terminal. For example, the power equipment may be but is not limited to: a transformer, a generator. The raw materials of the power equipment may be but are not limited to: copper, aluminum, zinc.
[0029] Step 102: The master node terminal obtains the second node basic information of each second node terminal to obtain a second node basic information set.
[0030] In some embodiments, the master node terminal may obtain the second node basic information of each second node terminal from the terminal device through a wired connection or a wireless connection to obtain a second node basic information set. The second node basic information in the second node basic information set may include but is not limited to at least one of the following: node identification, parent node identification, and initial value attribute information. The second node terminal may be a terminal that receives the raw materials of the power equipment transported by the first node terminal after sending a value attribute value (amount) to the first node terminal. The parent node identification may represent the terminal of the parent node of the second node terminal. The initial value attribute information may represent the initial value attribute value (initial balance) of the second node terminal.
[0031] Step 103: The master node terminal determines a node information tree and an initial node attribute table based on the first node basic information set and the second node basic information set.
[0032] In some embodiments, the master node terminal may determine a node information tree and an initial node attribute table based on the first node basic information set and the second node basic information set. The initial node attribute table may include: initial node attribute information. The initial node attribute information may include but is not limited to at least one of the following: node identification, node path.
[0033] In practice, based on the first node basic information set and the second node basic information set, the master node terminal may determine the node information tree and the initial node attribute table through the following steps:
[0034] The first step is to determine at least one first node basic information in the above-mentioned first node basic information set that meets the preset root node condition as the initial node information tree. The above-mentioned preset root node condition may be: the parent node identifier included in the first node basic information is empty. The above-mentioned initial node information tree may include at least one initial node information. Here, the initial node information may correspond to the first node basic information. The initial node information may include but is not limited to: node identifier. In practice, the above-mentioned master node terminal may determine at least one first node basic information in the above-mentioned first node basic information set that meets the preset root node condition as at least one root node of the initial node information tree to obtain the initial node information tree. The initial node information tree may refer to Figure 2 A schematic diagram of the structure of the initial node information tree is shown. Figure 2 Node A 201 and node B 202 in the diagram may be first node basic information in the first node basic information set that meets a preset root node condition.
[0035] In the second step, for the first node basic information set, the second node basic information set and the initial node information tree, the following determination sub-steps are performed:
[0036] In the first sub-step, each first node basic information satisfying the first preset slave node condition in the first node basic information set is determined as the first target node basic information set. The first preset slave node condition may be: the parent node identifier included in the first node basic information is the same as the node identifier included in the initial node information included in the initial node information tree. The first target basic information in the first target node basic information set may include but is not limited to at least one of the following: node identifier, parent node identifier.
[0037] The second sub-step is to determine each second node basic information satisfying the second preset slave node condition in the second node basic information set as the second target node basic information set. The second preset slave node condition may be: the parent node identifier included in the second node basic information is the same as the node identifier included in the initial node information included in the initial node information tree. The second target basic information in the second target node basic information set may include but is not limited to at least one of the following: node identifier, parent node identifier.
[0038] The third sub-step is to determine the target node information tree based on the first target node basic information set, the second target node basic information set and the initial node information tree. In practice, the above-mentioned master node terminal can use the initial node information included in the initial node information tree, the first target node basic information in the first target node basic information set, and the second target node basic information in the second target node basic information set as nodes, connect from the parent node to the child node, and obtain the target node information tree. Here, the parent node can be the initial node information included in the initial node information tree. The child node can be the first target node basic information in the first target node basic information set or the second target node basic information in the second target node basic information set. The parent node corresponding to the child node can be: the initial node information corresponding to the parent node identifier included in the first target node basic information or the second target node basic information.
[0039] Among them, the target node information tree can refer to Figure 3 A schematic diagram of the structure of the target node information tree is shown. Figure 3 Node A 301 and Node B 302 in the figure may be nodes of the initial node information tree packet. Node C 303 and Node E 305 may be first target node basic information in the first target node basic information set. Node D 304 may be second target node basic information in the second target node basic information set. The parent node identifier corresponding to Node C 303 may correspond to Node A 301. The parent node identifier corresponding to Node D 304 may correspond to Node A 301. The parent node identifier corresponding to Node E 305 may correspond to Node B 302.
[0040] The fourth sub-step is to remove each first target node basic information in the first target node basic information set included in the first node basic information set to obtain a first removed node basic information set.
[0041] The fifth sub-step is to remove each second target node basic information in the second target node basic information set included in the second node basic information set to obtain a second removed node basic information set.
[0042] In a sixth sub-step, in response to determining that the first and second basic node information sets for removal satisfy a preset completion condition, the target node information tree is determined to be a node information tree. The preset completion condition may be that both the first and second basic node information sets for removal are empty.
[0043] The third step is to determine the initial node attribute table based on the above node information tree. The initial node attribute table may include: initial node attribute information. The initial node attribute information may include but is not limited to at least one of the following: subtree identifier, node identifier, node path, value attribute value, value threshold, overtime, and total value attribute value. The subtree identifier can uniquely determine a subtree in a node information tree. The node identifier included in the initial node attribute table may correspond to a leaf node in the node information tree. The node path may be a path from the root node of the subtree corresponding to the node identifier to the node corresponding to the node identifier. The value attribute value may be a numerical value represented by the initial value attribute information included in the second node basic information corresponding to the node identifier. The value threshold may represent the value attribute value that the first node terminal needs to collect from the second node terminal. The overtime may represent: when the value attribute value is less than the value threshold, the number of days between the time when the value threshold is updated and the current time. The total value attribute value may represent the sum of the value attribute values corresponding to each node included in a subtree.
[0044] In practice, the node information tree can refer to Figure 4 The schematic diagram of the node information tree is shown in FIG. The initial node attribute table can be referred to Figure 5 A schematic diagram of the structure of the initial node attribute table is shown.
[0045] Figure 4 Node A 401, Node B 402, Node C 403, Node E 405 may be the first node basic information in the first node basic information set. Node D 404, Node F 406, Node G 407, Node H 408, Node I 409 may be the second node basic information in the second node basic information set. The parent node identifiers corresponding to Node C 403 and Node D 404 may correspond to Node A 401. The parent node identifier corresponding to Node E 405 may correspond to Node B 402. The parent node identifier corresponding to Node F 406 may correspond to Node C 403. The parent node identifiers corresponding to Node G 407, Node H 408, Node I 409 may correspond to Node E 405. Among them, Node A 401, Node C 403, Node D 404, Node F 406 constitute a subtree in the node information tree. Node B 402, Node E 405, Node G 407, Node H 408, Node I 409 constitute another subtree in the node information tree.
[0046] The initial node attribute information can be found at Figure 5 Shown are 501 “1, D, AD, 10, 0, 0, 12”, 502 “1, F, ACF, 2, 0, 0, 12”, 503 “2, G, BEG, 20, 0, 0, 33”, 504 “2, H, BEH, 3, 0, 0, 33”, 505 “2, I, BEI, 10, 0, 0, 33”.
[0047] Optionally, in response to determining that the first removed node basic information set and the second removed node basic information set do not meet the above-mentioned preset completion conditions, the first removed node basic information set is determined as the first node basic information set, the second removed node basic information set is determined as the second node basic information set, and the target node information tree is determined as the initial node information tree, so as to perform the above-mentioned determination step again.
[0048] In some embodiments, the above-mentioned master node terminal can, in response to determining that the first node removal basic information set and the second node removal basic information set do not meet the above-mentioned preset completion conditions, determine the first node removal basic information set as the first node basic information set, the second node removal basic information set as the second node basic information set, and the target node information tree as the initial node information tree, so as to perform the above-mentioned determination steps again.
[0049] Optionally, in response to receiving the node transfer information sent by the second node terminal, the following processing steps are performed:
[0050] The first step is to determine the node information corresponding to the node identifier included in the node transfer information in the node information tree as the target transfer node information.
[0051] In some embodiments, the master node terminal may determine the node information corresponding to the node identifier included in the node transfer information in the node information tree as the target transfer node information. The node transfer information may include but is not limited to at least one of the following: node identifier, parent node identifier. The node information tree may include but is not limited to: node information. The node information may include but is not limited to at least one of the following: node identifier, parent node identifier.
[0052] The second step is to delete the target transfer node information from the node information tree.
[0053] In some embodiments, the master node terminal may delete the target transfer node information from the node information tree.
[0054] The third step is to update the deleted node information tree based on the parent node identifier and the target transfer node information included in the node transfer information to obtain an updated node information tree.
[0055] In some embodiments, the master node terminal may update the deleted node information tree based on the parent node identifier and the target transfer node information included in the node transfer information to obtain an updated node information tree. In practice, the master node terminal may determine the transfer node information as: a child node of the node information corresponding to the parent node identifier included in the node transfer information in the deleted node information tree. For example, the node information tree may refer to Figure 4 For example, when the node transfer information includes a node identifier, the node identifier may correspond to Figure 4 When the parent node identifier of node G 407 corresponds to node C 403 , the master node terminal may convert node G from a child node of node E to a child node of node C to update the node information tree.
[0056] The fourth step is to determine the updated node information tree as the node information tree.
[0057] In some embodiments, the master node terminal may determine the updated node information tree as the node information tree.
[0058] The fifth step is to update the initial node attribute table based on the determined node information tree to obtain the target node attribute table.
[0059] In some embodiments, the master node terminal may update the initial node attribute table based on the determined node information tree to obtain a target node attribute table. In practice, first, the master node terminal may update the initial node attribute information and the node path included in the initial node attribute table, which correspond to the node identifier included in the node transfer information, to: the node path corresponding to the node identifier included in the node transfer information in the determined node information tree. Then, for each node identifier included in the initial node attribute table, the master node terminal may update the total value attribute value corresponding to the node identifier to: the sum of the value attribute values corresponding to the subtree corresponding to the node identifier in the determined node information tree, and the nodes included. For example, the initial node attribute table may refer to Figure 5 The above master node terminal can Figure 5 Update 501 to "1, D, AD, 10, 0, 0, 32", update 502 to "1, F, ACF, 2, 0, 0, 32", update 503 to "1, G, ACG, 20, 0, 0, 32", update 504 to "2, H, BEH, 3, 0, 0, 13", and update 505 to "2, I, BEI, 10, 0, 0, 13" to obtain the target node attribute table.
[0060] Step 6: Determine the above target node attribute table as the initial node attribute table.
[0061] In some embodiments, the master node terminal may determine the target node attribute table as the initial node attribute table.
[0062] Thus, when the node path of the second node terminal changes, the above-mentioned master node terminal can find each initial node attribute information corresponding to the original node path of the second node terminal and the changed node path from the initial node attribute table according to the node path included in the initial node attribute table, and then can update each initial node attribute information found. Instead of updating the initial node attribute information included in the initial node attribute table by traversing the changed information of the second node terminal and each first node basic information and each second node basic information, the waste of computing resources can be reduced.
[0063] Step 104: In response to receiving the value threshold information sent by the first node terminal, the master node terminal updates the initial node attribute table to generate a first node attribute table, and sends the first node attribute table to the first node terminal.
[0064] In some embodiments, in response to receiving the value threshold information sent by the first node terminal, the master node terminal updates the initial node attribute table to generate a first node attribute table, and sends the first node attribute table to the first node terminal. The value threshold information may represent the value attribute value that the first node terminal needs to collect from each second node terminal. The first node attribute table may include first node attribute information. The first node attribute information may include but is not limited to at least one of the following: subtree identifier, node identifier, node path, value attribute value, value threshold, overtime duration, and total value attribute value. In practice, in response to receiving the value threshold information sent by the first node terminal, the master node terminal may update the value threshold included in each initial node attribute information corresponding to the first node terminal in the initial node attribute table to: the value attribute value represented by the value threshold information and the value threshold included in each initial node attribute information corresponding to the first node terminal in the initial node attribute table, so as to update the initial node attribute table and obtain the first node attribute table. For example, the initial node attribute table may refer to Figure 5 For example, when receiving the value threshold information representation 20 sent by the first node terminal corresponding to node E 405, the master node terminal may Figure 5 Update 503 to "2, G, BEG, 20, 20, 0, 33", update 504 to "2, H, BEH, 3, 20, 0, 33", and update 505 to "2, I, BEI, 10, 20, 0, 33" to obtain the first node attribute table.
[0065] Optionally, the above value threshold information can be obtained through the following steps:
[0066] In the first step, the first node terminal obtains the initial value threshold information of each time granularity within a preset time period to obtain an initial value threshold information sequence.
[0067] In some embodiments, the first node terminal can obtain the initial value threshold information of each time granularity within a preset time period from the terminal device through a wired connection or a wireless connection to obtain an initial value threshold information sequence. Among them, the initial value threshold information in the above initial value threshold information sequence may include but is not limited to at least one of the following: initial value threshold, power consumption, node location information, weather information. The initial value threshold can represent the value attribute value that the first node terminal needs to collect from each second node terminal. The power consumption can be the amount of power transported to the second node terminal. The node location information can represent the location of the first node terminal in the geographic coordinate system. The weather information can represent the weather conditions of the day (for example, the weather conditions may include but are not limited to: temperature, humidity). For example, the preset time period can be but is not limited to: 2022.1.1-2023.1.1, 2022.6.1-2023.6.1. The time granularity can be one month.
[0068] In the second step, the first node terminal performs data cleaning processing on the above-mentioned initial value threshold information sequence to generate a target value threshold information sequence.
[0069] In some embodiments, the first node terminal may perform data cleaning on the initial value threshold information sequence to generate a target value threshold information sequence. In practice, the first node terminal may remove the information that is empty in the initial value threshold information sequence to obtain the target value threshold information sequence.
[0070] In the third step, the first node terminal inputs the target value threshold information sequence into a pre-trained value threshold generation model to obtain the value threshold information.
[0071] In some embodiments, the first node terminal may input the target value threshold information sequence into a pre-trained value threshold generation model to obtain value threshold information. The pre-trained value threshold generation model may be a neural network model that takes the target value threshold information sequence as input and the value threshold information as output. Here, the value threshold information may represent the predicted value attribute value that the first node terminal needs to collect from each second node terminal at the current time.
[0072] In the fourth step, the first node terminal stores the above value threshold information in a database.
[0073] In some embodiments, the first node terminal stores the value threshold information in a database, wherein the database may be a database storing value threshold information.
[0074] Thus, the value threshold information can be stored in the database so as to serve as a reference for the next production of value threshold information.
[0075] Optionally, the pre-trained value threshold generation model can be trained by the following steps:
[0076] The first step is to obtain the training sample set.
[0077] In some embodiments, the first node terminal may obtain the training sample set from the terminal device through a wired connection or a wireless connection. The training samples in the training sample set may include: a sample target value threshold information sequence and sample value threshold information.
[0078] The second step is to determine the initial value threshold generation model.
[0079] In some embodiments, the first node terminal may determine an initial value threshold generation model, wherein the initial value threshold generation model may include: a first initial generation model, an initial attention model, a second initial generation model, and a third initial generation model.
[0080] Here, the first initial generation model may be a model that takes a sample target value threshold information sequence as input and takes the first initial value generation information as output. The first initial generation model may be used to determine the average value of each sample target value threshold included in each sample target value threshold information in the sample target value threshold information sequence as the first initial value generation information.
[0081] The above-mentioned initial attention model may be an attention model that takes sample target value threshold information as input and initial value attention information as output. For example, the initial attention model may be a Self-Attention model. The initial value attention information may include: key information with high weight and non-key information with low weight. Key information may include but is not limited to at least one of the following: initial value threshold, power consumption. Non-key information may include but is not limited to at least one of the following: node location information, weather information. For example, a high weight may be 0.8. A low weight may be 0.2.
[0082] The second initial generation model can be a custom model that takes the initial value attention information sequence as input and the second initial value generation information as output. The custom model can include three layers:
[0083] The first layer, the input layer, is used to pass the initial value attention information sequence to the second layer.
[0084] The second layer, the processing layer, may include a first sub-model and a second sub-model. The first sub-model may be a neural network model that takes the initial value attention information sequence as input and the first value attribute value as output. The second sub-model may be a neural network model that takes the initial value attention information sequence as input and the second value attribute value as output. For example, the first sub-model may be a VAR model (vector autoregressive model). The second sub-model may be an ARIMA model (Autoregressive Integrated Moving Average Model).
[0085] The third layer, the output layer, is used to receive the outputs of the first sub-model and the second sub-model, and determine the average of the outputs of the first sub-model and the second sub-model as the second initial value generation information as the output of the entire custom model.
[0086] The third initial generation model may be a model that takes the first initial value generation information and the second initial value generation information as input and the initial value threshold information as output. The third initial generation model is used to: first, determine the product of the numerical value represented by the first initial value generation information and the first value weight as the first initial weight product. Then, determine the product of the numerical value represented by the second initial value generation information and the second value weight as the second initial weight product. Finally, determine the sum of the first initial weight product and the second initial weight product as the initial value threshold information. Here, the first value weight may be a pre-set weight corresponding to the first initial value generation information. The second value weight may be a pre-set weight corresponding to the second initial value generation information. For example, the first value weight may be 0.2. The second value weight may be 0.8.
[0087] The third step is to select training samples from the above training sample set.
[0088] In some embodiments, the first node terminal may select a training sample from the training sample set. In practice, the first node terminal may randomly select a training sample from the training sample set.
[0089] The fourth step is to input the sample target value threshold information sequence included in the selected training samples into the above-mentioned initial first initial generation model to obtain the first initial value generation information.
[0090] In some embodiments, the first node terminal may input the sample target value threshold information sequence included in the selected training sample into the above-mentioned initial first initial generation model to obtain the first initial value generation information.
[0091] The fifth step is to input the sample target value threshold information sequence included in the selected training samples into the above-mentioned initial attention model to obtain the initial value attention information sequence.
[0092] In some embodiments, the first node terminal may input the sample target value threshold information sequence included in the selected training sample into the above-mentioned initial attention model to obtain an initial value attention information sequence.
[0093] The sixth step is to input the above-mentioned initial value attention information sequence into the above-mentioned second initial generation model to obtain the second initial value generation information.
[0094] In some embodiments, the first node terminal may input the above-mentioned initial value attention information sequence into the above-mentioned second initial generation model to obtain the second initial value generation information.
[0095] The seventh step is to input the first initial value generation information and the second initial value generation information into the third initial generation model to obtain the initial value threshold information.
[0096] In some embodiments, the first node terminal may input the first initial value generation information and the second initial value generation information into the third initial generation model to obtain initial value threshold information.
[0097] In the eighth step, based on a preset loss function, the difference value between the initial value threshold information and the sample value threshold information included in the selected training sample is determined.
[0098] In some embodiments, based on a preset loss function, the first node terminal may determine the difference between the initial value threshold information and the sample value threshold information included in the selected training sample. The preset loss function may be, but is not limited to, mean square error loss function (MSE), hinge loss function, cross entropy loss function (CrossEntropy), 0-1 loss function, absolute value loss function, log loss function, square loss function, exponential loss function, etc.
[0099] In a ninth step, in response to determining that the difference value is greater than or equal to a preset difference value, the network parameters of the initial value threshold generation model are adjusted.
[0100] In some embodiments, in response to determining that the above difference value is greater than or equal to the preset difference value, the first node terminal can adjust the network parameters of the above initial value threshold generation model. For example, the difference between the above difference value and the preset difference value can be calculated. On this basis, the error value is passed forward from the last layer of the model using back propagation, stochastic gradient descent and other methods to adjust the parameters of each layer. Of course, as needed, the network freezing (dropout) method can also be used to keep the network parameters of some layers unchanged and not adjust them. There is no limitation on this. Among them, there is no limitation on the setting of the preset difference value. For example, the preset difference value can be 0.1.
[0101] Optionally, in response to determining that the difference value is less than the preset difference value, the initial value threshold generation model is determined as the trained value threshold generation model.
[0102] In some embodiments, the first node terminal may determine the initial value threshold generation model as the trained value threshold generation model in response to determining that the difference value is less than the preset difference value.
[0103] The optional technical content in step 104, as an inventive point of an embodiment of the present disclosure, solves the second technical problem mentioned in the background technology, "resulting in waste of communication resources". The factors that lead to waste of communication resources are often as follows: when the preset value threshold is small, it is necessary to consume communication resources to frequently alarm the second node terminal to obtain the value attribute value from the second node terminal. If the above factors are solved, the effect of reducing the waste of communication resources can be achieved. In order to achieve this effect, first, the first initial value generation information representing the average value of the historical value threshold can be obtained through the first initial generation model. Then, the key information in the target value threshold information can be given a high weight and the non-key information can be given a low weight through the initial attention model, so as to generate the second initial value generation information later. After that, a relatively accurate first value attribute value can be predicted based on the target value threshold information including the key information with high weight through the first sub-model, and a relatively accurate second value attribute value can be predicted based on the target value threshold information including the key information with high weight through the second sub-model. Then, a relatively accurate second initial value generation information can be obtained through the second initial generation model including the first sub-model and the second sub-model. Finally, considering the first initial value generation information and the relatively accurate second initial value generation information, relatively accurate initial value threshold information can be obtained through the third initial generation model. Thus, a relatively accurate value threshold generation model can be obtained by training the initial value threshold generation model including the first initial generation model, the initial attention model, the second initial generation model and the third initial generation model to obtain relatively accurate value threshold information. Thus, according to the relatively accurate value threshold information, the second node terminal can be more accurately warned with less communication resources consumed. Furthermore, the waste of communication resources can be reduced.
[0104] Step 105 , in response to receiving the first node attribute table sent by the master node terminal, the first node terminal sends value reminder information to each second node terminal that meets the preset reminder condition.
[0105] In some embodiments, the first node terminal sends value reminder information to each second node terminal that meets the preset reminder condition in response to receiving the first node attribute table sent by the master node terminal. The preset reminder condition may be: the node identifier corresponding to the second node terminal is the same as the first node attribute information in the first node attribute table whose value threshold is greater than the value attribute value, and the node identifier included. The value reminder information may be information indicating that "a value attribute value needs to occur".
[0106] Step 106: In response to receiving the value attribute information sent by the second node terminal, the first node terminal updates the first node attribute table to generate a second node attribute table, and sends the second node attribute table and the value attribute information to the master node terminal.
[0107] In some embodiments, in response to receiving the value attribute information sent by the second node terminal, the first node terminal updates the above-mentioned first node attribute table to generate a second node attribute table, and sends the above-mentioned second node attribute table and the above-mentioned value attribute information to the above-mentioned master node terminal. The value attribute information can represent the value attribute value (amount) sent by the second node terminal to the first node terminal. In practice, firstly, in response to receiving the value attribute information sent by the second node terminal, the first node terminal can update the value attribute value included in the first node attribute information corresponding to the node identifier corresponding to the second node terminal in the first node attribute table to: the sum of the value represented by the value attribute information and the value attribute value included in the first node attribute information, and update the total value attribute value included in each first node attribute information corresponding to the first node terminal to: the sum of the total value attribute value corresponding to the first node terminal and the value represented by the value attribute information, so as to update the first node attribute table and obtain the second node attribute table. Then, the first node terminal can send the second node attribute table and the value attribute information to the above-mentioned master node terminal. For example, the first node attribute table can refer to Figure 5 The initial node attribute table shown, when the first node terminal receives the identifier corresponding to the second node terminal, representing the node H, and the value attribute information received by the first node terminal represents 20, the first node terminal can Figure 5 Update 504 to "2, H, BEH, 23, 0, 0, 53", update 503 to "2, G, BEG, 20, 0, 0, 53", and update 505 to "2, I, BEI, 10, 0, 0, 53".
[0108] Step 107: In response to receiving the value attribute information sent by the first node terminal, the master node terminal stores the value attribute information in a database.
[0109] In some embodiments, the master node terminal stores the value attribute information in a database in response to receiving the value attribute information sent by the first node terminal. The database may be a database for storing value attribute information. Thus, the master node terminal can store the value attribute information so that the first node terminal or the second node terminal can view the corresponding value attribute information later.
[0110] Step 108: In response to receiving the second node attribute table sent by the first node terminal, the master node terminal performs alarm processing on each second node terminal that meets the preset alarm condition.
[0111] In some embodiments, the master node terminal performs an alarm process on each second node terminal that meets the preset alarm condition in response to receiving the second node attribute table sent by the first node terminal. The alarm process may be displaying warning text or controlling a speaker to emit a prompt sound. The preset alarm condition may be: the overdue duration included in the second node attribute table is greater than the preset duration. For example, the preset duration may be 30.
[0112] Optionally, the master node terminal may further perform the following steps:
[0113] In the first step, the master node terminal sends each value attribute information corresponding to the first node terminal to the first node terminal in response to receiving the first value viewing request sent by the first node terminal. The first value viewing request may indicate that the first node terminal wants to view each value attribute information sent by each second node terminal.
[0114] In the second step, the master node terminal sends each value attribute information corresponding to the second node terminal to the second node terminal in response to receiving the second value viewing request sent by the second node terminal. The second value viewing request may indicate that the second node terminal wants to view each value attribute information sent by the second node terminal.
[0115] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the abnormal node terminal alarm method of some embodiments of the present disclosure, the waste of computing resources can be reduced. Specifically, the reason for wasting computing resources is that the node attribute table constructed by the master node terminal does not take into account the node path. When the master node terminal receives the value attribute value of the first node terminal and the preset value threshold of the second node terminal, it needs to consume a lot of computing resources to re-traverse the information of each first node terminal and the second node terminal to update the node attribute table. Based on this, the abnormal node terminal alarm method of some embodiments of the present disclosure, first, the master node terminal obtains the first node basic information of each first node terminal to obtain the first node basic information set. Among them, the first node basic information in the above-mentioned first node basic information set includes: node identification, parent node identification. Thus, the basic information of each first node including the node identification and the parent node identification can be obtained, so as to subsequently determine the node information tree and the initial node attribute table. Secondly, the above-mentioned master node terminal obtains the second node basic information of each second node terminal to obtain the second node basic information set. Among them, the second node basic information in the above-mentioned second node basic information set includes: node identification, parent node identification, and initial value attribute information. Thus, the basic information of each second node including the node identifier and the parent node identifier can be obtained, so as to subsequently determine the node information tree and the initial node attribute table. Then, the master node terminal determines the node information tree and the initial node attribute table based on the first node basic information set and the second node basic information set. Among them, the initial node attribute table includes: initial node attribute information, and the initial node attribute information includes: node identifier and node path. Thus, the node path between the first node basic information and the second node basic information can be determined according to the node identifier and the parent node identifier included in the first node basic information set and the node identifier and the parent node identifier included in the second node basic information set, so as to obtain the node information tree and the initial node attribute table. Then, in response to receiving the value threshold information sent by the first node terminal, the master node terminal updates the initial node attribute table to generate the first node attribute table, and sends the first node attribute table to the first node terminal. Thus, when the value threshold information of the first node terminal is received, according to the node path included in the initial node attribute table, each initial node attribute information corresponding to the first node terminal can be found from the initial node attribute table with less computing resources, and each initial node attribute information found is updated to obtain the first node attribute table. Then, in response to receiving the first node attribute table sent by the above-mentioned master node terminal, the first node terminal sends value reminder information to each second node terminal that meets the preset reminder condition. Thus, the first node terminal can send value reminder information to each second node terminal to remind the second node terminal to send the value attribute value.Subsequently, in response to receiving the value attribute information sent by the second node terminal, the first node terminal updates the first node attribute table to generate a second node attribute table, and sends the second node attribute table and the value attribute information to the master node terminal. Thus, after the first node terminal receives the value attribute information sent by the second node terminal, it can find the first node attribute information corresponding to the second node terminal from the first node attribute table with less computing resources according to the node identifier and node path included in the first node attribute table, and update the first node attribute information found to obtain the second node attribute table. Afterwards, in response to receiving the value attribute information sent by the first node terminal, the master node terminal stores the value attribute information in the database. Finally, in response to receiving the second node attribute table sent by the first node terminal, the master node terminal performs an alarm process on each second node terminal that meets the preset alarm condition. Thus, the master node terminal can perform an alarm process on the second node terminal that has not sent the value attribute information for a long time. Therefore, the master node terminal can reduce the waste of computing resources by constructing a node attribute information table including a node path.
[0116] Reference below Figure 6 , which shows a schematic diagram of the structure of an electronic device (e.g., a master node terminal, a first node terminal) 600 suitable for implementing some embodiments of the present disclosure. The electronic devices in some embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0117] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0118] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 6 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0119] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.
[0120] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0121] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0122] The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist independently without being assembled into the electronic device. The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: the master node terminal obtains the first node basic information of each first node terminal to obtain the first node basic information set, wherein the first node basic information in the above-mentioned first node basic information set includes: node identification, parent node identification; the above-mentioned master node terminal obtains the second node basic information of each second node terminal to obtain the second node basic information set, wherein the second node basic information in the above-mentioned second node basic information set includes: node identification, parent node identification, initial value attribute information; the above-mentioned master node terminal determines the node information tree and the initial node attribute table based on the above-mentioned first node basic information set and the above-mentioned second node basic information set, wherein the above-mentioned initial node attribute table includes: initial node attribute information, and the initial node attribute information includes: node identification, node path; the above-mentioned master node terminal responds In response to receiving the value threshold information sent by the first node terminal, the initial node attribute table is updated to generate a first node attribute table, and the first node attribute table is sent to the first node terminal; in response to receiving the first node attribute table sent by the master node terminal, the first node terminal sends value reminder information to each second node terminal that meets the preset reminder condition; in response to receiving the value attribute information sent by the second node terminal, the first node terminal updates the first node attribute table to generate a second node attribute table, and sends the second node attribute table and the value attribute information to the master node terminal; in response to receiving the value attribute information sent by the first node terminal, the master node terminal stores the value attribute information in a database; in response to receiving the second node attribute table sent by the first node terminal, the master node terminal performs alarm processing on each second node terminal that meets the preset alarm condition.
[0123] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0124] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0125] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0126] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.
Claims
1. An abnormal node terminal alarm method, comprising: The master node terminal acquires the first node basic information of each first node terminal to obtain a first node basic information set, wherein the first node basic information in the first node basic information set includes: a node identifier and a parent node identifier, the master node terminal is a terminal that monitors the first node terminal and the second node terminal; the first node terminal is a terminal that transports raw materials of the power equipment to the second node terminal; The master node terminal acquires the second node basic information of each second node terminal to obtain a second node basic information set, wherein the second node basic information in the second node basic information set includes: a node identifier, a parent node identifier, and initial value attribute information, and the second node terminal is a terminal that receives the raw materials of the power equipment transported by the first node terminal after sending the value attribute value to the first node terminal; The master node terminal determines a node information tree and an initial node attribute table based on the first node basic information set and the second node basic information set, wherein the initial node attribute table includes: initial node attribute information, and the initial node attribute information includes: node identification and node path; In response to receiving the value threshold information sent by the first node terminal, the master node terminal updates the initial node attribute table to generate a first node attribute table, and sends the first node attribute table to the first node terminal; In response to receiving the first node attribute table sent by the master node terminal, the first node terminal sends value reminder information to each second node terminal that meets the preset reminder condition; In response to receiving the value attribute information sent by the second node terminal, the first node terminal updates the first node attribute table to generate a second node attribute table, and sends the second node attribute table and the value attribute information to the master node terminal; The master node terminal stores the value attribute information in a database in response to receiving the value attribute information sent by the first node terminal; The master node terminal performs alarm processing on each second node terminal that meets the preset alarm condition in response to receiving the second node attribute table sent by the first node terminal; The master node terminal updates the initial node attribute table in response to receiving the value threshold information sent by the first node terminal to generate a first node attribute table, and sends the first node attribute table to the first node terminal, including: The first node terminal obtains the initial value threshold information of each time granularity within a preset time period, and obtains an initial value threshold information sequence, wherein the initial value threshold information in the initial value threshold information sequence includes at least one of the following: initial value threshold, power consumption, node location information, and weather information, and the initial value threshold represents the value attribute value that the first node terminal needs to collect from each second node terminal; The first node terminal performs data cleaning processing on the initial value threshold information sequence to generate a target value threshold information sequence, wherein the first node terminal removes the information that is empty in the initial value threshold information sequence to obtain the target value threshold information sequence; The first node terminal inputs the target value threshold information sequence into a pre-trained value threshold generation model to obtain value threshold information, wherein the first node terminal inputs the target value threshold information sequence into a pre-trained value threshold generation model to obtain value threshold information, the pre-trained value threshold generation model is a neural network model with the target value threshold information sequence as input and the value threshold information as output, and the value threshold information represents the predicted value attribute value that the first node terminal needs to collect from each second node terminal at the current time; The first node terminal stores the value threshold information in a database.
2. The method according to claim 1, wherein: The method further comprises: The master node terminal sends each value attribute information corresponding to the first node terminal to the first node terminal in response to receiving the first value viewing request sent by the first node terminal; In response to receiving the second value viewing request sent by the second node terminal, the master node terminal sends each value attribute information corresponding to the second node terminal to the second node terminal.
3. The method according to claim 1, wherein: The determining of the node information tree and the initial node attribute table based on the first node basic information set and the second node basic information set includes: Determine at least one first node basic information satisfying a preset root node condition in the first node basic information set as an initial node information tree, wherein the preset root node condition is: a parent node identifier included in the first node basic information is empty; For the first node basic information set, the second node basic information set and the initial node information tree, the following determination steps are performed: Determine each first node basic information satisfying the first preset slave node condition in the first node basic information set as a first target node basic information set; Determine each second node basic information satisfying the second preset slave node condition in the second node basic information set as a second target node basic information set; Determine a target node information tree based on the first target node basic information set, the second target node basic information set and the initial node information tree; Removing each first target node basic information in the first target node basic information set included in the first node basic information set to obtain a first removed node basic information set; Removing each second target node basic information in the second target node basic information set included in the second node basic information set to obtain a second removed node basic information set; In response to determining that the first removed node basic information set and the second removed node basic information set meet a preset completion condition, determining the target node information tree as the node information tree; Based on the node information tree, an initial node attribute table is determined.
4. The method according to claim 3, wherein: The method further comprises: In response to determining that the first node removal basic information set and the second node removal basic information set do not meet the preset completion condition, the first node removal basic information set is determined as the first node basic information set, the second node removal basic information set is determined as the second node basic information set, and the target node information tree is determined as the initial node information tree, so as to perform the determination step again.
5. The method according to claim 4, wherein: The method further comprises: In response to receiving the node transfer information sent by the second node terminal, the following processing steps are performed: Determine the node information corresponding to the node identifier included in the node transfer information in the node information tree as the target transfer node information, wherein the node transfer information includes: a node identifier and a parent node identifier, and the node information tree includes: node information; Deleting the target transfer node information from the node information tree; Based on the parent node identifier and the target transfer node information included in the node transfer information, updating the deleted node information tree to obtain an updated node information tree; Determine the updated node information tree as the node information tree; Based on the determined node information tree, the initial node attribute table is updated to obtain a target node attribute table; The target node attribute table is determined as the initial node attribute table.
6. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as claimed in any one of claims 1 to 5.
7. A computer readable medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
ONU fault diagnosis method based on decision-making tree
CN107911762A
Decision-making method and device for data service, electronic equipment and storage medium
CN112329874A
