Data stability detection method and device, and storage medium
By iteratively determining the interval scores of multidimensional data and using the interval segmentation method to detect the stability of multidimensional datasets, the problem of insufficient flexibility in multidimensional dataset detection in existing technologies is solved, enabling a wider range of application scenarios and higher detection accuracy.
Patent Information
- Application Number
- CN202011112111.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-16
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2040-10-16
AI Technical Summary
Existing technologies cannot effectively detect the stability of multidimensional datasets, resulting in poor flexibility of detection schemes and significant limitations in application scenarios.
The interval scores of the dataset to be processed and the reference dataset in the multidimensional data interval are determined by iterative method. The overlapping areas of the dataset are divided into intervals from a single dimension using the interval cutting method. The single-dimensional data intervals are combined to determine the multidimensional data interval scores, thereby detecting the stability of the multidimensional dataset.
It improves the flexibility and accuracy of stability testing for multidimensional datasets, expands the application scenarios, and can detect the stability of numerical, categorical, and mixed multidimensional datasets.
Smart Images

Figure CN114385460B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method and apparatus for detecting data stability, and a storage medium. Background Technology
[0002] In the field of data processing, to improve data processing efficiency, algorithmic models (such as artificial intelligence (AI) models) can be used for batch processing of data. For example, an algorithmic model can be used to process a dataset containing multiple data records. To ensure the accuracy of data processing, the stability of the dataset to be processed can be tested before the algorithmic model is used to process it. The stability of the dataset to be processed can be characterized by the population stability index (PSI) of the dataset relative to a reference dataset, which is any dataset that is accurately processed by the algorithmic model and contains multiple data records.
[0003] Currently, the process for detecting the stability of the dataset to be processed includes: first, dividing the dataset to be processed and the reference dataset into multiple data intervals using binning, ensuring that each data interval includes at least one data record; then, calculating the data frequency in each data interval based on the number of data records in each data interval of the dataset to be processed and the total number of data records in the dataset to be processed, and calculating the data frequency in each data interval based on the number of data records in each data interval of the reference dataset and the total number of data records in the reference dataset; next, determining the PSI of the dataset to be processed relative to the reference dataset based on the data frequencies in the multiple data intervals of the dataset to be processed and the multiple data intervals of the reference dataset; finally, performing stability testing on the dataset to be processed based on the PSI of the dataset to be processed relative to the reference dataset.
[0004] However, PSI can only detect the stability of single-dimensional numerical datasets (that is, all data records in the dataset are single-dimensional data records, each data record includes only one dimension of data, and this one dimension of data is numerical data. Numerical data refers to data whose data type is numerical, usually real numbers, and is generally stored in computers as floating-point numbers or integer types, such as 1, 2, 30, 100, etc.). In practical applications, the datasets to be processed are usually multidimensional datasets (that is, the data records in the dataset are multidimensional data records, each data record includes at least two dimensions of data). PSI cannot detect the stability of multidimensional datasets. Therefore, the current method for detecting data stability has poor flexibility and its application scenarios are quite limited. Summary of the Invention
[0005] This application provides a method, apparatus, and storage medium for detecting data stability, which helps improve the flexibility of data stability detection and has a wide range of applications. The technical solution of this application is as follows: Firstly, a method for detecting data stability is provided. This method includes: acquiring a dataset to be processed and a reference dataset, each including at least one data record, where each data record includes data in n dimensions, where n is an integer greater than or equal to 1; determining the interval scores of the dataset to be processed and the reference dataset in the same m multidimensional data intervals, where the m multidimensional data intervals are determined based on the single-dimensional data intervals of the n dimensions, and the single-dimensional data interval for each of the n dimensions is obtained by dividing the data in that dimension into intervals, where m is an integer greater than or equal to 1; and performing stability detection on the dataset to be processed based on the interval scores of the dataset to be processed and the reference dataset in the same m multidimensional data intervals.
[0006] The technical solution provided in this application can determine the interval scores of the dataset to be processed in m multidimensional data intervals and the interval scores of the reference dataset in the same m multidimensional data intervals. Based on the interval scores of the dataset to be processed in the same m multidimensional data intervals and the interval scores of the reference dataset in the same m multidimensional data intervals, the stability of the dataset to be processed can be a multidimensional dataset. Therefore, this data stability detection scheme can detect the stability of multidimensional datasets. This data stability detection scheme has high flexibility and a wide range of application scenarios.
[0007] Optionally, determining the interval scores of the dataset to be processed and the reference dataset in the m multidimensional data intervals includes: determining the interval scores of the dataset to be processed and the reference dataset in the m multidimensional data intervals through iteration.
[0008] The technical solution provided in this application determines the interval score of the dataset to be processed in the multidimensional data interval and the interval score of the reference dataset in the same multidimensional data interval through an iterative method. This allows for a more refined determination of the multidimensional data interval and the interval score, which helps to improve the accuracy of the algorithm and the resolution of the data interval.
[0009] Optionally, determining the interval scores of the dataset to be processed and the reference dataset in the m multidimensional data intervals through iteration includes: performing at least one processing operation on the overlapping regions corresponding to the n dimensions until a cutoff condition is met, wherein the overlapping regions corresponding to the n dimensions are the overlapping regions of the dataset to be processed and the reference dataset determined from each of the n dimensions, and the overlapping regions corresponding to each dimension include the same data in the dimension for the dataset to be processed and the reference dataset; determining the interval score of the dataset to be processed in at least one multidimensional data interval when the cutoff condition is met as the interval score of the dataset to be processed in the m multidimensional data intervals; and determining the interval score of the reference dataset in at least one multidimensional data interval when the cutoff condition is met as the interval score of the reference dataset in the m multidimensional data intervals.
[0010] The technical solution provided in this application determines the interval score of the dataset to be processed in the multidimensional data interval and the interval score of the reference dataset in the same multidimensional data interval through an iterative method. This allows for a more refined determination of the multidimensional data interval and the interval score, which helps to improve the accuracy of the algorithm and the resolution of the data interval.
[0011] Optionally, the m multidimensional data intervals include m1 multidimensional overlapping intervals, which are the overlapping intervals of the dataset to be processed and the reference dataset, where m1 is an integer greater than or equal to 1 and less than or equal to m; the processing procedure includes: determining at least one single-dimensional data interval of each dimension based on the overlapping region corresponding to each of the n dimensions; determining at least one multidimensional overlapping interval based on the single-dimensional data intervals of the n dimensions; for each multidimensional overlapping interval, determining the interval score of the dataset to be processed in the multidimensional overlapping interval based on the data records in the dataset to be processed that are located in the multidimensional overlapping interval, and determining the interval score of the reference dataset in the multidimensional overlapping interval based on the data records in the reference dataset that are located in the multidimensional overlapping interval.
[0012] The technical solution provided in this application divides the overlapping region of the dataset to be processed and the reference dataset into intervals from a single dimension using the interval segmentation method. It then combines the single-dimensional data intervals obtained from different dimensions to determine multi-dimensional data intervals, and determines the interval scores of the dataset to be processed and the reference dataset in the multi-dimensional data interval. This facilitates stability testing of the dataset to be processed based on the interval scores of the dataset to be processed and the reference dataset in the multi-dimensional data interval.
[0013] Optionally, the m multidimensional data intervals further include m2 multidimensional non-overlapping intervals, which are non-overlapping intervals between the dataset to be processed and the reference dataset, where m2 is an integer greater than or equal to 0, and m1 + m2 = m. The processing further includes: determining the interval score of the dataset to be processed in the first multidimensional non-overlapping interval based on the interval score of the dataset to be processed in the first multidimensional overlapping interval, where the first multidimensional non-overlapping interval is a data interval in the dataset to be processed that does not overlap with the reference dataset, and the first multidimensional overlapping interval is a multidimensional overlapping interval adjacent to the first multidimensional non-overlapping interval among the at least one multidimensional overlapping intervals; determining the interval score of the reference dataset in the second multidimensional non-overlapping interval based on the interval score of the reference dataset in the second multidimensional overlapping interval, where the second multidimensional non-overlapping interval is a data interval in the reference dataset that does not overlap with the dataset to be processed, and the second multidimensional overlapping interval is a multidimensional overlapping interval adjacent to the second multidimensional non-overlapping interval among the at least one multidimensional overlapping intervals.
[0014] The technical solution provided in this application determines the interval score of the dataset to be processed in the first multidimensional non-overlapping interval based on the interval score of the dataset in the first multidimensional overlapping interval, and determines the interval score of the reference dataset in the second multidimensional non-overlapping interval based on the interval score of the reference dataset in the second multidimensional overlapping interval. This method of determining the interval score in the non-overlapping interval can be called the nearest neighbor following method or the encircling following method.
[0015] Optionally, the processing further includes: determining the interval score of the dataset to be processed in the first multidimensional mixing interval based on the data records in the dataset to be processed that fall within the first multidimensional mixing interval, wherein the first multidimensional mixing interval is composed of the first multidimensional overlapping interval and the first multidimensional non-overlapping interval; determining the interval score of the reference dataset in the second multidimensional mixing interval based on the data records in the reference dataset that fall within the second multidimensional mixing interval, wherein the second multidimensional mixing interval is composed of the second multidimensional overlapping interval and the second multidimensional non-overlapping interval; correspondingly, determining the interval score of the dataset to be processed in the first multidimensional overlapping interval based on the interval score of the dataset to be processed in the first multidimensional overlapping interval. The interval score in the multidimensional non-overlapping interval includes: determining the interval score of the dataset to be processed in the first multidimensional non-overlapping interval based on the interval score of the dataset to be processed in the first multidimensional mixed interval and the interval score of the dataset to be processed in the first multidimensional overlapping interval; determining the interval score of the reference dataset in the second multidimensional non-overlapping interval based on the interval score of the reference dataset in the second multidimensional overlapping interval includes: determining the interval score of the reference dataset in the second multidimensional non-overlapping interval based on the interval score of the reference dataset in the second multidimensional mixed interval and the interval score of the reference dataset in the second multidimensional overlapping interval.
[0016] The technical solution provided in this application determines the interval score of the dataset to be processed in the first multidimensional non-overlapping interval based on the interval score of the dataset to be processed in the first multidimensional mixed interval and the interval score of the dataset to be processed in the first multidimensional overlapping interval. In addition, it determines the interval score of the reference dataset in the second multidimensional non-overlapping interval based on the interval score of the reference dataset in the second multidimensional mixed interval and the interval score of the reference dataset in the second multidimensional overlapping interval. The method of determining the interval score in the non-overlapping interval can be called the nearest neighbor following method or the encircling following method.
[0017] Optionally, before determining the interval scores of the dataset to be processed and the reference dataset in the m multidimensional data intervals through iteration, the method further includes: determining the overlapping regions of the dataset to be processed and the reference dataset from each of the n dimensions to obtain the overlapping regions corresponding to the n dimensions; determining the non-overlapping regions of the dataset to be processed and the reference dataset based on the overlapping regions of the dataset to be processed and the reference dataset in the n dimensions; and determining the multidimensional non-overlapping intervals based on the non-overlapping regions of the dataset to be processed and the reference dataset.
[0018] The technical solution provided in this application, by determining the overlapping region of the dataset to be processed and the reference dataset, as well as the non-overlapping region of the dataset to be processed and the reference dataset, can facilitate the determination of the multidimensional overlapping interval and the multidimensional non-overlapping interval of the dataset to be processed and the reference dataset.
[0019] Optionally, the cutoff condition includes: the number of the multidimensional data intervals reaches a preset number.
[0020] Optionally, each of the n dimensions corresponds to a data type, and the data types corresponding to the n dimensions include at least one of numeric and categorical types. The data types corresponding to the n dimensions of the data records in the dataset to be processed are the same as the data types corresponding to the n dimensions of the data records in the reference dataset. Determining at least one single-dimensional data interval for each dimension based on the overlapping region corresponding to each of the n dimensions includes: for the dimension corresponding to a numeric type, dividing the overlapping region corresponding to the dimension into intervals to obtain at least one single-dimensional data interval for the dimension, wherein the number of single-dimensional data intervals obtained by dividing the overlapping region corresponding to the dimension is different when the processing is performed at least twice; for the dimension corresponding to a categorical type, data of the same categorical type in the overlapping region corresponding to the dimension is determined as a single-dimensional data interval.
[0021] The technical solution provided in this application divides the overlapping area of the dataset to be processed and the reference dataset into intervals from a single dimension using the interval segmentation method. This facilitates the combination of single-dimensional data intervals obtained from different dimensions to determine multi-dimensional data intervals for stability testing of the dataset to be processed.
[0022] Optionally, for the dimension corresponding to the numerical type, the number of single-dimensional data intervals obtained by performing the process at least twice to divide the overlapping region corresponding to the dimension increases linearly or exponentially.
[0023] The technical solution provided in this application increases the number of single-dimensional data intervals obtained by dividing overlapping regions according to the number of times the processing is executed. This helps to refine the determination of multi-dimensional data intervals and interval scores, thereby improving the accuracy of the algorithm and the resolution of the data intervals.
[0024] Optionally, based on the interval scores of the dataset to be processed in the m multidimensional data intervals and the interval scores of the reference dataset in the m multidimensional data intervals, a stability test is performed on the dataset to be processed, including: determining a stability index of the dataset to be processed relative to the reference dataset based on the interval scores of the dataset to be processed in the m multidimensional data intervals and the interval scores of the reference dataset in the m multidimensional data intervals; and performing a stability test on the dataset to be processed based on the stability index of the dataset to be processed relative to the reference dataset.
[0025] The technical solution provided in this application, by determining the stability index of the dataset to be processed relative to the reference dataset, can facilitate the quantitative detection of the stability of the dataset to be processed based on the stability index.
[0026] Optionally, based on the interval scores of the dataset to be processed in the m multidimensional data intervals and the interval scores of the reference dataset in the m multidimensional data intervals, a stability index of the dataset to be processed relative to the reference dataset is determined, including: for each of the m multidimensional data intervals, determining the percentage of the dataset to be processed in that multidimensional data interval based on the interval scores of the dataset to be processed in that multidimensional data interval and the interval scores of the dataset to be processed in the m multidimensional data intervals; and determining the percentage of the reference dataset in that multidimensional data interval based on the interval scores of the reference dataset in that multidimensional data interval and the interval scores of the reference dataset in the m multidimensional data intervals; and determining the stability index of the dataset to be processed relative to the reference dataset based on the percentage of the dataset to be processed in that m multidimensional data intervals and the percentage of the reference dataset in that m multidimensional data intervals.
[0027] The technical solution provided in this application, by determining the score proportion of the dataset to be processed in the multidimensional data interval and the score proportion of the reference dataset in the multidimensional data interval, can facilitate the determination of the stability index of the dataset to be processed relative to the reference dataset based on the score proportion of the dataset to be processed in m multidimensional data intervals and the score proportion of the reference dataset in the m multidimensional data intervals.
[0028] In a second aspect, a data stability detection apparatus is provided, the apparatus comprising modules for performing the methods provided in the first aspect or any alternative manner of the first aspect.
[0029] Thirdly, a computer device is provided, the computer device including a memory and a processor; This memory is used to store computer programs; The processor is used to execute the computer program stored in the memory to perform the method provided as in the first aspect or any alternative method of the first aspect.
[0030] Fourthly, a computer program product comprising instructions is provided, which, when run on a computer, causes the computer to perform the method provided by the first aspect or any alternative method of the first aspect.
[0031] Fifthly, a chip is provided that includes programmable logic circuitry and / or program instructions for implementing the methods provided in the first aspect or any alternative manner of the first aspect when the chip is running.
[0032] The beneficial effects of the technical solution provided in this application are: The data stability detection method, apparatus, and storage medium provided in this application each include at least one data record in the dataset to be processed and the reference dataset. Each data record includes data in n dimensions (n is an integer greater than or equal to 1). After obtaining the dataset to be processed and the reference dataset, the interval scores of the dataset to be processed and the reference dataset in the same m multidimensional data intervals are first determined. Then, the stability of the dataset to be processed is detected based on the interval scores of the dataset to be processed and the reference dataset in the same m multidimensional data intervals. The m multidimensional data intervals are determined based on the single-dimensional data intervals of the n dimensions. The single-dimensional data interval of each of the n dimensions is obtained by dividing the data of that dimension into intervals. Since the interval scores of the dataset to be processed and the reference dataset in the same m multidimensional data intervals can be determined, the dataset to be processed can be a multidimensional dataset. Therefore, this data stability detection scheme can detect the stability of multidimensional datasets, and it has high flexibility and wide application scenarios. Attached Figure Description
[0033] Figure 1 This is a schematic diagram of a single-dimensional data record provided in an embodiment of this application; Figure 2 This is a schematic diagram of a multidimensional data record provided in an embodiment of this application; Figure 3 This is a schematic diagram of the hardware structure of a computer device provided in an embodiment of this application; Figure 4This is a flowchart of a data stability detection method provided in an embodiment of this application; Figure 5 This is a flowchart illustrating a stability test of a dataset to be processed based on interval scores, provided in an embodiment of this application. Figure 6 This is a flowchart provided in an embodiment of the present application for determining the interval scores of the dataset to be processed in m multidimensional data intervals and the interval scores of the reference dataset in the same m multidimensional data intervals; Figure 7 This is a flowchart of a processing procedure provided in an embodiment of this application; Figure 8 This is a schematic diagram illustrating the determination of interval fractions on non-overlapping intervals provided in an embodiment of this application; Figure 9 This is a schematic diagram illustrating another method for determining interval fractions on non-overlapping intervals, provided in an embodiment of this application. Figure 10 This is a flowchart illustrating how to determine overlapping and non-overlapping regions between a dataset to be processed and a reference dataset, as provided in an embodiment of this application. Figure 11 This is a schematic diagram of the logical structure of a data stability detection device provided in an embodiment of this application. Detailed Implementation
[0034] To make the principles, technical solutions and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0035] To facilitate understanding, the terms used in the embodiments of this application will be introduced first.
[0036] Supervised learning refers to machine learning that infers a function (or algorithmic model) from a labeled training dataset. The training dataset typically includes multiple training instances. Each instance consists of a data record (also called an input object or input data) and a corresponding label value (also called an output object, output data, output value, or supervision signal). The label value for each data record is obtained by labeling that data record, and it represents the expected output value when that data record is used as input data. Analyzing the training dataset using a supervised learning algorithm can generate an algorithmic model that can be used to process data. For example, this algorithmic model can be any model capable of data processing, such as an AI model.
[0037] Data record: A data record is a piece of data consisting of at least one data field (or data item). Each data field (or data item) represents a dimension of the data record, meaning that each data field (or data item) corresponds to one dimension.
[0038] Single-dimensional data record: This refers to a data record with a dimension of 1, meaning the data record contains only one dimension of data (or only one data field or data item). For example, please refer to [reference needed]. Figure 1 It illustrates a schematic diagram of a single-dimensional data record provided in an embodiment of this application, such as... Figure 1 As shown, data record 11, data record 12, data record 13, and data record 14 are each a single-dimensional data record (that is, Figure 1 Four single-dimensional data records are shown. Data records 11 to 14 are expense reimbursement records. Data record 11 indicates that an employee of a certain company reimbursed 160 yuan in expenses. Here, "160" is a dimension of data in data record 11, or a data field or data item of data record 11. Data records 12, 13, and 14 are similar and will not be described in detail here.
[0039] Multidimensional data records refer to data records with more than one dimension, meaning they include data from at least two dimensions (or at least two data fields or at least two data items). For example, please refer to [reference needed]. Figure 2 It illustrates a schematic diagram of a multidimensional data record provided in an embodiment of this application, such as... Figure 2 As shown, data record 21, data record 22, data record 23, and data record 24 are each a multidimensional data record (that is, Figure 2 Four multidimensional data records are shown. Each data record from 21 to 24 is specifically a three-dimensional data record, representing expense reimbursement records. Data record 21 indicates that an employee of a certain company reimbursed 160 yuan in RMB, with a reimbursement level of "low". Here, "RMB", "160", and "low" represent the three dimensions of data record 21, or its three data fields / items. Data records 22, 23, and 24 are similar and will not be elaborated upon further.
[0040] Numeric data: This refers to data whose data type is numeric (pure numeric) (or data field, data item). Numeric data is usually real numbers and is typically stored in computers as floating-point numbers or integers. For example, Figure 1The data “160”, “200”, “50”, “1000” in data records 11 to 14 shown are as follows: Figure 2 The data “160”, “200”, “50”, and “1000” in data records 21 to 24 shown are all numerical data.
[0041] Categorical data: This refers to data whose data type is categorical (or data field, data item). Categorical data is usually stored as a string in computers. Examples include "high", "medium", "low", "excellent", "good", "happy", and "sad". Figure 2 The data “RMB” and “low” in data record 21, “USD” and “high” in data record 22, “GBP” and “medium” in data record 23, and “EUR” and “low” in data record 24 are all categorical data.
[0042] Numerical data records refer to data records where all dimensions contain numerical data.
[0043] Categorical data records: These are data records in which all dimensions are categorical data.
[0044] Hybrid data records: These are data records that include both numerical and categorical data. That is, some dimensions of the data record are numerical, while other dimensions are categorical. For example... Figure 2 Data records 21 to 24 shown are all mixed-type data records.
[0045] Single-dimensional data interval: An interval of data in a single dimension, for example Figure 1 The range of data in data records 11 to 14 shown, or Figure 2 The interval where the data in one dimension of the data records 21 to 24 shown is located.
[0046] Multidimensional data interval: A data interval formed by concatenating at least two single-dimensional data intervals. For example, if data interval 1 and data interval 2 are both single-dimensional data intervals, the data interval formed by concatenating data interval 1 and data interval 2 is a two-dimensional data interval, which can be: data interval 1 _ data interval 2. For example... Figure 2 An interval formed by splicing together the intervals containing data in at least two dimensions is a multidimensional data interval.
[0047] Data stability: The data stability discussed in this paper refers to the stability of the dataset. The stability of a dataset can be characterized by its stability index (SI) relative to a reference dataset. The SI measures whether the dataset is stable relative to the reference dataset, that is, it measures the degree of change of the dataset relative to the reference dataset. Here, the dataset to be processed, as described in this paper, refers to the dataset to be processed using the algorithm model, and the reference dataset is the dataset correctly processed by the algorithm model. Optionally, the dataset to be processed and the reference dataset originate from the same data source. Those skilled in the art should understand that this application embodiment uses the example of both the dataset to be processed and the reference dataset being used in the algorithm model to illustrate data stability. The significance of data stability detection is not limited to the algorithm model. The technical solutions provided in this application embodiment can be applied to any scenario requiring data stability detection, and this application embodiment does not limit the scenario for data stability detection.
[0048] This application relates to data mining and machine learning, which can be supervised or unsupervised learning. The main significance of machine learning lies in obtaining an algorithmic model for data processing, such as using the algorithmic model for data prediction and classification. In the fields of data mining and machine learning, an algorithmic model can be obtained by analyzing a given training dataset using appropriate algorithms, or by modeling the training dataset. A typical algorithmic model operates as follows: first, the model is trained using a labeled training dataset; then, the dataset to be processed is input into the algorithmic model, and the algorithmic model processes the dataset to obtain the processing result. For example, the algorithmic model can be a prediction model, which outputs a prediction result based on the input data to be predicted; or, the algorithmic model can be a classification model, which outputs a classification result based on the input data to be classified.
[0049] Typically, a model evaluation metric (such as the accuracy of data processing) can be used to measure the quality of an algorithm model's output. Monitoring the output of the algorithm model can determine whether it meets business standards. One of the assumptions for an algorithm model to work effectively is that its input data is independent and identically distributed (i.e., different batches of input data are independent and follow the same distribution; in other words, the input data is stable). The independent and identically distributed nature of the input data is a crucial factor in ensuring that the algorithm model's output meets business standards (i.e., the stability of the input data is a crucial factor in ensuring that the algorithm model's output meets business standards). For an algorithm model that has been trained and optimized, if the output results obtained by processing two batches of input data differ significantly, there is reason to suspect that the difference between the two batches of input data is large. For example, if the latter batch of input data shows a greater degree of variation compared to the former, then the latter batch of input data has poor stability.
[0050] The operation and maintenance of algorithm models requires monitoring their output, which means monitoring the stability of their input data. It's understandable that detecting deterioration in the stability of the input data doesn't necessarily mean the output will deteriorate. However, it provides essential information for the operation and maintenance personnel to decide whether to adjust and adapt the algorithm model, or to trace back to check if the data source is the problem. For example, if the output of an algorithm model processed from two batches of input data differs significantly, the model can be retrained and the retrained model used to process the data to be processed; alternatively, the algorithm model can be adjusted based on the differences in its output from the two batches of input data, and the adjusted model used to process the data to be processed. Therefore, stability testing of the input data is crucial for ensuring the algorithm model matches its input data and processes it accurately, and it is also an important aspect of algorithm model operation and maintenance.
[0051] The input data for an algorithm model is typically batched, meaning it can be a single dataset. In this paper, the dataset whose stability is to be tested is referred to as the processing dataset. The stability of the processing dataset can be characterized by its change relative to a reference dataset. Stability testing can be performed on the processing dataset based on the reference dataset. The processing dataset and the reference dataset can be two batches of input data from the same algorithm model, with the reference dataset being the dataset accurately processed by the algorithm model. Currently, the stability of the processing dataset can be tested using the chi-square test or the PSI (Proportional Stability Index). The PSI is a metric that measures the difference between two datasets; for two datasets, the PSI of one dataset relative to the other reflects the degree of change of that dataset relative to the other.
[0052] One approach to detecting the stability of a dataset using the chi-square test involves determining the probability distributions of the dataset to be processed and the reference dataset using the chi-square test, and then detecting the stability of the dataset based on these distributions. However, this approach is overly sensitive, reducing the detection result to a simple binary judgment: whether the dataset to be processed has changed relative to the reference dataset (i.e., whether it has changed or not). This approach cannot quantitatively characterize the degree of change of the dataset to be processed relative to the reference dataset, making it difficult to apply in practical data stability testing.
[0053] One approach to detecting the stability of a dataset using PSI involves first dividing both the dataset to be processed and the reference dataset into multiple data intervals using binning. Then, the data frequency in each interval is calculated. Next, the PSI of the dataset to be processed relative to the reference dataset is determined based on the data frequencies in the intervals obtained from dividing the dataset to be processed and the data frequencies in the intervals obtained from dividing the reference dataset. Finally, the stability of the dataset to be processed is tested based on its PSI relative to the reference dataset. However, PSI can only detect the stability of single-dimensional numerical datasets. In practical applications, datasets to be processed are usually multidimensional datasets, and can be numerical (i.e., all data records in the dataset are numerical), categorical (i.e., all data records in the dataset are categorical), or mixed (i.e., all data records in the dataset are mixed). PSI cannot detect the stability of multidimensional, categorical, or mixed datasets. Therefore, this approach to detecting data stability has poor flexibility and limited application scenarios.
[0054] In view of this, this application provides a data stability detection scheme. In this scheme, each data record in the dataset to be processed and the reference dataset includes data with n dimensions. Each of the n dimensions can be divided into multiple single-dimensional data intervals. Based on the single-dimensional data intervals of the n dimensions, m multi-dimensional data intervals are determined. The interval scores of the dataset to be processed and the reference dataset in the m multi-dimensional data intervals are determined. Then, the stability of the dataset to be processed is detected based on the interval scores of the dataset to be processed and the reference dataset in the m multi-dimensional data intervals. This data stability detection scheme can detect the stability of multi-dimensional datasets, has high flexibility, and is widely applicable. The multi-dimensional dataset can be a numerical dataset, a categorical dataset, or a mixed dataset. Furthermore, this data stability detection scheme can also be used to detect the stability of single-dimensional datasets.
[0055] The data stability detection method provided in this application can be applied to a computer device, which can be a general-purpose computer device, such as a terminal or a server. The terminal can be a personal computer, smartphone, tablet, laptop, or desktop computer, etc., and the server can be a single server, a server cluster consisting of several servers, or a cloud computing service center. The server can be a general-purpose bare-metal server or an elastic computing cloud platform, etc. Optionally, the computer device is a high-performance server with multiple cores and large memory. Such a high-performance server has advantages in processing massive amounts of data and can quickly and effectively process high-dimensional big data.
[0056] For example, please refer to Figure 3 This illustration shows a hardware structure diagram of a computer device 300 provided in an embodiment of this application. See also... Figure 3 The computer device 300 includes a processor 302, a memory 304, a communication interface 306, and a bus 308, wherein the processor 302, the memory 304, and the communication interface 306 are communicatively connected to each other via the bus 308. Those skilled in the art will understand that... Figure 3 The connection method between the processor 302, memory 304 and communication interface 306 shown is merely exemplary. In the implementation process, the processor 302, memory 304 and communication interface 306 can also communicate with each other using other connection methods besides bus 308.
[0057] The memory 304 can be used to store a computer program 3042, which may include instructions and data. In this embodiment, the memory 304 can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), flash memory, optical storage, and registers. Furthermore, the memory 304 may include a hard disk and / or RAM. RAM is used for temporarily storing data, and the hard disk is used for persistently storing data. A database management system (DBMS) for managing the database can be deployed on the hard disk.
[0058] The processor 302 can be a general-purpose processor, which can be a processor that performs specific steps and / or operations by reading and executing a computer program (e.g., computer program 3042) stored in memory (e.g., memory 304). The general-purpose processor may use data stored in memory (e.g., memory 304) during the execution of the aforementioned steps and / or operations. The general-purpose processor can be, for example, but not limited to, a central processing unit (CPU). Alternatively, the processor 302 can be a dedicated processor, which can be a processor specifically designed to perform specific steps and / or operations. This dedicated processor can be, for example, but not limited to, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), or a programmable logic device (PLD). The PLD can be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), generic array logic (GAL), or any combination thereof. Furthermore, the processor 302 can also be a combination of multiple processors, such as a multi-core processor. The processor 302 may include at least one circuit to perform all or part of the steps of the methods provided in the embodiments of this application.
[0059] The communication interface 306 may include input / output (I / O) interfaces, physical interfaces, and logical interfaces for interconnecting devices within the computer device 300, as well as interfaces for interconnecting the computer device 300 with other devices. I / O interfaces may include, but are not limited to, keyboards, mice, and displays. Physical interfaces may be gigabit Ethernet (GE) interfaces, which can be used to interconnect the computer device 300 with other devices. Logical interfaces are internal interfaces of the computer device 300, used for interconnecting devices within the computer device 300. It is easy to understand that the communication interface 306 can be used for communication between the computer device 300 and other devices; for example, the communication interface 306 is used for sending and receiving information between the computer device 300 and other devices.
[0060] The bus 308 can be any type of communication bus used to interconnect the processor 302, memory 304 and communication interface 306, such as a system bus.
[0061] The aforementioned devices can be disposed on separate chips, or at least partially or entirely on the same chip. Whether to dispose of the devices independently on different chips or integrate them on one or more chips often depends on the product design requirements. This application does not limit the specific implementation of the aforementioned devices. For example, the computer device 300 also includes a motherboard, on which at least some or all of the aforementioned devices are disposed.
[0062] Figure 3 The computer device 300 shown is merely exemplary. In its implementation, the computer device 300 may also include other components. For example, the computer device 300 may also include a power supply component to provide operating power to the aforementioned devices. Other components in the computer device 300 will not be listed here individually. Figure 3 The computer device 300 shown can detect the stability of data by executing the data stability detection method provided in the embodiments of this application.
[0063] The following describes a data stability detection method provided in an embodiment of this application. This data stability detection method can be used for, for example... Figure 3 The computer device 300 shown.
[0064] For example, please refer to Figure 4 It illustrates a flowchart of a data stability detection method provided in an embodiment of this application, such as... Figure 4 As shown, the method for detecting data stability may include the following steps: Step 401: Obtain the dataset to be processed and the reference dataset. The dataset to be processed and the reference dataset each include at least one data record, and each data record includes data in n dimensions.
[0065] Optionally, the dataset to be processed is the dataset to be processed by the algorithm model, and the reference dataset is any dataset that has been correctly processed by the algorithm model. The dataset to be processed and the reference dataset originate from the same data source. The computer device can obtain the dataset to be processed from the data source, or from a dataset that has never been processed by the algorithm model; the computer device can obtain the reference dataset from a dataset that has already been processed by the algorithm model. For example, the reference dataset is a previous batch of the dataset to be processed that has been processed by the algorithm model. For instance, the dataset to be processed is the expense reimbursement data of a company's employees in February, and the reference dataset is the expense reimbursement data of the same company's employees in January.
[0066] In this embodiment, the dataset to be processed and the reference dataset each include at least one data record. Each data record includes data in n dimensions, where n is an integer greater than or equal to 1. The number of dimensions of the data records in the dataset to be processed is equal to the number of dimensions of the data records in the reference dataset. Each of the n dimensions corresponds to a data type, which is the type of data in that dimension. The data types corresponding to the n dimensions can include at least one of numeric and categorical types. If all n dimensions of a data record correspond to numeric data types, then the data record is a numeric data record. If all n dimensions of a data record correspond to categorical data types, then the data record is a categorical data record. If the n dimensions of a data record correspond to both numeric and categorical data types (i.e., some dimensions correspond to numeric data types and others to categorical data types), then the data record is a mixed-type data record. For example, the data record can be... Figure 1 The single-dimensional data record shown (n=1) is either... Figure 2 The multidimensional data records shown are (n greater than 1). In this embodiment, the n dimensions of the data records in the dataset to be processed correspond one-to-one with the n dimensions of the data records in the reference dataset, and the data types corresponding to the corresponding dimensions in the dataset to be processed and the reference dataset are the same.
[0067] For example, for ease of description, the dataset to be processed is called dataset D1, and the reference dataset is called dataset D2. The number of dimensions of dataset D1 is n1, and the number of dimensions of dataset D2 is n2, then n1 = n2. The data records in dataset D1 can be represented as S1 = {a1, a2, a3...a...} n1}, a1, a2, a3...a n1 The numbers a1, a2, a3...a1 represent the data in the n1 dimensions of the data records in dataset D1, respectively. n1 One-to-one correspondence with n1 dimensions; the data records in dataset D2 can be represented as S2={b1, b2, b3...b... n2}, b1, b2, b3...b n2 The numbers b1, b2, b3...b represent the data in the n2 dimensions of the data records in dataset D2, respectively. n2 One-to-one correspondence should have n² dimensions; and a1, a2, a3...a n1 With b1, b2, b3...b n2 There is a one-to-one correspondence: the data type of a1 is the same as the data type of b1, the data type of a2 is the same as the data type of b2, the data type of a3 is the same as the data type of b3, and so on. ndata type and b n They have the same data type.
[0068] It should be noted that after the computer device obtains the dataset to be processed and the reference dataset, it can detect whether the number of dimensions of the data records in the dataset to be processed is equal to the number of dimensions of the data records in the reference dataset, whether the dimensions of the data records in the dataset to be processed correspond one-to-one with the dimensions of the data records in the reference dataset, and whether the data types corresponding to the one-to-one corresponding dimensions in the dataset to be processed and the reference dataset are the same. If the number of dimensions of the data records in the dataset to be processed is equal to the number of dimensions of the data records in the reference dataset, the dimensions of the data records in the dataset to be processed correspond one-to-one with the dimensions of the data records in the reference dataset, and the data types corresponding to the one-to-one corresponding dimensions in the dataset to be processed and the reference dataset are the same, the computer device executes... The subsequent steps of step 401 include: if the number of dimensions of the data records in the dataset to be processed is not equal to the number of dimensions of the data records in the reference dataset; or if the number of dimensions of the data records in the dataset to be processed is equal to the number of dimensions of the data records in the reference dataset, but the dimensions of the data records in the dataset to be processed do not correspond one-to-one with the dimensions of the data records in the reference dataset; or if the number of dimensions of the data records in the dataset to be processed is equal to the number of dimensions of the data records in the reference dataset, and the dimensions of the data records in the dataset to be processed correspond one-to-one with the dimensions of the data records in the reference dataset, but the data types corresponding to the one-to-one corresponding dimensions in the dataset to be processed and the reference dataset are different, the computer device can generate a prompt message to inform the user that subsequent steps cannot be performed. After generating the prompt message, the computer device can detect the data records in the dataset to be processed to determine the data type corresponding to each dimension of each data record, which will not be described in detail in this embodiment.
[0069] Step 402: Determine the interval scores of the dataset to be processed in the m multidimensional data intervals and the interval scores of the reference dataset in the m multidimensional data intervals. The m multidimensional data intervals are determined based on the n single-dimensional data intervals. The single-dimensional data interval of each of the n dimensions is obtained by dividing the data of that dimension into intervals.
[0070] After the computer device acquires the dataset to be processed and the reference dataset, if the number of dimensions of the data records in the dataset to be processed is equal to the number of dimensions of the data records in the reference dataset, the dimensions of the data records in the dataset to be processed correspond one-to-one with the dimensions of the data records in the reference dataset, and the data types corresponding to the one-to-one dimensions in the dataset to be processed and the reference dataset are the same, the computer device determines the interval scores of the dataset to be processed and the interval scores of the reference dataset in the m multidimensional data intervals by executing step 402. The m multidimensional data intervals are determined based on the single-dimensional data intervals of n dimensions. The single-dimensional data interval of each of the n dimensions is obtained by dividing the data of that dimension into intervals, where m is an integer greater than or equal to 1. The implementation process of step 402 will be described in detail below and will not be elaborated here.
[0071] Step 403: Based on the interval scores of the dataset to be processed in the m multidimensional data intervals and the interval scores of the reference dataset in the same m multidimensional data intervals, perform stability testing on the dataset to be processed.
[0072] After the computer device obtains the interval scores of the dataset to be processed in m multidimensional data intervals and the interval scores of the reference dataset in the same m multidimensional data intervals, it performs a stability test on the dataset to be processed based on these scores. For example, please refer to... Figure 5 This illustrates a flowchart of a stability detection method for a dataset to be processed based on interval scores, provided in an embodiment of this application. Figure 5 As shown, the method may include the following steps: Sub-step 4031: Based on the interval scores of the dataset to be processed in the m multidimensional data intervals and the interval scores of the reference dataset in the m multidimensional data intervals, determine the stability index of the dataset to be processed relative to the reference dataset.
[0073] Optionally, for each of the m multidimensional data intervals (e.g., multidimensional data interval i), the computer device determines the percentage of the score of the dataset to be processed in the multidimensional data interval (e.g., multidimensional data interval i) based on the interval score of the dataset to be processed in the multidimensional data interval (e.g., multidimensional data interval i) and the interval score of the dataset to be processed in the m multidimensional data intervals. Furthermore, the computer device determines the percentage of the score of the reference dataset in the multidimensional data interval (e.g., multidimensional data interval i) based on the interval score of the reference dataset in the multidimensional data interval (e.g., multidimensional data interval i) and the interval score of the reference dataset in the m multidimensional data intervals. Then, the computer device determines a stability index of the dataset to be processed relative to the reference dataset based on the percentage of the score of the dataset to be processed in the m multidimensional data intervals and the percentage of the score of the reference dataset in the m multidimensional data intervals.
[0074] Optionally, for each of the m multidimensional data intervals (e.g., multidimensional data interval i), the computer device determines the ratio of the interval score of the dataset to be processed in that multidimensional data interval (e.g., multidimensional data interval i) to the sum of the interval scores of the dataset to be processed in the m multidimensional data intervals as the percentage of the score of the dataset to be processed in that multidimensional data interval (e.g., multidimensional data interval i), and determines the ratio of the interval score of the reference dataset in that multidimensional data interval (e.g., multidimensional data interval i) to the sum of the interval scores of the reference dataset in the m multidimensional data intervals as the percentage of the score of the reference dataset in that multidimensional data interval (e.g., multidimensional data interval i). For example, the percentage of the score of the dataset to be processed in multidimensional data interval i can be represented by the following formula (1), and the percentage of the score of the reference dataset in multidimensional data interval i can be represented by the following formula (2): (1); (2); In formulas (1) and (2), m represents the total number of multidimensional data intervals. This represents the percentage of the score of the dataset to be processed in the multidimensional data interval i. This represents the interval score of the dataset to be processed in the multidimensional data interval i. This represents the sum of interval scores of the dataset to be processed across m multidimensional data intervals. This represents the percentage of the reference dataset's score in the multidimensional data interval i. This represents the interval score of the reference dataset in the multidimensional data interval i. This represents the sum of interval scores of the reference dataset across the m multidimensional data intervals.
[0075] Optionally, the computer device calculates the stability index of the dataset to be processed relative to the reference dataset based on the percentage of scores of the dataset to be processed in the m multidimensional data intervals and the percentage of scores of the reference dataset in the m multidimensional data intervals. KL divergence is a way to quantify the difference between two probability distributions, also known as relative entropy. For example, the stability index of the dataset to be processed relative to the reference dataset can be expressed by the following formula (3): (3); In formula (3), SI represents the stability index of the dataset to be processed relative to the reference dataset, and ln is the logarithm symbol, which represents the logarithm with the irrational number e as the base. The logarithm with the irrational number e as the base is also called the natural logarithm.
[0076] In this embodiment of the application, the computer device can calculate the percentage of the score of the dataset to be processed in the multidimensional data interval i using formula (1) based on the interval score of the dataset to be processed in the multidimensional data interval i and the interval score of the dataset to be processed in the m multidimensional data intervals; and calculate the percentage of the score of the reference dataset in the multidimensional data interval i using formula (2) based on the interval score of the reference dataset in the multidimensional data interval i and the interval score of the reference dataset in the m multidimensional data intervals; and then, the computer device can calculate the stability index of the dataset to be processed relative to the reference dataset using formula (3) based on the percentage of the score of the dataset to be processed in the multidimensional data interval i and the percentage of the score of the reference dataset in the multidimensional data interval i.
[0077] It should be noted that the stability index SI mentioned in formula (3) is a general term. In the embodiments of this application, the dataset to be processed can be a numerical dataset (that is, all data records in the dataset to be processed are numerical data records), a categorical dataset (that is, all data records in the dataset to be processed are categorical data records), or a mixed dataset (that is, all data records in the dataset to be processed are mixed data records). The numerical dataset can be a one-dimensional numerical dataset or a multi-dimensional numerical dataset, and the categorical dataset can be a one-dimensional categorical dataset or a multi-dimensional categorical dataset. For a one-dimensional numerical dataset, the stability index can be PSI; for a one-dimensional categorical dataset, the stability index can be the categorical variable population stability index (cPSI); for a multi-dimensional numerical dataset, a multi-dimensional categorical dataset, and a mixed dataset, the stability index can be the multi-variable population stability index (MSI). The calculation process of PSI, cPSI, and MSI is as shown in formula (3), and will not be repeated here.
[0078] Sub-step 4032: Perform stability testing on the dataset to be processed based on the stability index of the dataset to be processed relative to the reference dataset.
[0079] Optionally, the computer device detects whether the stability index of the dataset to be processed relative to the reference dataset is greater than a first index threshold. If the stability index of the dataset to be processed relative to the reference dataset is not greater than the first index threshold, the computer device determines that the change in the dataset to be processed relative to the reference dataset is small, and the dataset to be processed is stable. If the stability index of the dataset to be processed relative to the reference dataset is greater than the first index threshold, the computer device detects whether the stability index of the dataset to be processed relative to the reference dataset is greater than a second index threshold (the second index threshold is greater than the first index threshold). If the stability index of the dataset to be processed relative to the reference dataset is not greater than the second index threshold, then the stability index of the dataset to be processed relative to the reference dataset is between the first index threshold and the second index threshold, and the computer device determines that the dataset to be processed has undergone a moderate change relative to the reference dataset. If the stability index of the dataset to be processed relative to the reference dataset is greater than the second index threshold, the computer device determines that the change in the dataset to be processed relative to the reference dataset is large, and the dataset to be processed is unstable. For example, the first index threshold is 0.1, and the second index threshold is 0.2.
[0080] After performing stability detection on the to-be-processed data set, the computer device may generate a detection result and display the detection result (for example, displaying the detection result or broadcasting the detection result) for the user to view conveniently, where the detection result may include an indicator interval in which a stability indicator of the to-be-processed data set relative to the reference data set is located, and a description of the stability indicator. For example, the indicator interval in which the stability indicator is located and the description of the stability indicator may be shown in Table 1 below: Table 1
[0081] Optionally, after performing stability detection on the to-be-processed data set, the computer device may further output difference comparison details between the to-be-processed data set and the reference data set, so that when the user determines that the change degree of the to-be-processed data set relative to the reference data set is relatively large, the user can quickly locate a data record with a relatively large change degree, that is, quickly locate a problem point. Optionally, the computer device may output the difference comparison details between the to-be-processed data set and the reference data set when the change degree of the to-be-processed data set relative to the reference data set is relatively large (for example, SI>0.2). It can be understood that, when the change degree of the to-be-processed data set relative to the reference data set is relatively small (for example, SI<0.1, or 0.1<SI<0.2), the computer device may also output the difference comparison details between the to-be-processed data set and the reference data set, which is not limited in this embodiment of this application. Optionally, a DBMS may be deployed in the computer device, and the computer device may persistently store the difference comparison details between the to-be-processed data set and the reference data set in the DBMS, so that the user subsequently performs retrospective analysis on a difference between the to-be-processed data set and the reference data set according to the difference comparison details, stored in the DBMS, between the to-be-processed data set and the reference data set.
[0082] Optionally, the difference comparison details between the to-be-processed data set and the reference data set may include at least one multi-dimensional data interval, an interval score of the to-be-processed data set in the multi-dimensional data interval, and an interval score of the reference data set in the multi-dimensional data interval. For example, the difference comparison details between the to-be-processed data set and the reference data set may be shown in Table 2 below: Table 2
[0083] In a specific example, the difference comparison details between the to-be-processed data set and the reference data set are shown in Table 3 below: Table 3
[0084] In Tables 2 and 3, interval score D1 represents the interval score of the dataset D1 to be processed in the multidimensional data interval, and interval score D2 represents the interval score of the reference dataset D2 in the multidimensional data interval. Each multidimensional data interval in Table 3 is formed by concatenating at least two single-dimensional data intervals. For example, the multidimensional data interval (1.343, 102.598]_(-181.696, 1762.482]_... is formed by concatenating multiple single-dimensional data intervals including the single-dimensional data interval (1.343, 102.598] and the single-dimensional data interval (-181.696, 1762.482]. Other multidimensional data intervals are similar, and will not be described in detail in the embodiments of this application.
[0085] The specific implementation of step 402 is described below. In this embodiment, the interval fractions of the dataset to be processed and the interval fractions of the reference dataset in the multidimensional data interval can be determined iteratively. This allows for a more refined determination of the multidimensional data interval and its interval fractions, which helps improve the accuracy of the algorithm and the resolution of the data interval. The resolution of the data interval refers to the number of data intervals per unit size. For example, for a one-dimensional data interval, the resolution is the number of data intervals per unit length; for a two-dimensional data interval, the resolution is the number of data intervals per unit area; and for a three-dimensional data interval, the resolution is the number of data intervals per unit volume. This embodiment does not limit the specific resolution.
[0086] Optionally, step 402 may include: determining the interval scores of the dataset to be processed in the m multidimensional data intervals and the interval scores of the reference dataset in the m multidimensional data intervals through iteration.
[0087] For example, please refer to Figure 6 It illustrates a flowchart, according to an embodiment of this application, for determining the interval scores of a dataset to be processed in m multidimensional data intervals and the interval scores of a reference dataset in the same m multidimensional data intervals. Figure 6 The diagram shown may be a flowchart for determining interval fractions using an iterative method. See also... Figure 6 The method may include the following steps: Sub-step 4021: Perform at least one processing procedure for the overlapping regions corresponding to the n dimensions until the cutoff condition is met. The overlapping regions corresponding to the n dimensions are the overlapping regions of the dataset to be processed and the reference dataset determined from each of the n dimensions. The overlapping regions corresponding to each dimension include the same data in the dataset to be processed and the reference dataset in that dimension.
[0088] Optionally, the computer device can first determine the overlapping regions of the dataset to be processed and the reference dataset from each of the n dimensions, and then define the overlapping regions of the dataset to be processed and the reference dataset from each dimension as the overlapping regions corresponding to that dimension. Thus, the computer device can obtain the overlapping regions corresponding to the n dimensions. Then, the computer device performs at least one processing procedure for the overlapping regions corresponding to the n dimensions until a cutoff condition is reached. The number of multidimensional data intervals determined in each processing procedure is different, and the number of determined multidimensional data intervals increases with the number of processing procedures. The cutoff condition can be the convergence of the number of multidimensional data intervals, for example, when the number of multidimensional data intervals reaches a preset number. This preset number can be set according to the situation, and this embodiment does not limit it.
[0089] Optionally, in this embodiment, the m multidimensional data intervals may include m1 multidimensional overlapping intervals, which are the overlapping intervals of the dataset to be processed and the reference dataset, where m1 is an integer greater than or equal to 1 and less than or equal to m. Optionally, the m multidimensional data intervals may also include m2 multidimensional non-overlapping intervals, which are the non-overlapping intervals of the dataset to be processed and the reference dataset, where m2 is an integer greater than or equal to 0, and m1 + m2 = m. For example, please refer to... Figure 7 This illustrates a flowchart of a processing procedure provided in an embodiment of this application. See also... Figure 7 The process may include the following steps: Sub-step 40211: Determine at least one single-dimensional data interval for each of the n dimensions based on the overlapping regions corresponding to each dimension.
[0090] Optionally, each of the n dimensions corresponds to a data type, and the data types corresponding to the n dimensions include at least one of numeric and categorical types. The data types corresponding to the n dimensions of the data records in the dataset to be processed are the same as the data types corresponding to the n dimensions of the data records in the reference dataset. For example, the n dimensions of the data records in the dataset to be processed correspond one-to-one with the n dimensions of the data records in the reference dataset, and the data types corresponding to the one-to-one corresponding dimensions in the dataset to be processed and the reference dataset are the same. Sub-step 40211 may include: for the dimension corresponding to the numeric type, dividing the overlapping region corresponding to the dimension into intervals to obtain at least one single-dimensional data interval for the dimension; for the dimension corresponding to the categorical type, determining the data of the same categorical type in the overlapping region corresponding to the dimension as a single-dimensional data interval. Specifically, for the numerical dimension, the number of single-dimensional data intervals obtained by performing the processing procedure at least twice to divide the overlapping region corresponding to the dimension is different. Optionally, the number of single-dimensional data intervals obtained by performing the processing procedure at least twice to divide the overlapping region corresponding to the dimension increases linearly or exponentially, and each time the processing procedure is performed, the overlapping region corresponding to the dimension can be divided into intervals at equal intervals.
[0091] For example, for the dimension corresponding to a numerical type, assuming the range of data (e.g., a1) in dimension 1 of the dataset D1 to be processed is [0, 90], and the range of data (e.g., b1) in dimension 1 of the reference dataset D2 is [10, 100], then the overlapping region of the dataset D1 to be processed and the reference dataset D2 in dimension 1 is [10, 90]. The computer device divides the overlapping region [10, 90] into intervals to obtain at least one single-dimensional data interval of dimension 1. For example, when the processing procedure is executed for the first time, the computer device divides the overlapping region [10, 90] into two single-dimensional data intervals, namely [10, 50] and [50, 90]. In subsequent executions of the processing procedure, the computer device can linearly increase the number of single-dimensional data intervals divided from the overlapping region based on the previous processing procedure. For example, during the second execution of the process, the computer device divides the overlapping region [10, 90] into three single-dimensional data intervals: [10, 37], [37, 64], and [64, 90]. During the third execution, the computer device divides the overlapping region [10, 90] into four single-dimensional data intervals: [10, 30], [30, 50], [50, 70], and [70, 90], and so on. Alternatively, in each subsequent execution of the process, the computer device can exponentially increase the number of single-dimensional data intervals divided for the overlapping region based on the previous execution. For example, during the second execution of the process, the computer device divides the overlapping region [10, 90] into four (2 squared) one-dimensional data intervals: [10, 30], [30, 50], [50, 70], and [70, 90]; during the third execution of the process, the computer device divides the overlapping region [10, 90] into eight (2 cubed) one-dimensional data intervals: [10, 20], [20, 30], [30, 40], [40, 50], [50, 60], [60, 70], [70, 80], and [80, 90], and so on.
[0092] For example, for the dimension corresponding to the categorical type, suppose the data (e.g., a2) in dimension 2 of the dataset D1 to be processed includes: RMB, USD, KRW, GBP, and EUR, and the data (e.g., b2) in dimension 2 of the reference dataset D2 includes: RMB, USD, KRW, GBP, and EUR. Then the overlapping area of the dataset D1 to be processed and the reference dataset D2 in dimension 2 is: RMB, USD, KRW, GBP, and EUR. The computer device determines the data of the same categorical type in this overlapping area as a single-dimensional data interval. For example, the computer device can determine five single-dimensional data intervals: RMB, USD, KRW, GBP, and EUR.
[0093] It should be noted that during the processing, the number of one-dimensional data intervals obtained by dividing the overlapping intervals of the dimensions corresponding to numerical data increases with the number of processing cycles, while the number of one-dimensional data intervals determined by the overlapping intervals of the dimensions corresponding to categorical data remains the same. The computer device can discretize numerical data by dividing the overlapping intervals of the dimensions corresponding to numerical data.
[0094] Sub-step 40212: Determine at least one multidimensional overlapping interval based on the single-dimensional data intervals of the n dimensions.
[0095] Optionally, the computer device can concatenate each single-dimensional data interval of each of the n dimensions with each single-dimensional data interval of all other dimensions to obtain at least one multidimensional overlapping interval. For example, the computer device can select one single-dimensional data interval from each of the n dimensions to obtain n single-dimensional data intervals, and concatenate these n single-dimensional data intervals to form a multidimensional overlapping interval. Following this method, at least one multidimensional overlapping interval can be determined. Optionally, in some embodiments, the concatenation of multiple single-dimensional data intervals can be called a "constellation," which is understood to be the multidimensional data interval.
[0096] For example, assuming that both the dataset to be processed, D1, and the reference dataset, D2, are three-dimensional datasets (that is, the data records in the datasets are three-dimensional data records, and each data record includes data in three dimensions), the at least one single-dimensional data interval of dimension 1 is determined based on the overlapping region corresponding to dimension 1, including: single-dimensional data interval 11, single-dimensional data interval 12, and single-dimensional data interval 13. The at least one single-dimensional data interval of dimension 2 is determined based on the overlapping region corresponding to dimension 2, including: single-dimensional data interval 21 and single-dimensional data interval 22. The determination of at least one single-dimensional data interval for dimension 3 based on the overlapping region corresponding to dimension 3 includes: single-dimensional data interval 31. The determination of at least one multi-dimensional overlapping interval by the computer device based on the single-dimensional data intervals of the three dimensions includes: multi-dimensional overlapping interval 1, multi-dimensional overlapping interval 2, multi-dimensional overlapping interval 3, multi-dimensional overlapping interval 4, multi-dimensional overlapping interval 5, and multi-dimensional overlapping interval 6. These multi-dimensional overlapping intervals 1, 2, 3, 4, 5, and 6 can be shown in Table 4 below. Table 4
[0097] As shown in Table 4, the first row of data in Table 4 indicates that the multidimensional overlapping interval 1 is formed by sequentially splicing together the single-dimensional data interval 11, the single-dimensional data interval 21, and the single-dimensional data interval 31; the second row of data in Table 4 indicates that the multidimensional overlapping interval 2 is formed by sequentially splicing together the single-dimensional data interval 11, the single-dimensional data interval 22, and the single-dimensional data interval 31, and so on.
[0098] Sub-step 40213: For each of the at least one multidimensional overlapping intervals, determine the interval score of the dataset to be processed in the multidimensional overlapping interval based on the data records in the dataset to be processed that are located in the multidimensional overlapping interval, and determine the interval score of the reference dataset in the multidimensional overlapping interval based on the data records in the reference dataset that are located in the multidimensional overlapping interval.
[0099] Optionally, for the at least one multidimensional overlapping interval, the computer device counts the number of data records in the dataset to be processed that fall within the multidimensional overlapping interval, and the number of data records in the reference dataset that fall within the multidimensional overlapping interval. Based on the number of data records in the dataset to be processed that fall within the multidimensional overlapping interval, the computer device determines the interval score of the dataset to be processed in the multidimensional overlapping interval. Based on the number of data records in the reference dataset that fall within the multidimensional overlapping interval, the computer device determines the interval score of the dataset to be referenced in the multidimensional overlapping interval. Optionally, when the processing procedure is executed for the first time, the computer device determines the number of data records in the dataset to be processed that fall within the multidimensional overlapping interval as the interval score of the dataset to be processed in the multidimensional overlapping interval, and determines the number of data records in the reference dataset that fall within the multidimensional overlapping interval as the interval score of the reference dataset in the multidimensional overlapping interval. In each subsequent execution of the processing procedure, the computer device determines the interval score of the dataset to be processed in the multidimensional overlapping interval during the current processing based on the number of data records in the dataset to be processed that fall within the multidimensional overlapping interval determined in the current processing procedure and the interval score determined in the previous processing procedure. Similarly, the computer device determines the interval score of the reference dataset in the multidimensional overlapping interval during the current processing based on the number of data records in the reference dataset that fall within the multidimensional overlapping interval determined in the current processing procedure and the interval score determined in the previous processing procedure.
[0100] For example, the interval score of the dataset D1 to be processed determined by the first execution of this process on the multidimensional overlapping interval p (that is, the p-th multidimensional overlapping interval) is shown in the following formula (4), and the interval score of the reference dataset D2 on the multidimensional overlapping interval p is shown in the following formula (5): (4); (5); In formulas (4) and (5), p is an integer greater than or equal to 1 and less than or equal to p1, where p1 represents the total number of multidimensional overlapping intervals determined by the first execution of the processing procedure; This represents the interval score of the dataset D1 to be processed, as determined by the first execution of the processing procedure, on the multidimensional overlapping interval p. This indicates the number of data records in the dataset D1 to be processed that are located in the multidimensional overlapping interval p, as determined during the first execution of the processing procedure; This represents the interval score of the reference dataset D2 determined during the first execution of the processing procedure on the multidimensional overlapping interval p. This indicates the number of data records in the reference dataset D2 that are in the multidimensional overlapping interval p, as determined during the first execution of the processing procedure.
[0101] For example, the interval score of the dataset D1 to be processed determined by the j-th execution of the processing procedure on the multidimensional overlapping interval q (that is, the q-th multidimensional overlapping interval) is shown in the following formula (6), and the interval score of the reference dataset D2 on the multidimensional overlapping interval q is shown in the following formula (7): (6); (7); In formulas (6) and (7), j represents the number of times the process is executed, and j is an integer greater than 1; q is greater than or equal to 1 and less than or equal to q. j integers, q j This represents the total number of multidimensional overlapping intervals determined by the j-th execution of the processing procedure; This represents the interval score of the dataset D1 to be processed, as determined by the j-th execution of the processing procedure, on the multidimensional overlapping interval q. This represents the number of data records in the dataset D1 to be processed that fall within the multidimensional overlapping interval q, as determined by the j-th execution of the processing procedure. This represents the interval score of the reference dataset D2 determined in the j-th execution of the processing procedure on the multidimensional overlapping interval q. This represents the number of data records in the reference dataset D2 determined during the j-th execution of the processing that fall within the multidimensional overlapping interval q. This represents the first target score determined in the (j-1)th execution of the processing procedure. This first target score is the interval score of the dataset D1 to be processed in the first target interval, as determined in the (j-1)th execution of the processing procedure. This represents the second target score determined in the (j-1)th execution of the processing procedure. The second target score is the interval score of the reference dataset D2 in the first target interval determined in the (j-1)th execution of the processing procedure, and the multidimensional overlapping interval q determined in the j-th execution of the processing procedure belongs to the first target interval; or the first target score is the average score of the interval score of the dataset D1 to be processed in the second target interval and the interval score of the dataset D1 to be processed in the third target interval determined in the (j-1)th execution of the processing procedure, and the second target score is the average score of the interval score of the reference dataset D2 in the second target interval and the interval score of the reference dataset D2 in the third target interval determined in the (j-1)th execution of the processing procedure, and a part of the multidimensional overlapping interval q determined in the j-th execution of the processing procedure belongs to the second target interval and another part belongs to the third target interval.
[0102] Sub-step 40214: Based on the interval score of the dataset to be processed in the first multidimensional overlapping interval, determine the interval score of the dataset to be processed in the first multidimensional non-overlapping interval. The first multidimensional non-overlapping interval is the data interval in the dataset to be processed that does not overlap with the reference dataset. The first multidimensional overlapping interval is the multidimensional overlapping interval that is adjacent to the first multidimensional non-overlapping interval among the at least one multidimensional overlapping interval.
[0103] Optionally, during each processing step, the computer device can determine the interval score of the dataset to be processed in the first multidimensional mixed interval, and determine the interval score of the dataset to be processed in the first multidimensional non-overlapping interval based on the interval score of the dataset to be processed in the first multidimensional mixed interval and the interval score of the dataset to be processed in the first multidimensional overlapping interval. The first multidimensional mixed interval is composed of the first multidimensional overlapping interval and the first multidimensional non-overlapping interval, and the first multidimensional overlapping interval is adjacent to the first multidimensional non-overlapping interval. Optionally, the computer device determines the interval score of the dataset to be processed in the first multidimensional mixed interval based on the data records in the dataset to be processed that are located in the first multidimensional mixed interval, and determines the difference between the interval score of the dataset to be processed in the first multidimensional mixed interval and the interval score of the dataset to be processed in the first multidimensional overlapping interval as the interval score of the dataset to be processed in the first multidimensional non-overlapping interval. The process by which the computer device determines the interval score of the dataset to be processed in the first multidimensional mixed interval based on the data records in the dataset to be processed that are located in the first multidimensional mixed interval can be referred to in sub-step 40213 above, which describes the process by which the computer device determines the interval score of the dataset to be processed in the multidimensional overlapping interval based on the data records in the dataset to be processed that are located in the multidimensional overlapping interval. This embodiment of the application will not be described in detail here.
[0104] For example, please refer to Figure 8It illustrates a schematic diagram of determining interval fractions on non-overlapping intervals according to an embodiment of this application. Figure 8 Taking a dataset where both the dataset to be processed, D1, and the reference dataset, D2, are one-dimensional datasets as an example, the non-overlapping interval D11 in the dataset to be processed and the reference dataset, D2, is a one-dimensional non-overlapping interval [0, 10]. When the computer device performs the processing, it can determine the interval fraction S of the dataset to be processed, D1, on the one-dimensional mixed interval D1x. D1x And the interval score S of the dataset D1 to be processed on the one-dimensional overlapping interval D12. D12 The interval score S of the dataset D1 to be processed on the one-dimensional mixed interval D1x. D1x The interval fraction S of the dataset D1 to be processed on the one-dimensional overlapping interval D12. D12 The difference is determined as the interval fraction of the dataset D1 to be processed on the one-dimensional non-overlapping interval D11, that is, the interval fraction S of the dataset D1 to be processed on the one-dimensional non-overlapping interval D11. D11 =S D1x -S D12 .
[0105] For another example, please refer to Figure 9 It illustrates another schematic diagram provided by an embodiment of this application for determining interval fractions on non-overlapping intervals. Figure 9 Taking a two-dimensional dataset D1 and a reference dataset D2 as an example, the non-overlapping interval D11 in the dataset D1 and the reference dataset D2 is a multidimensional non-overlapping interval. During processing, the computer device can determine the interval fraction S of the dataset D1 on the multidimensional mixed interval D1x. D1x And the interval score S of the dataset D1 to be processed on the multidimensional overlapping interval D12. D12 The interval score S of the dataset D1 to be processed on the multidimensional mixed interval D1x. D1x The interval score S of the dataset D1 to be processed on the multidimensional overlapping interval D12. D12 The difference is determined as the interval fraction of the dataset D1 to be processed on the multidimensional non-overlapping interval D11, that is, the interval fraction S of the dataset D1 to be processed on the multidimensional non-overlapping interval D11. D11 =S D1x -S D12 For example, the multidimensional mixed interval D1x is the first multidimensional mixed interval, the multidimensional overlapping interval D12 is the first multidimensional overlapping interval, the multidimensional non-overlapping interval D11 is the first multidimensional non-overlapping interval, the multidimensional mixed interval D1x is composed of the multidimensional overlapping interval D12 and the multidimensional non-overlapping interval D11, and the multidimensional non-overlapping interval D11 is adjacent to the multidimensional overlapping interval D12.
[0106] Sub-step 40215: Based on the interval score of the reference dataset in the second multidimensional overlapping interval, determine the interval score of the reference dataset in the second multidimensional non-overlapping interval. The second multidimensional non-overlapping interval is the data interval in the reference dataset that does not overlap with the dataset to be processed. The second multidimensional overlapping interval is the multidimensional overlapping interval that is adjacent to the second multidimensional non-overlapping interval among the at least one multidimensional overlapping interval.
[0107] Optionally, during each processing step, the computer device can determine the interval score of the reference dataset in the second multidimensional mixed interval, and determine the interval score of the reference dataset in the second multidimensional non-overlapping interval based on the interval score of the reference dataset in the second multidimensional mixed interval and the interval score of the reference dataset in the second multidimensional overlapping interval. The second multidimensional mixed interval is composed of the second multidimensional overlapping interval and the second multidimensional non-overlapping interval, with the overlapping interval and the non-overlapping interval being adjacent. Optionally, the computer device determines the interval score of the reference dataset in the second multidimensional mixed interval based on the data records in the reference dataset that are located in the second multidimensional mixed interval, and determines the difference between the interval score of the reference dataset in the second multidimensional mixed interval and the interval score of the reference dataset in the second multidimensional overlapping interval as the interval score of the reference dataset in the second multidimensional non-overlapping interval. The process by which the computer device determines the interval score of the reference dataset in the second multidimensional mixed interval based on the data records in the reference dataset that are in the second multidimensional mixed interval can be referred to in sub-step 40213 above, which describes the process by which the computer device determines the interval score of the reference dataset in the multidimensional overlapping interval based on the data records in the reference dataset that are in the multidimensional overlapping interval. This embodiment of the application will not be described in detail here.
[0108] For example, please continue to refer to Figure 8 In the reference dataset D2, the non-overlapping interval D22 with the dataset D1 to be processed is a one-dimensional non-overlapping interval [90, 100]. When the computer device performs the processing, it can determine the interval fraction S of the reference dataset D2 on the one-dimensional mixed interval D2x. D2x And the interval score S of the reference dataset D2 on the one-dimensional overlapping interval D21. D21 The interval score S of the reference dataset D2 on the one-dimensional mixed interval D2x. D2x The interval fraction S of the reference dataset D2 on the one-dimensional overlapping interval D21 D21 The difference is determined as the interval fraction of the reference dataset D2 on the one-dimensional non-overlapping interval D22, that is, the interval fraction S of the reference dataset D2 on the one-dimensional non-overlapping interval D22. D22 =SD2x -S D21 .
[0109] For another example, please refer to [link / reference]. Figure 9 In the reference dataset D2, the non-overlapping interval D22 with the dataset D1 to be processed is a multidimensional non-overlapping interval. When the computer device performs the processing, it can determine the interval fraction S of the reference dataset D2 on the multidimensional mixed interval D2x. D2x And the interval score S of the reference dataset D2 on the multidimensional overlapping interval D21. D21 The interval score S of the reference dataset D2 on the multidimensional mixed interval D2x. D2x The interval score S of the reference dataset D2 on the multidimensional overlapping interval D21 D21 The difference is determined as the interval fraction of the reference dataset D2 on the multidimensional non-overlapping interval D22, that is, the interval fraction S of the reference dataset D2 on the multidimensional non-overlapping interval D22. D22 =S D2x -S D21 For example, the multidimensional mixed interval D2x is a second multidimensional mixed interval, the multidimensional overlapping interval D21 is a second multidimensional overlapping interval, the multidimensional non-overlapping interval D22 is a second multidimensional non-overlapping interval, the multidimensional mixed interval D2x is composed of the multidimensional overlapping interval D21 and the multidimensional non-overlapping interval D22, and the multidimensional non-overlapping interval D22 is adjacent to the multidimensional overlapping interval D21.
[0110] The data stability detection method provided in this application involves a computer device determining the interval score of the dataset to be processed in a first multidimensional non-overlapping interval based on the interval score of the dataset to be processed in a first multidimensional mixed interval and the interval score of the dataset to be processed in a first multidimensional overlapping interval. It also determines the interval score of a reference dataset in a second multidimensional non-overlapping interval based on the interval score of the reference dataset in a second multidimensional mixed interval and the interval score of the reference dataset in a second multidimensional overlapping interval. This method of determining the interval score in the non-overlapping interval can be called the nearest neighbor following method or the enclosing following method. In this data stability detection method, the computer device divides the overlapping region of the dataset to be processed and the reference dataset into intervals from a single dimension using an interval segmentation method. It then combines the single-dimensional data intervals obtained from different dimensions to determine multidimensional data intervals, and determines the interval scores of the dataset to be processed and the reference dataset in the multidimensional data intervals. Finally, it performs stability detection on the dataset to be processed based on the interval scores of the dataset to be processed and the reference dataset in the multidimensional data intervals.
[0111] Sub-step 4022: Determine the interval score of the dataset to be processed in at least one multidimensional data interval when the cutoff condition is met as the interval score of the dataset to be processed in m multidimensional data intervals.
[0112] Each time the computer device executes a processing procedure, it can detect whether the cutoff condition has been met. If the cutoff condition is met, the computer device will determine all the multidimensional data intervals determined when the cutoff condition is met (that is, the multidimensional data intervals determined by the processing procedure when the cutoff condition is met) as m multidimensional data intervals, and determine the interval score of the dataset to be processed in the m multidimensional data intervals. The m multidimensional data intervals may include m1 multidimensional overlapping intervals and m2 multidimensional non-overlapping intervals.
[0113] Sub-step 4023: Determine the interval score of the reference dataset in at least one multidimensional data interval when the cutoff condition is met as the interval score of the reference dataset in m multidimensional data intervals.
[0114] Each time the computer device executes a processing step, it can check whether a cutoff condition has been met. If the cutoff condition is met, the computer device determines all the multidimensional data intervals identified when the cutoff condition is met (i.e., the multidimensional data intervals identified by the processing step corresponding to the cutoff condition) as m multidimensional data intervals, and determines the interval score of the reference dataset in these m multidimensional data intervals. These m multidimensional data intervals may include m1 overlapping multidimensional intervals and m2 non-overlapping multidimensional intervals.
[0115] Optionally, before the aforementioned sub-step 4021, the method further includes: determining the overlapping regions corresponding to the n dimensions, and the non-overlapping regions of the dataset to be processed and the reference dataset.
[0116] For example, please refer to Figure 10 This illustrates a flowchart illustrating how to determine overlapping and non-overlapping regions between a dataset to be processed and a reference dataset, according to an embodiment of this application. See also... Figure 10 The method may include the following steps: Step S1: Determine the overlapping region between the dataset to be processed and the reference dataset from each of the n dimensions to obtain the overlapping region corresponding to the n dimensions.
[0117] The computer device can determine the overlapping region between the dataset to be processed and the reference dataset from each of the n dimensions, and thus determine the overlapping region corresponding to that dimension. The overlapping region corresponding to each dimension includes the same data in both the dataset to be processed and the reference dataset along that dimension.
[0118] Optionally, each of the n dimensions corresponds to a data type, and the data types corresponding to the n dimensions include at least one of numeric and categorical types. For example, for the dimension corresponding to a numeric type, assuming that the range of data (e.g., a1) on dimension 1 of the dataset to be processed D1 is [0, 90], and the range of data (e.g., b1) on dimension 1 of the reference dataset D2 is [10, 100], then the overlapping area of the dataset to be processed D1 and the reference dataset D2 on dimension 1 is [10, 90], and the overlapping area corresponding to dimension 1 is [10, 90]. For the dimension corresponding to the categorical type, assuming that the data in dimension 2 of the dataset to be processed, D1 (e.g., a2), includes: RMB, USD, KRW, GBP, and EUR, and the data in dimension 2 of the reference dataset, D2 (e.g., b2), includes: RMB, USD, KRW, GBP, and EUR, then the overlapping area of the dataset to be processed, D1, and the reference dataset, D2, in dimension 2 is: RMB, USD, KRW, GBP, and EUR.
[0119] Step S2: Determine the non-overlapping regions of the dataset to be processed and the reference dataset based on the overlapping regions of the dataset to be processed and the reference dataset in n dimensions.
[0120] A computer device can define regions in a dataset to be processed that do not overlap with a reference dataset as non-overlapping regions between the dataset to be processed and the reference dataset, and vice versa. For example, assuming the range of the dataset to be processed D1 is [0, 90] and the range of the reference dataset D2 is [10, 100], then the non-overlapping regions between the dataset to be processed D1 and the reference dataset D2 are [0, 10], and the non-overlapping regions between the reference dataset D2 and the dataset to be processed D1 are [90, 100].
[0121] Step S3: Determine the multidimensional non-overlapping intervals based on the non-overlapping regions of the dataset to be processed and the reference dataset.
[0122] A computer device can define non-overlapping regions between a dataset to be processed and a reference dataset as multidimensional non-overlapping intervals. For example, the non-overlapping regions [0, 10] between the dataset to be processed (D1) and the reference dataset (D2), and [90, 100] between the reference dataset (D2) and the dataset to be processed (D1) are both non-overlapping intervals. This example uses single-dimensional data to illustrate non-overlapping intervals; the same principle applies to multidimensional non-overlapping intervals. For example, Figure 10 The non-overlapping intervals D11 and D22 in the diagram are both multidimensional non-overlapping intervals, which will not be elaborated further here.
[0123] In summary, the data stability detection method provided in this application embodiment includes at least one data record in both the dataset to be processed and the reference dataset. Each data record includes data in n dimensions. After obtaining the dataset to be processed and the reference dataset, the interval scores of the dataset to be processed and the reference dataset in the same m multidimensional data intervals are first determined. Then, stability detection is performed on the dataset to be processed based on these interval scores. The m multidimensional data intervals are determined based on the single-dimensional data intervals of the n dimensions. The single-dimensional data interval of each of the n dimensions is obtained by dividing the data of that dimension into intervals. Since the interval scores of the dataset to be processed and the reference dataset in the same m multidimensional data intervals can be determined, the dataset to be processed can be a multidimensional dataset. Therefore, this data stability detection scheme can detect the stability of multidimensional datasets, and it has high flexibility and wide application scenarios.
[0124] The data stability detection method provided in this application is applicable to detecting the stability of unidimensional and multidimensional datasets, which can be numerical, categorical, or mixed datasets. That is, the data stability detection method provided in this application can be applied to detecting the stability of unidimensional numerical datasets, unidimensional categorical datasets, multidimensional numerical datasets, multidimensional categorical datasets, and mixed datasets. This data stability detection method can be applied to most supervised learning algorithm models, as part of the preprocessing of input data for the algorithm model or as part of the algorithm model's operation and maintenance, as well as for pre-event data detection and alerting or post-event data analysis. For example, this data stability detection method is currently being used in AI models in the financial field.
[0125] The following are apparatus embodiments of this application, which can be used to execute the method embodiments of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the method embodiments of this application.
[0126] Please refer to Figure 11 This illustration shows a logical structure diagram of a data stability detection device 1100 provided in an embodiment of this application. The data stability detection device 1100 can be a computer device (e.g., a server or terminal) or a functional component within a computer device, used to execute the aforementioned data stability detection method. See also... Figure 11 The data stability detection device 1100 may include, but is not limited to: The acquisition module 1110 is used to acquire a dataset to be processed and a reference dataset. Each dataset includes at least one data record, and each data record includes data in n dimensions, where n is an integer greater than or equal to 1. The acquisition module 1110 can be used to perform the aforementioned step 401.
[0127] The first determining module 1120 is used to determine the interval scores of the dataset to be processed in m multidimensional data intervals and the interval scores of the reference dataset in the m multidimensional data intervals. The m multidimensional data intervals are determined based on the single-dimensional data intervals of the n dimensions. The single-dimensional data interval of each of the n dimensions is obtained by dividing the data of that dimension into intervals, where m is an integer greater than or equal to 1. The first determining module 1120 can be used to perform the aforementioned step 402.
[0128] The detection module 1130 is used to perform stability detection on the dataset to be processed based on the interval scores of the dataset to be processed in the m multidimensional data intervals and the interval scores of the reference dataset in the m multidimensional data intervals. The detection module 1130 can be used to perform the aforementioned step 403.
[0129] Optionally, the first determining module 1120 is used to determine the interval score of the dataset to be processed in the m multidimensional data intervals and the interval score of the reference dataset in the m multidimensional data intervals by means of iteration.
[0130] Optionally, the first determining module 1120 is used for: Perform at least one processing procedure for the overlapping regions corresponding to the n dimensions until the cutoff condition is met. The overlapping regions corresponding to the n dimensions are the overlapping regions of the dataset to be processed and the reference dataset determined by each of the n dimensions. The overlapping regions corresponding to each dimension include the same data in the dataset to be processed and the reference dataset in that dimension. The interval score of the dataset to be processed in at least one multidimensional data interval when the cutoff condition is met is determined as the interval score of the dataset to be processed in the m multidimensional data intervals. The interval score of the reference dataset in the at least one multidimensional data interval when the cutoff condition is met is determined as the interval score of the reference dataset in the m multidimensional data intervals.
[0131] Optionally, the m multidimensional data intervals include m1 multidimensional overlapping intervals, which are the overlapping intervals of the dataset to be processed and the reference dataset, where m1 is an integer greater than or equal to 1 and less than or equal to m; the processing procedure includes: Determine at least one single-dimensional data interval for each of the n dimensions based on the overlapping regions corresponding to each dimension. Determine at least one multidimensional overlapping interval based on the single-dimensional data intervals of the n dimensions; For each of the at least one multidimensional overlapping intervals, the interval score of the dataset to be processed in the multidimensional overlapping interval is determined based on the data records in the dataset to be processed that are located in the multidimensional overlapping interval, and the interval score of the reference dataset in the multidimensional overlapping interval is determined based on the data records in the reference dataset that are located in the multidimensional overlapping interval.
[0132] Optionally, the m multidimensional data intervals further include m² multidimensional non-overlapping intervals, where each non-overlapping interval is a non-overlapping interval between the dataset to be processed and the reference dataset, and m² is an integer greater than or equal to 0; the processing further includes: Based on the interval score of the dataset to be processed in the first multidimensional overlapping interval, the interval score of the dataset to be processed in the first multidimensional non-overlapping interval is determined. The first multidimensional non-overlapping interval is the data interval in the dataset to be processed that does not overlap with the reference dataset. The first multidimensional overlapping interval is the multidimensional overlapping interval that is adjacent to the first multidimensional non-overlapping interval in the at least one multidimensional overlapping interval. Based on the interval score of the reference dataset in the second multidimensional overlapping interval, the interval score of the reference dataset in the second multidimensional non-overlapping interval is determined. The second multidimensional non-overlapping interval is a data interval in the reference dataset that does not overlap with the dataset to be processed. The second multidimensional overlapping interval is a multidimensional overlapping interval that is adjacent to the second multidimensional non-overlapping interval among the at least one multidimensional overlapping interval.
[0133] Optionally, the process may further include: Based on the data records in the dataset to be processed that are in the first multidimensional mixed interval, the interval score of the dataset to be processed in the first multidimensional mixed interval is determined. The first multidimensional mixed interval is composed of the first multidimensional overlapping interval and the first multidimensional non-overlapping interval. Based on the data records in the reference dataset that are in the second multidimensional mixing interval, the interval score of the reference dataset in the second multidimensional mixing interval is determined. The second multidimensional mixing interval is composed of the second multidimensional overlapping interval and the second multidimensional non-overlapping interval. Determining the interval score of the dataset to be processed in the first multidimensional non-overlapping interval based on the interval score of the dataset to be processed in the first multidimensional overlapping interval includes: determining the interval score of the dataset to be processed in the first multidimensional non-overlapping interval based on the interval score of the dataset to be processed in the first multidimensional mixed interval and the interval score of the dataset to be processed in the first multidimensional overlapping interval. Determining the interval score of the reference dataset in the second multidimensional non-overlapping interval based on the interval score of the reference dataset in the second multidimensional overlapping interval includes: determining the interval score of the reference dataset in the second multidimensional non-overlapping interval based on the interval score of the reference dataset in the second multidimensional mixed interval and the interval score of the reference dataset in the second multidimensional overlapping interval.
[0134] Alternatively, please continue to refer to Figure 11 The data stability detection device 1100 also includes: The second determining module 1140 is used for: Before the first determining module 1120 determines the interval score of the dataset to be processed in the m multidimensional data intervals and the interval score of the reference dataset in the m multidimensional data intervals through an iterative method, the overlapping area of the dataset to be processed and the reference dataset is determined from each of the n dimensions to obtain the overlapping area corresponding to the n dimensions. Based on the overlapping regions of the dataset to be processed and the reference dataset in the n dimensions, determine the non-overlapping regions of the dataset to be processed and the reference dataset; The multidimensional non-overlapping interval is determined based on the non-overlapping regions of the dataset to be processed and the reference dataset.
[0135] Optionally, the cutoff condition includes: the number of the multidimensional data intervals reaches a preset number.
[0136] Optionally, each of the n dimensions corresponds to a data type, and the data types corresponding to the n dimensions include at least one of numeric and categorical types. The data types corresponding to the n dimensions of the data records in the dataset to be processed are the same as the data types corresponding to the n dimensions of the data records in the reference dataset. Based on the overlapping regions corresponding to each of the n dimensions, at least one single-dimensional data interval for that dimension is determined, including: For the dimension corresponding to the numerical type, the overlapping region corresponding to the dimension is divided into intervals to obtain at least one single-dimensional data interval for the dimension. The number of single-dimensional data intervals obtained by dividing the overlapping region corresponding to the dimension into intervals is different if the above processing is performed at least twice. For each dimension corresponding to a categorical type, the data of the same categorical type in the overlapping area corresponding to that dimension are defined as a single-dimensional data interval.
[0137] Optionally, for the dimension corresponding to the numerical type, the number of single-dimensional data intervals obtained by performing the processing procedure at least twice to divide the overlapping region corresponding to the dimension increases linearly or exponentially.
[0138] Optionally, the detection module 1130 is used for: Based on the interval scores of the dataset to be processed in the m multidimensional data intervals and the interval scores of the reference dataset in the m multidimensional data intervals, the stability index of the dataset to be processed relative to the reference dataset is determined. The stability of the dataset to be processed is tested based on the stability index of the dataset to be processed relative to the reference dataset.
[0139] Optionally, based on the interval scores of the dataset to be processed in the m multidimensional data intervals and the interval scores of the reference dataset in the m multidimensional data intervals, a stability index of the dataset to be processed relative to the reference dataset is determined, including: For each of the m multidimensional data intervals, the percentage of the score of the dataset to be processed in the multidimensional data interval is determined based on the interval score of the dataset to be processed in the multidimensional data interval and the interval score of the dataset to be processed in the m multidimensional data intervals. Also, the percentage of the score of the reference dataset in the multidimensional data interval is determined based on the interval score of the reference dataset in the multidimensional data interval and the interval score of the reference dataset in the m multidimensional data intervals. Based on the percentage of scores of the dataset to be processed in the m multidimensional data intervals and the percentage of scores of the reference dataset in the m multidimensional data intervals, the stability index of the dataset to be processed relative to the reference dataset is determined.
[0140] In summary, the data stability detection device provided in this application embodiment includes at least one data record in both the dataset to be processed and the reference dataset. Each data record includes data in n dimensions. After obtaining the dataset to be processed and the reference dataset, the interval scores of the dataset to be processed and the reference dataset in the same m multidimensional data intervals are first determined. Then, stability detection is performed on the dataset to be processed based on these interval scores. The m multidimensional data intervals are determined based on the single-dimensional data intervals of the n dimensions, where each single-dimensional data interval is obtained by dividing the data of that dimension into intervals. Since the interval scores of the dataset to be processed and the reference dataset in the same m multidimensional data intervals can be determined, the dataset to be processed can be a multidimensional dataset. Therefore, this data stability detection scheme can detect the stability of multidimensional datasets, offering high flexibility and a wide range of applications.
[0141] This application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements all or part of the steps of the data stability detection method provided in the above method embodiments.
[0142] This application provides a computer program product containing instructions that, when run on a computer, cause the computer to perform all or part of the steps of the data stability detection method provided in the above method embodiments.
[0143] This application provides a chip that includes programmable logic circuitry and / or program instructions, which, when running, are used to implement all or part of the steps of the data stability detection method provided in the above method embodiments.
[0144] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented entirely or partially as a computer program product, which includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of this application are generated entirely or partially. The computer can be a general-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium, or a semiconductor medium (e.g., solid-state drive), etc.
[0145] In this application, the terms "first" and "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. The term "at least one" means one or more, and "multiple" means two or more, unless otherwise expressly defined.
[0146] The method embodiments and device embodiments provided in this application can be referenced interchangeably, and this application does not limit them. The order of operations in the method embodiments provided in this application can be appropriately adjusted, and operations can be added or removed as needed. Any variations that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of this application, and therefore will not be elaborated further.
[0147] In the corresponding embodiments provided in this application, it should be understood that the disclosed devices, etc., can be implemented through other configurations. For example, the device embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical or other forms.
[0148] The units described as separate components may or may not be physically separate. The components described as units may or may not be physical units; they may be located in one place or distributed across multiple network devices (e.g., terminal devices). Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0149] The above description is merely an exemplary embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and such modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for detecting data stability, characterized in that, The method includes: Obtain a dataset to be processed and a reference dataset, wherein the dataset to be processed and the reference dataset each include at least one data record, and each data record includes data in n dimensions, where n is an integer greater than 1; The interval scores of the dataset to be processed and the interval scores of the reference dataset in the m multidimensional data intervals are determined. Each of the m multidimensional data intervals is obtained by combining the single-dimensional data intervals of different dimensions in the n dimensions. Each of the n dimensions corresponds to a data type, which includes numerical and categorical data. The single-dimensional data interval of the numerical dimension is obtained by dividing the overlapping area of the dataset to be processed and the reference dataset corresponding to the numerical dimension. The single-dimensional data interval of the categorical dimension is composed of the data in the overlapping area of the dataset to be processed and the reference dataset corresponding to the categorical dimension. m is an integer greater than or equal to 1. The stability of the dataset to be processed is tested based on the interval scores of the dataset to be processed in the m multidimensional data intervals and the interval scores of the reference dataset in the m multidimensional data intervals.
2. The method according to claim 1, characterized in that, Determining the interval scores of the dataset to be processed and the reference dataset in the m multidimensional data intervals includes: The interval scores of the dataset to be processed and the interval scores of the reference dataset in the m multidimensional data intervals are determined by iterative methods.
3. The method according to claim 2, characterized in that, The step of determining the interval scores of the dataset to be processed and the reference dataset in the m multidimensional data intervals through iteration includes: At least one processing procedure is performed for the overlapping regions corresponding to the n dimensions until the cutoff condition is met. The overlapping regions corresponding to the n dimensions include the overlapping regions of the dataset to be processed and the reference dataset determined from each of the n dimensions. The overlapping regions corresponding to the first dimension include the data that the dataset to be processed and the reference dataset have the same data in the first dimension. The first dimension is any one of the n dimensions. The interval score of the dataset to be processed in at least one multidimensional data interval, as determined when the cutoff condition is met, is defined as the interval score of the dataset to be processed in the m multidimensional data intervals. The interval score of the reference dataset in the at least one multidimensional data interval, determined when the cutoff condition is met, is defined as the interval score of the reference dataset in the m multidimensional data intervals.
4. The method according to claim 3, characterized in that, The m multidimensional data intervals include m1 multidimensional overlapping intervals, which are the overlapping intervals of the dataset to be processed and the reference dataset, and m1 is an integer greater than or equal to 1 and less than or equal to m. The processing procedure includes: At least one single-dimensional data interval of the first dimension is determined based on the overlapping region corresponding to the first dimension. Determine at least one multidimensional overlapping interval based on the single-dimensional data intervals of the n dimensions; For each of the at least one multidimensional overlapping intervals, the interval score of the dataset to be processed in each multidimensional overlapping interval is determined based on the data records in the dataset to be processed that are located in each multidimensional overlapping interval, and the interval score of the reference dataset in each multidimensional overlapping interval is determined based on the data records in the reference dataset that are located in each multidimensional overlapping interval.
5. The method according to claim 4, characterized in that, The m multidimensional data intervals also include m2 multidimensional non-overlapping intervals, where the multidimensional non-overlapping intervals are the non-overlapping intervals between the dataset to be processed and the reference dataset, and m2 is an integer greater than or equal to 0; The processing procedure also includes: Based on the interval score of the dataset to be processed in the first multidimensional overlapping interval, the interval score of the dataset to be processed in the first multidimensional non-overlapping interval is determined. The first multidimensional non-overlapping interval is the data interval in the dataset to be processed that does not overlap with the reference dataset. The first multidimensional overlapping interval is the multidimensional overlapping interval that is adjacent to the first multidimensional non-overlapping interval among the at least one multidimensional overlapping interval. Based on the interval score of the reference dataset in the second multidimensional overlapping interval, the interval score of the reference dataset in the second multidimensional non-overlapping interval is determined. The second multidimensional non-overlapping interval is a data interval in the reference dataset that does not overlap with the dataset to be processed. The second multidimensional overlapping interval is a multidimensional overlapping interval that is adjacent to the second multidimensional non-overlapping interval among the at least one multidimensional overlapping interval.
6. The method according to claim 5, characterized in that, The processing procedure also includes: The interval score of the dataset to be processed in the first multidimensional mixed interval is determined based on the data records in the dataset to be processed that are in the first multidimensional mixed interval. The first multidimensional mixed interval is composed of the first multidimensional overlapping interval and the first multidimensional non-overlapping interval. The interval score of the reference dataset in the second multidimensional mixing interval is determined based on the data records in the reference dataset that are in the second multidimensional mixing interval. The second multidimensional mixing interval is composed of the second multidimensional overlapping interval and the second multidimensional non-overlapping interval. The step of determining the interval score of the dataset to be processed in the first multidimensional non-overlapping interval based on the interval score of the dataset to be processed in the first multidimensional overlapping interval includes: determining the interval score of the dataset to be processed in the first multidimensional non-overlapping interval based on the interval score of the dataset to be processed in the first multidimensional mixed interval and the interval score of the dataset to be processed in the first multidimensional overlapping interval. Determining the interval score of the reference dataset in the second multidimensional non-overlapping interval based on the interval score of the reference dataset in the second multidimensional overlapping interval includes: determining the interval score of the reference dataset in the second multidimensional non-overlapping interval based on the interval score of the reference dataset in the second multidimensional mixed interval and the interval score of the reference dataset in the second multidimensional overlapping interval.
7. The method according to claim 5 or 6, characterized in that, Before determining the interval scores of the dataset to be processed and the reference dataset in the m multidimensional data intervals through iterative methods, the method further includes: The overlapping region between the dataset to be processed and the reference dataset is determined from each of the n dimensions to obtain the overlapping region corresponding to the n dimensions; Based on the overlapping regions of the dataset to be processed and the reference dataset in the n dimensions, determine the non-overlapping regions of the dataset to be processed and the reference dataset; The multidimensional non-overlapping interval is determined based on the non-overlapping regions of the dataset to be processed and the reference dataset.
8. The method according to any one of claims 3 to 6, characterized in that, The cutoff condition includes: the number of the multidimensional data intervals reaches a preset number.
9. The method according to any one of claims 4 to 6, characterized in that, Determining at least one single-dimensional data interval of the first dimension based on the overlapping region corresponding to the first dimension includes: When the first dimension is a numerical dimension, the overlapping region corresponding to the first dimension is divided into intervals to obtain at least one single-dimensional data interval of the first dimension. The number of single-dimensional data intervals obtained by performing the processing at least twice to divide the overlapping region corresponding to the numerical dimension is different. When the first dimension is the categorical dimension, the data in the overlapping region corresponding to the first dimension is determined as a single-dimensional data interval of the first dimension.
10. The method according to claim 9, characterized in that, The number of single-dimensional data intervals obtained by dividing the overlapping regions corresponding to the numerical dimension into intervals by performing the processing procedure at least twice increases linearly or exponentially.
11. The method according to any one of claims 1 to 6, 10, characterized in that, The step of performing stability detection on the dataset to be processed based on the interval scores of the dataset to be processed in the m multidimensional data intervals and the interval scores of the reference dataset in the m multidimensional data intervals includes: Based on the interval scores of the dataset to be processed in the m multidimensional data intervals and the interval scores of the reference dataset in the m multidimensional data intervals, a stability index of the dataset to be processed relative to the reference dataset is determined. The stability of the dataset to be processed is tested based on the stability index of the dataset to be processed relative to the reference dataset.
12. The method according to claim 11, characterized in that, The step of determining the stability index of the dataset to be processed relative to the reference dataset based on the interval scores of the dataset to be processed in the m multidimensional data intervals and the interval scores of the reference dataset in the m multidimensional data intervals includes: For each of the m multidimensional data intervals, the percentage of the score of the dataset to be processed in the multidimensional data interval is determined based on the interval score of the dataset to be processed in the multidimensional data interval and the interval score of the dataset to be processed in the m multidimensional data intervals. Additionally, the percentage of the score of the reference dataset in the multidimensional data interval is determined based on the interval score of the reference dataset in the multidimensional data interval and the interval score of the reference dataset in the m multidimensional data intervals. Based on the percentage of the score of the dataset to be processed in the multidimensional data interval and the percentage of the score of the reference dataset in the multidimensional data interval, a stability index of the dataset to be processed relative to the reference dataset is determined.
13. A data stability detection device, characterized in that, The device includes: The acquisition module is used to acquire a dataset to be processed and a reference dataset. The dataset to be processed and the reference dataset each include at least one data record. Each data record includes data in n dimensions, where n is an integer greater than 1. The first determining module is used to determine the interval scores of the dataset to be processed in m multidimensional data intervals and the interval scores of the reference dataset in the m multidimensional data intervals. Each of the m multidimensional data intervals is obtained by combining the single-dimensional data intervals of different dimensions in the n dimensions. Each of the n dimensions corresponds to a data type, which includes numerical and categorical data. The single-dimensional data interval of the numerical dimension is obtained by dividing the overlapping area of the dataset to be processed and the reference dataset corresponding to the numerical dimension. The single-dimensional data interval of the categorical dimension is composed of the data in the overlapping area of the dataset to be processed and the reference dataset corresponding to the categorical dimension. The m is an integer greater than or equal to 1. The detection module is used to perform stability detection on the dataset to be processed based on the interval scores of the dataset to be processed in the m multidimensional data intervals and the interval scores of the reference dataset in the m multidimensional data intervals.
14. The apparatus according to claim 13, characterized in that, The first determining module is used to determine, through an iterative process, the interval scores of the dataset to be processed and the interval scores of the reference dataset in the m multidimensional data intervals.
15. The apparatus according to claim 14, characterized in that, The first determining module is used for: At least one processing procedure is performed for the overlapping regions corresponding to the n dimensions until the cutoff condition is met. The overlapping regions corresponding to the n dimensions include the overlapping regions of the dataset to be processed and the reference dataset determined from each of the n dimensions. The overlapping regions corresponding to the first dimension include the data that the dataset to be processed and the reference dataset have the same data in the first dimension. The first dimension is any one of the n dimensions. The interval score of the dataset to be processed in at least one multidimensional data interval, as determined when the cutoff condition is met, is defined as the interval score of the dataset to be processed in the m multidimensional data intervals. The interval score of the reference dataset in the at least one multidimensional data interval, determined when the cutoff condition is met, is defined as the interval score of the reference dataset in the m multidimensional data intervals.
16. The apparatus according to claim 15, characterized in that, The m multidimensional data intervals include m1 multidimensional overlapping intervals, which are the overlapping intervals of the dataset to be processed and the reference dataset, and m1 is an integer greater than or equal to 1 and less than or equal to m. The processing procedure includes: At least one single-dimensional data interval of the first dimension is determined based on the overlapping region corresponding to the first dimension. Determine at least one multidimensional overlapping interval based on the single-dimensional data intervals of the n dimensions; For each of the at least one multidimensional overlapping intervals, the interval score of the dataset to be processed in each multidimensional overlapping interval is determined based on the data records in the dataset to be processed that are located in each multidimensional overlapping interval, and the interval score of the reference dataset in each multidimensional overlapping interval is determined based on the data records in the reference dataset that are located in each multidimensional overlapping interval.
17. The apparatus according to claim 16, characterized in that, The m multidimensional data intervals also include m2 multidimensional non-overlapping intervals, where the multidimensional non-overlapping intervals are the non-overlapping intervals between the dataset to be processed and the reference dataset, and m2 is an integer greater than or equal to 0; The processing procedure also includes: Based on the interval score of the dataset to be processed in the first multidimensional overlapping interval, the interval score of the dataset to be processed in the first multidimensional non-overlapping interval is determined. The first multidimensional non-overlapping interval is the data interval in the dataset to be processed that does not overlap with the reference dataset. The first multidimensional overlapping interval is the multidimensional overlapping interval that is adjacent to the first multidimensional non-overlapping interval among the at least one multidimensional overlapping interval. Based on the interval score of the reference dataset in the second multidimensional overlapping interval, the interval score of the reference dataset in the second multidimensional non-overlapping interval is determined. The second multidimensional non-overlapping interval is a data interval in the reference dataset that does not overlap with the dataset to be processed. The second multidimensional overlapping interval is a multidimensional overlapping interval that is adjacent to the second multidimensional non-overlapping interval among the at least one multidimensional overlapping interval.
18. The apparatus according to claim 17, characterized in that, The processing procedure also includes: The interval score of the dataset to be processed in the first multidimensional mixed interval is determined based on the data records in the dataset to be processed that are in the first multidimensional mixed interval. The first multidimensional mixed interval is composed of the first multidimensional overlapping interval and the first multidimensional non-overlapping interval. The interval score of the reference dataset in the second multidimensional mixing interval is determined based on the data records in the reference dataset that are in the second multidimensional mixing interval. The second multidimensional mixing interval is composed of the second multidimensional overlapping interval and the second multidimensional non-overlapping interval. The step of determining the interval score of the dataset to be processed in the first multidimensional non-overlapping interval based on the interval score of the dataset to be processed in the first multidimensional overlapping interval includes: determining the interval score of the dataset to be processed in the first multidimensional non-overlapping interval based on the interval score of the dataset to be processed in the first multidimensional mixed interval and the interval score of the dataset to be processed in the first multidimensional overlapping interval. Determining the interval score of the reference dataset in the second multidimensional non-overlapping interval based on the interval score of the reference dataset in the second multidimensional overlapping interval includes: determining the interval score of the reference dataset in the second multidimensional non-overlapping interval based on the interval score of the reference dataset in the second multidimensional mixed interval and the interval score of the reference dataset in the second multidimensional overlapping interval.
19. The apparatus according to claim 17 or 18, characterized in that, The device further includes: The second determining module is used for: Before the first determining module determines the interval scores of the dataset to be processed and the reference dataset in the m multidimensional data intervals through iteration, the overlapping area of the dataset to be processed and the reference dataset is determined from each of the n dimensions to obtain the overlapping area corresponding to the n dimensions. Based on the overlapping regions of the dataset to be processed and the reference dataset in the n dimensions, determine the non-overlapping regions of the dataset to be processed and the reference dataset; The multidimensional non-overlapping interval is determined based on the non-overlapping regions of the dataset to be processed and the reference dataset.
20. The apparatus according to any one of claims 15 to 18, characterized in that, The cutoff condition includes: the number of the multidimensional data intervals reaches a preset number.
21. The apparatus according to any one of claims 16 to 18, characterized in that, Determining at least one single-dimensional data interval of the first dimension based on the overlapping region corresponding to the first dimension includes: When the first dimension is a numerical dimension, the overlapping region corresponding to the first dimension is divided into intervals to obtain at least one single-dimensional data interval of the first dimension. The number of single-dimensional data intervals obtained by performing the processing at least twice to divide the overlapping region corresponding to the numerical dimension is different. When the first dimension is the categorical dimension, the data in the overlapping region corresponding to the first dimension is determined as a single-dimensional data interval of the first dimension.
22. The apparatus according to claim 21, characterized in that, The number of single-dimensional data intervals obtained by dividing the overlapping regions corresponding to the numerical dimension into intervals by performing the processing procedure at least twice increases linearly or exponentially.
23. The apparatus according to any one of claims 13 to 18, 22, characterized in that, The detection module is used for: Based on the interval scores of the dataset to be processed in the m multidimensional data intervals and the interval scores of the reference dataset in the m multidimensional data intervals, a stability index of the dataset to be processed relative to the reference dataset is determined. The stability of the dataset to be processed is tested based on the stability index of the dataset to be processed relative to the reference dataset.
24. The apparatus according to claim 23, characterized in that, The step of determining the stability index of the dataset to be processed relative to the reference dataset based on the interval scores of the dataset to be processed in the m multidimensional data intervals and the interval scores of the reference dataset in the m multidimensional data intervals includes: For each of the m multidimensional data intervals, the percentage of the score of the dataset to be processed in the multidimensional data interval is determined based on the interval score of the dataset to be processed in the multidimensional data interval and the interval score of the dataset to be processed in the m multidimensional data intervals. Additionally, the percentage of the score of the reference dataset in the multidimensional data interval is determined based on the interval score of the reference dataset in the multidimensional data interval and the interval score of the reference dataset in the m multidimensional data intervals. Based on the percentage of the score of the dataset to be processed in the multidimensional data interval and the percentage of the score of the reference dataset in the multidimensional data interval, a stability index of the dataset to be processed relative to the reference dataset is determined.
25. A computer device, characterized in that, The computer device includes a memory and a processor; The memory is used to store computer programs; The processor is configured to execute the computer program stored in the memory to perform the method as described in any one of claims 1 to 12.
26. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 12.
Citation Information
Patent Citations
Method and system for obtaining multi-dimensional data stability
CN104731875A
Feature stability detection method and device, and computer readable medium
CN110852443A
