Power cable state monitoring method and device and computer equipment
In power cable monitoring, resource correlation data is used to determine the processing capability of sensor data. If the threshold is exceeded, it is sent to the cloud for distribution and processing. This solution is solved by combining multi-objective linear regression, time series prediction and dimensionality reduction clustering models. It solves the problems of network congestion and delay and improves the efficiency and accuracy of power cable status monitoring.
Patent Information
- Application Number
- CN202410511366.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-26
- Publication Date
- 2024-08-23
AI Technical Summary
Traditional power cable monitoring methods lead to network congestion and delays due to centralized deployment, and are unable to quickly respond to detection tasks, resulting in low efficiency and high edge computing pressure, resulting in low detection efficiency.
By collecting the resource-related data of the sensing data, if it is greater than the preset threshold, the data is sent to the cloud for distribution and processing. Multi-objective linear regression models, time series prediction models and dimensionality reduction clustering models are used for data processing to reduce edge computing pressure. , improve monitoring efficiency.
When the associated data of sensor data resources collected by the edge is large, it is reported to the cloud for distribution and processing, which reduces the computing pressure on the edge, thereby improving the efficiency of power cable status monitoring, reducing the computing pressure on the cloud, and achieving a more efficient Fast network service response.
Smart Images

Figure CN118534246A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power cable status monitoring, and in particular to a power cable status monitoring method, device and computer equipment. Background Art
[0002] With the development of power grids, the number and length of cable tunnels are increasing, and the data generated is also increasing significantly, which leads to an increase in the algorithm calculation pressure of intelligent power grids. At the same time, the accuracy and effectiveness of the calculation results have not been reduced. The traditional power cable monitoring method adopts a centralized monitoring method. However, the centralized monitoring method will occupy effective bandwidth to monitor various types of data, causing network congestion or network delays, and unable to respond quickly to detection tasks, resulting in low efficiency of power cable status monitoring.
[0003] In related technologies, placing the computing process at the edge has become an option. The edge refers to a platform that provides services close to the physical device. Compared with the cloud, the edge is closer to the device entity, which can generate faster network service responses and meet the system's control requirements in terms of low latency and real-time performance. However, this approach may cause high computing pressure at the edge, resulting in low detection efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide a power cable status monitoring method, device and computer equipment that can improve the power cable monitoring efficiency in order to address the above technical problems.
[0005] In a first aspect, the present application provides a method for monitoring the condition of a power cable, the method comprising:
[0006] Collecting first sensor data and acquiring resource-related data of the first sensor data;
[0007] If the resource-related data is greater than a preset threshold, the first sensing data is sent to the cloud, so that the cloud distributes and processes the first sensing data;
[0008] If second sensor data sent by the cloud is received, determining first state information based on the second sensor data, wherein the second sensor data is allocated from the first sensor data;
[0009] The first status information is sent to the cloud, so that the cloud determines the status information of the power cable based on the first status information and / or the second status information, wherein the second status information is determined based on third sensing data allocated from the first sensing data.
[0010] In one embodiment, the acquiring resource associated data of the first sensing data includes:
[0011] Acquire the data volume of the first sensor data and current local resource information;
[0012] Inputting the data volume of the first sensor data and the current local resource information into a multi-objective linear regression model, and outputting the resource consumption and calculation time when processing the first sensor data;
[0013] The resource consumption and / or the calculation duration are determined as resource associated data of the first sensing data.
[0014] In one embodiment, if the resource-related data is greater than a preset threshold, sending the first sensor data to the cloud includes:
[0015] If the resource consumption is greater than a preset consumption, and / or the calculation duration is greater than a preset duration, the first sensor data is sent to the cloud.
[0016] In one embodiment, the method further comprises:
[0017] The resource association data is sent to the cloud, so that the cloud allocates and processes the first sensor data based on the resource association data.
[0018] In one embodiment, determining the first state information based on the second sensor data includes:
[0019] Inputting the second sensor data into a time series prediction model and outputting first predicted sensor data;
[0020] Acquire first actual sensor data corresponding to the first predicted sensor data;
[0021] determining the first fault information according to a comparison result of the first predicted sensor data and the first actual sensor data;
[0022] inputting the second sensor data into a dimensionality reduction clustering model to output a first modal type;
[0023] Determining first modality classification information according to a comparison result between the first modality type and a preset modality type;
[0024] The first state information is generated based on the first fault information and the first modal classification information.
[0025] In one embodiment, the method comprises:
[0026] If the resource-related data is less than or equal to the preset threshold, inputting the first sensor data into a time series prediction model and outputting second predicted sensor data;
[0027] Acquire second actual sensor data corresponding to the second predicted sensor data;
[0028] Determining second fault information according to a comparison result of the second predicted sensor data and the second actual sensor data;
[0029] inputting the second sensor data into a dimensionality reduction clustering model to output a second modal type;
[0030] Determining second modality classification information according to a comparison result between the second modality type and the preset modality type;
[0031] generating third state information based on the second fault information and the second modal classification information;
[0032] Status information of the power cable is determined based on the third status information.
[0033] In a second aspect, the present application provides a method for monitoring the state of a power cable, the method comprising:
[0034] receiving first sensing data sent by an edge, where the first sensing data is sent when resource-associated data of the first sensing data is greater than a preset threshold;
[0035] Allocate the first sensor data according to a preset allocation strategy to obtain second sensor data allocated to an edge and / or third sensor data allocated to a local area;
[0036] For each edge to which the second sensing data is assigned, sending the assigned second sensing data to the edge, and receiving first state information sent by the edge, wherein the first state information is determined based on the second sensing data; and / or, determining the second state information based on the third sensing data;
[0037] The status information of the power cable is determined based on the first status information and / or the second status information.
[0038] In one embodiment, determining the second state information based on the third sensor data includes:
[0039] Inputting the third sensor data into a time series prediction model, and outputting third predicted sensor data;
[0040] Acquire third actual sensor data corresponding to the third predicted sensor data;
[0041] Determining third fault information according to a comparison result of the third predicted sensor data and the third actual sensor data;
[0042] Inputting the third sensor data into a dimensionality reduction clustering model, and outputting a third modal type;
[0043] Determining third modality classification information according to a comparison result between the third modality type and a preset modality type;
[0044] The second state information is generated according to the third fault information and the third modal classification information.
[0045] In a third aspect, the present application provides a power cable status monitoring device, the device comprising:
[0046] A collection module, used for collecting first sensor data and obtaining resource associated data of the first sensor data;
[0047] A first sending module, configured to send the first sensing data to a cloud if the resource-related data is greater than a preset threshold, so that the cloud distributes and processes the first sensing data;
[0048] a receiving module, configured to determine first state information based on second sensing data if second sensing data sent by the cloud is received, wherein the second sensing data is allocated from the first sensing data;
[0049] The second sending module is used to send the first status information to the cloud, so that the cloud determines the status information of the power cable based on the first status information and / or the second status information, and the second status information is determined based on the third sensing data allocated from the first sensing data.
[0050] In a fourth aspect, the present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method provided by the first aspect or any one of the embodiments of the first aspect and the second aspect or any one of the embodiments of the second aspect is implemented.
[0051] In a fifth aspect, the present application also provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method provided by the first aspect or any one of the embodiments of the first aspect and the second aspect or any one of the embodiments of the second aspect is implemented.
[0052] In a sixth aspect, the present application also provides a computer program product, comprising a computer program, which, when executed by a processor, implements the method provided by the first aspect or any one of the embodiments of the first aspect and the second aspect or any one of the embodiments of the second aspect.
[0053] The above-mentioned power cable status monitoring method, device and computer equipment obtain resource-related data of the first sensor data based on the collected first sensor data. If the resource-related data is greater than a preset threshold, the first sensor data is sent to the cloud, and the first sensor data is distributed and processed in the cloud; the second sensor data in the first sensor data distributed by the cloud is received, and the first status information is determined based on the second sensor data, and sent to the cloud. The cloud determines the second status information based on the third sensor data, and determines the status information of the power cable based on the first status information and / or the second status information. In the embodiment of the present application, when the resource-related data of the sensor data collected at the edge is large, it is reported to the cloud for distribution and processing, which reduces the computing pressure of the edge, thereby improving the status monitoring efficiency of the power cable. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions 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 related drawings can be obtained based on these drawings without paying creative work.
[0055] Figure 1 is a structural block diagram of a power cable status monitoring system in one embodiment;
[0056] Figure 2 A schematic diagram of a flow chart of a method for monitoring the state of a power cable in one embodiment;
[0057] Figure 3 A schematic diagram of a flow chart of a method for monitoring the state of a power cable in one embodiment;
[0058] Figure 4 It is a flow chart of a method for monitoring the state of a power cable in one embodiment;
[0059] Figure 5 A schematic diagram of a flow chart of a method for monitoring the state of a power cable in one embodiment;
[0060] Figure 6 is a structural block diagram of a power cable status monitoring device in one embodiment;
[0061] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0063] The power cable status monitoring method provided in the embodiment of the present application can be applied to Figure 1 The power cable condition monitoring system shown in FIG. The system includes a cloud, multiple edge terminals, and sensor devices.
[0064] like Figure 1 As shown in the figure, the edge can communicate with the cloud through the network. The edge refers to the platform that provides services near the power cable equipment. Compared with the cloud, the edge is closer to the power cable, which can generate faster network service response and meet the system's control requirements in terms of low latency and real-time performance. The cloud and edge process the power cable sensor data collected by the sensor equipment based on cloud-edge collaboration.
[0065] In one example, the edge can be, but is not limited to, various personal computers, laptops, smart phones, tablets, etc. The cloud can be an independent physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides cloud computing services. The edge communicates with the cloud through the network.
[0066] Sensor devices can be used to collect power cable sensing data. Sensor devices can be deployed in power cables (such as Figure 1 As shown). For example, the sensor device can be integrated in the power cable or externally connected to the power cable, which is not limited in the embodiments of the present application. The power cable status monitoring system may include multiple sensor devices to collect different types of sensor data, such as sheath current data, temperature data, and humidity data.
[0067] It should be understood that Figure 1 The number of edges shown is for illustration only and does not constitute a specific limitation.
[0068] In an exemplary embodiment, Figure 2 As shown, a method for monitoring the state of a power cable is provided. Figure 1 Taking any edge in as an example, the method may include:
[0069] Step 201: Collect first sensor data and obtain resource-related data of the first sensor data.
[0070] The first sensor data may represent sensor data used to determine the status information of the power cable. After the sensor device collects the first sensor data, the first sensor data may be sent to the edge, and the edge determines the status information of the power cable based on the first sensor data. The first sensor data may include one type of sensor data, or may include multiple types of sensor data. For example, the first sensor data may include one or more of sheath current data, humidity data, and temperature data. In an embodiment of the present application, sensor devices may be deployed as needed to collect different types of sensor data. In an embodiment of the present application, there is no restriction on the type of sensor data included in the first sensor data, as long as it can be used to determine the status information of the power cable.
[0071] The resource-related data can characterize the resource consumption value and calculation time when the edge processes the first sensor data. The processing capability of the edge for the first sensor data can be determined by first calculating the resource consumption value and calculation time of the first sensor data at the edge. The processing capability can characterize whether the edge can efficiently process the first sensor data. When the edge can efficiently process the first sensor data, the first sensor data is processed locally by the edge. When the edge cannot efficiently process the first sensor data, in order to improve the efficiency of status monitoring of the power cable, the edge can report the first sensor data to the cloud for distribution and processing.
[0072] In one example, a program is deployed on the edge, and the edge has the function of receiving various types of data, for example, it can collect sensor data from various sensors of the power cable, and can call program files and its own resource data, etc. Here, the sensor data collected by the edge from various sensors is the first sensor data in this step.
[0073] Afterwards, the edge can obtain resource-related data of the first sensor data to determine whether the edge can efficiently process the first sensor data, thereby further determining whether to process the first sensor data locally or allocate the processing of the first sensor data in the cloud.
[0074] In an exemplary embodiment, obtaining resource-associated data of first sensor data may include the following steps: obtaining the data volume of the first sensor data and current local resource information; inputting the data volume of the first sensor data and the current local resource information into a multi-objective linear regression model, and outputting the resource consumption and calculation time when processing the first sensor data; and determining the resource consumption and / or calculation time as the resource-associated data of the first sensor data.
[0075] The data volume of the first sensing data can represent the size of the data to be processed. The current local resource information can represent the resources and usage of the edge when the first sensing data is received but not yet calculated, such as one or more of the number of central processing unit (CPU) cores, CPU utilization, memory size, and available memory size. Based on the data volume of the first sensing data and the current local resource information, it can be determined whether the current resource situation of the edge can meet the calculation of the first sensing data.
[0076] The multi-objective linear regression model can be used to predict the resource consumption and calculation time of the input data. When the data volume of the first sensor data and the current local resource information are input into the multi-objective linear regression model, the resource consumption and calculation time when processing the first sensor data can be output.
[0077] In one possible implementation, the cloud can train a multi-objective linear regression model and distribute the trained multi-objective linear regression model to each edge. The process of training the multi-objective linear regression model on the cloud will be described in detail later and will not be repeated here.
[0078] In one example, after the edge receives the multi-objective linear regression model sent by the cloud, the multi-objective linear regression model can be used to process the data volume of the first sensor data and the current local resource information to obtain the resource consumption when processing the first sensor data (the difference between the edge CPU utilization and available memory size when the calculation starts and the CPU utilization and available memory size before the calculation starts) and the calculation time.
[0079] The edge can determine the resource consumption and / or calculation duration when processing the first sensor data as the resource-associated data of the first sensor data. Specifically, the edge can determine the resource consumption when processing the first sensor data as the resource-associated data of the first sensor data, or determine the calculation duration when processing the first sensor data as the resource-associated data of the first sensor data, or determine the resource consumption and calculation duration when processing the first sensor data together as the resource-associated data of the first sensor data.
[0080] In an example, a calculation formula for calculating the calculation time of the first sensing data at the edge may be:
[0081]
[0082] Where T is the calculation time, n is the number of data involved in the calculation of the first sensor data at the edge, i is a sequence from 1 to n, and w0 is w i The weight of the sum, w i is the weight of the i-th data, b0 is the bias, b iis the bias of the i-th data.
[0083] Step 202: If the resource-related data is greater than a preset threshold, the first sensor data is sent to the cloud, so that the cloud distributes and processes the first sensor data.
[0084] The preset threshold value can be used to measure whether the edge can efficiently process the first sensor data. If the resource-related data is greater than the preset threshold value, it indicates that the edge cannot efficiently process the first sensor data, and therefore the first sensor data needs to be allocated and processed in the cloud. If the resource-related data is less than or equal to the preset threshold value, it indicates that the edge can efficiently process the first sensor data, and therefore the first sensor data can be processed locally.
[0085] The preset threshold can be set as needed. The preset threshold can be determined based on the maximum threshold of the edge computing the sensor data, the remaining capacity when the edge does not process the sensor data, and the historical resource association data of the sensor data historically processed by the edge, or based on the calculation time required for historical edge processing. In one example, the resource association data is greater than the preset threshold, indicating that the resource consumption and / or calculation time of the first sensor data exceeds the calculation range of the edge, so that the edge cannot efficiently detect the status of the power cable. Therefore, the edge sends the first sensor data to the cloud so that the cloud allocates and processes the first sensor data.
[0086] In one possible implementation, if the resource-related data is greater than a preset threshold, the first sensor data is sent to the cloud, including: if the resource consumption is greater than a preset consumption, and / or the calculation time is greater than a preset time, the first sensor data is sent to the cloud.
[0087] In one example, the preset threshold includes a preset consumption, which can be set as needed, and the resource-associated data of the first sensor data includes the resource consumption when processing the first sensor data. When the resource consumption is greater than the preset consumption, it can be determined that the edge cannot efficiently process the first sensor data, and the edge can send the first sensor data to the cloud.
[0088] In another example, the preset threshold includes a preset duration, which can be set as needed, and the resource-associated data of the first sensor data includes a calculation duration when processing the first sensor data. When the calculation duration is greater than the preset duration, it can be determined that the edge cannot efficiently process the first sensor data, and the edge can send the first sensor data to the cloud.
[0089] In another example, the preset threshold includes a preset consumption and a preset duration, and the resource-related data may include resource consumption and calculation duration, and both resource consumption and calculation duration will affect the processing result of the edge end on the first sensor data, so that the resource consumption is greater than the preset consumption and the calculation duration is greater than the preset duration, which will affect the result of the state monitoring of the power cable. That is, when the resource consumption is greater than the preset consumption or the calculation duration is greater than the preset duration, it can be determined that the edge end cannot efficiently process the first sensor data, and the edge end can send the first sensor data to the cloud.
[0090] Step 203: If the second sensor data sent by the cloud is received, the first state information is determined based on the second sensor data.
[0091] After the cloud receives the first sensor data, it can distribute and process the first sensor data to obtain the second sensor data and / or the third sensor data. The second sensor data can represent the sensor data in the first sensor data that is distributed to the edge for processing, and the third sensor data can represent the sensor data in the first sensor data that is distributed to the cloud for processing. The distribution and processing process of the first sensor data in the cloud will be described in detail later, and will not be repeated here.
[0092] In this step, the second sensor data is allocated from the first sensor data. That is, after the edge sends the first sensor data to the cloud, the cloud allocates the second sensor data therein to the edge for processing.
[0093] In one example, after any edge receives the second sensor data allocated by the cloud, the first state information can be determined based on the second sensor data. The second sensor data is allocated and processed by the cloud based on the received first sensor data, that is, any edge receives the second sensor data sent by the cloud and determines the first state information based on the second sensor data. The first state information can characterize the state information of the power cable calculated at the edge. The first state information can analyze the modal type of the sensor data (the curve shape of the sensor data of a specified period, etc.) and perform loss calculation on the sensor data to determine whether the sensor data of the power cable is normal (fault information).
[0094] In an exemplary embodiment, determining first state information based on second sensor data includes: inputting the second sensor data into a time series prediction model to output first predicted sensor data; obtaining first actual sensor data corresponding to the first predicted sensor data; determining first fault information based on a comparison result between the first predicted sensor data and the first actual sensor data; inputting the second sensor data into a dimensionality reduction clustering model to output a first modal type; determining first modal classification information based on a comparison result between the first modal type and a preset modal type; and generating first state information based on the first fault information and the first modal classification information.
[0095] In one example, the edge receives a time series prediction model and a dimensionality reduction clustering model sent by the cloud. The time series prediction model is used to detect fault information of the power cable, and the dimensionality reduction clustering model is used to generate the modal type of the power cable. The edge inputs the second sensor data into the time series prediction model to output the first predicted sensor data; predicts future sensor data, and obtains actual sensor data corresponding to the predicted sensor data, and determines the first fault information based on the comparison result of the predicted sensor data and the measured sensor data.
[0096] The cloud can train time series prediction models and dimensionality reduction clustering models, and distribute the trained time series prediction models and dimensionality reduction clustering models to each edge. The process of training time series prediction models and dimensionality reduction clustering models on the cloud will be described in detail later, so it will not be repeated here.
[0097] It should be noted that, in the embodiment of the present application, a time series prediction model and a dimensionality reduction clustering model are trained for each type of sensor data. Assuming that the second sensor data includes sensor data of type 1 and sensor data of type 2, the sensor data of type 1 is input into the time series prediction model of type 1 and the dimensionality reduction clustering model of type 1; the sensor data of type 2 is input into the time series prediction model of type 2 and the dimensionality reduction clustering model of type 2.
[0098] Exemplarily, the edge may use a loss function to calculate the first predicted sensor data and the first actual sensor data, and obtain a comparison result, and determine the first fault information based on the comparison result. The specific calculation formula may be:
[0099]
[0100] in, is the first fault information; n is the number of the first predicted sensor data; is the first predicted sensor data; is the first actual sensing data.
[0101] In one example, the second sensor data within a specified period is input into a dimensionality reduction clustering model, and the first modal type corresponding to the second sensor data (the curve shape of the second sensor data of the specified period) is output. The first modal type can be compared with the modal type within the historical specified period, and the first classification information of the current second sensor data is determined based on the comparison result.
[0102] First state information may be determined according to the first classification information and the first fault information, and the first state information may represent partial state information of the power cable.
[0103] In one example, the time series prediction model may adopt a gated recurrent unit (GRU) model.
[0104] In summary, this embodiment detects and calculates the second sensor data processed by the power cable at the edge through the time series prediction model and the dimensionality reduction clustering model, obtains partial status information of the power cable, and improves the efficiency of power cable status monitoring.
[0105] Step 204: Send the first status information to the cloud, so that the cloud determines the status information of the power cable based on the first status information and / or the second status information, wherein the second status information is determined based on the third sensing data allocated from the first sensing data.
[0106] In one example, the edge sends first status information to the cloud. The first status information is combined with second status information obtained from the cloud to obtain status information of the power cable. It should be understood that when the first sensor data is distributed in the cloud, it can be divided into several parts according to the distribution strategy of the cloud. The second sensor data is part of the first sensor data distributed by the cloud and received by the edge, and it may also be the complete first sensor data.
[0107] In one example, when the edge receives the second sensor data, it can also calculate the resource association data of the second sensor data according to the multi-objective linear regression model, and send the calculated resource association data to the cloud so that the cloud can train the multi-objective linear regression model.
[0108] The above-mentioned power cable status monitoring method obtains resource-related data of the first sensor data based on the collected first sensor data. If the resource-related data is greater than a preset threshold, the first sensor data is sent to the cloud, and the first sensor data is distributed and processed in the cloud; the second sensor data in the first sensor data distributed by the cloud is received, and the first status information is determined based on the second sensor data, and sent to the cloud. The cloud determines the second status information based on the third sensor data, and determines the status information of the power cable based on the first status information and the second status information. In the embodiment of the present application, when the resource-related data of the sensor data collected at the edge is large, it is reported to the cloud for distribution and processing, which reduces the computing pressure of the edge, thereby improving the status monitoring efficiency of the power cable.
[0109] In an exemplary embodiment, the power cable status monitoring method further includes: sending the resource-related data to the cloud, so that the cloud distributes and processes the first sensor data based on the resource-related data.
[0110] In one example, the cloud receives resource association data corresponding to the required resources of the first sensor data. The cloud collects the current resource information and local resource information of each edge, and allocates the resources based on the received current resource information and local resource information of each edge and the required resources of the first sensor data. The allocation process will be described in detail later and will not be repeated here.
[0111] In one example, if the resource-related data is greater than a preset threshold, the edge sends the first sensor data to the cloud while sending the resource-related data corresponding to the first sensor data to the cloud, so that the cloud does not need to repeatedly calculate the resource-related data for the first sensor data when receiving the first sensor data, and the cloud allocates and processes the first sensor data based on the resource-related data. Therefore, this embodiment reduces the computing process of the cloud by sending the resource-related data and the first sensor data to the cloud at the same time, and at the same time improves the efficiency of the status monitoring of the power cable.
[0112] In an exemplary embodiment, the method for monitoring the condition of a power cable further includes:
[0113] If the resource-associated data is less than or equal to a preset threshold, the first sensor data is input into a time series prediction model, and second predicted sensor data is output; second actual sensor data corresponding to the second predicted sensor data is obtained; second fault information is determined based on a comparison result between the second predicted sensor data and the second actual sensor data; the second sensor data is input into a dimensionality reduction clustering model, and a second modal type is output; second modal classification information is determined based on a comparison result between the second modal type and a preset modal type; third state information is generated based on the second fault information and the second modal classification information; and state information of the power cable is determined based on the third state information.
[0114] In one example, considering the situation that the resource-associated data is less than or equal to the preset threshold, that is, the edge can ensure efficient processing of the current first sensor data, and process the first sensor data according to the time series prediction model and the dimensionality reduction clustering model to obtain the status information of the power cable.
[0115] In one example, the edge inputs the first sensor data into the time series prediction model to output the second predicted sensor data; predicts the future sensor data, and obtains the actual sensor data corresponding to the predicted sensor data, and determines the second fault information according to the comparison result of the predicted sensor data and the measured sensor data. Exemplarily, the edge can use the loss function to calculate the second predicted sensor data and the second actual sensor data, and obtain the comparison result, and determine the second fault information based on the comparison result. The first sensor data within the specified period is input into the dimensionality reduction clustering model, and the second modal type corresponding to the first sensor data (the curve shape of the first sensor data in the specified period) is output. The second modal type can be compared with the modal type within the historical specified period, and the second classification information of the current first sensor data is determined according to the comparison result. The state information of the power cable is determined according to the second fault information and the second classification information. In summary, the preset threshold of the edge in this embodiment satisfies the resource association data of the first sensor data, and the first sensor data is processed at the edge to obtain the state information of the power cable, which improves the efficiency of power cable state monitoring and reduces the computing pressure of the cloud.
[0116] In one example, the status information and resource-related data of the power cable are sent to the cloud, so that the cloud trains a time series prediction model, a dimensionality reduction clustering model, and a multilinear target regression model according to the status information.
[0117] In an exemplary embodiment, Figure 3 As shown, a method for monitoring the state of a power cable is provided. Figure 1 The cloud in the example is used to illustrate, where:
[0118] Step 301: Receive first sensing data sent by an edge.
[0119] The first sensing data is sent when the resource-related data of the first sensing data is greater than a preset threshold. The cloud can receive the first sensing data and the resource-related data sent by the edge.
[0120] Step 302: distribute the first sensor data according to a preset distribution strategy to obtain the second sensor data distributed to the edge and / or the third sensor data distributed to the local area.
[0121] In one example, when the cloud receives the first sensor data sent from the edge, it uses a swarm intelligence optimization algorithm (such as the gray wolf optimization algorithm) to optimize the allocation strategy and obtain a preset allocation strategy (optimal strategy). The cloud will obtain the optimized allocation parameters according to the preset allocation strategy, and allocate the first sensor data to the second sensor data of the edge and / or to the third sensor data locally. In summary, this embodiment dynamically allocates computing resources at the edge through a preset allocation strategy, thereby reducing network bandwidth congestion problems and reducing computing pressure on the cloud.
[0122] In one example, in the Grey Wolf Optimizer (GWO), position updates are implemented by simulating a mathematical model of grey wolf hunting behavior, which mainly involves the process of surrounding, tracking, encircling, and capturing prey. This process mainly relies on simulating and updating the positions of the leading wolves (alpha, beta, and delta) to guide other wolves (i.e., potential solutions to the optimization problem) to update their positions. The specific implementation steps of the Grey Wolf Optimizer include the following:
[0123] Initialization: Generate a group of gray wolves (allocate strategies) and evaluate fitness; determine alpha, beta, and delta wolves (sort the wolves according to fitness and select the best three solutions as leaders); Hunting (optimization): Update the position of the wolf pack by simulating the hunting behavior of the wolf pack, that is, the position of the solution in the search space; Repeat iteration: Repeat the hunting process until the termination condition is met (such as reaching the maximum number of iterations or finding a good enough solution).
[0124] In one example, the fitness calculation formula is:
[0125]
[0126] In the above formula, p is the fitness, n is the number of edges participating in the allocation, and F t For the multi-objective linear regression model, only the function that outputs the calculation time is b. i is the remaining available resources of the ith edge device, d i is the resource allocated to the ith device, D is the total amount of resources to be allocated, and mu is the penalty coefficient. The penalty coefficient mu can be set to a large positive value to force the optimization algorithm to fully allocate D. The second half of the formula must be 0 at the optimal time, so that the value in the brackets can be minimized and the entire formula is maximized.
[0127] In one example, a mathematical model around prey is calculated using the following formula:
[0128]
[0129]
[0130] in, is the distance vector between the wolf and the prey, and is the coefficient vector, is the prey position, which is the position with the highest current fitness. is the position of the wolf in the next iteration, is the position of the wolf in the current iteration.
[0131] The coefficient vector is calculated as follows:
[0132]
[0133]
[0134] in, is a coefficient that gradually decreases to 0 with iterations, which helps to reduce the search range and gradually improve the local search ability. and It is a random vector in the interval [0, 1], which is used to increase the randomness and diversity of the search and prevent falling into the local optimal solution.
[0135] Step 303: For each edge to which the second sensing data is assigned, send the assigned second sensing data to the edge, and receive the first state information sent by the edge; and / or determine the second state information based on the third sensing data.
[0136] The first state information is determined based on the second sensor data.
[0137] In an exemplary embodiment, determining the second state information based on the third sensor data includes:
[0138] Input the third sensor data into the time series prediction model and output the third predicted sensor data; obtain the third actual sensor data corresponding to the third predicted sensor data; determine the third fault information based on the comparison result of the third predicted sensor data and the third actual sensor data; input the third sensor data into the dimensionality reduction clustering model and output the third modal type; determine the third modal classification information based on the comparison result of the third modal type and the preset modal type; generate the second state information based on the third fault information and the third modal classification information.
[0139] In one example, the cloud performs time series prediction processing and dimensionality reduction clustering processing on the third sensor data according to the time series prediction model and the dimensionality reduction clustering model. The cloud inputs the third sensor data into the time series prediction model and outputs the third predicted sensor data; predicts future sensor data, and obtains the actual sensor data corresponding to the predicted sensor data, and determines the third fault information according to the comparison result between the predicted sensor data and the measured sensor data. Exemplarily, the edge can use a loss function to calculate the third predicted sensor data and the third actual sensor data, and obtain a comparison result, and determine the third fault information based on the comparison result. The third sensor data within the specified period is input into the dimensionality reduction clustering model, and the third modal type corresponding to the third sensor data (the curve shape of the third sensor data in the specified period) is output. The third modal type can be compared with the modal type within the historical specified period, and the third classification information of the current third sensor data is determined according to the comparison result. According to the third fault information and the third classification information second state information.
[0140] Step 304: Determine status information of the power cable based on the first status information and / or the second status information.
[0141] In summary, in this embodiment, when the resource association data of the first sensor data is greater than a preset threshold, the cloud allocates the first sensor data based on a preset allocation strategy to obtain the second sensor data allocated to the edge and / or the third sensor data allocated to the local area, performs time series prediction processing and dimensionality reduction clustering processing on the local third sensor data to obtain the second state information, and comprehensively evaluates the state information of the power cable based on the received first state information of the edge. This embodiment realizes dynamic allocation of edge computing resources, reduces cloud computing pressure, reduces network bandwidth congestion problems, balances edge computing consumption, and improves the efficiency of power cable state monitoring.
[0142] In one example, this embodiment adopts a multi-objective linear regression model, a time series prediction model and a dimensionality reduction clustering model. The above three models are trained and updated in the cloud. The cloud sends the trained and updated models to the edge to process the sensor data of the power cable to detect the status of the power cable.
[0143] In one example, the cloud preprocesses the sensor data received by the edge, specifically including: the cloud collects all sensor data received by the edge, and the sensor data may include the amount of data collected each time, the resource situation before the edge computing starts, the resource situation during each edge computing, the size of the transmitted data, the data transmission delay, etc. The data is preprocessed in the cloud, including removing outliers and filling in empty values.
[0144] The process of training the multi-objective linear regression model, time series prediction model and dimensionality reduction clustering model in the cloud using preprocessed sensor data is as follows:
[0145] The process of training a multi-objective linear regression model: Train a multi-objective linear regression model based on the preprocessed sensor data (the x1 value is the sensor data size on an edge, and the x2~xn values are the resource management data and local resource usage of an edge when it receives the sensor data but has not started computing, such as the number of CPU cores, CPU utilization, memory size, and available memory size). The training result is the target value. The target value (resource management data) is the difference between the CPU utilization and available memory size when computing starts and the CPU utilization and available memory size when computing has not started (resource consumption), as well as the computing time.
[0146] The process of training the dimensionality reduction clustering model: train multiple corresponding models for multiple sensor data, taking the sheath current data as an example. First, process the sheath current data, remove duplicate data, count the sampling period, use the mode as the resampling period, and use linear interpolation to resample the sensor data. Divide the sheath current data by day (resampling period) to produce day data, and use the Uniform Manifold Approximation and Projection (UMAP) dimensionality reduction algorithm to reduce the dimension of the day data. The advantage of UMAP is that it can better balance the emphasis on local structure and global structure, has fast calculation speed, and has no limit on the embedding dimension. The density-based spatial clustering of applications with noise (DBSCAN) is used to cluster the dimensionality reduction results to obtain the clustering results of the day data (the clustering result is the modal type).
[0147] The GRU time series prediction model is trained using the sensor data of the power cable.
[0148] In one example, after all the status information is sent to the cloud, prediction verification and self-learning are performed in the cloud. When the prediction accuracy decreases for a period of time, it is proved that the recent status information and the corresponding sensor data are summarized to retrain the model and send it to the edge for model update. The accuracy reduction is only judged for the time series prediction model. When the accuracy is detected to be lower than the threshold, the multi-objective linear regression model, the time series prediction model and the dimensionality reduction clustering model need to be updated and self-learned. Exemplarily, the difference between the predicted value and the true value is the percentage of the true value as the loss. Assuming the alarm threshold is 2%, 75 percent of 0.02, that is, 0.015 (1.5%), is used as the standard for judging the decline in prediction ability. The losses for a period of time are accumulated and averaged. If the average loss reaches 0.015, it is considered that the prediction ability of the time series prediction model has deteriorated, and then the multi-objective linear regression model, the time series prediction model and the dimensionality reduction clustering model need to be updated and self-learned. This embodiment improves the accuracy of power cable status monitoring by the edge and the cloud.
[0149] In an exemplary embodiment, this embodiment provides a method for monitoring the state of a power cable, specifically, as follows: Figure 4 As shown, Figure 4 The following is a flow chart of a method for monitoring the state of a power cable in an embodiment, which specifically includes the following steps:
[0150] Step 401: The edge collects first sensor data and obtains resource-related data of the first sensor data.
[0151] Step 402: If the resource-related data is less than or equal to a preset threshold, the edge determines the status information of the power cable based on the first sensing data.
[0152] Step 403: If the resource-related data is greater than a preset threshold, the edge sends the first sensor data to the cloud.
[0153] Step 404: The cloud receives the first sensor data sent by the edge, distributes the first sensor data according to a preset distribution strategy, and obtains the second sensor data distributed to the edge and / or the third sensor data distributed locally.
[0154] Step 405: The cloud sends the allocated second sensor data to the edge.
[0155] Step 406: If the edge receives the second sensor data sent by the cloud, the edge determines the first state information based on the second sensor data.
[0156] Step 407: The edge sends the first status information to the cloud.
[0157] Step 408: The cloud determines the second status information based on the third sensor data, and determines the status information of the power cable based on the first status information and / or the second status information.
[0158] In an exemplary embodiment, this embodiment provides a method for monitoring the state of a power cable, such as Figure 5 As shown, the condition monitoring method of the power cable includes the following steps:
[0159] The edge obtains the first sensor data; the edge inputs the data volume of the first sensor data and the current local resource information into the multi-objective linear regression model, and outputs the resource-related data of the first sensor data; the edge determines the relationship between the resource-related data and the preset threshold; if the resource-related data is less than or equal to the preset threshold, the edge processes the first sensor data through the time series prediction model and the modal classification model to obtain the status information of the power cable; if the resource-related data is greater than the preset threshold, the edge sends the first sensor data to the cloud; the cloud allocates the first sensor data according to the preset allocation strategy to obtain the second sensor data allocated to the edge and / or the third sensor data allocated to the local; if the edge receives the second sensor data sent by the cloud, the first status information is determined based on the second sensor data; the cloud determines the second status information based on the third sensor data; the cloud receives the first status information, and determines the status information of the power cable based on the first status information and the second status information; the cloud determines whether the self-learning cycle is reached based on the status information, if so, the cloud uses the status information for self-learning and sends the new model to the edge, otherwise it ends.
[0160] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0161] Based on the same inventive concept, the embodiment of the present application also provides a power cable state monitoring device for implementing the power cable state monitoring method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of one or more power cable state monitoring devices provided below can refer to the limitations of the power cable state monitoring method above, and will not be repeated here.
[0162] In an exemplary embodiment, Figure 6 As shown, a power cable status monitoring device 60 is provided, comprising: a collection module 61, a first sending module 62, a receiving module 63 and a second sending module 64, wherein:
[0163] The collection module 61 is used to collect the first sensor data and obtain resource-related data of the first sensor data;
[0164] A first sending module 62, configured to send the first sensing data to the cloud if the resource-related data is greater than a preset threshold, so that the cloud distributes and processes the first sensing data;
[0165] A receiving module 63, configured to determine the first state information based on the second sensor data if second sensor data sent by the cloud is received, wherein the second sensor data is allocated from the first sensor data;
[0166] The second sending module 64 is used to send the first status information to the cloud, so that the cloud determines the status information of the power cable based on the first status information and / or the second status information, and the second status information is determined based on the third sensing data allocated from the first sensing data.
[0167] In one instance, the acquisition module 61 is used to obtain the data volume of the first sensor data and the current local resource information; input the data volume of the first sensor data and the current local resource information into a multi-objective linear regression model, and output the resource consumption and calculation time when processing the first sensor data; and determine the resource consumption and / or calculation time as resource-associated data of the first sensor data.
[0168] In one example, the first sending module 62 is used to send the first sensor data to the cloud if the resource consumption is greater than a preset consumption and / or the calculation time is greater than a preset time.
[0169] In one example, the first sending module 62 is further configured to send the resource-related data to the cloud, so that the cloud allocates and processes the first sensor data based on the resource-related data.
[0170] In one example, a receiving module 63 is used to input second sensor data into a time series prediction model and output first predicted sensor data; obtain first actual sensor data corresponding to the first predicted sensor data; determine first fault information based on a comparison result between the first predicted sensor data and the first actual sensor data; input the second sensor data into a dimensionality reduction clustering model and output a first modal type; determine first modal classification information based on a comparison result between the first modal type and a preset modal type; and generate first status information based on the first fault information and the first modal classification information.
[0171] In one example, the first sending module 62 is also used to input the first sensor data into a time series prediction model and output second predicted sensor data if the resource-associated data is less than or equal to a preset threshold; obtain second actual sensor data corresponding to the second predicted sensor data; determine second fault information based on a comparison result between the second predicted sensor data and the second actual sensor data; input the second sensor data into a dimensionality reduction clustering model and output a second modal type; determine second modal classification information based on a comparison result between the second modal type and a preset modal type; generate third state information based on the second fault information and the second modal classification information; and determine the state information of the power cable based on the third state information.
[0172] In an exemplary embodiment, a power cable condition monitoring device is provided, comprising:
[0173] A receiving module, used for receiving first sensing data sent by an edge, where the first sensing data is sent when resource associated data of the first sensing data is greater than a preset threshold;
[0174] An allocation module, used to allocate the first sensor data according to a preset allocation strategy to obtain the second sensor data allocated to the edge and / or the third sensor data allocated to the local area;
[0175] A sending module, configured to send the second sensing data assigned to each edge to which the second sensing data is assigned, and receive first state information sent by the edge, where the first state information is determined based on the second sensing data; and / or, determine the second state information based on third sensing data;
[0176] A determination module is configured to determine status information of the power cable based on the first status information and / or the second status information.
[0177] In one instance, a sending module is used to input third sensor data into a time series prediction model and output third predicted sensor data; obtain third actual sensor data corresponding to the third predicted sensor data; determine third fault information based on a comparison result between the third predicted sensor data and the third actual sensor data; input the third sensor data into a dimensionality reduction clustering model and output a third modal type; determine third modal classification information based on a comparison result between the third modal type and a preset modal type; and generate second state information based on the third fault information and the third modal classification information.
[0178] Each module in the above power cable condition monitoring device can be implemented in whole or in part by software, hardware and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0179] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 7 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the status information of the power cable. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for monitoring the status of a power cable is implemented.
[0180] Those skilled in the art will understand that Figure 7The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0181] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0182] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0183] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0184] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0185] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0186] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for monitoring the state of a power cable, characterized in that: The method comprises: Collecting first sensor data and acquiring resource-related data of the first sensor data; If the resource-related data is greater than a preset threshold, the first sensing data is sent to the cloud, so that the cloud distributes and processes the first sensing data; If second sensor data sent by the cloud is received, determining first state information based on the second sensor data, wherein the second sensor data is allocated from the first sensor data; The first status information is sent to the cloud, so that the cloud determines the status information of the power cable based on the first status information and / or the second status information, wherein the second status information is determined based on third sensing data allocated from the first sensing data.
2. The method according to claim 1, characterized in that The acquiring resource associated data of the first sensing data includes: Acquire the data volume of the first sensor data and current local resource information; Inputting the data volume of the first sensor data and the current local resource information into a multi-objective linear regression model, and outputting the resource consumption and calculation time when processing the first sensor data; The resource consumption and / or the calculation duration are determined as resource associated data of the first sensing data.
3. The method according to claim 2, characterized in that If the resource-related data is greater than a preset threshold, sending the first sensing data to the cloud comprises: If the resource consumption is greater than a preset consumption, and / or the calculation duration is greater than a preset duration, the first sensor data is sent to the cloud.
4. The method according to claim 1, characterized in that: The method further comprises: The resource association data is sent to the cloud, so that the cloud allocates and processes the first sensor data based on the resource association data.
5. The method according to claim 1, characterized in that The determining the first state information based on the second sensing data includes: Inputting the second sensor data into a time series prediction model and outputting first predicted sensor data; Acquire first actual sensor data corresponding to the first predicted sensor data; Determining first fault information according to a comparison result of the first predicted sensor data and the first actual sensor data; inputting the second sensor data into a dimensionality reduction clustering model to output a first modal type; Determining first modality classification information according to a comparison result between the first modality type and a preset modality type; The first state information is generated based on the first fault information and the first modal classification information.
6. The method according to claim 5, characterized in that The method further comprises: If the resource-related data is less than or equal to the preset threshold, inputting the first sensor data into a time series prediction model and outputting second predicted sensor data; Acquire second actual sensor data corresponding to the second predicted sensor data; Determining second fault information according to a comparison result of the second predicted sensor data and the second actual sensor data; inputting the second sensor data into a dimensionality reduction clustering model to output a second modal type; Determining second modality classification information according to a comparison result between the second modality type and the preset modality type; generating third state information based on the second fault information and the second modal classification information; Status information of the power cable is determined based on the third status information.
7. A method for monitoring the state of a power cable, characterized in that: The method comprises: receiving first sensing data sent by an edge, where the first sensing data is sent when resource-associated data of the first sensing data is greater than a preset threshold; Allocate the first sensor data according to a preset allocation strategy to obtain second sensor data allocated to an edge and / or third sensor data allocated to a local area; For each edge to which the second sensing data is assigned, sending the assigned second sensing data to the edge, and receiving first state information sent by the edge, wherein the first state information is determined based on the second sensing data; and / or, determining the second state information based on the third sensing data; The status information of the power cable is determined based on the first status information and / or the second status information.
8. The method according to claim 7, characterized in that The determining the second state information based on the third sensor data comprises: Inputting the third sensor data into a time series prediction model, and outputting third predicted sensor data; Acquire third actual sensor data corresponding to the third predicted sensor data; Determining third fault information according to a comparison result of the third predicted sensor data and the third actual sensor data; Inputting the third sensor data into a dimensionality reduction clustering model, and outputting a third modal type; Determining third modality classification information according to a comparison result between the third modality type and a preset modality type; The second state information is generated according to the third fault information and the third modal classification information.
9. A power cable condition monitoring device, characterized in that: The device comprises: A collection module, used for collecting first sensor data and obtaining resource associated data of the first sensor data; A first sending module, configured to send the first sensing data to a cloud if the resource-related data is greater than a preset threshold, so that the cloud distributes and processes the first sensing data; a receiving module, configured to determine first state information based on second sensing data if second sensing data sent by the cloud is received, wherein the second sensing data is allocated from the first sensing data; The second sending module is used to send the first status information to the cloud, so that the cloud determines the status information of the power cable based on the first status information and / or the second status information, and the second status information is determined based on the third sensing data allocated from the first sensing data.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the processor implements the steps of the method described in any one of claims 1 to 6, or implements the steps of the method described in any one of claims 7 to 8.
