Community resource supervision method and system for smart property
Through the improved local outlier factor algorithm and long-term short-term memory network model, combining historical and real-time data, accurately distinguishing normal from abnormality, solving the problem of low prediction accuracy in community resource supervision, and improving the accuracy and sensitivity of abnormality detection. Ensure accurate supervision of distribution boards.
Patent Information
- Application Number
- CN202411448305.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2024-11-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The prediction accuracy of existing technology in community resource supervision is not high, and it is easy to misjudgment normal fluctuations as abnormal, resulting in inaccurate supervision of distribution boards and affecting property management efficiency.
Using improved local outlier factor algorithm and long-term short-term memory network model, by calculating the abnormal score and matching degree, combining historical feature data and real-time data, accurately distinguish normal data from abnormal data, dynamically adjust the data set, and improve the accuracy of abnormal detection and Sensitivity.
It improves the accuracy and sensitivity of abnormal detection, reduces false alarms and missed reports, ensures accurate supervision of distribution boards, and significantly improves the efficiency and accuracy of community resource supervision.
Smart Images

Figure CN118967114A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology. More specifically, the present invention relates to a community resource supervision method and system for smart properties. Background Art
[0002] With the rapid development of smart cities and the continuous advancement of information technology, the demand for intelligent community management is increasing. Traditional community property management methods mainly rely on manual inspections, regular maintenance and on-site records. This method is not only inefficient, but also has a lag in the supervision of community resources, especially for the management of circuit systems, water supply systems, security equipment, etc. in the community, and it is difficult to detect potential faults in time. Manual monitoring and post-event maintenance often lead to problems that cannot be warned and handled in a timely manner, which in turn affects the normal life of community residents and the efficiency of property management.
[0003] As a vital infrastructure in the community, distribution boards, once faulty, will not only affect the power supply in daily life, but may also cause serious safety hazards. Distribution boards are often accompanied by voltage fluctuations, short circuits, overloads, etc. Traditional monitoring methods can only perform passive repairs after a fault occurs, and it is difficult to predict potential fault risks in advance. This post-event remediation method seriously affects the response speed and processing efficiency of property management, and may lead to more serious consequences, such as large-scale power outages or equipment damage.
[0004] The patent application document with application publication number CN117557415A discloses a community resource management method and system based on smart property. The patent application document calculates the transition probability between each state based on the corrected historical feature data, and generates a state transfer matrix based on the transition probability between each state; constructs a Markov model, trains the Markov model based on the state transfer matrix, and outputs the trained Markov model; imports the real-time feature data of each real-time feature data set into the trained Markov model for prediction and deduction to obtain a prediction result.
[0005] However, the above technical solution only relies on real-time feature data to supervise community resources. However, due to the impact of environmental changes or equipment noise on real-time feature data, the real-time feature data may still be normal when there are fluctuations. If community resources are only supervised by real-time feature data, it is easy to misjudge the normal fluctuations as abnormalities, and it is impossible to effectively distinguish between normal fluctuations and abnormal fluctuations, which leads to inaccurate supervision of distribution boards. Summary of the invention
[0006] In order to solve the problem of low prediction accuracy mentioned in the above background technology, the present invention provides solutions in the following aspects.
[0007] In a first aspect, the present invention provides a community resource supervision method for smart properties, comprising: dividing the acquired historical feature data of a distribution board into suspected normal data and suspected abnormal data, and calculating the abnormality score of the suspected abnormal data using an improved local outlier factor algorithm; wherein the improved local outlier factor algorithm comprises: calculating the abnormality score between the suspected abnormal data and the target data, the target data being selected from the suspected normal data, responding to the abnormality score being less than the abnormality threshold as normal data, and merging the normal data with the suspected normal data into a normal data set; dividing the normal data set into important data and secondary data, and obtaining a secondary data set corresponding to each important data, and based on each important data, obtaining a secondary data set corresponding to each important data. The machine model is trained based on the important data and their corresponding secondary data sets to obtain a trained machine model; the important data at the current moment and their corresponding secondary data sets are input into the trained machine model to obtain the important data at the next moment; a predicted change sequence is constructed based on the difference between the important data at the current moment and the next moment, and the historical change sequence of the important data in the historical feature data is obtained; the matching degree between the predicted change sequence and the historical change sequence is calculated, and the matching degree is positively correlated with the ratio of the difference between the important data in the predicted change sequence and the historical change sequence, and the important data at the current moment; and negatively correlated with the number of important data at the current moment; when the matching degree is less than the matching threshold, it is determined that there is an abnormality in the distribution board.
[0008] The above technical solution improves the detection accuracy of suspected abnormal data, dynamically adjusts the normal data set, and can more accurately distinguish normal data from abnormal data, thereby improving the accuracy of identifying abnormal situations; at the same time, the matching degree calculation method combines the positive and negative correlations with historical data to sensitively capture data changes, ensuring that anomaly detection is more refined and accurate, further solving the problem of low prediction accuracy in community resource supervision, and reducing false alarms and omissions.
[0009] Furthermore, the matching for: ; In the formula, Indicates the number of important data at the current moment. Indicates the current time Important data, Indicates the first The difference of important data, Indicates the first The difference of important data.
[0010] The above technical solution not only takes into account the importance of each important data to anomaly detection, but also can accurately reflect the difference between the important data at the current moment and the important data in the historical feature data, thereby improving the sensitivity and accuracy of anomaly detection, effectively optimizing the accuracy of anomaly identification, and reducing the wrong judgment caused by ignoring historical feature data.
[0011] Furthermore, the isolation forest algorithm is used to divide the historical characteristic data of community resources into normal data and abnormal data.
[0012] Furthermore, it also includes standardizing the historical feature data using a standard score method.
[0013] Furthermore, the community resource is a distribution board, and the historical characteristic data is the current, voltage, resistance, inductance, power, electric energy and insulation strength of the distribution board.
[0014] Furthermore, the obtaining of the historical change sequence of each important data in the historical feature data includes: constructing the historical change sequence based on the difference between each important data in the historical feature data at adjacent moments.
[0015] Furthermore, the machine model is a long short-term memory network model.
[0016] The above technical solution uses the long short-term memory network model and makes full use of its long-range dependency characteristics in processing time series data. The long short-term memory network model can effectively capture the temporal relationship and dynamic changes between important community resource data and its secondary data, avoiding the problem of information being gradually forgotten over time while improving prediction accuracy and sensitivity to abnormal changes.
[0017] Furthermore, the normal data set is divided into important data and secondary data using a random forest algorithm, and a secondary data set corresponding to each important data is obtained, specifically: the mutual information entropy of the secondary data relative to each important data is calculated; the first k secondary data whose mutual information entropy is greater than the mutual information threshold are selected as the secondary data set corresponding to each important data.
[0018] The above technical solution can effectively extract secondary data that has a significant impact on important data, ensure the maximum relevance of data features, reduce the interference of redundant information, and improve the training effect and prediction accuracy of machine models. At the same time, the flexibility and adaptability of data screening are enhanced by setting the threshold of mutual information entropy.
[0019] Furthermore, the specific process of training the machine model is as follows: each important data and its corresponding secondary data set are input into the pre-built machine model for training. During the training process, the loss between the output prediction value and the label is calculated; the model parameters are adjusted using the gradient descent method to minimize the prediction error; the parameters of the machine model are iteratively adjusted until the loss is less than a certain value or the set number of training times is reached, and finally a trained machine model is obtained.
[0020] The above technical solution calculates the loss between the predicted value and the label and uses the gradient descent method to adjust the model parameters, which effectively reduces the prediction error while ensuring that the model gradually improves the prediction accuracy during training. By setting the loss threshold or the number of training times, over-training is avoided, the generalization ability and efficiency of the model are improved, and the prediction performance of the model and the accuracy of anomaly detection are effectively improved.
[0021] In a second aspect, the present invention provides a community resource supervision system for smart properties, comprising a memory and a processor, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, any one of the above-described community resource supervision methods for smart properties is implemented.
[0022] The beneficial effects of the present invention are: The present invention uses an improved local outlier factor algorithm to more accurately divide normal data from abnormal data, dynamically update normal data sets, and improve the flexibility and accuracy of anomaly detection. The machine model is trained using the correlation between important data and secondary data, which can effectively predict the key data changes at the next moment, accurately identify anomalies based on the matching degree between the predicted change sequence and the historical change sequence, and significantly improve the sensitivity to abnormal data and the accuracy of overall anomaly detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein: Figure 1 is a flowchart schematically illustrating a community resource supervision method of a smart property according to an embodiment of the present invention; Figure 2 It is a block diagram schematically showing a structure of a community resource supervision system for a smart property according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0025] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0026] An implementation method of a community resource supervision method for smart properties.
[0027] like Figure 1 As shown, a flow chart of a community resource supervision method of a smart property according to an embodiment of the present invention includes the following steps: S1: The historical feature data of community resources are divided into suspected normal data and suspected abnormal data. The anomaly score of the suspected abnormal data is calculated using the improved local outlier factor algorithm. The suspected abnormal data with an anomaly score less than the abnormal threshold is judged as normal data, and is merged with the suspected normal data into a normal data set.
[0028] In one embodiment, the historical feature data of community resources can be divided into suspected normal data and suspected abnormal data using the isolation forest algorithm. Of course, the historical feature data can also be divided using the support vector machine algorithm; and the abnormal score of the suspected abnormal data is calculated using the improved local outlier factor algorithm; Among them, the improved local outlier factor algorithm includes: calculating the anomaly score between suspected abnormal data and target data, and the target data is selected from the suspected normal data, specifically: selecting target data from normal data, calculating the reachable distance and local reachable density between the target data and the suspected abnormal data, and calculating the anomaly score based on the reachable distance and the local reachable density; responding to the anomaly score less than the anomaly threshold as suspected normal data, and merging it with the suspected normal data into a normal data set; the anomaly threshold can be 0.5, of course, it can also be set according to actual conditions.
[0029] In this embodiment, the community resource is the distribution board in the community distribution room, and the historical feature data is the current, voltage, resistance, inductance, power, electric energy and insulation strength of the distribution board. The historical feature data is standardized using the standard score method. By converting the historical feature data into the same standard score, they can be compared within the same range, eliminating the influence of the dimension and ensuring that each feature data has equal importance in analysis and modeling.
[0030] S2: Divide the normal data set into important data and secondary data, obtain the corresponding secondary data set for each important data, and train the machine model to obtain a trained model.
[0031] In one embodiment, a random forest algorithm may be used to divide a normal data set into important data and secondary data, and obtain a secondary data set corresponding to each important data, specifically: Calculate the mutual information entropy of the secondary data relative to each important data; select the first k secondary data whose mutual information entropy is greater than the mutual information threshold as the secondary data set corresponding to each important data.
[0032] In this embodiment, the mutual information entropy threshold may be 0.6, and of course, it may be set according to actual conditions, and the secondary data with a mutual information entropy threshold greater than 0.6 is selected as the secondary data set corresponding to each important data.
[0033] The machine model is trained based on the secondary data set corresponding to each important data. Taking the long short-term memory network model as an example, the specific steps are as follows: each important data and its corresponding secondary data set are input into the pre-built long short-term memory network model for training. During the training process, the loss between the output prediction value and the label is calculated, and the label is set manually; the long short-term memory network model parameters are adjusted using the gradient descent method to minimize the prediction error; the parameters of the long short-term memory network model are iteratively adjusted until the loss is less than a certain value or the set number of training times is reached, and finally a trained long short-term memory network model is obtained.
[0034] S3: Input the important data at the current moment and its corresponding secondary data into the trained model to generate the important data at the next moment, and construct the predicted change sequence and historical change sequence.
[0035] In one embodiment, assuming that the important data is current, and the secondary data set corresponding to the current is voltage, resistance and inductance, the current at the current moment and its corresponding secondary data set voltage, resistance and inductance are input into the trained model to obtain the current data at the next moment; and a predicted change sequence is constructed based on the difference between each important data at the current moment and the next moment, and a historical change sequence is constructed based on the difference between each important data in the historical feature data at adjacent moments.
[0036] S4: Calculate the matching degree between the predicted change sequence and the historical change sequence. If the matching degree is less than the matching threshold, it is determined to be abnormal.
[0037] In one embodiment, the matching degree for: ; In the formula, Indicates the number of important data at the current moment. Indicates the current time Important data, Indicates the first The difference of important data, Indicates the first The difference of important data.
[0038] For example: Assume that the important data of community resources at the current moment is current ,Voltage and inductance , the important data of community resources at the next moment is current ,Voltage and inductance , and then the preset change sequence is obtained as [ - , - , - ], and at the same time, the historical change sequence of current, voltage and inductance at adjacent moments in the historical feature data is obtained as [ , , ]; Substituting the above parameters into the formula, we can get the matching degree , assuming the matching threshold is , in response to Less than , it is judged as abnormal.
[0039] In this embodiment, the matching threshold value may be 0.3. Of course, it may also be determined according to actual conditions.
[0040] The solution of the present invention more accurately divides suspected normal data from suspected abnormal data, dynamically updates the data set, and ensures the adaptability and accuracy of anomaly detection. At the same time, the calculation of the matching degree comprehensively considers the difference ratio between the predicted change sequence and the historical change sequence and the positive and negative correlation of the current feature data, effectively improving the detection ability of abnormal changes, reducing false positives and false negatives, and further enhancing the intelligent monitoring effect of the system.
[0041] An embodiment of a community resource supervision system for smart properties: like Figure 2 As shown, a structural block diagram of a community resource supervision system for smart properties in an embodiment of the present invention includes a processor and a memory.
[0042] The present invention also provides a community resource supervision system for smart properties. Figure 2 As shown, the system includes a processor and a memory, wherein the memory stores computer program instructions. When the computer program instructions are executed by the processor, a community resource supervision method for smart properties described above in the present invention is implemented.
[0043] The community resource supervision system for smart properties also includes other components familiar to those skilled in the art, such as communication interfaces. Their settings and functions are known in the art and will not be described in detail here.
[0044] In the present invention, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus or device. For example, a computer-readable storage medium may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of a device or accessible or connectable to a device. Any application or module described in the present invention may be implemented using computer-readable / executable instructions that may be stored or otherwise maintained by such a computer-readable medium.
[0045] In the description of this specification, "plurality" or "several" means at least two, such as two, three or more, etc., unless otherwise clearly and specifically defined.
[0046] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.
Claims
1. A community resource supervision method for smart properties, characterized in that: include: The acquired historical characteristic data of the distribution board is divided into suspected normal data and suspected abnormal data, and an abnormal score of the suspected abnormal data is calculated using an improved local outlier factor algorithm; The improved local outlier factor algorithm includes: calculating an anomaly score between the suspected anomaly data and the target data, the target data is selected from the suspected normal data, and the data with an anomaly score less than an anomaly threshold is considered normal data, and is merged with the suspected normal data into a normal data set; The normal data set is divided into important data and secondary data, and a secondary data set corresponding to each important data is obtained, and a machine model is trained based on each important data and its corresponding secondary data set to obtain a trained machine model; each important data at a current moment and its corresponding secondary data set are input into the trained machine model to obtain each important data at a next moment; A predicted change sequence is constructed based on the difference between each important data at the current moment and the next moment, and the historical change sequence of each important data in the historical feature data is obtained; the matching degree between the predicted change sequence and the historical change sequence is calculated, and the matching degree is positively correlated with the ratio of the difference between each important data in the predicted change sequence and the historical change sequence, and each important data at the current moment; and negatively correlated with the number of important data at the current moment; when the matching degree is less than the matching threshold, it is determined that there is an abnormality in the distribution board.
2. A community resource supervision method for smart properties according to claim 1, characterized in that: Match for: ; In the formula, Indicates the number of important data at the current moment. Indicates the current time Important data, Indicates the first The difference of important data, Indicates the first The difference of important data.
3. A community resource supervision method for smart properties according to claim 1, characterized in that: The isolation forest algorithm is used to divide the historical characteristic data of community resources into normal data and abnormal data.
4. A community resource supervision method for smart properties according to claim 1, characterized in that: It also includes standardizing the historical feature data using the standard score method.
5. The community resource supervision method of a smart property according to claim 1 is characterized in that: The historical characteristic data are current, voltage, resistance, inductance, power, electric energy and insulation strength of the distribution board.
6. A community resource supervision method for smart properties according to claim 1, characterized in that: The obtaining of the historical change sequence of each important data in the historical feature data includes: constructing the historical change sequence based on the difference between each important data in the historical feature data at adjacent moments.
7. A community resource supervision method for smart properties according to claim 1, characterized in that: The machine model is a long short-term memory network model.
8. The community resource supervision method of a smart property according to claim 1 is characterized in that: The normal data set is divided into important data and secondary data using the random forest algorithm, and the secondary data set corresponding to each important data is obtained, specifically: Calculate the mutual information entropy of minor data relative to each important data; The first k secondary data whose mutual information entropy is greater than the mutual information threshold are selected as the secondary data set corresponding to each important data.
9. The community resource supervision method of a smart property according to claim 1 is characterized in that: The specific process of training the machine model is as follows: Each important data and its corresponding secondary data set are input into the pre-built machine model for training. During the training process, the loss between the output prediction value and the label is calculated; the model parameters are adjusted using the gradient descent method to minimize the prediction error; the parameters of the machine model are adjusted iteratively until the loss is less than a certain value or the set number of training times is reached, and finally a trained machine model is obtained.
10. A community resource supervision system for smart properties, characterized in that: It includes a memory and a processor, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a community resource supervision method for a smart property as described in any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Sensor test data point anomaly detection method based on LS-SVM
CN104156615A
Event abnormal fluctuation detection method and system, electronic equipment and storage medium
CN113902334A
Composite tire pressure monitoring method and system of OBD (On-Board Diagnostic)
CN114379294A
Battery characteristic prediction method and device, storage medium and electronic equipment
CN117207843A
Power system fault prediction method and system, electronic equipment and medium
CN117236380A
Cited By
Coking coal detection chamber online monitoring method and system
CN120783474A
