Abnormality processing method and device for time series data

By automatically determining the theoretical normal value range of time series data and identifying abnormal difference values, it solves the problems of low time series data processing efficiency and high manual participation in the existing technology, and achieves efficient anomaly detection and correction.

CN118568632APending Publication Date: 2024-08-30TSINGHUA UNIVERSITY
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410726372.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

When processing time series data, the existing technology requires manual analysis and detection of anomalies, which is inefficient and difficult to automatically process mutations in time series data.

Method used

By determining the actual difference values ​​of pixel values ​​or data points in time series images or data sequences, adaptively determine the theoretical normal value range, automatically identify abnormal difference values ​​outside this range, and realize automatic anomaly detection of time series data.

Benefits of technology

It improves the efficiency and accuracy of time series data anomaly detection, reduces manual participation, and can automatically identify and correct mutations in time series data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568632A
    Figure CN118568632A
Patent Text Reader

Abstract

The invention discloses an exception handling method and device for time series data. The method comprises the following steps: determining a plurality of time sequence images; among different time sequence images, the pixel values with the same pixel positions respectively represent information collected at different time points at the same geographic position; for any pixel position, determining a target pixel value sequence; the target pixel value sequence comprises a pixel value of the determined time sequence image at a pixel position; determining an actual difference value set for the target pixel value sequence; the actual difference value set comprises actual difference values used for representing numerical value change conditions between adjacent pixel values in the target pixel value sequence; based on the distribution condition of the actual difference values in the actual difference value set, theoretical normal value ranges corresponding to different actual difference values are determined, and the actual difference values located outside the corresponding theoretical normal value ranges are determined as abnormal difference values.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application technology, and in particular to an exception processing method and device for time series data. Background Art

[0002] With the popularization of information technology, more time series data can often be collected for processing. Before processing the collected time series data, it is usually necessary to detect abnormal conditions in the time series data.

[0003] For example, when using remote sensing technology to collect time series data on night light brightness at different times in a certain area, the collected time series data on night light brightness may have large mutations due to various factors in the data collection process, such as satellite failure or weather influences, including sudden increases or decreases. Therefore, it is necessary to detect the mutations in the collected time series data on night light brightness.

[0004] Currently, the collected time series data is usually analyzed manually, the normal range of the time series data is manually determined, and then the mutation data in the time series data is determined, which is relatively inefficient. Summary of the invention

[0005] The present invention provides a method and device for handling exceptions in time series data to address deficiencies in the related art.

[0006] According to a first aspect of an embodiment of the present invention, a method for handling exceptions in time series data is provided, comprising:

[0007] Determine a number of time-series images; between different time-series images, pixel values ​​with the same pixel position respectively represent information collected at different time points at the same geographical location;

[0008] For any pixel position, a target pixel value sequence is determined; the target pixel value sequence includes: the pixel value of the determined time series image at the targeted pixel position; the pixel values ​​in the target pixel value sequence are arranged in order from the front to the back according to the acquisition time point;

[0009] Determine an actual difference value set for the target pixel value sequence; the actual difference value set includes: actual difference values ​​for characterizing the numerical changes between adjacent pixel values ​​in the target pixel value sequence;

[0010] Based on the distribution of the actual difference values ​​in the actual difference value set, the theoretical normal value ranges corresponding to different actual difference values ​​are determined, and the actual difference values ​​outside the corresponding theoretical normal value ranges are determined as abnormal difference values.

[0011] According to a second aspect of an embodiment of the present invention, another method for handling exceptions in time series data is provided, including:

[0012] Determine a time series data sequence; different time series data in the time series data sequence respectively represent information collected at different time points at the same geographical location; the time series data in the time series data sequence are arranged in order from the front to the back according to the collection time point;

[0013] For the time series data sequence, determining an actual difference value set; the actual difference value set includes: actual difference values ​​used to characterize the numerical changes between adjacent time series data in the time series data sequence;

[0014] Based on the distribution of the actual difference values ​​in the actual difference value set, the theoretical normal value ranges corresponding to different actual difference values ​​are determined, and the actual difference values ​​outside the corresponding theoretical normal value ranges are determined as abnormal difference values.

[0015] According to a third aspect of an embodiment of the present invention, there is provided an exception processing device for time series data, comprising:

[0016] An image determination unit is used to: determine a plurality of time-series images; pixel values ​​with the same pixel position between different time-series images respectively represent information collected at different time points at the same geographical location;

[0017] A sequence determination unit is used to: determine a target pixel value sequence for any pixel position; the target pixel value sequence includes: the pixel value of the determined time series image at the targeted pixel position; the pixel values ​​in the target pixel value sequence are arranged in order from the front to the back according to the acquisition time point;

[0018] The abnormality detection unit is used to determine an actual difference value set for the target pixel value sequence; the actual difference value set includes: actual difference values ​​used to characterize the numerical changes between adjacent pixel values ​​in the target pixel value sequence; based on the distribution of the actual difference values ​​in the actual difference value set, determine the theoretical normal value ranges corresponding to different actual difference values, and determine the actual difference values ​​outside the corresponding theoretical normal value ranges as abnormal difference values.

[0019] According to a fourth aspect of an embodiment of the present invention, another exception handling device for time series data is provided, including:

[0020] A time series determination unit is used to determine a time series data sequence; different time series data in the time series data sequence respectively represent information collected at different time points at the same geographical location; the time series data in the time series data sequence are arranged in order from the front to the back according to the collection time point;

[0021] A difference detection unit is used to determine a set of actual difference values ​​for the time series data sequence; the actual difference value set includes: actual difference values ​​used to characterize the numerical changes between adjacent time series data in the time series data sequence; based on the distribution of actual difference values ​​in the actual difference value set, determine the theoretical normal value ranges corresponding to different actual difference values, and determine the actual difference values ​​outside the corresponding theoretical normal value ranges as abnormal difference values.

[0022] According to the above embodiments, anomaly detection can be automatically performed on time series data, which facilitates the determination of mutations in the time series data and improves the efficiency and accuracy of anomaly detection on the time series data.

[0023] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0025] Figure 1 is a schematic diagram showing a principle of anomaly detection for time series data according to an embodiment of the present invention;

[0026] Figure 2 is a flow chart of a method for handling exceptions in time series data according to an embodiment of the present invention;

[0027] Figure 3 is a flow chart of another method for handling exceptions in time series data according to an embodiment of the present invention;

[0028] Figure 4 is a schematic structural diagram of an exception processing device for time series data according to an embodiment of the present invention;

[0029] Figure 5 is a schematic structural diagram of another device for handling exceptions in time series data according to an embodiment of the present invention;

[0030] Figure 6 The figure is a schematic diagram of the hardware structure of a computer device configured with the method of the embodiment of the present invention according to the embodiment of the present invention. DETAILED DESCRIPTION

[0031] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0032] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present invention are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0033] With the popularization of information technology, more time series data can often be collected for processing. Before processing the collected time series data, it is usually necessary to detect abnormal conditions in the time series data.

[0034] For example, when using remote sensing technology to collect time series data on night light brightness at different times in a certain area, the collected time series data on night light brightness may have large mutations due to various factors in the data collection process, such as satellite failure or weather influences, including sudden increases or decreases. Therefore, it is necessary to detect the mutations in the collected time series data on night light brightness.

[0035] Currently, the collected time series data is usually analyzed manually, the normal range of the time series data is manually determined, and then the mutation data in the time series data is determined, which is relatively inefficient.

[0036] An embodiment of the present invention discloses an exception processing method for time series data.

[0037] In this method, the machine equipment can be used to automatically perform anomaly detection on the collected time series data. Specifically, the theoretical normal value range can be adaptively determined based on the collected time series data, so that the machine equipment can automatically determine the abnormal situation.

[0038] This method does not limit the form of the collected time series data, which can specifically be multiple time series values ​​representing information collected at different time points at the same geographical location, or multiple time series images in the form of images representing information collected at different time points at the same geographical location.

[0039] The multiple time series data collected may be multiple time series data collected periodically at the same geographical location, for example, collecting data every hour, collecting data at 17:00 every day, collecting data on the same date April 29 every year, etc. This method does not limit the time point of collection.

[0040] Among them, time series data collected at different time points in the same geographical location usually has the property of stable changes. Specifically, the value may remain unchanged over time, or the value may increase steadily over time, or the value may decrease steadily over time, etc.

[0041] For example, the population data of a certain area tends to increase steadily with the passage of years. The brightness of night lights in a certain area also increases steadily over time, which can specifically reflect the population and the number of houses.

[0042] This method does not limit the content of time series data, and the time series data may specifically include any of the following: geological time series data, geographic time series data, and remote sensing time series data, etc. Among them, geological time series data may be geological data collected at different time points at the same geographical location, geographic time series data may be geographic data collected at different time points at the same geographical location, and remote sensing time series data may be data collected at different time points at the same geographical location using remote sensing technology.

[0043] For these time series data, in this method, the machine equipment can automatically perform exception processing, specifically, perform anomaly detection.

[0044] The abnormal situation detected here may specifically be a mutation situation in the detection time series data.

[0045] Time series data usually changes smoothly. If a sudden change occurs, it may be an abnormal situation. We need to pay special attention to the time series data with sudden changes to facilitate subsequent correction and adjustment. Specifically, it may be a sudden increase or a sudden decrease.

[0046] Among them, the reason for the mutation may be that the collection process is affected by factors such as the environment and equipment. For example, when the satellite collects time series data, it is blocked by clouds, resulting in large errors in the collected information, or the satellite fails, resulting in large errors in the collected information, etc.

[0047] In order to facilitate the analysis of possible mutations in time series data, considering that time series data usually changes smoothly, we can first analyze the changes in the time series data, especially the changes in the values ​​of adjacent time series data.

[0048] If it is determined that the numerical changes of adjacent time series data have occurred suddenly, it can be determined that an abnormal situation exists.

[0049] Therefore, in this method, the time series data can be arranged in order from the front to the back according to the acquisition time points, and the value changes of adjacent time series data can be determined to detect mutations in the time series data.

[0050] Specifically, a difference value used to characterize the change in the values ​​of adjacent time series data may be determined, and whether a mutation occurs may be determined based on the specific value of the difference value.

[0051] The following explanation is given by taking the first-order difference value between adjacent time series data as an example.

[0052] Specifically, a first-order difference sequence may be determined for the time series data, and then the theoretical normal value range corresponding to each first-order difference value may be comprehensively determined in combination with the determined first-order difference values.

[0053] Based on the theoretical normal value range, the first-order difference value that is not within the corresponding theoretical normal value range can be determined as a mutation, which means that an abnormal situation exists.

[0054] Since the first-order difference value is determined by two adjacent time series data, for the first-order difference value that is not within the corresponding theoretical normal value range, it can be determined that a mutation has occurred between the corresponding two adjacent time series data, which does not conform to the conventional smooth change situation.

[0055] In this method, there is no limitation on the specific way of determining the theoretical normal value range corresponding to the first-order difference value. Specifically, the first-order difference sequence can be smoothed to obtain a smoothed difference sequence, thus obtaining the smoothed difference values ​​corresponding to each first-order difference value.

[0056] Since smoothing can improve the stability and stationarity of the first-order difference sequence, the theoretical normal value range can be determined based on the difference value obtained after smoothing for anomaly detection.

[0057] This method can automatically determine the first-order difference sequence for time series data through machine equipment, as well as the theoretical normal value range corresponding to the first-order difference value, so as to facilitate the determination of abnormal difference values ​​that are not within the corresponding theoretical normal value range, and facilitate the determination of the mutation of the time series data based on the first-order difference value, thereby improving the efficiency and accuracy of anomaly detection for time series data.

[0058] After determining that there is a mutation in the time series data, the time series data can be further corrected in combination with the detected mutation time series data. The specific correction steps are explained later.

[0059] Of course, further analysis can be performed on the mutations in the time series data to determine the causes of the mutations.

[0060] For ease of understanding, the following is an example of anomaly detection for time series data.

[0061] like Figure 1 As shown, Figure 1 The figure is a schematic diagram showing the principle of performing anomaly detection on time series data according to an embodiment of the present invention.

[0062] Among them, remote sensing images of night light brightness in the same area in different years are collected as time series images, and the numerical changes of single pixel values ​​are further collected.

[0063] Afterwards, the first-order difference value can be automatically calculated by the machine equipment, and the normal value range, that is, the normal value upper limit and the normal value lower limit, can be further automatically determined for the first-order difference value. This can facilitate the determination of abnormal differential values ​​that are not in the normal value range, facilitate the determination of sudden changes in single pixel values ​​over time, and facilitate anomaly detection.

[0064] Under normal circumstances, as cities develop and population increases, the nighttime light brightness in the same area usually shows a trend of steady growth over time. If there is a sudden increase or decrease, it can be considered that an abnormal situation has occurred. For example, the data collection equipment fails, a disaster occurs in the area, a festival event is held in the area, etc.

[0065] The following is a detailed explanation of an exception processing method for time series data provided by an embodiment of the present invention.

[0066] like Figure 2 As shown, Figure 2 The figure is a flow chart of a method for handling exceptions in time series data according to an embodiment of the present invention.

[0067] The embodiment of the present invention does not limit the execution subject of the method flow. Optionally, the execution subject can be any electronic device, such as a computer, a terminal, a server, etc.

[0068] The method may include the following steps.

[0069] S101: Determine a number of time-series images; between different time-series images, pixel values ​​with the same pixel position respectively represent information collected at different time points at the same geographical location.

[0070] S102: For any pixel position, determine a target pixel value sequence; the target pixel value sequence includes: the pixel value of the determined time series image at the targeted pixel position; the pixel values ​​in the target pixel value sequence are arranged in order from front to back according to the acquisition time point.

[0071] S103: determining an actual difference value set for the target pixel value sequence; the actual difference value set includes: actual difference values ​​for characterizing the numerical changes between adjacent pixel values ​​in the target pixel value sequence.

[0072] S104: Based on the distribution of the actual difference values ​​in the actual difference value set, determine the theoretical normal value ranges corresponding to different actual difference values, and determine the actual difference value outside the corresponding theoretical normal value range as an abnormal difference value.

[0073] The above method process can automatically perform anomaly detection on time series data, that is, the pixel value sequence of the same pixel position in several time series images, which is convenient for determining the mutation situation in the time series data, improving the efficiency and accuracy of anomaly detection on time series data, and also convenient for determining the mutation situation in the pixel value sequence, improving the efficiency and accuracy of anomaly detection on time series images.

[0074] Furthermore, the above method flow can be combined with the distribution of actual difference values ​​to adaptively and automatically determine the theoretical normal value range, which can reduce manual participation and improve the accuracy of anomaly detection.

[0075] The following is a detailed explanation of each step.

[0076] 1. S101: Determine a number of time-series images; between different time-series images, pixel values ​​at the same pixel position respectively represent information collected at different time points at the same geographical location.

[0077] The method flow does not limit the specific form of the time series image.

[0078] In an optional embodiment, the pixel values ​​in the time series image may represent information collected at a certain geographical location and in a certain time period.

[0079] Among them, different pixel values ​​in the same time series image can respectively represent information collected at the same time point in different geographical locations.

[0080] Therefore, the time-series images may correspond to acquisition time points, and accordingly, each pixel value in the same time-series image may also correspond to the same acquisition time point.

[0081] For ease of understanding, in a specific example, the time series image can specifically represent the population of area A at 5:10. Accordingly, different pixels in the time series image can respectively represent the population of different geographical locations in area A at 5:10. The acquisition time point is 5:10.

[0082] In another specific example, the time sequence image can specifically represent the night light brightness in area B at 10:20. Accordingly, different pixels in the time sequence image can respectively represent the night light brightness at different geographical locations in area B at 10:20. The acquisition time point is 10:20.

[0083] For the determined multiple time-series images, pixel values ​​at the same pixel position between different time-series images can respectively represent information collected at different time points at the same geographical location.

[0084] The sizes of the determined time-series images may be the same, so that the pixel values ​​at the same pixel position can be conveniently determined. Determining the time-series images may specifically be determining the time-series images of the same size.

[0085] Since the time-series images can correspond to the acquisition time points, when a number of time-series images are determined, the time-series images can be stored in the form of a sequence, and specifically can be arranged in order from the acquisition time points from front to back. Among them, the interval durations of the acquisition time points between different pairs of adjacent time-series images can be the same or different. Optionally, the difference in the interval durations of the acquisition time points between different pairs of adjacent time-series images can be less than a preset duration difference threshold. Alternatively, the interval durations of the acquisition time points between adjacent time-series images can be less than a preset interval threshold.

[0086] In a specific example, a plurality of time-series images may be periodically acquired, and after being arranged in order from front to back according to acquisition time points, the interval duration between acquisition time points of adjacent time-series images may be a fixed value, that is, the duration of a cycle.

[0087] The method flow does not limit the specific number of time-sequential images. Optionally, at least 3 time-sequential images may be determined, or at least 10 time-sequential images may be determined, and so on.

[0088] The method flow does not limit the specific manner of determining the plurality of time-series images. Optionally, the plurality of time-series images pre-collected may be acquired locally, or the plurality of time-series images sent by an external device may be received.

[0089] 2. S102: For any pixel position, determine a target pixel value sequence; the target pixel value sequence includes: the pixel value of the determined time series image at the targeted pixel position; the pixel values ​​in the target pixel value sequence are arranged in order from the front to the back according to the acquisition time point.

[0090] The target pixel value sequence is determined for any pixel position. In the subsequent step, anomaly detection can be performed on the target pixel value sequence.

[0091] It is understandable that for other pixel positions, or multiple pixel positions, the same steps can be followed to determine the pixel value sequence for abnormality detection. For details, please refer to the following explanation.

[0092] Optionally, S102 - S105 may be performed for each pixel position to perform abnormality detection, thereby achieving abnormality detection for the entire time series image.

[0093] The method flow is not limited to the form of the pixel position, and can specifically be the coordinate position of any pixel in the image.

[0094] The method flow does not limit the content of the target pixel value sequence.

[0095] Optionally, the target pixel value sequence may include pixel values ​​of multiple time-sequential images among the determined time-sequential images at the targeted pixel positions. The target pixel value sequence may also include pixel values ​​of all determined time-sequential images at the targeted pixel positions.

[0096] Arranging the pixel values ​​in the target pixel value sequence in order from the front to the back of the acquisition time point can facilitate the subsequent determination of the difference in pixel values ​​between adjacent acquisition time points, thereby facilitating the determination of the mutation of the acquired information and performing anomaly detection.

[0097] Further, in the target pixel value sequence, the interval durations of acquisition time points between different pairs of adjacent pixel values ​​may be the same or different. Optionally, the difference in the interval durations of acquisition time points between different pairs of adjacent pixel values ​​may be less than a preset duration difference threshold. Alternatively, the interval duration of acquisition time points between adjacent pixel values ​​may be less than a preset interval threshold.

[0098] In a specific example, a plurality of time-series images may be periodically collected, and after being arranged in order from front to back in terms of the collection time points, the interval length between the collection time points of adjacent time-series images may be a fixed value, that is, the length of one cycle. Accordingly, after determining the target pixel value sequence, the interval length between the collection time points of adjacent pixel values ​​may also be a fixed value, that is, the length of one cycle.

[0099] 3. S103: determining an actual difference value set for the target pixel value sequence; the actual difference value set includes: actual difference values ​​for characterizing the numerical change between adjacent pixel values ​​in the target pixel value sequence.

[0100] The method flow does not limit the way of determining the actual difference value, as long as it can characterize the numerical change between adjacent pixel values ​​in the target pixel value sequence.

[0101] It should be noted that a single actual difference value can be used to characterize the numerical change between a pair of adjacent pixel values ​​in the target pixel value sequence. Different actual difference values ​​can be used to characterize the numerical change between different pairs of adjacent pixel values ​​in the target pixel value sequence. Therefore, a single actual difference value can correspond to a pair of adjacent pixel values, and the actual difference value can be used to characterize the numerical change between the corresponding adjacent pixel values ​​in the target pixel value sequence.

[0102] Optionally, determining the actual difference value may specifically be determining the difference between adjacent pixel values ​​in the target pixel value sequence. Specifically, between adjacent pixel values, the difference obtained by subtracting the next pixel value from the previous pixel value may be determined as the actual difference value, or between adjacent pixel values, the difference obtained by subtracting the previous pixel value from the next pixel value may be determined as the actual difference value. Of course, the absolute value of the difference between adjacent pixel values ​​may also be determined as the actual difference value.

[0103] In addition, optionally, when determining the actual difference value, it can also be determined in combination with the interval time length between the acquisition time points of adjacent pixel values. Therefore, the actual difference value can be determined by first determining the difference between adjacent pixel values ​​in the target pixel value sequence, then determining the interval time length between the acquisition time points of adjacent pixel values, and dividing the difference by the interval time length to obtain the result, which is determined as the actual difference value.

[0104] For ease of understanding, a specific example is given below.

[0105] For the target pixel value sequence A1, A2, A3, ..., when determining the actual difference value between the adjacent pixel values ​​of A1 and A2, (A1-A2) can be determined as the actual difference value, that is, the inverse difference value is determined; (A2-A1) can also be determined as the actual difference value, that is, the first-order difference value is determined; or |A1-A2| can be determined as the actual difference value.

[0106] Furthermore, the interval between the acquisition time points A1 and A2 may be T1, which means that (A1-A2) / T1 may be determined as the actual difference value, (A2-A1) / T1 may be determined as the actual difference value, or |A1-A2| / T1 may be determined as the actual difference value.

[0107] It is to be understood that the above-mentioned embodiment of the method for determining the actual difference value is only for illustrative purposes, and the present method flow does not limit the specific method for determining the actual difference value.

[0108] Accordingly, when determining the actual difference value, the actual difference value may be determined for any pair of adjacent pixel values ​​in the target pixel value sequence, and then the determined actual difference values ​​may be added to the actual difference value set.

[0109] The method flow does not limit the number of determined actual difference values, nor does it limit the number of actual difference values ​​in the actual difference value set.

[0110] Optionally, the actual difference values ​​may be determined for a plurality of pairs of adjacent pixel values ​​in the target pixel value sequence, respectively; or the actual difference value may be determined for each pair of adjacent pixel values ​​in the target pixel value sequence, respectively.

[0111] Correspondingly, the determined actual difference value may be added to an actual difference value set, which may include multiple actual difference values ​​or may include actual difference values ​​respectively determined based on adjacent pixel values ​​in the target pixel value sequence.

[0112] The method flow does not limit the specific form of the actual difference value set.

[0113] Optionally, the actual difference value set may be in the form of a sequence, and may specifically be an actual difference value sequence. Specifically, the actual difference value set may be arranged according to the order of the corresponding adjacent pixel values ​​in the target pixel value sequence, or may be arranged according to the acquisition time point of the previous pixel value in the corresponding adjacent pixel values ​​from front to back, or may be arranged according to the acquisition time point of the next pixel value in the corresponding adjacent pixel values ​​from front to back.

[0114] Of course, the actual difference value set may also be in other forms, such as an array, a matrix, etc., to store multiple actual difference values.

[0115] In an optional embodiment, taking the actual difference value as a first-order difference value as an example, the actual difference value set may specifically be a set of first-order difference values ​​or a first-order difference sequence.

[0116] The first-order difference value may specifically be a difference value obtained by subtracting a previous pixel value from a subsequent pixel value among adjacent pixel values ​​in the target pixel value sequence.

[0117] The first-order difference sequence may include first-order difference values ​​between adjacent pixel values ​​in the target pixel value sequence, and the number of first-order difference values ​​in the first-order difference sequence is not limited.

[0118] Optionally, the first-order difference sequence may include: a plurality of first-order difference values, and may also include first-order difference values ​​respectively determined based on adjacent pixel values ​​in the target pixel value sequence.

[0119] The order of the first-order difference values ​​in the first-order difference sequence can be arranged according to the order of the corresponding adjacent pixel values ​​in the target pixel value sequence, or can be arranged according to the acquisition time point of the previous pixel value in the corresponding adjacent pixel values ​​from front to back, or can be arranged according to the acquisition time point of the next pixel value in the corresponding adjacent pixel values ​​from front to back.

[0120] For ease of understanding, a specific example is given below.

[0121] For the target pixel value sequence A1, A2, A3, A4, A5, four first-order differential values ​​B1 to B4 can be determined respectively, namely B1 = (A2-A1), B2 = (A3-A2), B3 = (A4-A3), B4 = (A5-A4).

[0122] Correspondingly, the first-order difference sequence can be B1, B2, B3, B4.

[0123] Therefore, optionally, for the target pixel value sequence, an actual difference value set is determined, which may specifically be: for the target pixel value sequence, a first-order difference sequence is determined; the first-order difference sequence includes: first-order difference values ​​between adjacent pixel values ​​in the target pixel value sequence.

[0124] Correspondingly, the above different actual difference value determination methods can also further determine different sets or sequences. For specific explanations, please refer to the explanation of the above first-order difference sequence.

[0125] For example, for the target pixel value sequence A1, A2, A3, A4, A5, the interval length between the acquisition time points of adjacent pixel values ​​can all be T, and four actual difference values ​​can be determined respectively: C1 = (A2-A1) / T, C2 = (A3-A2) / T, C3 = (A4-A3) / T, C4 = (A5-A4) / T.

[0126] Accordingly, the actual difference value sequence may be C1, C2, C3, C4.

[0127] Therefore, optionally, for the target pixel value sequence, an actual difference value set is determined, which may specifically be: for the target pixel value sequence, a first-order difference sequence is determined; the first-order difference sequence may include: first-order difference values ​​between adjacent pixel values ​​in the target pixel value sequence.

[0128] 4. S104: Based on the distribution of the actual difference values ​​in the actual difference value set, determine the theoretical normal value ranges corresponding to different actual difference values, and determine the actual difference value outside the corresponding theoretical normal value range as an abnormal difference value.

[0129] The method flow does not limit the specific way of determining the theoretical normal value range.

[0130] The theoretical normal value range here is determined according to the distribution of actual difference values, and can be adaptively adjusted. In addition, the theoretical normal value range corresponding to each actual difference value can be automatically determined according to the distribution of actual difference values ​​through technical means, thereby improving the efficiency and accuracy of anomaly detection.

[0131] In an optional embodiment, considering the need to detect mutations in time series data, that is, the need to detect mutations in the target pixel value sequence, the theoretical normal value range is mainly used to distinguish and identify mutations.

[0132] Therefore, the data distribution in the time series data can be comprehensively considered to determine the numerical benchmark and the amount of steady change of the numerical distribution, thereby determining the numerical range of steady change and the theoretical normal value range.

[0133] Specifically, the value obtained by subtracting the steady change amount from the numerical benchmark may be determined as the lower limit of the theoretical normal value range, and the value obtained by adding the steady change amount may be determined as the upper limit of the theoretical normal value range.

[0134] The numerical benchmark may be determined according to the density of the numerical distribution. The stable change amount may be determined according to the density of the numerical distribution, and may be determined according to M times the standard deviation. M may be a value greater than 0.

[0135] For example, if the pixel values ​​in the target pixel value sequence roughly obey a normal distribution, the steady change amount can be determined according to three times the standard deviation.

[0136] It is understandable that the actual difference value itself can represent the numerical change between adjacent pixel values ​​in the target pixel value sequence. Therefore, the theoretical normal value range can be determined directly for the actual difference value set according to the distribution of the actual difference values.

[0137] In a specific example, if the actual difference value is specifically a first-order difference value, and most of the first-order difference values ​​in the actual difference value set are 0, a theoretical normal value range can be determined based on 0 as a reference. Specifically, the standard deviation X of each first-order difference value in the actual difference value set can be determined first, and then (0-3X, 0+3X) is determined as the theoretical normal value range. If there are first-order difference values ​​in the actual difference value set that exceed the theoretical normal value range, it can be determined that the first-order difference value itself represents a mutation between the corresponding adjacent pixel values. Among them, 0 can be a numerical reference, and 3X can be a steady change amount.

[0138] In a specific example, if the actual difference value is specifically a first-order difference value, and most of the first-order difference values ​​in the actual difference value set are 1, and multiple pixel values ​​in the target pixel value sequence steadily increase by 1 over time, then a theoretical normal value range can be determined based on 1 as a reference. Specifically, the standard deviation X of each first-order difference value in the actual difference value set can be determined first, and then (1-3X, 1+3X) can be determined as the theoretical normal value range. If there are first-order difference values ​​in the actual difference value set that exceed the theoretical normal value range, it can be determined that the first-order difference value itself represents a mutation between the corresponding adjacent pixel values. Among them, 1 can be a numerical reference, and 3X can be a steady change amount.

[0139] It can be seen that based on the distribution of the actual difference value, the numerical benchmark and the stable change amount of the numerical distribution can be determined by statistical methods, so as to determine the numerical range of the stable change, which can be (numerical benchmark-stable change amount, numerical benchmark+stable change amount), and the numerical range can be determined as the theoretical normal value range. Of course, a numerical range can also be directly determined as the theoretical normal value range.

[0140] Therefore, optionally, based on the distribution of the actual difference values ​​in the actual difference value set, the theoretical normal value ranges corresponding to different actual difference values ​​are determined, specifically: based on the distribution of the actual difference values ​​in the actual difference value set, the numerical reference and the steady change amount of the actual difference value distribution are determined, and then the value of the numerical reference minus the steady change amount is determined as the lower limit of the theoretical normal value range, and the value of the numerical reference plus the steady change amount is determined as the upper limit of the theoretical normal value range. In this way, the theoretical normal value range can be determined.

[0141] The method flow does not limit the way of determining the numerical benchmark. Optionally, the numerical benchmark can specifically be the mean, weighted mean, mode, median, etc. of the actual difference values ​​in the actual difference value set.

[0142] The method flow also does not limit the determination method of the steady change amount. Optionally, the steady change amount can be M times the standard deviation of each actual difference value in the actual difference value set. Wherein M can be a value greater than 0, specifically, M can be 2, or 3, etc.

[0143] Optionally, for the convenience of description, the numerical benchmark may be described as a normal difference value. Based on the distribution of the actual difference values ​​in the actual difference value set, normal difference values ​​corresponding to different actual difference values ​​may be determined; further, corresponding difference values ​​obtained by subtracting the corresponding normal difference values ​​from the actual difference values ​​may be determined, and actual difference values ​​whose absolute values ​​of the corresponding difference values ​​are greater than a preset threshold value may be determined as abnormal difference values. The preset threshold value may be a steady change amount.

[0144] Accordingly, this embodiment does not limit the method for determining the normal difference value, and may specifically be to determine the mean, weighted mean, mode, median, etc. of the actual difference values ​​in the actual difference value set.

[0145] This embodiment does not limit the method for determining the preset threshold value, and may specifically be M times the standard deviation of each actual difference value in the actual difference value set, where M may be a value greater than 0, and specifically, M may be 2, or 3, and so on.

[0146] This embodiment can adaptively determine a theoretical normal value range in combination with the distribution of actual difference values, which is used to distinguish and identify abnormal difference values, that is, difference values ​​with mutations, thereby improving the accuracy of anomaly detection.

[0147] In combination with the above explanation of the actual difference value, an embodiment in which the actual difference value is specifically a first-order difference value is provided below to explain how to determine the corresponding theoretical normal value range for the first-order difference value.

[0148] In an optional embodiment, the actual difference value may specifically be a first-order difference value, the actual difference value set may specifically be a first-order difference sequence, and the theoretical normal value range may be determined for the first-order difference sequence.

[0149] Among them, the numerical benchmark and stable change amount can be further determined for the first-order difference sequence, so as to determine the theoretical normal value range.

[0150] Accordingly, for the convenience of description, the numerical reference in the first-order difference sequence is called a normal difference value, and the abnormal difference value detected in the first-order difference sequence is called an abnormal difference value.

[0151] Optionally, based on the distribution of actual difference values ​​in the actual difference value set, the theoretical normal value ranges corresponding to different actual difference values ​​are determined, and the actual difference values ​​outside the corresponding theoretical normal value ranges are determined as abnormal difference values. Specifically, it can be: based on the distribution of first-order difference values ​​in the first-order difference sequence, the normal difference values ​​corresponding to different first-order difference values ​​are determined; the corresponding difference value obtained by subtracting the corresponding normal difference value from the first-order difference value is determined, and the first-order difference value whose absolute value of the corresponding difference is greater than a preset threshold is determined as the abnormal difference value.

[0152] This embodiment does not limit the method of determining the corresponding normal difference value for each first-order difference value in the first-order difference sequence.

[0153] The normal difference values ​​corresponding to different first-order difference values ​​may be the same or different.

[0154] Optionally, specifically, the mean, mode, or median of each first-order difference value in the first-order difference sequence may be determined as the normal difference value corresponding to each first-order difference value.

[0155] In this embodiment, the normal difference values ​​corresponding to the first-order difference values ​​may be the same. Accordingly, the preset threshold may be set to M times the standard deviation of the first-order difference sequence. M may be a value greater than 0.

[0156] In addition, since the first-order difference sequence contains a time series relationship, the first-order difference sequence can be smoothed so that a relatively stable trend can be determined for the first-order difference sequence as a whole according to the time series changes, which is used to determine the theoretical normal value range.

[0157] Optionally, a smoothing process may be performed on the first-order difference sequence. This embodiment does not limit a specific smoothing process method, and a sliding average method, a weighted sliding average method, an exponential sliding average method, a linear regression method, a local weighted regression method, etc. may be used.

[0158] After smoothing, each first-order difference value in the first-order difference sequence can be used to determine a corresponding normal difference value.

[0159] After smoothing the first-order difference sequence, the smoothed values ​​corresponding to each first-order difference value in the first-order difference sequence can be obtained, so that the smoothed values ​​corresponding to the first-order difference values ​​can be determined as the normal difference values ​​corresponding to the first-order difference values.

[0160] Taking the sliding average method as an example, after the first-order difference sequence is smoothed by the sliding average method, the corresponding means can be determined for different sliding windows. The determined corresponding means are the smoothed values ​​corresponding to the first-order difference values ​​contained in the sliding window.

[0161] Taking the linear regression method as an example, the first-order difference sequence can be fitted with the corresponding function through the linear regression method, so that the fitting function value corresponding to each first-order difference value in the first-order difference sequence, that is, the smoothing value, can be determined.

[0162] Therefore, optionally, based on the distribution of first-order difference values ​​in the first-order difference sequence, normal difference values ​​corresponding to different first-order difference values ​​are determined, specifically: smoothing is performed on the first-order difference sequence to obtain smoothed values ​​corresponding to different first-order difference values; and the smoothed values ​​corresponding to the first-order difference values ​​are determined as the normal difference values ​​corresponding to the first-order difference values.

[0163] It can be understood that after determining the normal difference value corresponding to the first-order difference value, the theoretical normal value range can be further determined based on the normal difference value, which can be specifically determined in combination with the above-mentioned preset threshold.

[0164] This embodiment can combine the smoothing processing result of the first-order difference sequence to improve the accuracy of the theoretical normal value range, thereby improving the accuracy of anomaly detection.

[0165] In an optional embodiment, when a normal difference value corresponding to a first-order difference value is determined, the preset threshold value may be further set to M times the standard deviation between the determined normal difference values, where M may be a value greater than 0.

[0166] Specifically, the preset threshold value may be: M times the standard deviation determined for the currently determined normal difference value, M>0. Specifically, it may be M times the standard deviation determined for several currently determined normal difference values, or it may be M times the standard deviation determined for each currently determined normal difference value. The number of normal difference values ​​specifically used to determine the standard deviation is not limited.

[0167] This embodiment uses the standard deviation of the normal difference value as the preset threshold, which can improve the accuracy of abnormality detection.

[0168] In a specific embodiment, since smoothing processing is performed on the first-order difference sequence, smoothed values ​​corresponding to each first-order difference value can be obtained, the obtained smoothed values ​​can also be combined into a sequence. For the convenience of description, the sequence composed of smoothed values ​​is called a smoothed difference sequence.

[0169] Among them, the order of different smoothed values ​​in the smoothed difference sequence is the same as the order of the corresponding first-order difference values ​​in the first-order difference sequence.

[0170] Optionally, a standard deviation may be determined based on a smoothed difference sequence and further used as a preset threshold to determine a theoretical normal value range.

[0171] The preset threshold may be specifically set to M times the standard deviation of the smoothed difference sequence, where M may be a value greater than 0.

[0172] It should be noted that the above embodiment can adaptively determine the theoretical normal value range corresponding to the first-order difference value according to the distribution of the first-order difference value in the first-order difference sequence, thereby facilitating the identification of abnormal difference values ​​of sudden changes and improving the accuracy of anomaly detection.

[0173] In addition, other forms of actual difference values ​​can also refer to the above embodiments to determine the theoretical normal value range.

[0174] For example, the actual difference value may be: a quotient obtained by dividing the first-order difference value between adjacent pixel values ​​by the time interval between acquisition time points. For ease of description, the quotient may be described as the actual difference quotient value.

[0175] Therefore, optionally, based on the distribution of the actual difference quotient values, the normal difference quotient values ​​corresponding to different actual difference quotient values ​​can be determined; the corresponding difference value obtained by subtracting the corresponding normal difference quotient value from the actual difference quotient value is determined, and the actual difference quotient value whose absolute value of the corresponding difference is greater than a preset threshold is determined as an abnormal difference quotient value.

[0176] The specific method of determining the normal difference quotient value can be explained in the above embodiment. For example, the actual difference quotient values ​​can be combined into a sequence and smoothed. The mean, mode, or median of the actual difference quotient values ​​can also be directly determined as the normal difference quotient value.

[0177] The above method flow explains that for any pixel position, a target pixel value sequence can be determined for anomaly detection.

[0178] It is understandable that, for other pixel positions, or multiple pixel positions, the same steps may be followed to determine a pixel value sequence for abnormality detection.

[0179] Anomaly detection for a single or multiple pixel value sequences can be considered as anomaly detection for time series images.

[0180] Optionally, the method flow may further include determining a time-series image in which an abnormal situation occurs among a plurality of time-series images according to the abnormal difference value. This embodiment does not limit the specific method of determining the time-series image in which an abnormal situation occurs. Specifically, the time-series image in which the adjacent pixel values ​​corresponding to the abnormal difference value are located may be determined as the time-series image in which the abnormal situation occurs. Alternatively, the time-series image in which an abnormal situation occurs may be determined based on the distribution of the abnormal difference values.

[0181] Since the method flow determines a number of time-series images, optionally, the above method flow can be executed for each pixel position in the time-series image to perform anomaly detection, determine the abnormal difference value, and further perform anomaly detection on the time-series image.

[0182] Of course, the above method flow may be executed for each of multiple pixel positions in the time series image to perform anomaly detection, determine the abnormal difference value, and further perform image anomaly detection on the time series image.

[0183] The method flow does not limit the specific way of performing image anomaly detection on time series images.

[0184] Optionally, the adjacent pixel values ​​corresponding to the abnormal difference values ​​may be determined as suspected abnormal pixel values, and further, the time series images with a higher proportion of suspected abnormal pixel values ​​may be determined as abnormal images, that is, time series images with abnormal conditions. Specifically, the time series images with a proportion of suspected abnormal pixel values ​​greater than a preset proportion may be determined as abnormal images.

[0185] 5. Calibration.

[0186] 1. Make corrections based on actual difference values.

[0187] In an optional embodiment, after determining the abnormal situation of the sudden change of pixel values ​​in the target pixel value sequence, the target pixel value sequence can be further corrected. Specifically, the target pixel value sequence can be corrected based on the abnormal difference value. Of course, the correction can also be performed on the determined time series image.

[0188] This embodiment can perform automatic correction by adopting technical means, which can reduce manual participation and improve the efficiency of correction.

[0189] Among them, the abnormality processing for time series data (target pixel value sequence) may include the above-mentioned abnormality detection and may also include further abnormality correction operations.

[0190] The method flow does not limit the specific way of correcting the target pixel value sequence.

[0191] Optionally, the pixel value mutation may be automatically adjusted back to the normal range. Specifically, the mutation corresponding to the abnormal difference value may be automatically adjusted. Specifically, the target pixel value sequence may be corrected based on the determined abnormal difference value.

[0192] In a specific example, since the actual difference value is used to characterize the value change between adjacent pixel values ​​in the target pixel value sequence, in other words, the next pixel value among the adjacent pixel values ​​can be determined based on the previous pixel value among the adjacent pixel values ​​and the actual difference value.

[0193] Therefore, the abnormal difference value can be adjusted to the normal value range, and then the current next pixel value in the adjacent pixel values ​​can be re-determined based on the previous pixel value in the adjacent pixel values ​​and the adjusted actual difference value. In this way, the degree of numerical change between adjacent pixel values ​​can be reduced, and correction can be performed to reduce mutations.

[0194] Taking the first-order difference value as an example, the abnormal difference value (the first-order difference value outside the theoretical normal value range) can be adjusted to the theoretical normal value range. Specifically, the abnormal difference value can be directly replaced with the corresponding normal difference value, and the previous pixel value in the corresponding adjacent pixel value can be added to the normal difference value obtained after the replacement to re-obtain the current next pixel value in the corresponding adjacent pixel value. In this way, the absolute value of the current first-order difference value between adjacent pixel values ​​can be reduced, the degree of numerical change between adjacent pixel values ​​can be reduced, and the mutation situation can be reduced for correction.

[0195] It can be understood that other examples of actual difference values, such as the actual difference quotient value described above, can also be corrected by referring to the above method.

[0196] Taking the actual difference quotient as an example, the abnormal difference quotient (the actual difference quotient outside the theoretical normal value range) can be adjusted to the theoretical normal value range, and further, the adjusted abnormal difference quotient can be multiplied by the interval between the acquisition time points of the corresponding adjacent pixel values ​​to obtain the adjusted difference; then the previous pixel value in the corresponding adjacent pixel values ​​is added to the adjusted difference to obtain the current next pixel value in the corresponding adjacent pixel values. In this way, the degree of numerical change between adjacent pixel values ​​can be reduced, and mutations can be reduced for correction.

[0197] Other examples will not be described in detail here. Please refer to the above embodiments for details.

[0198] Furthermore, it should be noted that, in addition to the mutation between adjacent pixel values ​​represented by the abnormal difference value, when correcting the target pixel value sequence, it is also necessary to consider the situation where anomalies occur continuously.

[0199] In a specific example, if an acquisition device malfunctions within a period of time, the time series data collected during this period will also have abnormal conditions. Specifically, the time series data may suddenly increase first, then change steadily, and then suddenly decrease and return to normal after the abnormality is repaired; or it may suddenly decrease first, then change steadily, and then suddenly increase and return to normal after the abnormality is repaired.

[0200] For details, please refer to Figure 1 The data shows the changes in the nighttime light brightness from 2001 to 2005. From 2001 to 2002, there was a sudden increase, then a steady change, and from 2004 to 2005, there was a sudden decrease.

[0201] Therefore, for the convenience of description, in the case of continuous abnormalities, the acquisition time period in which the abnormalities occur continuously is called the abnormal period, and it is necessary to make corresponding corrections to the target pixel value sequence (time series data) within the abnormal period.

[0202] Specifically, among the determined abnormal difference values, an abnormal difference value that is smaller than the minimum value of the corresponding theoretical normal value range and an abnormal difference value that is larger than the maximum value of the corresponding theoretical normal value range are screened out; in the current target pixel value sequence, pixel value correction is performed for the adjacent pixel values ​​corresponding to the two screened abnormal difference values, and the pixel values ​​between the two pairs of adjacent pixel values.

[0203] It can be seen that by determining a sudden increase and a sudden decrease, several corresponding pixel values ​​in the abnormal period in the target pixel value sequence can be determined.

[0204] For example, the adjacent pixel values ​​corresponding to the sudden increase are screened out in front, and the adjacent pixel values ​​corresponding to the sudden decrease are screened out in the back. Then, the pixel values ​​between these two pairs of adjacent pixel values ​​(may not include these two pairs of adjacent pixel values) can be corrected as a whole.

[0205] Specifically for these two pairs of adjacent pixel values, other methods can be used for correction, such as the above example of correcting the adjacent pixel values ​​corresponding to a single actual difference value, by adjusting the actual difference value, and then based on the previous pixel value in the adjacent pixel values ​​and the adjusted actual difference value, re-determining the current subsequent pixel value in the adjacent pixel values.

[0206] The method flow does not limit the specific way of correcting the pixel values ​​within the abnormal period.

[0207] Optionally, a value change mode may be determined based on the value changes of the sudden increase and sudden decrease screened out, and then the value change mode may be executed for each pixel value in the abnormal period, specifically, all the pixel values ​​may be reduced by a specified value, or all the pixel values ​​may be increased by a specified value.

[0208] For example, the adjacent pixel values ​​corresponding to the sudden increase are in front, and the adjacent pixel values ​​corresponding to the sudden decrease are in the back, and the value of the sudden increase is 10, and the value of the sudden decrease is also 10. Then, for the pixel values ​​between these two pairs of adjacent pixel values ​​(which may not include these two pairs of adjacent pixel values), 10 can be subtracted as a whole.

[0209] In addition, optionally, after correcting the adjacent pixel values ​​corresponding to the premutation situation in combination with the actual difference value, the subsequent pixel values ​​can be re-determined one by one based on the actual difference value in order based on the corrected subsequent pixel value.

[0210] Taking the first-order difference value as an example, an abnormal difference value that is smaller than the minimum value of the corresponding theoretical normal value range and an abnormal difference value that is larger than the maximum value of the corresponding theoretical normal value range can be screened out; in the current target pixel value sequence, pixel value correction is performed for the adjacent pixel values ​​corresponding to the two screened abnormal difference values ​​and the pixel values ​​between the two pairs of adjacent pixel values.

[0211] Specifically, the abnormal differential value (a first-order differential value outside the theoretical normal value range) screened out in front can be adjusted to within the theoretical normal value range. Specifically, the abnormal differential value can be directly replaced with the corresponding normal differential value. Further, the previous pixel value in the corresponding adjacent pixel value can be added to the normal differential value obtained after the replacement to regain the current next pixel value in the corresponding adjacent pixel value.

[0212] Afterwards, the current subsequent pixel value obtained can be called the current correction value; based on the current correction value, the subsequent first-order difference value can be further added to obtain the subsequent pixel value of the current correction value, and so on.

[0213] For ease of understanding, in a specific example, for the target pixel value sequence A1, A2, A3, A4, A5, ..., A10, 9 first-order differential values ​​B1 to B9 can be determined respectively, namely B1 = (A2-A1), B2 = (A3-A2), B3 = (A4-A3), B4 = (A5-A4), ..., B9 = (A10-A9).

[0214] Accordingly, the first-order difference sequence can be B1, B2, B3, B4, ..., B9.

[0215] Then, the normal difference values ​​C1-C9 corresponding to each first-order difference value in the first-order difference sequence can be determined respectively.

[0216] Among them, an abnormal difference value B2 that is less than the minimum value of the corresponding theoretical normal value range and an abnormal difference value B5 that is greater than the maximum value of the corresponding theoretical normal value range are screened out. In other words, between A2 and A3, a sudden decrease occurs; between A5 and A6, a sudden increase occurs. Specifically, it can be considered that A3 to A5 are pixel values ​​with abnormal conditions.

[0217] When further correction is performed, correction may be performed on A3 to A5 to obtain D3 to D5.

[0218] Among them, D3=A2+C2, D4=D3+B3, D5=D4+B4.

[0219] The corrected target pixel value sequence is: A1, A2, D3, D4, D5, A6, ..., A10.

[0220] 2. Correction is performed based on the first-order difference value.

[0221] For ease of understanding, an embodiment of specifically explaining the correction target pixel value sequence is provided below. This embodiment is explained by taking the first-order difference value as an example.

[0222] For the convenience of description, different first-order differential values ​​may correspond to different pixel values ​​in the current target pixel value sequence; wherein the first-order differential value may be: in the current target pixel value sequence, the difference between the corresponding pixel value and the previous pixel value.

[0223] In other words, the pixel value corresponding to the first-order difference value may be the next pixel value among the corresponding adjacent pixel values.

[0224] The specific correction may be: based on the pixel value corresponding to the determined abnormal differential value, correcting the target pixel value sequence.

[0225] This embodiment can further correct the target pixel value sequence by determining the pixel value corresponding to the abnormal differential value, thereby improving the correction efficiency.

[0226] This embodiment does not limit the specific calibration method.

[0227] Optionally, the adjacent pixel values ​​corresponding to the abnormal differential value may be corrected to reduce the sudden change, or an abnormal period may be determined and several consecutive pixel values ​​may be corrected, thereby conveniently improving the efficiency and accuracy of the correction.

[0228] The correction for abnormal periods is explained in detail below.

[0229] It should be noted that this embodiment does not limit the specific method of determining the abnormal time period, nor does it limit the number of times the abnormal time period is determined.

[0230] Among them, the correction may be performed only on one group of abnormal time periods, or on multiple groups of abnormal time periods, or the correction may be performed on abnormal time periods determined cyclically.

[0231] Three different specific embodiments of determining an abnormal period and performing corrections are provided below.

[0232] Embodiment 1: Correction may be performed for a group of abnormal time periods.

[0233] Therefore, optionally, based on the pixel values ​​corresponding to the determined abnormal differential values, correction is performed on the target pixel value sequence, which can be specifically: among the determined abnormal differential values, an abnormal differential value with a corresponding positive difference value and an abnormal differential value with a corresponding negative difference value are screened out; in the current target pixel value sequence, pixel value correction is performed on the pixel value between the pixel values ​​corresponding to the two screened abnormal differential values.

[0234] The difference corresponding to the abnormal difference value is the difference obtained by subtracting the corresponding normal difference value from the abnormal difference value.

[0235] Among them, an abnormal difference value with a positive difference value is an abnormal difference value greater than the maximum value of the corresponding theoretical normal value range. An abnormal difference value with a negative difference value is an abnormal difference value less than the minimum value of the corresponding theoretical normal value range.

[0236] Thus, the situation of sudden increase and sudden decrease can be determined, and then the abnormal time period can be determined.

[0237] It is understandable that multiple pairs of abnormal difference values ​​can be screened out at the same time, each pair of abnormal difference values ​​includes an abnormal difference value with a positive difference value and an abnormal difference value with a negative difference value. Then, corrections are performed on the multiple pairs of abnormal difference values ​​respectively. For specific explanations, please refer to the explanations of other embodiments.

[0238] Embodiment 2: The abnormal time period can be determined cyclically for correction.

[0239] Optionally, based on the pixel value corresponding to the determined abnormal differential value, the target pixel value sequence is corrected, specifically, the following steps may be looped and executed until a preset stop condition is met:

[0240] Among the currently determined abnormal differential values, an abnormal differential value corresponding to a positive difference and an abnormal differential value corresponding to a negative difference are screened out; in the current target pixel value sequence, pixel value correction is performed on the pixel values ​​between the corresponding pixel values ​​of the two screened abnormal differential values ​​to obtain a corrected current target pixel value sequence; and the two screened abnormal differential values ​​are deleted from the determined abnormal differential values.

[0241] By cyclically executing the steps of screening out abnormal time periods and correcting them, correction can be performed step by step to improve the accuracy of correction.

[0242] Embodiment 3: cyclically determining abnormal difference values ​​and abnormal time periods.

[0243] It should be noted that after correcting the target pixel value sequence once, some pixel values ​​in the target pixel value sequence may change, and the above abnormality detection step may be re-executed to re-determine the abnormal difference value for correction.

[0244] Therefore, optionally, based on the pixel value corresponding to the determined abnormal differential value, the target pixel value sequence is corrected, specifically, the following steps may be executed in a loop until a preset stop condition is met:

[0245] Among the currently determined abnormal differential values, an abnormal differential value with a positive corresponding difference value and an abnormal differential value with a negative corresponding difference value are screened out; in the current target pixel value sequence, pixel value correction is performed for the pixel value between the corresponding pixel values ​​of the two screened abnormal differential values ​​to obtain the corrected current target pixel value sequence; for the current target pixel value sequence, the current first-order differential sequence is re-determined; for the current first-order differential sequence, normal differential values ​​corresponding to different first-order differential values ​​are determined; the corresponding difference value obtained by subtracting the corresponding normal differential value from the first-order differential value is determined, and the first-order differential value whose absolute value of the corresponding difference is greater than a preset threshold is determined as the current abnormal differential value.

[0246] In this embodiment, by cyclically correcting the target pixel value sequence, cyclically re-performing abnormality detection on the corrected target pixel value sequence, and determining the abnormal difference value, the accuracy of the correction can be improved.

[0247] Regarding the preset threshold in the above embodiment, please refer to the above explanation for details.

[0248] Optionally, the preset threshold may specifically be: M times the standard deviation determined for the currently determined normal differential value; M> 0. Thus, in different cycles, the theoretical normal value range may be determined using the M times the standard deviation of the currently determined normal differential value, and the abnormal differential value may be adaptively determined, thereby improving the accuracy of the correction.

[0249] Correspondingly, the steps of looping and performing anomaly detection can also be referred to the explanation in the previous text.

[0250] Regarding the above-mentioned loop operation, the method flow does not limit the specific preset stop condition. Among them, it can be judged according to the degree of smoothness of the value change in the target pixel value sequence. If the value change is more stable after correction, it can be determined that the abnormal pixel value caused by the abnormal situation has been reduced.

[0251] Optionally, the preset stop condition may include at least one of the following:

[0252] 1) In N consecutive cycles, the standard deviation of the target pixel value sequence after the pixel value correction in the current cycle is less than the standard deviation of the target pixel value sequence after the pixel value correction in the previous cycle; N≥1.

[0253] 2) The standard deviation of the target pixel value sequence after pixel value correction is less than a preset standard deviation threshold.

[0254] 3) The cycle reaches the preset number of times.

[0255] This embodiment can improve the flexibility of executing the cyclic operation by setting a variety of preset stop conditions.

[0256] If the target pixel value sequence is corrected, the standard deviation is continuously reduced, and the stability is improved in multiple consecutive cycles, the loop operation can be stopped.

[0257] If the standard deviation of the corrected target pixel value sequence is less than the preset standard deviation threshold, it can be determined that the smoothness of the corrected target pixel value sequence meets the requirement, so the loop operation can still be stopped.

[0258] The present method flow does not limit the specific screening method for screening abnormal differential values ​​to determine abnormal time periods.

[0259] Optionally, an abnormal difference value with a positive difference value and an abnormal difference value with a negative difference value may be randomly selected, or some abnormal difference values ​​with close absolute values ​​may be screened out.

[0260] Therefore, optionally, among the determined abnormal difference values, one abnormal difference value corresponding to a positive difference value and one abnormal difference value corresponding to a negative difference value are screened out, including any of the following:

[0261] 1) Among the currently determined abnormal difference values, an abnormal difference value corresponding to a maximum positive number and an abnormal difference value corresponding to a minimum negative number are screened out.

[0262] 2) Among the currently determined abnormal difference values, select an abnormal difference value with a positive difference value and an abnormal difference value with a negative difference value; the difference between the absolute values ​​of the corresponding differences of the two selected abnormal difference values ​​is smaller than a preset difference.

[0263] 3) Among the currently determined abnormal difference values, select an abnormal difference value with a positive difference value and an abnormal difference value with a negative difference value; in the current first-order difference sequence, there are no other abnormal difference values ​​between the two selected abnormal difference values.

[0264] This embodiment can improve the flexibility of screening and the accuracy of correction through multiple screening methods.

[0265] Among them, by screening the abnormal difference value corresponding to the maximum positive difference value and the abnormal difference value corresponding to the minimum negative difference value, the accuracy of determining the abnormal time period can be improved, thereby improving the accuracy of correction.

[0266] By screening out two abnormal difference values ​​with similar absolute values ​​of corresponding differences, the accuracy of determining the abnormal time period can also be improved, thereby improving the accuracy of correction.

[0267] The abnormal time period may also be determined by screening out two adjacent abnormal difference values, thereby improving the accuracy of determining the abnormal time period and thus improving the accuracy of correction.

[0268] In a specific screening example, the abnormal difference values ​​corresponding to positive difference values ​​in the determined abnormal difference values ​​can be arranged from large to small according to absolute values ​​to obtain a positive difference abnormal difference value sequence; and then the abnormal difference values ​​corresponding to negative difference values ​​in the determined abnormal difference values ​​can be arranged from large to small according to absolute values ​​to obtain a negative difference abnormal difference value sequence.

[0269] Afterwards, the abnormal difference values ​​with the same sequence number can be taken out one by one in the order of the abnormal difference value sequence of the positive difference value and the abnormal difference value sequence of the negative difference value, as the screened abnormal difference value with a positive difference value and the abnormal difference value with a negative difference value.

[0270] If, among the abnormal difference values ​​with a positive difference and the abnormal difference values ​​with a negative difference, the abnormal difference value with a positive difference comes first, that is, the corresponding adjacent pixel value comes first, then it can be determined that the pixel value in this abnormal period first suddenly increases and then suddenly decreases. This can be called an abnormal high value period. When correcting the pixel value in the abnormal high value period, the correction can be performed by reducing the pixel value.

[0271] Correspondingly, if the abnormal difference value with a positive difference and the abnormal difference value with a negative difference are selected, the abnormal difference value with a negative difference is in front, that is, the corresponding adjacent pixel value is in front, then it can be determined that the pixel value in this abnormal period first suddenly decreases and then suddenly increases. It can be called an abnormal low value period. When correcting the pixel value in the abnormal low value period, it can be corrected by increasing the pixel value.

[0272] It should be noted that if an abnormal difference value with a positive difference and an abnormal difference value with a negative difference cannot be screened out, for example, there are currently no abnormal difference values, or there are only abnormal difference values ​​with positive difference, or there are only abnormal difference values ​​with negative difference, then the correction operation can be stopped, specifically, the above-mentioned loop operation can be stopped.

[0273] Of course, other correction operations may be further performed on the remaining abnormal difference values.

[0274] This embodiment does not limit the specific method of correcting the pixel values ​​in the abnormal period.

[0275] Optionally, the pixel values ​​in the abnormal period may be adjusted directly, or the abnormal differential value may be adjusted and then the pixel values ​​in the abnormal period may be updated by accumulation.

[0276] Therefore, optionally, in the current target pixel value sequence, pixel value correction is performed for the pixel value between the pixel values ​​corresponding to the two screened abnormal differential values, which may be specifically:

[0277] Among the two abnormal differential values ​​screened out, a first abnormal differential value corresponding to an earlier pixel value acquisition time point and a second abnormal differential value corresponding to a later pixel value acquisition time point are determined; in the current target pixel value sequence, a first pixel value corresponding to the first abnormal differential value is modified to: the sum of a previous pixel value of the first pixel value and a normal differential value corresponding to the first abnormal differential value;

[0278] The modified first pixel value is determined as the current new pixel value, and the following steps are performed in a loop until the previous pixel value of the pixel value corresponding to the second abnormal differential value is modified:

[0279] In the current target pixel value sequence, the next pixel value of the current new pixel value is modified to: the sum of the first-order difference values ​​corresponding to the current new pixel value and the next pixel value; and the modified next pixel value is determined as the current new pixel value.

[0280] Among them, because the first abnormal differential value comes first and the second abnormal differential value comes later, the pixel value corresponding to the first abnormal differential value and the pixel value corresponding to the second abnormal differential value in the target pixel value sequence can be determined as the abnormal pixel value, which includes the pixel value corresponding to the first abnormal differential value and may not include the pixel value corresponding to the second abnormal differential value.

[0281] Accordingly, the first pixel value corresponding to the first abnormal differential value can be modified, and modified one by one in the order of the target pixel value sequence until the previous pixel value of the pixel value corresponding to the second abnormal differential value is modified. The pixel value corresponding to the second abnormal differential value is not modified.

[0282] Specifically, the correction may be to perform cumulative correction on the first pixel value using the normal differential value corresponding to the first abnormal differential value, and to re-determine a new first pixel value.

[0283] Afterwards, the new first pixel value can be used as a basis, and the first-order difference values ​​can be accumulated one by one to modify and correct the subsequent pixel values, so that the correction of the pixel values ​​in the abnormal period can be achieved.

[0284] Specifically, the first pixel value corresponding to the first abnormal differential value may be modified to be the sum of the following two items: 1) the previous pixel value of the first pixel value; 2) the normal differential value corresponding to the first abnormal differential value.

[0285] Accordingly, in the above loop step, in the current target pixel value sequence, the next pixel value of the current new pixel value can be modified to the sum of the following two items: 1) the current new pixel value; 2) the sum of the first-order difference values ​​corresponding to the next pixel value. The next pixel value here is the pixel value adjacent to the current new pixel value. And so on.

[0286] In this embodiment, since the original first-order difference value is retained for accumulation when correcting the pixel values ​​subsequent to the first pixel value during pixel value correction, more numerical change detail information in the target pixel value sequence can be retained during the correction process, and subtle numerical fluctuations with potential value can be retained, thereby reducing information loss.

[0287] It should be noted that each first-order difference value also has a corresponding normal difference value. Therefore, in addition to using the normal difference value when modifying and correcting the first pixel value, the subsequent pixel value correction may also use the normal difference value.

[0288] Optionally, when the above-mentioned loop steps are specifically executed, it can also be: the modified first pixel value is determined as the current new pixel value, and the following steps are executed in a loop until the previous pixel value of the pixel value corresponding to the second abnormal differential value is modified: in the current target pixel value sequence, the subsequent pixel value of the current new pixel value is modified to the sum of the following two items: 1) the current new pixel value; 2) the normal differential value further corresponding to the first-order differential value corresponding to the subsequent pixel value; the modified subsequent pixel value is determined as the current new pixel value.

[0289] Furthermore, in addition to the above-mentioned looping steps within the abnormal period, in another optional embodiment, corresponding accumulation operations may also be performed on other subsequent pixel values.

[0290] Specifically, the modified first pixel value is determined as the current new pixel value, and the following steps are performed in a loop until the last pixel value in the target pixel value sequence is modified:

[0291] In the current target pixel value sequence, the next pixel value of the current new pixel value is modified to: the sum of the first-order difference values ​​corresponding to the current new pixel value and the next pixel value; and the modified next pixel value is determined as the current new pixel value.

[0292] The above embodiment explains the process of correction based on the first-order difference sequence. It is understandable that for other examples of actual difference values, or for actual difference values, correction can also be performed in the same or similar manner, and correction can be performed with reference to the above embodiment.

[0293] Taking the actual difference quotient as an example, the abnormal difference quotient (the actual difference quotient outside the theoretical normal value range) can be adjusted to within the theoretical normal value range. Further, the adjusted abnormal difference quotient can be multiplied by the interval between the acquisition time points of the corresponding adjacent pixel values ​​to obtain the adjusted difference value; then the previous pixel value in the corresponding adjacent pixel values ​​is added to the adjusted difference value to obtain the current next pixel value in the corresponding adjacent pixel values. This can be repeated and adjusted one by one based on the adjusted pixel values.

[0294] Different actual difference quotient values ​​may correspond to different pixel values ​​in the current target pixel value sequence; wherein the actual difference quotient value may be: in the current target pixel value sequence, the difference between the corresponding pixel value and the previous pixel value is subtracted, and then divided by the quotient obtained by the duration between the two pixel value acquisition time points.

[0295] In other words, the pixel value corresponding to the actual difference quotient value may be the next pixel value among the corresponding adjacent pixel values.

[0296] Of course, the abnormal time period can also be determined based on the actual difference quotient value. Specifically, from the determined abnormal difference quotient values, an abnormal difference quotient value corresponding to a positive difference value and an abnormal difference quotient value corresponding to a negative difference value can be screened out; in the current target pixel value sequence, pixel value correction is performed for the pixel values ​​between the pixel values ​​corresponding to the two screened abnormal difference quotient values.

[0297] The specific explanation can be found in the above embodiments, which will not be repeated here.

[0298] The above embodiment explains that correction is performed on a target pixel value sequence at any pixel position.

[0299] It is understandable that different pixel value sequences determined for different pixel positions in the time-series image may also be corrected in the same manner.

[0300] Therefore, optionally, the above embodiments may be respectively executed for correction on pixel value sequences determined by multiple pixel positions in the time-series image, or may be respectively executed for correction on pixel value sequences determined by each pixel position in the time-series image.

[0301] It should be noted that the correction performed on a single or multiple pixel value sequences can be regarded as the correction performed on the time series image.

[0302] Specifically, each pixel value in the corrected pixel value sequence can be updated to the corresponding time-series image, thereby achieving correction for a number of time-series images.

[0303] Optionally, the determined time-series images may be further updated based on the corrected pixel value sequence, and specifically, several determined time-series images may be updated, or a plurality of determined time-series images may be updated.

[0304] Specifically, any pixel value in the corrected pixel value sequence may be replaced with a corresponding pixel value in the corresponding time-series image, that is, the pixel value at the targeted pixel position.

[0305] Correspondingly, after correcting the multiple pixel value sequences determined for different pixel positions, the determined time-series images can also be updated respectively.

[0306] After the time series image is updated based on the corrected pixel value sequence, the time series image may be further corrected.

[0307] In an optional embodiment, after the pixel value sequence is corrected, the whole correction may be further performed on several time-series images. Optionally, the method may also include: performing image correction on several time-series images after the target pixel value sequence is corrected, which may be image smoothing.

[0308] This embodiment does not limit the image smoothing method, and may specifically be to use a spatial median filter to perform image smoothing.

[0309] This embodiment can improve the accuracy of correcting time-series images.

[0310] In another optional embodiment, the method flow may further include correcting a plurality of time-series images based on the abnormal difference value, and specifically, directly performing image smoothing processing on the plurality of time-series images.

[0311] It can be understood that after correction is performed on a number of time-series images, the abnormality detection method of the above embodiment can be used again to perform abnormality detection.

[0312] Optionally, the following steps may be performed in a loop until an abnormal difference value cannot be determined: when an abnormal difference value is determined, correction is performed on a plurality of time series images, and abnormality detection is performed using the above method flow based on the corrected plurality of time series images. If the abnormality detection determines an abnormal difference value, the above loop steps are continued. If the abnormality detection determines that there is no abnormal difference value, the above loop steps are stopped.

[0313] Another exception handling method for time series data provided by an embodiment of the present invention is explained in detail below.

[0314] like Figure 3 As shown, Figure 3It is a flowchart of another method for handling exceptions in time series data according to an embodiment of the present invention.

[0315] The embodiment of the present invention does not limit the execution subject of the method flow. Optionally, the execution subject can be any electronic device, such as a computer, a terminal, a server, etc.

[0316] The method may include the following steps.

[0317] S201: Determine a time series data sequence; different time series data in the time series data sequence respectively represent information collected at different time points at the same geographical location; the time series data in the time series data sequence are arranged in order from the front to the back according to the collection time point.

[0318] S202: Determine a set of actual difference values ​​for a time series data sequence; the set of actual difference values ​​includes: actual difference values ​​for characterizing changes in values ​​between adjacent time series data in the time series data sequence.

[0319] S203: Based on the distribution of the actual difference values ​​in the actual difference value set, determine the theoretical normal value ranges corresponding to different actual difference values, and determine the actual difference value outside the corresponding theoretical normal value range as an abnormal difference value.

[0320] The above method process can automatically perform anomaly detection on time series data sequences, facilitate the determination of mutations in time series data sequences, and improve the efficiency and accuracy of anomaly detection on time series data sequences.

[0321] Furthermore, the above method flow can be combined with the distribution of actual difference values ​​to adaptively and automatically determine the theoretical normal value range, which can reduce manual participation and improve the accuracy of anomaly detection.

[0322] Optionally, for the time series data sequence, determining an actual difference value set includes:

[0323] For the time series data sequence, a first-order difference sequence is determined; the first-order difference sequence may include: first-order difference values ​​between adjacent time series data in the time series data sequence;

[0324] Based on the distribution of actual difference values ​​in the actual difference value set, the theoretical normal value ranges corresponding to different actual difference values ​​are determined, and the actual difference values ​​outside the corresponding theoretical normal value ranges are determined as abnormal difference values, including: based on the distribution of first-order difference values ​​in the first-order difference sequence, the normal difference values ​​corresponding to different first-order difference values ​​are determined; the corresponding difference values ​​obtained by subtracting the corresponding normal difference values ​​from the first-order difference values ​​are determined, and the first-order difference values ​​whose absolute values ​​of the corresponding difference values ​​are greater than a preset threshold are determined as abnormal difference values.

[0325] Optionally, based on the distribution of first-order difference values ​​in the first-order difference sequence, normal difference values ​​corresponding to different first-order difference values ​​are determined, including: smoothing the first-order difference sequence to obtain smoothed values ​​corresponding to different first-order difference values; and determining the smoothed values ​​corresponding to the first-order difference values ​​as the normal difference values ​​corresponding to the first-order difference values.

[0326] Optionally, different first-order difference values ​​correspond to different time series data in the current time series data sequence; wherein the first-order difference value includes: in the current time series data sequence, the difference between the corresponding time series data and the previous time series data; the above method flow also includes: based on the time series data corresponding to the determined abnormal difference value, correcting the time series data sequence.

[0327] Optionally, based on the time series data corresponding to the determined abnormal differential value, correction is performed on the time series data sequence, including:

[0328] Among the determined abnormal difference values, one abnormal difference value corresponding to a positive difference value and one abnormal difference value corresponding to a negative difference value are screened out;

[0329] In the current time series data sequence, time series data correction is performed on the time series data between the time series data corresponding to the two screened abnormal differential values.

[0330] Optionally, based on the time series data corresponding to the determined abnormal differential value, correction is performed on the time series data sequence, including:

[0331] The following steps are executed repeatedly until the preset stop condition is met:

[0332] Among the currently determined abnormal difference values, one abnormal difference value corresponding to a positive difference value and one abnormal difference value corresponding to a negative difference value are screened out;

[0333] In the current time series data sequence, for the time series data between the time series data corresponding to the two selected abnormal differential values, time series data correction is performed to obtain a corrected current time series data sequence;

[0334] The two screened abnormal difference values ​​are deleted from the determined abnormal difference values.

[0335] Optionally, based on the time series data corresponding to the determined abnormal differential value, correction is performed on the time series data sequence, including:

[0336] The following steps are executed repeatedly until the preset stop condition is met:

[0337] Among the currently determined abnormal difference values, one abnormal difference value corresponding to a positive difference value and one abnormal difference value corresponding to a negative difference value are screened out;

[0338] In the current time series data sequence, for the time series data between the time series data corresponding to the two selected abnormal differential values, time series data correction is performed to obtain a corrected current time series data sequence;

[0339] Re-determine the current first-order difference sequence for the current time series data sequence;

[0340] For the current first-order difference sequence, determine the normal difference values ​​corresponding to different first-order difference values;

[0341] Determine a corresponding difference value obtained by subtracting a corresponding normal difference value from a first-order difference value, and determine a first-order difference value whose absolute value of the corresponding difference value is greater than a preset threshold as the current abnormal difference value.

[0342] Optionally, in the current time series data sequence, time series data correction is performed for the time series data between the time series data corresponding to the two screened abnormal differential values, including:

[0343] Among the two abnormal difference values ​​selected, a first abnormal difference value corresponding to an earlier time point of the time series data collection and a second abnormal difference value corresponding to a later time point of the time series data collection are determined;

[0344] In the current time series data sequence, the first time series data corresponding to the first abnormal differential value is modified to: the sum of the previous time series data of the first time series data and the normal differential value corresponding to the first abnormal differential value;

[0345] The modified first time series data is determined as the current new time series data, and the following steps are executed in a loop until the previous time series data corresponding to the time series data of the second abnormal differential value is modified:

[0346] In the current time series data sequence, the time series data following the current new time series data is modified to be: the sum of the first-order difference values ​​corresponding to the current new time series data and the following time series data;

[0347] The modified subsequent time series data is determined as the current new time series data.

[0348] Optionally, among the determined abnormal difference values, one abnormal difference value corresponding to a positive difference value and one abnormal difference value corresponding to a negative difference value are screened out, including any of the following:

[0349] 1) Among the currently determined abnormal difference values, select an abnormal difference value whose corresponding difference value is the largest positive number and an abnormal difference value whose corresponding difference value is the smallest negative number;

[0350] 2) Among the abnormal difference values ​​currently determined, one abnormal difference value corresponding to a positive difference and one abnormal difference value corresponding to a negative difference are screened out; the difference between the absolute values ​​of the corresponding differences of the two screened abnormal difference values ​​is smaller than a preset difference;

[0351] 3) Among the currently determined abnormal difference values, select an abnormal difference value with a positive difference value and an abnormal difference value with a negative difference value; in the current first-order difference sequence, there are no other abnormal difference values ​​between the two selected abnormal difference values.

[0352] Optionally, the preset stop condition includes at least one of the following:

[0353] 1) In N consecutive cycles, the standard deviation of the time series data sequence after the time series data is corrected in the current cycle is less than the standard deviation of the time series data sequence after the time series data is corrected in the previous cycle; N≥1;

[0354] 2) The standard deviation of the time series data sequence after the time series data correction is less than the preset standard deviation threshold;

[0355] 3) The cycle reaches the preset number of times.

[0356] Optionally, the preset threshold includes: M times the standard deviation determined for the currently determined normal difference value; M>0.

[0357] For a detailed explanation of the process flow of this method, please refer to the previous explanation of S101-S104.

[0358] For ease of understanding, the embodiment of the present invention further provides an application embodiment.

[0359] This embodiment relates to the field of time series processing and remote sensing image processing, and specifically is a system for correcting abnormal time periods of time series data.

[0360] Time series data may occasionally encounter single outliers or even outlier periods, which may affect their further use.

[0361] The abnormal period has new characteristics compared to a single outlier. For example, the prerequisite for correcting it is to determine the starting and ending points of this period. Therefore, it is more challenging than dealing with a single outlier.

[0362] In the era of spatiotemporal big data, geography remains an important vehicle for studying human activities, and remote sensing has gradually become an important tool for studying this topic.

[0363] The problem of abnormal time series is particularly serious in the overlay analysis of time series remote sensing images. Common remote sensing primary products have the problem of insufficient time series continuity, such as MODIS-NDVI, DMSP_OLS, NPP_VI I RS / DNB, etc.

[0364] Even though time series outlier correction has a prominent position in spatiotemporal big data, there is no special technology (software or tool) with low threshold for use. Single outlier correction already has these problems, and correction of abnormal periods faces the dual lack of algorithms and technologies. Because there is no system for time series outlier correction, users often make manual corrections without a unified comparison method based on their own research scope and research needs, which raises the threshold for verification repeatability and scalability and reduces credibility. If the ability to correct pixel by pixel and time point is available, the problem of correction of abnormal periods after the superposition of time series remote sensing images will be fundamentally solved.

[0365] According to the analysis in this embodiment, three technical problems need to be solved:

[0366] (1) Accurately detect the start and end points of the abnormal timing period.

[0367] (2) Preserve potentially valuable detail signals when correcting for abnormal periods.

[0368] (3) Determine the standard for adaptive iterative correction of abnormal periods.

[0369] This embodiment provides a correction method, which changes the original idea of ​​smoothing the original time series. Starting from the first-order difference sequence of the original time series, the stable local weighted regression method is used for smoothing, and all mutation outliers are found through the three standard deviation rule.

[0370] Sort the mutation outliers, and use the value of the smoothed first-order difference sequence at that point to replace the original mutation value, leaving other first-order difference sequences unchanged. According to the judgment criteria, the above operation is repeated multiple times to correct the mutation outliers of the first-order difference sequence, and the mutation outlier period of the original sequence is corrected to achieve a balance between smoothness and volatility.

[0371] According to the above ideas, the design of the time series correction model needs to be divided into three steps: "detecting the start and end points", "correcting abnormal values", and "adaptively selecting the standard for the number of abnormal time periods":

[0372] (1) A technical solution for accurately detecting the start and end points of a time series anomaly period.

[0373] Assume that the time series contains multiple abnormal periods to be corrected. Here, the accurate detection of the start and end points is divided into two specific problems: How to detect time series anomalies? How to filter out the start and end points of an abnormal period from the anomalies?

[0374] The solution to the first question is: first take the first-order difference sequence, then perform RLOWESS smoothing on it, and calculate the three standard deviation ranges of the smoothed data. Based on this range, determine the abnormally high value sequence and the abnormally low value sequence as alternatives.

[0375] Solution to the second question: Among a series of alternative outliers, the maximum abnormal high value and the maximum abnormal low value often correspond to the starting and ending points of the most significant abnormal period. In view of this, the alternative sequences of abnormal high values and abnormal low values are sorted respectively, and sorted in descending order of absolute value for screening.

[0376] (2) Technical solutions and their alternatives for correcting abnormal periods.

[0377] Detecting the starting and ending points of the abnormal period is the basis. There are various choices for correction on this basis. The difficulty of this problem lies in how to ensure temporal continuity while retaining valuable fluctuation details.

[0378] First, distinguish whether the abnormal period belongs to the abnormal low value category or the abnormal high value category. When the time point Date_up of the maximum abnormal high value Yup(n) is earlier than the time point Date_down of the maximum abnormal low value Ydown(n), showing an up-then-down pattern, it is identified as an abnormal high value period; otherwise, it is an abnormal low value period.

[0379] Second, only correct the starting and ending points of the abnormal period, without smoothing any of the intermediate fluctuations, and retain the detailed information. Taking the abnormal high value period as an example below, the method for correcting the abnormal period is described in the form of pseudocode.

[0380] Pseudocode for alternative technical solutions for correcting abnormal periods.

[0381] Input: Original data X and its first-order difference data Y, the starting and ending points Date_up and Date_down of the screened abnormal period.

[0382] Output: Corrected data X adj 。

[0383] When Date_up < Date_down, at the time point Date_up, use the smoothed first-order difference data Y’ (Date_up) to replace the original first-order difference data Y (Date_up) 。

[0384] Perform cumulative summation on the processed (replaced) first-order difference data to obtain a temporary variable X temp 。

[0385] Replace all the values in X that are later than the time point Date_down with the same-time values in Xtemp to obtain X adj 。

[0386] The above algorithm can be replaced. When it is known that there are only abnormally high value periods in the time series, only the high values ​​can be corrected. At this time, if Date_up is later than Date_down, the original first-order difference value at the corresponding position is directly replaced with the smoothed first-order difference value at this time point, and no overall correction is performed, which is more time-saving. The same is explained in pseudo code form.

[0387] Pseudocode for alternative outlier period correction techniques.

[0388] Input: original data X and its first-order difference data Y, and the start and end points of the screened abnormal period Date_up and Date_down.

[0389] Output: Corrected data X adj .

[0390] When Date_up>Date_down, at the Date_up time point, use the smoothed first-order difference data Y' (Date_up) Replace the original first-order difference data Y (Date_up) You can also use the smoothed first-order difference data Y' at the Date_down time point (Date_down) Replace the original first-order difference data Y (Date_down) .

[0391] Cumulatively sum the processed first-order difference data to obtain the temporary variable X adj .

[0392] (3) Optional technical solutions for determining the standard of adaptive correction abnormal time period.

[0393] In order to process time series data with more than one abnormal period, in order to ensure the consistency of the time series while retaining the potentially valuable detail signals, it is necessary to correct multiple abnormal periods in a selective manner. In other words, all candidate abnormal values ​​can be directly corrected in one go, or they can be corrected iteratively.

[0394] Specifically, it is possible to set standards for iterative correction and perform adaptive calculations to reduce manual involvement. In adaptive calculations, when the overall standard deviation of the smoothed data is lower than the abnormal period data in the time series, smoothing is sufficient to maintain the balance principle. Therefore, the reduction of the overall standard deviation of the time series data is used as the judgment standard to perform adaptive iteration.

[0395] Reducing the overall standard deviation of the time series requires an object for comparison, and there are two options.

[0396] Option 1: The goal is achieved only when the overall standard deviation of the corrected data is lower than the overall standard deviation of the original data.

[0397] Option 2: When the overall standard deviation of the corrected data is lower than the overall standard deviation in the previous cycle, the goal is considered to be achieved.

[0398] In addition, for time series remote sensing images, it is also necessary to perform spatial median filtering on the images at each time point on this basis, that is, to ensure spatiotemporal smoothness.

[0399] (4) Summarize the pseudo code of the technical solution of this embodiment.

[0400] Pseudocode of the technical solution as a whole.

[0401] Input: original data X.

[0402] Output: Corrected data X adj .

[0403] Take the first-order difference sequence Y of the original sequence X.

[0404] Perform RLOWESS smoothing on Y to obtain Y'.

[0405] Calculate the three standard deviations of the first-order difference sequence Y' and obtain [Y 3std_down ,Y 3std_up ] range.

[0406] Find all the numbers in Y that are greater than Y 3std_up and all values ​​less than Y 3std_down , and after taking the absolute value, sort them from large to small according to the difference, and get two new sequences Yup(n) and Ydown(n).

[0407] Based on Y(n), adaptive abnormal time period selection and correction are performed to obtain X adj .

[0408] Specifically, performing RLOWESS smoothing on Y to obtain Y' may include:

[0409] Select the frac proportion of data in Y as the neighborhood of local regression, Yk;

[0410] In the first run, different weights W are set for values ​​at different positions in the neighborhood Yk (1) , and take its weighted sum as the new value Yk' of this point. The specific calculation method is the weighted least squares method, and the formula is:

[0411]

[0412] In the second run, different weights W are set for the values ​​at different positions in the neighborhood Yk again. (2) , where the weight equation W (2) Can be used with W (1)Different. Starting from this run, the weight needs to be multiplied by the penalty coefficient δ = W (2) (e / 6s) to reduce the weight of the location where the large error occurs. The calculation method is still the least squares method, and the formula is:

[0413]

[0414] Repeat the above operation until the number of iterations or the target (convergence) is reached, recorded as Y'.

[0415] Specifically, based on Y(n), adaptive abnormal time period number selection and correction are performed to obtain X adj , which may include:

[0416] In the first run, set n = 1, and take Yup (n) and Ydown (n) as the start and end points of the abnormal period (the relationship cannot be one-to-one correspondence), and make a timing correction, which is recorded as X (n) adj .

[0417] Judge X (n) adj Is the population standard deviation lower than X? (n-1) adj If yes, stop the loop; if no, go to the next operation. In the case of n = 1, X (0) adj It is the original data X.

[0418] When entering the subsequent operation, the current n value increases by 1, and the above steps are repeated until X (n) adj If the standard is met, then X adj =X (end) adj .

[0419] The advantages and positive effects of this embodiment include at least:

[0420] (1) It can automatically correct time series data containing any number of abnormal periods;

[0421] (2) While correcting for abnormal periods, retaining subtle fluctuation signals with potential value;

[0422] (3) In addition, in addition to conventional time series data, this embodiment can perform pixel-by-pixel time series processing on time series images with abnormal time periods to correct the time series images.

[0423] It can successfully correct the abnormal time periods of random time series data such as linear function, quadratic function, logarithm, exponential, and piecewise function, and retain the detail fluctuations to the greatest extent. It can also successfully correct the abnormal time periods of time series images.

[0424] In addition to being able to correct time series images, the corrected time series remote sensing data is more realistic and effective. For example, taking the night light satellite remote sensing data DMSP-OLS as an example, the corrected data can be compared with the more detailed NPP-VI I RS night light data or daytime optical remote sensing data, which can more realistically reflect the surface information than the original data.

[0425] The embodiment of the present invention also provides another application embodiment.

[0426] The present embodiment discloses a system for correcting abnormal time periods in time series data. In the present embodiment, in addition to being able to correct time series images, the corrected data is compared with more sophisticated NPP-VI I RS nighttime light data or daytime optical remote sensing data, which can more realistically reflect surface information than the original data. Time series data containing any number of abnormal time periods can be automatically corrected; while correcting abnormal time periods, subtle fluctuation signals with potential value are retained; in addition, in addition to conventional time series data, the present embodiment can perform pixel-by-pixel time series processing on time series images with abnormal time periods to correct the time series images. The application of the present embodiment to time series data and time series images has a positive effect, successfully correcting abnormal time periods of random time series data such as linear functions, quadratic functions, logarithms, exponentials, and piecewise functions, and retaining detailed fluctuations to the greatest extent.

[0427] A system for correcting abnormal periods of time series data, the system operation includes the following steps:

[0428] S1: The start and end points of all potential mutation periods are obtained by comparing the results of the stable local weighted regression (RLOWESS) based on the first-order difference data of the original data with the difference detection of the original data;

[0429] S2: Arrange the differences between the start and end points from high to low as a candidate pool for adaptive correction of abnormal time periods;

[0430] S3: Reconstruct the data after adaptively selecting and correcting the first-order difference data to retain potentially valuable detail signals;

[0431] S4: When the object is an image, spatial filtering and smoothing is performed, and then the abnormal period of the time series data is corrected, and the whole process is completed.

[0432] In step S1, it is also necessary to perform RLOWESS on the first-order difference data of the original data, and obtain the start and end points of all potential mutation periods at one time to form the maximum set.

[0433] In step S2, the maximum set is obtained at one time and sorted according to the differences of each potential mutation point as a candidate pool for adaptive correction of abnormal time periods, and the standard deviation of the data after each correction is set as the standard for adaptive correction.

[0434] In step S3, the adaptive correction procedure is applied to the first-order difference data itself, and then the first-order difference data is accumulated and reconstructed to repair the data.

[0435] The various technical features in the above embodiments can be arbitrarily combined as long as there is no conflict or contradiction between the combinations of features. However, due to space limitations, they are not described one by one. Therefore, any combination of the various technical features in the above embodiments also falls within the scope of the present invention.

[0436] Corresponding to the above method embodiment, the embodiment of the present invention also provides a device embodiment.

[0437] like Figure 4 As shown, Figure 4 It is a schematic diagram of the structure of an exception processing device for time series data according to an embodiment of the present invention.

[0438] The apparatus may include the following units.

[0439] The image determination unit 301 is used to: determine a plurality of time-series images; between different time-series images, pixel values ​​at the same pixel position respectively represent information collected at different time points at the same geographical location.

[0440] The sequence determination unit 302 is used to: determine a target pixel value sequence for any pixel position; the target pixel value sequence includes: the pixel value of the determined time series image at the targeted pixel position; the pixel values ​​in the target pixel value sequence are arranged in order from front to back according to the acquisition time point.

[0441] The abnormality detection unit 303 is used to determine an actual difference value set for a target pixel value sequence; the actual difference value set includes: actual difference values ​​used to characterize the numerical changes between adjacent pixel values ​​in the target pixel value sequence; based on the distribution of the actual difference values ​​in the actual difference value set, determine the theoretical normal value ranges corresponding to different actual difference values, and determine the actual difference values ​​outside the corresponding theoretical normal value ranges as abnormal difference values.

[0442] Optionally, the anomaly detection unit 303 is used to:

[0443] For the target pixel value sequence, a first-order difference sequence is determined; the first-order difference sequence includes: first-order difference values ​​between adjacent pixel values ​​in the target pixel value sequence;

[0444] Based on the distribution of the actual difference values ​​in the actual difference value set, the theoretical normal value ranges corresponding to different actual difference values ​​are determined, and the actual difference values ​​outside the corresponding theoretical normal value ranges are determined as abnormal difference values, including:

[0445] Based on the distribution of first-order difference values ​​in the first-order difference sequence, the normal difference values ​​corresponding to different first-order difference values ​​are determined; the corresponding difference value obtained by subtracting the corresponding normal difference value from the first-order difference value is determined, and the first-order difference value whose absolute value of the corresponding difference is greater than a preset threshold is determined as an abnormal difference value.

[0446] Optionally, the anomaly detection unit 303 is used to:

[0447] Smoothing is performed on the first-order difference sequence to obtain smoothing values ​​corresponding to different first-order difference values; the smoothing values ​​corresponding to the first-order difference values ​​are determined as normal difference values ​​corresponding to the first-order difference values.

[0448] Optionally, different first-order difference values ​​correspond to different pixel values ​​in the current target pixel value sequence; wherein the first-order difference value includes: in the current target pixel value sequence, the difference value of the corresponding pixel value minus the previous pixel value;

[0449] The above-mentioned device may further include: a pixel correction unit 304, which is used to: correct the target pixel value sequence based on the pixel value corresponding to the determined abnormal differential value.

[0450] Optionally, the pixel correction unit 304 is used to:

[0451] Among the determined abnormal difference values, one abnormal difference value corresponding to a positive difference value and one abnormal difference value corresponding to a negative difference value are screened out;

[0452] In the current target pixel value sequence, pixel value correction is performed for the pixel values ​​between the pixel values ​​corresponding to the two screened abnormal differential values.

[0453] Optionally, the pixel correction unit 304 is used to:

[0454] The following steps are executed repeatedly until the preset stop condition is met:

[0455] Among the currently determined abnormal difference values, one abnormal difference value corresponding to a positive difference value and one abnormal difference value corresponding to a negative difference value are screened out;

[0456] In the current target pixel value sequence, pixel value correction is performed for the pixel values ​​between the pixel values ​​corresponding to the two selected abnormal differential values ​​to obtain a corrected current target pixel value sequence;

[0457] The two screened abnormal difference values ​​are deleted from the determined abnormal difference values.

[0458] Optionally, the pixel correction unit 304 is used to:

[0459] The following steps are executed repeatedly until the preset stop condition is met:

[0460] Among the currently determined abnormal difference values, one abnormal difference value corresponding to a positive difference value and one abnormal difference value corresponding to a negative difference value are screened out;

[0461] In the current target pixel value sequence, pixel value correction is performed for the pixel values ​​between the pixel values ​​corresponding to the two selected abnormal differential values ​​to obtain a corrected current target pixel value sequence;

[0462] Re-determine the current first-order difference sequence for the current target pixel value sequence;

[0463] For the current first-order difference sequence, determine the normal difference values ​​corresponding to different first-order difference values;

[0464] Determine a corresponding difference value obtained by subtracting a corresponding normal difference value from a first-order difference value, and determine a first-order difference value whose absolute value of the corresponding difference value is greater than a preset threshold as the current abnormal difference value.

[0465] Optionally, the pixel correction unit 304 is used to:

[0466] Among the two abnormal difference values ​​selected, a first abnormal difference value corresponding to an earlier pixel value acquisition time point and a second abnormal difference value corresponding to a later pixel value acquisition time point are determined;

[0467] In the current target pixel value sequence, the first pixel value corresponding to the first abnormal differential value is modified to be: the sum of the previous pixel value of the first pixel value and the normal differential value corresponding to the first abnormal differential value;

[0468] The modified first pixel value is determined as the current new pixel value, and the following steps are performed in a loop until the previous pixel value of the pixel value corresponding to the second abnormal differential value is modified:

[0469] In the current target pixel value sequence, the pixel value following the current new pixel value is modified to be the sum of the first-order difference values ​​corresponding to the current new pixel value and the following pixel value;

[0470] The modified next pixel value is determined as the current new pixel value.

[0471] Optionally, the pixel correction unit 304 is used to:

[0472] Among the currently determined abnormal difference values, an abnormal difference value corresponding to the largest positive number and an abnormal difference value corresponding to the smallest negative number are screened out;

[0473] Among the abnormal difference values ​​currently determined, one abnormal difference value corresponding to a positive difference and one abnormal difference value corresponding to a negative difference are screened out; the difference between the absolute values ​​of the corresponding differences of the two screened abnormal difference values ​​is smaller than a preset difference;

[0474] Among the currently determined abnormal difference values, one abnormal difference value corresponding to a positive difference value and one abnormal difference value corresponding to a negative difference value are screened out; in the current first-order difference sequence, there are no other abnormal difference values ​​between the two screened abnormal difference values.

[0475] Optionally, the preset stop condition includes at least one of the following:

[0476] In N consecutive cycles, the standard deviation of the target pixel value sequence after the pixel value correction in the current cycle is less than the standard deviation of the target pixel value sequence after the pixel value correction in the previous cycle; N≥1;

[0477] The standard deviation of the target pixel value sequence after pixel value correction is less than a preset standard deviation threshold;

[0478] The cycle reaches the preset number of times.

[0479] Optionally, the preset threshold includes: M times the standard deviation determined for the currently determined normal difference value; M>0.

[0480] Optionally, the pixel correction unit 304 is further configured to perform image smoothing processing on a plurality of time-series images after the target pixel value sequence is corrected.

[0481] For detailed explanation, please refer to the above method embodiment.

[0482] like Figure 5 As shown, Figure 5 It is a schematic diagram of the structure of another device for handling exceptions of time series data according to an embodiment of the present invention.

[0483] The apparatus may include the following units.

[0484] The time series determination unit 401 is used to determine a time series data sequence; different time series data in the time series data sequence respectively represent information collected at different time points at the same geographical location; the time series data in the time series data sequence are arranged in order from the front to the back according to the collection time point.

[0485] The difference detection unit 402 is used to determine a set of actual difference values ​​for a time series data sequence; the actual difference value set includes: actual difference values ​​used to characterize the numerical changes between adjacent time series data in the time series data sequence; based on the distribution of actual difference values ​​in the actual difference value set, determine the theoretical normal value ranges corresponding to different actual difference values, and determine the actual difference values ​​outside the corresponding theoretical normal value ranges as abnormal difference values.

[0486] Optionally, the difference detection unit 402 is used to:

[0487] For the time series data sequence, a first-order difference sequence is determined; the first-order difference sequence may include: first-order difference values ​​between adjacent time series data in the time series data sequence;

[0488] Based on the distribution of actual difference values ​​in the actual difference value set, the theoretical normal value ranges corresponding to different actual difference values ​​are determined, and the actual difference values ​​outside the corresponding theoretical normal value ranges are determined as abnormal difference values, including: based on the distribution of first-order difference values ​​in the first-order difference sequence, the normal difference values ​​corresponding to different first-order difference values ​​are determined; the corresponding difference values ​​obtained by subtracting the corresponding normal difference values ​​from the first-order difference values ​​are determined, and the first-order difference values ​​whose absolute values ​​of the corresponding difference values ​​are greater than a preset threshold are determined as abnormal difference values.

[0489] Optionally, the difference detection unit 402 is used to: perform smoothing processing on the first-order difference sequence to obtain smoothed values ​​corresponding to different first-order difference values; and determine the smoothed values ​​corresponding to the first-order difference values ​​as normal difference values ​​corresponding to the first-order difference values.

[0490] Optionally, different first-order difference values ​​correspond to different time series data in the current time series data sequence; wherein the first-order difference value includes: in the current time series data sequence, the difference between the corresponding time series data and the previous time series data; the above-mentioned device may also include: a correction unit 403, which is used to correct the time series data sequence based on the time series data corresponding to the determined abnormal difference value.

[0491] Optionally, the correction unit 403 is configured to:

[0492] Among the determined abnormal difference values, one abnormal difference value corresponding to a positive difference value and one abnormal difference value corresponding to a negative difference value are screened out;

[0493] In the current time series data sequence, time series data correction is performed on the time series data between the time series data corresponding to the two screened abnormal differential values.

[0494] Optionally, the correction unit 403 is configured to:

[0495] The following steps are executed repeatedly until the preset stop condition is met:

[0496] Among the currently determined abnormal difference values, one abnormal difference value corresponding to a positive difference value and one abnormal difference value corresponding to a negative difference value are screened out;

[0497] In the current time series data sequence, for the time series data between the time series data corresponding to the two selected abnormal differential values, time series data correction is performed to obtain a corrected current time series data sequence;

[0498] The two screened abnormal difference values ​​are deleted from the determined abnormal difference values.

[0499] Optionally, the correction unit 403 is configured to:

[0500] The following steps are executed repeatedly until the preset stop condition is met:

[0501] Among the currently determined abnormal difference values, one abnormal difference value corresponding to a positive difference value and one abnormal difference value corresponding to a negative difference value are screened out;

[0502] In the current time series data sequence, for the time series data between the time series data corresponding to the two selected abnormal differential values, time series data correction is performed to obtain a corrected current time series data sequence;

[0503] Re-determine the current first-order difference sequence for the current time series data sequence;

[0504] For the current first-order difference sequence, determine the normal difference values ​​corresponding to different first-order difference values;

[0505] Determine a corresponding difference value obtained by subtracting a corresponding normal difference value from a first-order difference value, and determine a first-order difference value whose absolute value of the corresponding difference value is greater than a preset threshold as the current abnormal difference value.

[0506] Optionally, the correction unit 403 is configured to:

[0507] Among the two abnormal difference values ​​selected, a first abnormal difference value corresponding to an earlier time point of the time series data collection and a second abnormal difference value corresponding to a later time point of the time series data collection are determined;

[0508] In the current time series data sequence, the first time series data corresponding to the first abnormal differential value is modified to: the sum of the previous time series data of the first time series data and the normal differential value corresponding to the first abnormal differential value;

[0509] The modified first time series data is determined as the current new time series data, and the following steps are executed in a loop until the previous time series data corresponding to the time series data of the second abnormal differential value is modified:

[0510] In the current time series data sequence, the time series data following the current new time series data is modified to be: the sum of the first-order difference values ​​corresponding to the current new time series data and the following time series data;

[0511] The modified subsequent time series data is determined as the current new time series data.

[0512] Optionally, the correction unit 403 is configured to:

[0513] 1) Among the currently determined abnormal difference values, select an abnormal difference value whose corresponding difference value is the largest positive number and an abnormal difference value whose corresponding difference value is the smallest negative number;

[0514] 2) Among the abnormal difference values ​​currently determined, one abnormal difference value corresponding to a positive difference and one abnormal difference value corresponding to a negative difference are screened out; the difference between the absolute values ​​of the corresponding differences of the two screened abnormal difference values ​​is smaller than a preset difference;

[0515] 3) Among the currently determined abnormal difference values, select an abnormal difference value with a positive difference value and an abnormal difference value with a negative difference value; in the current first-order difference sequence, there are no other abnormal difference values ​​between the two selected abnormal difference values.

[0516] Optionally, the preset stop condition includes at least one of the following:

[0517] 1) In N consecutive cycles, the standard deviation of the time series data sequence after the time series data is corrected in the current cycle is less than the standard deviation of the time series data sequence after the time series data is corrected in the previous cycle; N≥1;

[0518] 2) The standard deviation of the time series data sequence after the time series data correction is less than the preset standard deviation threshold;

[0519] 3) The cycle reaches the preset number of times.

[0520] Optionally, the preset threshold includes: M times the standard deviation determined for the currently determined normal difference value; M>0.

[0521] For detailed explanation, please refer to the above method embodiment.

[0522] An embodiment of the present invention further provides a computer device, which at least includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein any of the above method embodiments is implemented when the processor executes the program.

[0523] An embodiment of the present invention also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any of the above-mentioned method embodiments.

[0524] Figure 6 1 is a schematic diagram of the hardware structure of a computer device configured with a method according to an embodiment of the present invention, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other in communication within the device through the bus 1050.

[0525] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided by the embodiments of the present invention.

[0526] The memory 1020 may be implemented in the form of ROM (Read On ly Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solution provided by the embodiment of the present invention is implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.

[0527] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0528] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WI FI, Bluetooth, etc.).

[0529] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0530] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present invention, and does not necessarily include all the components shown in the figure.

[0531] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, any of the above method embodiments is implemented.

[0532] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program implements any of the above method embodiments when executed by a processor.

[0533] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include transitory media such as modulated data signals and carrier waves.

[0534] An embodiment of the present invention further provides a computer program product, including a computer program / instruction, wherein the computer program / instruction implements any of the above method embodiments when executed by a processor.

[0535] It can be known from the description of the above implementation mode that a person skilled in the art can clearly understand that the embodiment of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the embodiment of the present invention can be essentially or in other words, the part that makes the contribution can be embodied in the form of a software product, and the computer software product can be stored in a storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiment of the present invention.

[0536] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.

[0537] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the functions of each module can be implemented in the same one or more software and / or hardware when implementing the embodiment of the present invention. It is also possible to select some or all of the modules according to actual needs to achieve the purpose of the embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

[0538] The above is only a specific implementation of the embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the embodiment of the present invention. These improvements and modifications should also be regarded as protection for the embodiment of the present invention.

[0539] In the present invention, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance. The term "plurality" refers to two or more than two, unless otherwise clearly defined.

[0540] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the disclosure disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed by the present invention. The description and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0541] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A method for handling exceptions in time series data, characterized in that: include: determining a number of time-series images; Between different time-series images, the pixel values ​​with the same pixel position represent the information collected at different time points at the same geographical location; For any pixel position, determine a target pixel value sequence; The target pixel value sequence includes: the pixel value of the determined time-series image at the targeted pixel position; the pixel values ​​in the target pixel value sequence are arranged in order from the front to the back according to the acquisition time point; Determine an actual difference value set for the target pixel value sequence; the actual difference value set includes: actual difference values ​​for characterizing the numerical changes between adjacent pixel values ​​in the target pixel value sequence; Based on the distribution of the actual difference values ​​in the actual difference value set, the theoretical normal value ranges corresponding to different actual difference values ​​are determined, and the actual difference values ​​outside the corresponding theoretical normal value ranges are determined as abnormal difference values.

2. The method according to claim 1, characterized in that The step of determining a set of actual difference values ​​for the target pixel value sequence comprises: For the target pixel value sequence, a first-order difference sequence is determined; the first-order difference sequence includes: first-order difference values ​​between adjacent pixel values ​​in the target pixel value sequence; The determining, based on the distribution of the actual difference values ​​in the actual difference value set, theoretical normal value ranges corresponding to different actual difference values, and determining the actual difference value outside the corresponding theoretical normal value range as an abnormal difference value, includes: Based on the distribution of the first-order difference values ​​in the first-order difference sequence, the normal difference values ​​corresponding to different first-order difference values ​​are determined; the corresponding difference value obtained by subtracting the corresponding normal difference value from the first-order difference value is determined, and the first-order difference value whose absolute value of the corresponding difference value is greater than a preset threshold is determined as an abnormal difference value.

3. The method according to claim 2, characterized in that The determining, based on the distribution of the first-order difference values ​​in the first-order difference sequence, normal difference values ​​corresponding to different first-order difference values ​​respectively includes: Smoothing is performed on the first-order difference sequence to obtain smoothing values ​​corresponding to different first-order difference values; and the smoothing values ​​corresponding to the first-order difference values ​​are determined as normal difference values ​​corresponding to the first-order difference values.

4. The method according to claim 2, characterized in that: Different first-order difference values ​​correspond to different pixel values ​​in the current target pixel value sequence; wherein the first-order difference value includes: in the current target pixel value sequence, the difference value of the corresponding pixel value minus the previous pixel value; The method further comprises: Based on the pixel values ​​corresponding to the determined abnormal differential values, correction is performed on the target pixel value sequence.

5. The method according to claim 4, characterized in that The correcting the target pixel value sequence based on the pixel value corresponding to the determined abnormal differential value includes: Among the determined abnormal difference values, one abnormal difference value corresponding to a positive difference value and one abnormal difference value corresponding to a negative difference value are screened out; In the current target pixel value sequence, pixel value correction is performed for the pixel values ​​between the pixel values ​​corresponding to the two screened abnormal differential values.

6. The method according to claim 4, characterized in that The correcting the target pixel value sequence based on the pixel value corresponding to the determined abnormal differential value includes: The following steps are executed repeatedly until the preset stop condition is met: Among the currently determined abnormal difference values, one abnormal difference value corresponding to a positive difference value and one abnormal difference value corresponding to a negative difference value are screened out; In the current target pixel value sequence, pixel value correction is performed for the pixel values ​​between the pixel values ​​corresponding to the two selected abnormal differential values ​​to obtain a corrected current target pixel value sequence; The two screened abnormal difference values ​​are deleted from the determined abnormal difference values.

7. The method according to claim 4, characterized in that The correcting the target pixel value sequence based on the pixel value corresponding to the determined abnormal differential value includes: The following steps are executed repeatedly until the preset stop condition is met: Among the currently determined abnormal difference values, one abnormal difference value corresponding to a positive difference value and one abnormal difference value corresponding to a negative difference value are screened out; In the current target pixel value sequence, pixel value correction is performed for the pixel values ​​between the pixel values ​​corresponding to the two selected abnormal differential values ​​to obtain a corrected current target pixel value sequence; Re-determine the current first-order difference sequence for the current target pixel value sequence; For the current first-order difference sequence, determine the normal difference values ​​corresponding to different first-order difference values; Determine a corresponding difference value obtained by subtracting a corresponding normal difference value from a first-order difference value, and determine a first-order difference value whose absolute value of the corresponding difference value is greater than a preset threshold as the current abnormal difference value.

8. The method according to any one of claims 5 to 7, characterized in that The pixel value correction is performed for the pixel value between the pixel values ​​corresponding to the two selected abnormal differential values ​​in the current target pixel value sequence, including: Among the two abnormal difference values ​​selected, a first abnormal difference value corresponding to an earlier pixel value acquisition time point and a second abnormal difference value corresponding to a later pixel value acquisition time point are determined; In the current target pixel value sequence, the first pixel value corresponding to the first abnormal differential value is modified to be: the sum of the previous pixel value of the first pixel value and the normal differential value corresponding to the first abnormal differential value; The modified first pixel value is determined as the current new pixel value, and the following steps are performed in a loop until the previous pixel value of the pixel value corresponding to the second abnormal differential value is modified: In the current target pixel value sequence, the pixel value following the current new pixel value is modified to be: the sum of the first-order difference value corresponding to the current new pixel value and the following pixel value; The modified next pixel value is determined as the current new pixel value.

9. The method according to any one of claims 5 to 7, characterized in that The step of selecting, from the determined abnormal difference values, an abnormal difference value corresponding to a positive difference value and an abnormal difference value corresponding to a negative difference value comprises any of the following: Among the currently determined abnormal difference values, an abnormal difference value corresponding to the largest positive number and an abnormal difference value corresponding to the smallest negative number are screened out; Among the currently determined abnormal difference values, one abnormal difference value corresponding to a positive difference value and one abnormal difference value corresponding to a negative difference value are screened out; The difference between the absolute values ​​of the corresponding differences of the two screened abnormal difference values ​​is smaller than the preset difference; Among the currently determined abnormal difference values, one abnormal difference value corresponding to a positive difference value and one abnormal difference value corresponding to a negative difference value are screened out; in the current first-order difference sequence, there are no other abnormal difference values ​​between the two screened abnormal difference values.

10. The method according to claim 6 or 7, characterized in that: The preset stop condition includes at least one of the following: In N consecutive cycles, the standard deviation of the target pixel value sequence after the pixel value correction in the current cycle is less than the standard deviation of the target pixel value sequence after the pixel value correction in the previous cycle; N≥1; The standard deviation of the target pixel value sequence after pixel value correction is less than a preset standard deviation threshold; The cycle reaches the preset number of times.

11. The method according to any one of claims 2 to 7, characterized in that The preset threshold includes: M times the standard deviation determined for the currently determined normal difference value; M>0.

12. The method according to any one of claims 4 to 7, characterized in that Also includes: Image smoothing processing is performed on a plurality of time-series images after the target pixel value sequence is corrected.

13. A method for handling exceptions in time series data, characterized in that: include: Determine the time series data sequence; Different time series data in the time series data sequence respectively represent information collected at different time points at the same geographical location; The time series data in the time series data sequence are arranged in order from the front to the back according to the acquisition time points; For the time series data sequence, determining a set of actual difference values; The actual difference value set includes: actual difference values ​​used to characterize the numerical changes between adjacent time series data in the time series data sequence; Based on the distribution of the actual difference values ​​in the actual difference value set, the theoretical normal value ranges corresponding to different actual difference values ​​are determined, and the actual difference values ​​outside the corresponding theoretical normal value ranges are determined as abnormal difference values.

14. An exception processing device for time series data, characterized in that: include: An image determination unit is used to: determine a plurality of time-series images; pixel values ​​with the same pixel position between different time-series images respectively represent information collected at different time points at the same geographical location; A sequence determination unit, used to: determine a target pixel value sequence for any pixel position; The target pixel value sequence includes: the pixel value of the determined time-series image at the targeted pixel position; the pixel values ​​in the target pixel value sequence are arranged in order from the front to the back according to the acquisition time point; The abnormality detection unit is used to determine an actual difference value set for the target pixel value sequence; the actual difference value set includes: actual difference values ​​used to characterize the numerical changes between adjacent pixel values ​​in the target pixel value sequence; based on the distribution of the actual difference values ​​in the actual difference value set, determine the theoretical normal value ranges corresponding to different actual difference values, and determine the actual difference values ​​outside the corresponding theoretical normal value ranges as abnormal difference values.

15. An exception processing device for time series data, characterized in that: include: A time series determination unit, used for determining a time series data sequence; Different time series data in the time series data sequence respectively represent information collected at different time points at the same geographical location; The time series data in the time series data sequence are arranged in order from the front to the back according to the acquisition time points; A difference detection unit, used for determining a set of actual difference values ​​for the time series data sequence; The actual difference value set includes: actual difference values ​​used to characterize the numerical changes between adjacent time series data in the time series data sequence; Based on the distribution of the actual difference values ​​in the actual difference value set, the theoretical normal value ranges corresponding to different actual difference values ​​are determined, and the actual difference values ​​outside the corresponding theoretical normal value ranges are determined as abnormal difference values.

16. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor so as to enable the at least one processor to perform the method according to any one of claims 1 to 13.

17. A computer-readable storage medium storing a computer program, characterized in that: The computer program implements the method according to any one of claims 1 to 13 when executed by a processor.

18. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 13 is implemented.

Citation Information

Cited By

  • Data exception alarm method and device, electronic equipment and storage medium

    CN121637335A