An integrated terminal with power quality analysis function

By constructing an isolated forest in an integrated power quality analysis terminal and calculating the possibility of anomalies based on the classification accuracy and anomaly degree, the problem of low accuracy of the isolated forest algorithm in detecting anomalies in current and voltage data is solved and the power quality analysis is realized. Higher accuracy.

CN118655362BActive Publication Date: 2024-10-25SHANDONG DEYUAN POWER TECHNOLOGY CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411095509.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-10-25
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

The existing isolation forest algorithm has low accuracy when detecting anomalies in current data and voltage data, because the abnormal data may not break through the range of periodic changes, making it impossible to effectively identify them.

Method used

An integrated terminal is designed, including an abnormality monitoring module for current data and voltage data. By constructing an isolated forest, combining classification accuracy and abnormality degree, the possibility of abnormality is calculated, and abnormal data that does not exceed the periodic variation range are screened out, thereby improving electric energy Accuracy of quality analysis.

Benefits of technology

By analyzing the classification accuracy and abnormality degree of each isolated tree, abnormal current and voltage data that do not exceed the periodic variation range can be more accurately identified, improving the accuracy of power quality analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118655362B_ABST
    Figure CN118655362B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of electrical performance data processing, and in particular to a fusion integrated terminal with a power quality analysis function, the terminal comprising: a current data abnormality monitoring module for identifying abnormal current data, including a current data acquisition unit, a current data isolation forest construction unit, a current data classification accuracy acquisition unit, a current data abnormal possibility acquisition unit, an abnormal current monitoring unit, a voltage data abnormality monitoring module for identifying abnormal voltage data, and a power quality analysis module for analyzing power quality according to abnormal current data and abnormal voltage data. The present invention accurately identifies abnormal current data and abnormal voltage data, and improves the accuracy of power quality analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electric performance data processing, and in particular to an integrated terminal with a power quality analysis function. Background Art

[0002] Power quality is related to the stable operation of equipment and systems. Analyzing power quality helps save energy, improve production efficiency and ensure power grid safety.

[0003] Power quality is related to many factors, such as voltage stability, current stability, etc. Therefore, it is necessary to analyze the abnormal conditions in the current data and voltage data.

[0004] The isolation forest algorithm can be used to analyze anomalies in continuous data, but the isolation forest algorithm can only detect outliers. Since the current data and voltage data are periodic changes, the value of the abnormal current data or voltage data may not exceed the range of periodic changes, making the abnormal current data or voltage data not isolated. Therefore, the accuracy of using the isolation forest algorithm to identify abnormal current data or abnormal voltage data is low. Summary of the invention

[0005] In order to solve the above problems, the present invention provides an integrated terminal with a power quality analysis function, the terminal comprising:

[0006] The current data anomaly monitoring module is used to identify abnormal current data, including:

[0007] A current data acquisition unit, used to collect current data at every moment;

[0008] A current data isolation forest construction unit, used for constructing an isolation forest according to the current data;

[0009] A current data classification accuracy acquisition unit, used to determine the classification accuracy of each isolated tree for the target current data, wherein the classification accuracy is negatively correlated with the amount of current data contained in the leaf nodes to which the target current data belongs in each isolated tree and the distribution difference of the current data in the leaf nodes to which the target current data belongs in each isolated tree;

[0010] A current data abnormality possibility acquisition unit is used to determine the abnormality possibility of the target current data, wherein the abnormality possibility is positively correlated with the classification accuracy of each isolated tree for the target current data and the abnormality degree of the target current data in each isolated tree; the abnormality degree is positively correlated with the first difference and negatively correlated with the number of current data contained in the leaf node to which the target current data belongs in each isolated tree; the first difference is the difference in time interval and average time interval between the current data group to which the target current data belongs and the current data group adjacent to it in each isolated tree, and the current data group is acquired by: sorting all the current data contained in the leaf node to which the target current data belongs in each isolated tree in chronological order to obtain the target sequence corresponding to each isolated tree, and treating the temporally continuous current data in the target sequence as a current data group;

[0011] An abnormal current monitoring unit is used to screen abnormal current data according to the abnormal possibility of the current data;

[0012] A voltage data anomaly monitoring module is used to identify abnormal voltage data;

[0013] The power quality analysis module is used to analyze the power quality based on abnormal current data and abnormal voltage data.

[0014] Preferably, the classification accuracy satisfies the expression:

[0015] ;

[0016] in, Indicates The classification accuracy of an isolated tree for the target current data; Indicates the number of current data in the data sample; Indicates the height of each isolated tree; Indicates the target current data in The number of current data contained in the leaf nodes of each isolated tree; represents the number of isolated trees; Indicates the target current data in A set of current data contained in the leaf nodes belonging to an isolated tree; Indicates the target current data in A set of current data contained in the leaf nodes belonging to an isolated tree; Represents a difference The amount of current data in; represents the sigmoid function; represents the natural exponential function.

[0017] Preferably, the abnormality degree satisfies the expression:

[0018] ;

[0019] in, Indicates the target current data in The degree of anomaly in an isolated tree; Indicates The current data group where the target current data is located in the target sequence corresponding to the isolated tree and its adjacent The time interval between the current data sets; Indicates The average time interval of the current data group in the target sequence corresponding to the isolated tree; Indicates the target current data in The number of current data contained in the leaf nodes of each isolated tree; represents the hyperbolic tangent function; is a hyperparameter; Indicates The number of current data groups adjacent to the current data group where the target current data is located in the target sequence corresponding to the isolated tree.

[0020] Preferably, the method for obtaining the time interval and the average time interval is:

[0021] The time at which the first current data in the current data group is located is taken as the starting time of the current data group, and the time at which the last current data in the current data group is located is taken as the ending time of the current data group;

[0022] The difference between the start time of a current data group and the end time of the previous current data group is taken as the time interval between two adjacent current data groups; the average of the time intervals between all adjacent current data groups is taken as the average time interval of the current data groups in the target sequence.

[0023] Preferably, the abnormal probability satisfies the expression:

[0024] ;

[0025] in, Indicates the possibility of abnormality of target current data; represents the number of isolated trees; Indicates The classification accuracy of an isolated tree for the target current data; Indicates the target current data in The degree of anomaly in an isolated tree.

[0026] Preferably, the abnormal probability satisfies the expression:

[0027] ;

[0028] in, Indicates the possibility of abnormality of target current data; represents the number of isolated trees; Indicates The classification accuracy of an isolated tree for the target current data; Indicates the target current data in The degree of anomaly in an isolated tree.

[0029] Preferably, the step of screening abnormal current data according to the abnormal possibility of the current data includes:

[0030] In response to the abnormal possibility of the target current data being greater than a preset abnormal threshold, the target current data is regarded as abnormal current data.

[0031] Preferably, the voltage data abnormality monitoring module includes:

[0032] A voltage data acquisition unit, used to collect voltage data at every moment;

[0033] A voltage data isolation forest construction unit, used for constructing an isolation forest according to voltage data;

[0034] A voltage data classification accuracy acquisition unit, used to determine the classification accuracy of each isolated tree for target voltage data;

[0035] A voltage data abnormality possibility acquisition unit, used to determine the abnormality possibility of target voltage data;

[0036] The abnormal voltage monitoring unit is used to screen abnormal voltage data according to the abnormal possibility of the voltage data.

[0037] Preferably, analyzing the power quality according to the abnormal current data and the abnormal voltage data includes:

[0038] In response to the number of abnormal current data continuously occurring in time sequence being greater than a preset number threshold, or the number of abnormal voltage data continuously occurring in time sequence being greater than a preset number threshold, a power quality alarm is issued.

[0039] The embodiments of the present invention have at least the following beneficial effects: the present invention analyzes the classification accuracy of each isolated tree for current data or voltage data, determines the degree of abnormality of the current data or voltage data in each isolated tree according to the distribution pattern of all data in the leaf node where the current data or voltage data is located, and determines the abnormal possibility of the current data or voltage data in combination with the classification accuracy and the degree of abnormality, and can screen out abnormal current data or abnormal voltage data that does not exceed the range of periodic changes. Compared with the traditional isolation forest algorithm, the accuracy of abnormal current data and abnormal voltage data screened out by the present invention is higher, thereby improving the accuracy of power quality analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 A block diagram of an integrated terminal with power quality analysis function provided by one embodiment of the present invention;

[0042] Figure 2 A block diagram of a current data anomaly monitoring module of a fusion terminal with a power quality analysis function provided by an embodiment of the present invention;

[0043] Figure 3 A schematic diagram of a stable changing current data curve of a fusion terminal with a power quality analysis function provided by an embodiment of the present invention;

[0044] Figure 4 A schematic diagram of an abnormally changing current data curve of a fusion terminal with a power quality analysis function provided by an embodiment of the present invention;

[0045] Figure 5 A block diagram of a voltage data anomaly monitoring module of an integrated terminal with a power quality analysis function provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a fusion terminal with power quality analysis function proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures, or characteristics in one or more embodiments may be combined in any suitable form.

[0047] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0048] The following describes in detail a specific solution of a fusion terminal with power quality analysis function provided by the present invention in conjunction with the accompanying drawings.

[0049] See also Figure 1 , which shows an integrated terminal with power quality analysis function provided by an embodiment of the present invention, the terminal includes the following modules:

[0050] The current data abnormality monitoring module 010 is used to identify abnormal current data.

[0051] like Figure 2 As shown, the current data abnormality monitoring module 010 includes units 011-015, specifically:

[0052] The current data acquisition unit 011 is used to acquire the current data at every moment.

[0053] The current data isolation forest construction unit 012 is used to construct an isolation forest according to the current data.

[0054] Specifically, continuous The current data at each moment is used as a data sample, and the isolation forest algorithm is used to construct the data sample Isolated tree. is the preset first quantity, The second quantity is a preset quantity. The implementer can set the first quantity and the second quantity according to the actual implementation situation. For example, , .

[0055] It should be noted that the stopping condition when constructing the isolated tree in the present invention is: the height of the isolated tree reaches the preset maximum height Stop at maximum height It can be set by the implementer according to the actual implementation situation, for example .

[0056] At this point, the construction of the isolation tree is achieved.

[0057] The current data classification accuracy acquisition unit 013 is used to determine the classification accuracy of each isolated tree for the target current data.

[0058] It should be noted that the isolation forest is an unsupervised anomaly detection method suitable for continuous data, which can be used to detect outliers. Since the current data changes periodically, when the power quality is poor, the current data is unstable, resulting in abnormal changes in the current data, but the value of the abnormal current data may not exceed the range of all current data periodic changes, and the isolation forest algorithm cannot directly identify abnormal currents. Each isolated tree in the isolation forest essentially divides the data samples into multiple categories, and each leaf node of the isolated tree corresponds to a category. Therefore, the present invention analyzes the categories divided by each isolated tree and determines the classification accuracy of each isolated tree for each current data, so as to subsequently determine the abnormal current data according to the classification accuracy.

[0059] Specifically, the current data at any moment is taken as the target current data, and the classification accuracy of each isolated tree for the target current data is determined according to the number of current data contained in the leaf nodes to which the target current data belongs in each isolated tree, and the distribution difference of the current data in the leaf nodes to which the target current data belongs in each isolated tree:

[0060] ;

[0061] in, Indicates The classification accuracy of an isolated tree for the target current data; represents a preset first quantity, that is, the quantity of current data in the data sample; Indicates the preset maximum height, that is, the height of each isolated tree; Indicates the target current data in The number of current data contained in the leaf nodes of each isolated tree; represents a preset second quantity, i.e., the number of isolated trees; Indicates the target current data in A set of current data contained in the leaf nodes belonging to an isolated tree; Indicates the target current data in A set of current data contained in the leaf nodes belonging to an isolated tree; Representing a collection and The difference of Represents a difference The number of current data in the target current data. The leaf node of the isolated tree, but not in the target current data The number of current data in the leaf nodes of an isolated tree, Used for Perform normalization; represents the S-type function, ; represents the natural exponential function.

[0062] The isolation tree essentially divides all current data in the data sample into multiple categories, and each category corresponds to a leaf node of the isolation tree. The height of the isolation tree is , and the isolated tree is a binary tree, then the isolated tree contains at most leaf nodes, that is, by using the isolated tree to classify the data samples, the maximum number of Since the current data changes periodically, when the power quality is good, the current data changes periodically stably. At this time, the current data in the data set is classified, and the number of current data in each category is basically the same, that is, the number of current data contained in each leaf node in the isolated tree should be close to , when the target current data is in the The number of current data contained in the leaf nodes of the isolated tree exceeds , explain The threshold randomly selected in the process of building the isolated tree is unreasonable, resulting in The classification accuracy of the target current data for the first isolated tree is poor; on the contrary, if the target current data is The number of current data contained in the leaf nodes of an isolated tree does not exceed , explain The randomly selected threshold in the process of building the first isolated tree is good, so that The classification accuracy of the target current data is higher with an isolated tree. The more hours, the The smaller the number of isolated trees, the smaller the classification accuracy of the target current data. The larger the The larger the number of isolated trees, the greater the classification accuracy of the target current data.

[0063] Reflects the target current data in the The current data contained in the leaf nodes of the isolated tree and the target current data are The distribution difference of the current data contained in the leaf nodes of the isolated tree is The number of current data in The more the target current data is, the Some current data in the leaf nodes of the isolated tree should belong to different leaf nodes from the target current data, but actually belong to the same leaf node, which means that the target current data is in the The leaf node in the isolated tree is compared with the target current data in the The classification accuracy of the leaf nodes in the isolated tree is poor; on the contrary, when the difference set The number of current data in The smaller and closer to 0, the target current data is The leaf node in the isolated tree is compared with the target current data in the The classification accuracy of the leaf nodes in the isolated tree is not bad. The distribution difference between the current data contained in the leaf nodes of the isolated tree and the current data contained in the leaf nodes of the remaining isolated trees by To judge the The classification accuracy of the isolated tree for the target current data is The larger the value, the greater the classification accuracy. The smaller it is, the lower the classification accuracy.

[0064] So far, the classification accuracy of each isolated tree for the target current data is obtained.

[0065] The current data abnormality possibility acquisition unit 014 is used to determine the abnormality possibility of the target current data.

[0066] It should be noted that when the power quality is good, the periodic variation of the current data is stable, and the time interval distribution between adjacent current data contained in the leaf nodes of the isolated tree is relatively regular, for example Figure 3 For a stable current data curve, the black data points on the curve may be classified into one category, and the time intervals between these data points are distributed regularly. On the contrary, when the power quality is poor, the current data cycle changes unstably, and the time intervals between adjacent current data contained in the leaf node where the abnormal current data is located are distributed irregularly, for example Figure 4 The abnormal current data curve, the point on the curve For abnormal current data, point B may be classified into the same category as the black data points on the curve. It does not conform to the time interval distribution rule between other data points. Therefore, the present invention determines the abnormality degree of the current data in the leaf node according to the time interval between adjacent current data contained in the leaf node of the isolated tree.

[0067] Specifically, all current data contained in the leaf nodes to which the target current data belongs in each isolated tree are sorted in chronological order to obtain a target sequence corresponding to each isolated tree.

[0068] The target sequence contains multiple current data groups if the current data that are continuous in time sequence in the target sequence are taken as one current data group. For example, when the target sequence contains the current data at the 3rd, 4th, 5th, 8th, 9th, 13th, 14th, and 15th moments, the current data at the 3rd, 4th, and 5th moments are one current data group, the current data at the 8th and 9th moments are one current data group, and the current data at the 13th, 14th, and 15th moments are one current data group.

[0069] The moment of the first current data in the current data group is taken as the starting moment of the current data group, and the moment of the last current data in the current data group is taken as the ending moment of the current data group. The difference between the starting moment of the current data group and the ending moment of the previous current data group is taken as the time interval between the two adjacent current data groups, and the mean of the time intervals between all adjacent current data groups is taken as the average time interval of the current data groups in the target sequence. For example, the starting moment of the current data group composed of the current data at the 3rd, 4th, and 5th moments is 3, and the ending moment is 5; the starting moment of the current data group composed of the current data at the 8th and 9th moments is 8, and the ending moment is 9; the starting moment of the current data group composed of the current data at the 13th, 14th, and 15th moments is 13, and the ending moment is 15. The time interval between the current data group formed by the current data at the 3rd, 4th and 5th moments and the current data group formed by the current data at the 8th and 9th moments is 3, and the time interval between the current data group formed by the current data at the 8th and 9th moments and the current data group formed by the current data at the 13th, 14th and 15th moments is 4, so the average time interval is 3.5.

[0070] According to the difference between the time interval and the average time interval between the current data group where the target current data is located and the adjacent current data groups in the target sequence corresponding to each isolated tree, and the number of current data contained in the leaf node to which the target current data belongs in each isolated tree, the abnormality degree of the target current data in each isolated tree is determined:

[0071] ;

[0072] in, Indicates the target current data in The degree of anomaly in an isolated tree; Indicates The current data group where the target current data is located in the target sequence corresponding to the isolated tree and its adjacent The time interval between the current data sets; Indicates The average time interval of the current data group in the target sequence corresponding to the isolated tree; Indicates the target current data in The number of current data contained in the leaf nodes of each isolated tree; represents the hyperbolic tangent function; is a hyperparameter used to prevent Larger causes Always close to 1, The experience value is 3; Indicates The number of current data groups adjacent to the current data group where the target current data is located in the target sequence corresponding to the isolated tree, The maximum value is 2.

[0073] When the power quality is good, the current data period changes stably, and the time intervals between adjacent current data groups in the target sequence of the isolation tree are consistent. The time interval between the current data group where the target current data is located in the target sequence corresponding to the isolated tree and its adjacent current data group and the average time interval of the current data group in the target sequence The difference between The larger the value, the less consistent the current data group where the target current data is with the law of periodic change. The greater the degree of abnormality in the isolated tree; conversely, the difference The smaller the value, the more the current data group where the target current data is located conforms to the law of periodic change. The smaller the degree of anomaly in the isolated tree.

[0074] When the target current data is in The smaller the number of current data contained in the leaf nodes in an isolated tree, the greater the numerical difference between the target current data and other current data in the data sample, and the more isolated the target current data is. right To zoom in, The more hours, The smaller the value, the greater the magnification. The greater the degree of abnormality in an isolated tree; The bigger it is, The closer it is to 1, the smaller the amplification degree is. The degree of abnormality in an isolated tree depends more on .

[0075] In one embodiment, the abnormal possibility of the target current data is determined according to the classification accuracy of each isolated tree for the target current data and the abnormal degree of the target current data in each isolated tree:

[0076] ;

[0077] in, Indicates the possibility of abnormality of target current data; represents the number of isolated trees; Indicates The classification accuracy of an isolated tree for the target current data; Indicates the target current data in The degree of abnormality in an isolated tree; The greater the classification accuracy of the target current data for the isolated tree, the better the classification accuracy of the target current data. The more accurate the target current data is divided by the isolated tree, the better the target current data is in the first The more accurate the abnormality is in the first isolated tree, the more accurate the abnormality is in the second isolated tree. The smaller the classification accuracy of the target current data for an isolated tree, the The more inaccurate the target current data is divided by the isolated tree, the more accurate the target current data is in the first The less accurate the abnormality in the isolated tree, the more inaccurate the present invention will be. As the The weight of each isolated tree is used to sum the abnormality degree of the target current data in each isolated tree to obtain the abnormal possibility of the target current data.

[0078] In another embodiment, the abnormal possibility of the target current data is determined according to the classification accuracy of each isolated tree for the target current data and the abnormal degree of the target current data in each isolated tree:

[0079] ;

[0080] in, Indicates the possibility of abnormality of target current data; represents the number of isolated trees; Indicates The classification accuracy of an isolated tree for the target current data; Indicates the target current data in The degree of abnormality in an isolated tree; The greater the classification accuracy of the target current data for the isolated tree, the better the classification accuracy of the target current data. The more accurate the target current data is divided by the isolated tree, the better the target current data is in the first The more accurate the abnormality is in the first isolated tree, the more accurate the abnormality is in the second isolated tree. The smaller the classification accuracy of the target current data for an isolated tree, the The more inaccurate the target current data is divided by the isolated tree, the more accurate the target current data is in the first The more inaccurate the abnormality in the first isolated tree, the less accurate the classification accuracy is. Therefore, the present invention uses the classification accuracy to classify the target current data in the first The degree of abnormality in the isolated tree is corrected. As The index of the abnormality is corrected by gamma transformation. The more hours, The larger the value is, and it is greater than 1, the greater the degree of abnormality. The greater the degree of correction, the higher the classification accuracy. The bigger it is, The smaller it is, and the closer it is to 1, the more abnormal the The smaller the correction degree of the target current data is, the average value of the correction results of the abnormality degree of the target current data in each isolated tree is taken as the abnormality possibility of the target current data.

[0081] At this point, the abnormality possibility of the target current data is acquired.

[0082] The abnormal current monitoring unit 015 is used to filter abnormal current data according to the abnormal possibility of the current data.

[0083] Specifically, in response to the abnormal possibility of the target current data being greater than a preset abnormal threshold, the target current data is used as abnormal current data, wherein the abnormal threshold is set by the implementer according to actual implementation conditions, for example, 0.5.

[0084] At this point, the identification of abnormal current data is achieved.

[0085] The voltage data abnormality monitoring module 020 is used to identify abnormal voltage data.

[0086] like Figure 5 As shown, the voltage data abnormality monitoring module 020 includes units 021-025, specifically:

[0087] The voltage data acquisition unit 021 is used to acquire voltage data at every moment.

[0088] The voltage data isolation forest construction unit 022 is used to construct an isolation forest according to the voltage data.

[0089] The voltage data classification accuracy acquisition unit 023 is used to determine the classification accuracy of each isolated tree for the target voltage data.

[0090] The voltage data abnormality possibility acquisition unit 024 is used to determine the abnormality possibility of the target voltage data.

[0091] The abnormal voltage monitoring unit 025 is used to filter abnormal voltage data according to the abnormal possibility of the voltage data.

[0092] It should be noted that the method for processing voltage data by units 021 - 025 in the voltage data abnormality monitoring module 020 is the same as the method for processing current data by units 011 - 015 in the current data abnormality monitoring module 010 , which will not be described in detail here.

[0093] The power quality analysis module 030 is used to analyze the power quality according to the abnormal current data and the abnormal voltage data.

[0094] It should be noted that if the abnormal current data appears alone, it may be noise, and if the abnormal current data appears continuously, it indicates that the current is unstable. Similarly, if the abnormal voltage data appears alone, it may be noise, and if the abnormal voltage data appears continuously, it indicates that the voltage is unstable. Therefore, the present invention analyzes the power quality according to the number of consecutive occurrences of abnormal current data or abnormal voltage data.

[0095] Specifically, in response to the number of abnormal current data continuously in time sequence being greater than a preset number threshold, or the number of abnormal voltage data continuously in time sequence being greater than a preset number threshold, a power quality alarm is issued, and relevant staff members investigate the cause of the abnormal current or voltage. The number threshold is set by real-time personnel according to actual implementation conditions, for example, 1.

[0096] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An integrated terminal with power quality analysis function, characterized in that: The terminal comprises: The current data anomaly monitoring module is used to identify abnormal current data, including: A current data acquisition unit, used to collect current data at every moment; A current data isolation forest construction unit, used for constructing an isolation forest according to the current data; The current data classification accuracy acquisition unit is used to determine the classification accuracy of each isolated tree for the target current data, and the classification accuracy is negatively correlated with the number of current data contained in the leaf nodes to which the target current data belongs in each isolated tree and the distribution difference of the current data in the leaf nodes to which the target current data belongs in each isolated tree; the classification accuracy satisfies the expression: ; in, Indicates The classification accuracy of an isolated tree for the target current data; Indicates the number of current data in the data sample; Indicates the height of each isolated tree; Indicates the target current data in The number of current data contained in the leaf nodes of each isolated tree; represents the number of isolated trees; Indicates the target current data in A set of current data contained in the leaf nodes belonging to an isolated tree; Indicates the target current data in A set of current data contained in the leaf nodes belonging to an isolated tree; Represents a difference The amount of current data in; represents the sigmoid function; represents the natural exponential function; A current data abnormality possibility acquisition unit is used to determine the abnormality possibility of the target current data, wherein the abnormality possibility is positively correlated with the classification accuracy of each isolated tree for the target current data and the abnormality degree of the target current data in each isolated tree; the abnormality degree is positively correlated with the first difference and negatively correlated with the number of current data contained in the leaf node to which the target current data belongs in each isolated tree; the first difference is the difference in the time interval and the average time interval between the current data group where the target current data is located and the current data group adjacent to it in each isolated tree, and the method for acquiring the current data group is: all current data contained in the leaf node to which the target current data belongs in each isolated tree are sorted in chronological order to obtain the target sequence corresponding to each isolated tree, and the current data that is continuous in time sequence in the target sequence is regarded as a current data group; the abnormality degree satisfies the expression: ; in, Indicates the target current data in The degree of anomaly in an isolated tree; Indicates The current data group where the target current data is located in the target sequence corresponding to the isolated tree and its adjacent The time interval between the current data sets; Indicates The average time interval of the current data group in the target sequence corresponding to the isolated tree; Indicates the target current data in The number of current data contained in the leaf nodes of each isolated tree; represents the hyperbolic tangent function; is a hyperparameter; Indicates The number of current data groups adjacent to the current data group where the target current data is located in the target sequence corresponding to the isolated tree; The abnormal current monitoring unit is used to screen the abnormal current data according to the abnormal possibility of the current data, including: in response to the abnormal possibility of the target current data being greater than a preset abnormal threshold, taking the target current data as the abnormal current data; The voltage data anomaly monitoring module is used to identify abnormal voltage data, including: A voltage data acquisition unit, used to collect voltage data at every moment; A voltage data isolation forest construction unit, used for constructing an isolation forest according to voltage data; A voltage data classification accuracy acquisition unit, used to determine the classification accuracy of each isolated tree for target voltage data; A voltage data abnormality possibility acquisition unit, used to determine the abnormality possibility of target voltage data; An abnormal voltage monitoring unit is used to screen abnormal voltage data according to the abnormal possibility of the voltage data; The power quality analysis module is used to analyze the power quality based on abnormal current data and abnormal voltage data, including: in response to the number of continuous abnormal current data in time sequence being greater than a preset number threshold, or the number of continuous abnormal voltage data in time sequence being greater than a preset number threshold, a power quality alarm is issued.

2. The integrated terminal with power quality analysis function according to claim 1, characterized in that: The method for obtaining the time interval and the average time interval is: The time at which the first current data in the current data group is located is taken as the starting time of the current data group, and the time at which the last current data in the current data group is located is taken as the ending time of the current data group; The difference between the start time of a current data group and the end time of the previous current data group is taken as the time interval between two adjacent current data groups; the average of the time intervals between all adjacent current data groups is taken as the average time interval of the current data groups in the target sequence.

3. The integrated terminal with power quality analysis function according to claim 1, characterized in that: The abnormal probability satisfies the expression: ; in, Indicates the possibility of abnormality of target current data; represents the number of isolated trees; Indicates The classification accuracy of an isolated tree for the target current data; Indicates the target current data in The degree of anomaly in an isolated tree.

4. The integrated terminal with power quality analysis function according to claim 1, characterized in that: The abnormal probability satisfies the expression: ; in, Indicates the possibility of abnormality of target current data; represents the number of isolated trees; Indicates The classification accuracy of an isolated tree for the target current data; Indicates the target current data in The degree of anomaly in an isolated tree.