Data processing method, apparatus, and device
By using pre-trained coding models in data processing to compress feature data into a preset dimensional space and determine target data for filling processing, the problem of missing data is solved and the accuracy of data processing is improved.
Patent Information
- Application Number
- PCT/CN2023/141759
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-01
- Filing Date
- 2023-12-26
- Publication Date
- 2024-09-06
AI Technical Summary
The existing technology has a poor processing effect in processing complex data structures due to data timeliness due to data timeliness, and the processing effect is poor, affecting the accuracy of data processing.
A pre-trained coding model is used to compress the feature data into a preset dimensional space, determine the target data through the compression scores of historical and new data, and perform filling processing to improve the filling effect of missing data.
It improves the accuracy of data processing, avoids the problem of poor performance in default value filling processing, and enhances the filling effect of missing data.
Smart Images

Figure CN2023141759_06092024_PF_FP
Abstract
Description
Data processing method, device and equipment Technical Field
[0001] This document relates to the field of data processing technology, and in particular to a data processing method, device and equipment. Background Art
[0002] With the rapid development of computer technology, the types and number of application services provided by enterprises to users are increasing. As a result, the amount of user data is increasing, and the data structure is becoming more and more complex. Due to the timeliness of data and other reasons, there may be data missing in the data to be tested.
[0003] For the problem of missing data, it can be filled by filling in the default value. For example, for a feature item with missing data, the data of the feature item can be filled in by using the default value (such as -1, etc.).
[0004] However, since the number of feature items of the data to be detected is large and the data structure is relatively complex, filling the missing data items with default values will result in poor filling effect of the missing data, affecting the accuracy of subsequent data processing. Therefore, a solution is needed that can improve the filling effect of missing data and improve the accuracy of subsequent data processing.
[0005] Summary of the Invention
[0006] The purpose of the embodiments of this specification is to provide a data processing method, apparatus, and device to provide a solution that can improve the effect of filling missing data and improve the accuracy of subsequent data processing.
[0007] In order to realize the above technical solution, the embodiments of this specification are implemented as follows.
[0008] In a first aspect, an embodiment of the present specification provides a data processing method, comprising: in a case where it is detected that feature data is missing in newly added feature data in first data, obtaining second data corresponding to the first data; inputting historical feature data in the first data into a pre-trained encoding model to obtain a first compression score corresponding to the historical feature data in the first data, and inputting historical feature data in the second data into a pre-trained encoding model to obtain a second compression score corresponding to the historical feature data in the second data; the encoding model is a model constructed based on a preset encoding algorithm for compressing feature data into a preset dimensional space, and the preset dimension is smaller than the dimension of the feature data; based on the first compression score and the second compression score, determining the target data in the second data corresponding to the first data, and based on the newly added feature data in the target data, filling the newly added feature data in the first data to obtain the filled first data.
[0009] In a second aspect, an embodiment of the present specification provides a data processing device, comprising: a first acquisition module for acquiring second data corresponding to the first data when it is detected that feature data is missing in the newly added feature data in the first data; a score acquisition module for inputting the historical feature data in the first data into a pre-trained encoding model to obtain a first compression score corresponding to the historical feature data in the first data, and inputting the historical feature data in the second data into a pre-trained encoding model to obtain a second compression score corresponding to the historical feature data in the second data; the encoding model is a model constructed based on a preset encoding algorithm for compressing feature data into a preset dimensional space, and the preset dimension is smaller than the dimension of the feature data; a data filling module for determining the target data corresponding to the first data in the second data based on the first compression score and the second compression score, and filling the newly added feature data in the first data based on the newly added feature data in the target data to obtain the first data after filling.
[0010] In a third aspect, an embodiment of the present specification provides a data processing device, comprising: a processor; and a memory arranged to store computer-executable instructions, wherein the executable instructions, when executed, cause the processor to: upon detecting that feature data is missing in newly added feature data in the first data, obtain second data corresponding to the first data; input the historical feature data in the first data into a pre-trained encoding model to obtain a first compression score corresponding to the historical feature data in the first data, and input the historical feature data in the second data into a pre-trained encoding model to obtain a second compression score corresponding to the historical feature data in the second data; the encoding model is a model constructed based on a preset encoding algorithm for compressing feature data into a preset dimensional space, wherein the preset dimension is smaller than the dimension of the feature data; based on the first compression score and the second compression score, determine the target data in the second data corresponding to the first data, and based on the newly added feature data in the target data, perform padding processing on the newly added feature data in the first data to obtain the padded first data.
[0011] In a fourth aspect, an embodiment of the present specification provides a storage medium for storing computer-executable instructions, which implement the following process when executed: when it is detected that there is missing feature data in the newly added feature data in the first data, obtaining the second data corresponding to the first data; inputting the historical feature data in the first data into a pre-trained encoding model to obtain a first compression score corresponding to the historical feature data in the first data, and inputting the historical feature data in the second data into a pre-trained encoding model to obtain a second compression score corresponding to the historical feature data in the second data; the encoding model is a model constructed based on a preset encoding algorithm for compressing feature data into a preset dimensional space, and the preset dimension is smaller than the dimension of the feature data; based on the first compression score and the second compression score, determining the target data in the second data corresponding to the first data, and based on the newly added feature data in the target data, filling the newly added feature data in the first data to obtain the filled first data. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solutions in the embodiments of this specification or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0013] FIG1A is a flow chart of an embodiment of a data processing method of the present specification;
[0014] FIG1B is a schematic diagram of a processing process of a data processing method of this specification;
[0015] FIG2 is a schematic diagram of the processing process of another data processing method of this specification;
[0016] FIG3 is a schematic diagram of a coding model in this specification;
[0017] FIG4 is a schematic diagram of a compression value acquisition process in this specification;
[0018] FIG5 is a schematic diagram of a filling process in this specification;
[0019] FIG6 is a schematic diagram of the processing process of another data processing method of this specification;
[0020] FIG7 is a schematic structural diagram of a data processing device according to an embodiment of the present specification;
[0021] FIG8 is a schematic structural diagram of a data processing device in this specification. DETAILED DESCRIPTION
[0022] The embodiments of this specification provide a data processing method, apparatus, and device.
[0023] To help those skilled in the art better understand the technical solutions in this specification, the following will provide a clear and complete description of the technical solutions in the embodiments of this specification, in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. All other embodiments obtained by those skilled in the art based on the embodiments in this specification without creative work should fall within the scope of protection of this specification.
[0024] Example 1
[0025] As shown in FIG. 1A and FIG. 1B , an embodiment of the present specification provides a data processing method, wherein the execution subject of the method may be a server, wherein the server may be an independent server or a server cluster composed of multiple servers.
[0026] The method may specifically include the following steps S102 to S106.
[0027] In S102 , when it is detected that feature data newly added to the first data is missing, second data corresponding to the first data is acquired.
[0028] Among them, the first data can be data corresponding to a preset service and / or preset user obtained within a preset acquisition period. The preset data acquisition period can be the past week, the past half month, a preset time period of each day, etc. Specifically, the first data can be behavioral data generated by a user triggering the execution of a resource transfer service obtained from 10:00 to 14:00 every day, or the first data can also be multiple behavioral data input by a preset user during human-computer interaction obtained in the past day, or the first data can also be multiple behavioral data input by a preset user triggering the execution of a resource transfer service obtained in the past week. The first data can include one or more of text data, voice data, image data, and video data. The newly added feature data in the first data can be incremental data, that is, the first data can include data obtained in the past three days. Then, the newly added feature data in the first data can be data obtained in the past day, and the second data It can be data determined based on the business or user corresponding to the first data. For example, assuming that the first data can be the behavioral data generated by user A triggering the execution of the resource transfer business obtained from 10:00 to 14:00 every day, then the second data can be the behavioral data generated by user B triggering the execution of the resource transfer business obtained from 10:00 to 14:00 every day. Or, assuming that the first data can also be multiple behavioral data input by a preset user during the human-computer interaction process obtained in the past day, then the second data can be multiple behavioral data input by the preset user during the human-computer interaction process obtained in the past three days, etc. Or, assuming that the first data can be the behavioral data generated by the user corresponding to location A triggering the execution of the resource transfer business obtained from 10:00 to 14:00 every day, then the second data can be the behavioral data generated by the user corresponding to location B triggering the execution of the resource transfer business obtained from 10:00 to 14:00 every day, etc.
[0029] In practice, with the rapid development of computer technology, the types and quantities of application services provided by enterprises to users are also increasing. The amount of user data that comes with it is increasing, and the data structure is becoming more and more complex. Due to the timeliness of data and other reasons, there may be a problem of missing data in the data to be detected. For the problem of missing data, it can be filled in by filling in default values. For example, for feature items with missing data, the feature items can be filled in by default values (such as -1, etc.). However, since the number of feature items of the data to be detected is large and the data structure is relatively complex, filling in the missing data items by default values will result in poor filling effect on the missing data, affecting the accuracy of subsequent data processing. Therefore, a solution is needed that can improve the filling effect on missing data to improve the accuracy of subsequent data processing. To this end, the embodiments of this specification provide a technical solution that can solve the above problems. For details, please refer to the following content.
[0030] During implementation, different data detection periods may involve different prevention and control needs, associated time, associated space, and associated backgrounds, and the risks corresponding to the data will also manifest themselves in different ways. For example, during winter and summer vacations, the risk of students being defrauded will rise sharply. This requires that the data samples used to train the detection model cover a longer time period to ensure stable detection model performance. However, since new risk features are constantly generated, and the data obtained by the server has characteristics such as storage timeliness, feature data generated a long time ago may have data missing issues. In order to improve the training stability of the data detection model, it is necessary to fill in the missing feature data.
[0031] The server can perform data missing detection on the acquired data to be detected, and can determine the data to be detected with missing feature data as the first data. For example, as shown in Table 1 below, the data to be detected may include resource transfer data generated by user 1, user 2, and user 3 for the resource transfer service, wherein the data to be detected 1 may include data to be detected 1-1 and data to be detected 1-2, and the data to be detected 2 may include data to be detected 2-1 and data to be detected 2-2. Based on the data acquisition time, it can be determined that the data to be detected 1-1 and the data to be detected 2-1 are newly added feature data.
[0032] Table 1
[0033] It can be seen from Table 1 above that for the newly added data to be detected 1-1, the resource transfer quantity corresponding to the resource transfer service triggered by user 1 through device 1 at time 1 is missing characteristic data. Therefore, the server can determine the data to be detected 1 as the first data.
[0034] The server can obtain second data corresponding to the first data. For example, the server can determine the acquired data to be detected that does not have missing characteristic data as the second data. For example, in Table 1 above, the data to be detected 2-2 does not have missing characteristic data, so the data to be detected 2 can be determined as the second data. Alternatively, assuming that the first data is the resource transfer data generated by the triggered resource transfer service corresponding to location A and obtained by the server in the past three days, the server can determine the resource transfer data generated by the triggered resource transfer service corresponding to location B as the second data corresponding to the first data.
[0035] In addition, as can be seen from Table 1 above, for the newly added data to be detected 2-1, the device identifier corresponding to user 2 triggering the resource transfer service at time 2 is missing characteristic data. Therefore, the server can determine the data to be detected 2 as the first data. Since the newly added data to be detected 1-1 does not have the device identifier characteristic data missing, the server can determine the data to be detected 1 as the second data corresponding to the first data.
[0036] The method for determining the above-mentioned first data and the corresponding second data is an optional and feasible determination method. In actual application scenarios, there can also be multiple different determination methods. Different determination methods can be selected according to different actual application scenarios. The embodiments of this specification do not make specific limitations on this.
[0037] In S104, the historical feature data in the first data is input into a pre-trained encoding model to obtain a first compression score corresponding to the historical feature data in the first data, and the historical feature data in the second data is input into a pre-trained encoding model to obtain a second compression score corresponding to the historical feature data in the second data.
[0038] The encoding model may be a model constructed based on a preset encoding algorithm and used to compress feature data into a preset dimensional space, where the preset dimension is smaller than the dimension of the feature data.
[0039] In implementation, the first data may include historical feature data and newly added feature data, and the second data may also include historical feature data and newly added feature data. For example, as shown in Table 1 above, assuming that the first data may be the data to be detected 1, and the data to be detected 2 is the second data corresponding to the first data, then, based on the data acquisition time, it can be determined that the data to be detected 1-1 is the newly added feature data in the first data, the data to be detected 1-2 may be the historical feature data in the first data, the data to be detected 2-1 is the newly added feature data in the second data, and the data to be detected 2-2 may be the historical feature data in the second data.
[0040] The server can input the historical feature data in the first data into a pre-trained encoding model, and compress the historical feature data in the first data into a preset dimensional space through the encoding model to obtain a first compression score corresponding to the first data. Similarly, the server can also input the historical feature data in the second data into a pre-trained encoding model, and compress the historical feature data in the second data into a preset dimensional space through the encoding model to obtain a second compression score corresponding to the second data.
[0041] For example, taking the preset dimension as one, the server can input the data to be detected 1-2 and the data to be detected 2-2 into a pre-trained encoding model. The encoding model compresses these two feature data respectively to obtain a first compression score corresponding to the data to be detected 1 and a second compression score corresponding to the data to be detected 2. In this way, the multi-dimensional feature data can be mapped to a one-dimensional space, improving the efficiency of subsequent data processing.
[0042] Among them, the preset dimension can be determined based on the detection efficiency requirement and / or detection accuracy requirement of the first data. For example, assuming that the detection efficiency requirement of the first data is higher and the detection accuracy requirement is lower, then the server can determine the preset dimension as the preset first dimension, or, assuming that the detection efficiency requirement of the first data is lower and the detection accuracy requirement is higher, then the server can determine the preset second dimension, wherein the preset first dimension is smaller than the preset second dimension, and the preset second dimension is smaller than the dimension of the feature data input into the encoding model.
[0043] In S106, based on the first compression score and the second compression score, the target data corresponding to the first data in the second data is determined, and based on the newly added feature data in the target data, the newly added feature data in the first data is padded to obtain the padded first data.
[0044] In implementation, the server can determine the second data corresponding to the second compression score whose difference with the first compression score is less than a preset difference threshold as the target data corresponding to the first data, and then perform filling processing based on the missing feature data in the target data and the first data to obtain the filled first data.
[0045] For example, assuming that the data corresponding to feature 1 in the newly added feature data of the first data is missing, the server can fill in the feature 1 in the newly added feature data of the first data in the first data based on the data corresponding to feature 1 in the target data to obtain the first data after filling in. For example, the server can determine any item such as the difference, mean, mode, etc. of the data corresponding to feature 1 in the target data as the data corresponding to feature 1 in the newly added feature data of the first data.
[0046] The padded first data can be used for subsequent data detection processing. For example, based on the padded first data, the first data can be classified, risk detected, or retrieved for similar data.
[0047] The present disclosure provides a data processing method that, upon detecting that newly added feature data in first data is missing feature data, obtains second data corresponding to the first data, inputs historical feature data in the first data into a pre-trained encoding model to obtain a first compression score corresponding to the historical feature data in the first data, and inputs historical feature data in the second data into a pre-trained encoding model to obtain a second compression score corresponding to the historical feature data in the second data. The encoding model is a model constructed based on a preset encoding algorithm for compressing feature data into a preset dimensional space, the preset dimension being smaller than the dimension of the feature data. Based on the first compression score and the second compression score, target data corresponding to the first data in the second data is determined, and based on the newly added feature data in the target data, the newly added feature data in the first data is padded to obtain the padded first data. In this way, the feature data can be compressed into the preset dimensional space to obtain the compression score, and the target data used for padded processing of the first data is determined based on the compression score, thereby improving data processing efficiency. Padded processing of the first data based on the target data avoids the problem of poor padded effect that occurs when padded processing is performed using default values, etc., thereby improving the padded effect of missing data and improving the accuracy of subsequent data processing.
[0048] Example 2
[0049] As shown in Figure 2, an embodiment of this specification provides a data processing method, the execution subject of which can be a server, wherein the server can be an independent server or a server cluster composed of multiple servers. The method can specifically include the following steps S202 to S226.
[0050] In S202 , when it is detected that feature data is missing in the feature data newly added in the first data, a target feature of the feature data missing in the feature data newly added in the first data is obtained, and candidate data corresponding to the first data is obtained.
[0051] In implementation, the server can perform data missing detection on the data to be detected, determine the data to be detected with missing feature data as the first data, and determine the feature with missing feature data as the target feature. The candidate data can be data other than the first data in the data to be detected.
[0052] In S204 , candidate data in which feature data corresponding to the target feature is not missing among the candidate data is determined as the second data.
[0053] In implementation, assuming the candidate data includes undetected data 2 and undetected data 3, newly added feature data from undetected data 2 and undetected data 3 can be obtained. Among the newly added feature data from undetected data 2 and undetected data 3, those that do not contain missing feature data corresponding to the target feature are identified as the second data. In this way, the candidate data can be screened based on the target feature, ensuring that the second data is suitable for filling in the gaps in the first data, thereby improving data processing efficiency.
[0054] In S206 , first sample data is obtained.
[0055] In implementation, assuming that the first data is resource transfer data corresponding to a resource transfer service, the server may determine historical resource transfer data for nearly one month as the first sample data.
[0056] In S208, the first sample data is input into a coding module in a coding model to obtain a third compression score corresponding to the first sample data.
[0057] In S210, the third compression score is input into a decoding module in the coding model to obtain second sample data corresponding to the third compression score.
[0058] In implementation, taking the encoding model including an encoding (Encoder) module and a decoding (Decoder) module as an example, as shown in Figure 3, the first sample data can be input into the encoding module in the encoding model to obtain the third compression score corresponding to the first sample data, and then the third compression score can be input into the decoding module in the encoding model to obtain the second sample data corresponding to the third compression score.
[0059] In S212 , the coding model is iteratively trained based on the first sample data and the second sample data to obtain a trained coding model.
[0060] In implementation, the encoding model may be self-supervised trained using the first sample data and the second sample data to obtain a trained encoding model.
[0061] In practical applications, the processing method of the above S212 can be various. An optional implementation method is provided below. For details, please refer to the following steps 1 to 4.
[0062] Step 1: Based on the risk detection requirements corresponding to the first data, determine the risk loss function corresponding to the first data.
[0063] Among them, the risk loss function can be used to control the compression score output by the encoding model to meet risk detection requirements.
[0064] In implementation, due to different application scenarios, the risk detection requirements for data are different. For example, for resource transfer scenarios, the risk detection requirements for business execution time are low, and the risk detection requirements for business execution quantity are high. For page risk detection scenarios, the risk detection requirements for page refresh time are high, and the risk detection requirements for the number of pages to be detected are low. Therefore, the risk detection requirements corresponding to the first data can be obtained, and the risk loss function corresponding to the risk detection requirements can be determined. The risk loss function can be used to control the compression direction of the data by the encoding model so that the compression score output by the encoding model meets the risk detection requirements.
[0065] For example, assuming that the risk detection requirement corresponding to the first data is the risk detection requirement corresponding to the resource transfer scenario, then the compression direction of the coding model can be controlled through the corresponding risk loss function, such as controlling the coding model to increase the compression ratio of the business execution time and reduce the compression ratio of the business execution number. In this way, the proportion of business execution time in the compression score output by the coding model is greater than the proportion of the business execution number, so as to retain the feature data related to the risk detection requirement as much as possible, improve the retention rate of effective information, improve the accuracy of subsequent risk detection, and improve the robustness and stability of the coding model.
[0066] Step 2: Input the first sample data into the coding module in the coding model to obtain the risk score corresponding to the first sample data.
[0067] Step three: determine a first loss value based on the first sample data and the second sample data, and determine a second loss value based on the risk score and the risk loss function.
[0068] Step 4: Based on the first loss value and the second loss value, the encoding model is iteratively trained to obtain a trained encoding model.
[0069] In S214, the historical feature data in the first data is input into a coding module in a pre-trained coding model to obtain a first compression score corresponding to the historical feature data in the first data.
[0070] In S216, the historical feature data in the second data is input into a coding module in a pre-trained coding model to obtain a first compression score corresponding to the historical feature data in the second data.
[0071] In implementation, as shown in Figure 4, the historical feature data in the first data can be compressed through the encoding module in the trained encoding model to obtain a first compression score corresponding to the historical feature data in the first data, and the historical feature data in the second data can be compressed to obtain a second compression score corresponding to the historical feature data in the second data.
[0072] Among them, taking the subsequent detection model (such as the risk detection model, etc.) as an example of a detection model constructed by a neural algorithm, since the variables in the data to be detected are mostly discrete statistical values, and the data that can be received by the model constructed by the neural network algorithm is a continuous value between [-1,1] after normalization, and the output data is also a continuous value between [-1,1]. Therefore, when entering the neural network for network propagation, the data needs to be normalized. For example, assuming that the number of historical shopping times is 5, the data is normalized to 0.1 after min-max normalization, and the predicted value obtained by the decoding module is 0.12, but the value obtained after 0.12 is reversely restored may be 5.5. Such a numerical distribution is different from cognitive experience. Therefore, in order to obtain a filling process that is more consistent with cognitive experience and can better train the subsequent detection model, the first data can be filled with data obtained without the decoding module.
[0073] In S218 , the difference between the first compression score and each second compression score is obtained.
[0074] In S220 , based on the difference, target data corresponding to the first data in the second data corresponding to the second compression score is determined.
[0075] In implementation, the target data corresponding to the first data in the second data corresponding to the second compression score whose difference is less than the preset difference threshold can be sorted, or the second compression scores can be sorted based on the difference, and the target data corresponding to the first data in the second data corresponding to the first n second compression scores in the sorted second compression scores can be sorted, where n can be determined based on the detection requirements of the first data.
[0076] In S222 , the data generation time of the feature data corresponding to the target feature in the target data is acquired.
[0077] In S224, based on the data generation time, the fourth data used to fill the first data in the multiple target data is determined, and based on the newly added feature data in the fourth data, the newly added feature data in the first data is filled to obtain the filled first data.
[0078] In implementation, when there are multiple target data, the server can sort the target data based on the data generation time, and determine the first m target data in the sorted target data as the fourth data, where m can be determined based on the timeliness requirement of filling the characteristic data of the first data. In this way, the timeliness of the fourth data used to fill the first data can be guaranteed, and the accuracy of the filling process can be improved.
[0079] As shown in FIG5 , the feature data corresponding to the target feature in the newly added feature data of the fourth data may be copied to the first data to perform padding processing on the first data to obtain the padded first data.
[0080] In S226 , the padded first data is input into a pre-trained risk detection model to obtain a risk detection result of the first data.
[0081] Among them, the risk detection model can be a model built based on a preset deep learning algorithm.
[0082] In implementation, for example, the risk detection model may be a model constructed by a neural network algorithm for classifying data, that is, risk detection processing may be performed on the first data using the classification result output by the risk detection model.
[0083] In this way, since the first data has been padded with the target data, an accurate risk detection result can be obtained through the padded first data, thereby improving the accuracy of risk detection.
[0084] The present disclosure provides a data processing method that, upon detecting that newly added feature data in first data is missing feature data, obtains second data corresponding to the first data, inputs historical feature data in the first data into a pre-trained encoding model to obtain a first compression score corresponding to the historical feature data in the first data, and inputs historical feature data in the second data into a pre-trained encoding model to obtain a second compression score corresponding to the historical feature data in the second data. The encoding model is a model constructed based on a preset encoding algorithm for compressing feature data into a preset dimensional space, the preset dimension being smaller than the dimension of the feature data. Based on the first compression score and the second compression score, target data corresponding to the first data in the second data is determined, and based on the newly added feature data in the target data, the newly added feature data in the first data is padded to obtain the padded first data. In this way, the feature data can be compressed into the preset dimensional space to obtain the compression score, and the target data used for padded processing of the first data is determined based on the compression score, thereby improving data processing efficiency. Padded processing of the first data based on the target data avoids the problem of poor padded effect that occurs when padded processing is performed using default values, etc., thereby improving the padded effect of missing data and improving the accuracy of subsequent data processing.
[0085] Example 3
[0086] As shown in Figure 6, an embodiment of this specification provides a data processing method, the execution subject of which can be a server, wherein the server can be an independent server or a server cluster composed of multiple servers. The method can specifically include the following steps S102 to S226.
[0087] In S102 , when it is detected that feature data newly added to the first data is missing, second data corresponding to the first data is acquired.
[0088] In S206 , first sample data is obtained.
[0089] In S208, the first sample data is input into a coding module in a coding model to obtain a third compression score corresponding to the first sample data.
[0090] In S210, the third compression score is input into a decoding module in the coding model to obtain second sample data corresponding to the third compression score.
[0091] In S212 , the coding model is iteratively trained based on the first sample data and the second sample data to obtain a trained coding model.
[0092] In S214, the historical feature data in the first data is input into a coding module in a pre-trained coding model to obtain a first compression score corresponding to the historical feature data in the first data.
[0093] In S216, the historical feature data in the second data is input into a coding module in a pre-trained coding model to obtain a first compression score corresponding to the historical feature data in the second data.
[0094] In 302 , a target feature with missing feature data in the newly added feature data in the first data is obtained.
[0095] In 304 , second data in which feature data corresponding to the target feature is not missing among the plurality of second data is determined as third data.
[0096] During implementation, the second data may be screened based on the target features to improve the efficiency of subsequent data processing.
[0097] In 306 , a difference between the first compression score and the second compression score corresponding to each third data is obtained.
[0098] In 308 , based on the difference, target data corresponding to the first data in the third data corresponding to the second compression score is determined.
[0099] The specific processing process of the above S308 can refer to the relevant content of S204 in the above embodiment 2, and will not be repeated here.
[0100] In S222 , the data generation time of the feature data corresponding to the target feature in the target data is acquired.
[0101] In S224, based on the data generation time, the fourth data used to fill the first data in the multiple target data is determined, and based on the newly added feature data in the fourth data, the newly added feature data in the first data is filled to obtain the filled first data.
[0102] In S226 , the padded first data is input into a pre-trained risk detection model to obtain a risk detection result of the first data.
[0103] Among them, the risk detection model can be a model built based on a preset deep learning algorithm.
[0104] The present disclosure provides a data processing method that, upon detecting that newly added feature data in first data is missing feature data, obtains second data corresponding to the first data, inputs historical feature data in the first data into a pre-trained encoding model to obtain a first compression score corresponding to the historical feature data in the first data, and inputs historical feature data in the second data into a pre-trained encoding model to obtain a second compression score corresponding to the historical feature data in the second data. The encoding model is a model constructed based on a preset encoding algorithm for compressing feature data into a preset dimensional space, the preset dimension being smaller than the dimension of the feature data. Based on the first compression score and the second compression score, target data corresponding to the first data in the second data is determined, and based on the newly added feature data in the target data, the newly added feature data in the first data is padded to obtain the padded first data. In this way, the feature data can be compressed into the preset dimensional space to obtain the compression score, and the target data used for padded processing of the first data is determined based on the compression score, thereby improving data processing efficiency. Padded processing of the first data based on the target data avoids the problem of poor padded effect that occurs when padded processing is performed using default values, etc., thereby improving the padded effect of missing data and improving the accuracy of subsequent data processing.
[0105] Example 4
[0106] The above is the data processing method provided in the embodiment of this specification. Based on the same idea, the embodiment of this specification also provides a data processing device, as shown in FIG7 .
[0107] The data processing device includes: a first acquisition module 701, a score acquisition module 702 and a data filling module 703, wherein: the first acquisition module 701 is used to obtain the second data corresponding to the first data when it is detected that there is missing feature data in the newly added feature data in the first data; the score acquisition module 702 is used to input the historical feature data in the first data into a pre-trained encoding model to obtain a first compression score corresponding to the historical feature data in the first data, and input the historical feature data in the second data into a pre-trained encoding model to obtain a second compression score corresponding to the historical feature data in the second data; the encoding model is a model constructed based on a preset encoding algorithm for compressing feature data into a preset dimensional space, and the preset dimension is smaller than the dimension of the feature data; the data filling module 703 is used to determine the target data corresponding to the first data in the second data based on the first compression score and the second compression score, and based on the newly added feature data in the target data, fill the newly added feature data in the first data to obtain the filled first data.
[0108] In an embodiment of the present specification, the device further includes: a risk detection module, which is used to input the first data after the filling process into a pre-trained risk detection model to obtain a risk detection result of the first data, and the risk detection model is a model constructed based on a preset deep learning algorithm.
[0109] In an embodiment of the present specification, the device also includes: a second acquisition module for acquiring first sample data; a first input module for inputting the first sample data into the encoding module in the encoding model to obtain a third compression score corresponding to the first sample data; a second input module for inputting the third compression score into the decoding module in the encoding model to obtain a second sample number corresponding to the third compression score; a model training module for iteratively training the encoding model based on the first sample data and the second sample data to obtain a trained encoding model; the score acquisition module 702 is used to input the historical feature data in the first data into the encoding module in the pre-trained encoding model to obtain a first compression score corresponding to the historical feature data in the first data.
[0110] In an embodiment of the present specification, the model training module is used to: determine the risk loss function corresponding to the first data based on the risk detection requirement corresponding to the first data, and the risk loss function is used to control the compression score output by the coding model to meet the risk detection requirement; input the first sample data into the coding module in the coding model to obtain the risk score corresponding to the first sample data; determine a first loss value based on the first sample data and the second sample data, and determine a second loss value based on the risk score and the risk loss function; iteratively train the coding model based on the first loss value and the second loss value to obtain the trained coding model.
[0111] In an embodiment of the present specification, the first acquisition module 701 is used to: obtain a target feature in which feature data is missing from the newly added feature data in the first data, and obtain candidate data corresponding to the first data; and determine the candidate data in which feature data corresponding to the target feature is not missing from the candidate data as the second data.
[0112] In an embodiment of the present specification, the data filling module 703 is used to: obtain the difference between the first compression score and each of the second compression scores; and determine, based on the difference, target data corresponding to the first data in the second data corresponding to the second compression score.
[0113] In an embodiment of the present specification, the data filling module 703 is used to: obtain a target feature in which feature data is missing from the newly added feature data in the first data; determine the second data in which the feature data corresponding to the target feature is not missing from multiple second data as third data; obtain the difference between the first compression score and the second compression score corresponding to each of the third data; and determine the target data corresponding to the first data in the third data corresponding to the second compression score based on the difference.
[0114] In an embodiment of the present specification, there are multiple target data, and the data filling module 703 is used to: obtain the data generation time of the feature data corresponding to the target feature in the target data; based on the data generation time, determine the fourth data used to fill the first data in the multiple target data, and fill the newly added feature data in the first data based on the newly added feature data in the fourth data to obtain the first data after the filling process.
[0115] An embodiment of the present disclosure provides a data processing device that, upon detecting that newly added feature data in first data is missing feature data, obtains second data corresponding to the first data, inputs historical feature data in the first data into a pre-trained encoding model to obtain a first compression score corresponding to the historical feature data in the first data, and inputs historical feature data in the second data into a pre-trained encoding model to obtain a second compression score corresponding to the historical feature data in the second data. The encoding model is a model constructed based on a preset encoding algorithm and used to compress feature data into a preset dimensional space, the preset dimension being smaller than the dimension of the feature data. Based on the first compression score and the second compression score, target data corresponding to the first data in the second data is determined, and based on the newly added feature data in the target data, the newly added feature data in the first data is padded to obtain the padded first data. In this way, the feature data can be compressed into the preset dimensional space to obtain the compression score, and the target data used for padded processing of the first data is determined based on the compression score, thereby improving data processing efficiency. Padded processing of the first data based on the target data avoids the problem of poor padded effect that occurs when padded processing is performed using default values, etc., thereby improving the padded effect of missing data and improving the accuracy of subsequent data processing.
[0116] Example 5
[0117] Based on the same idea, the embodiment of this specification also provides a data processing device, as shown in FIG8 .
[0118] The data processing device may vary significantly due to different configurations or performance, and may include one or more processors 801 and memory 802. The memory 802 may store one or more applications or data. The memory 802 may be either short-term or persistent storage. The application stored in the memory 802 may include one or more modules (not shown), each of which may include a series of computer-executable instructions for the data processing device. Furthermore, the processor 801 may be configured to communicate with the memory 802 to execute the series of computer-executable instructions in the memory 802 on the data processing device. The data processing device may also include one or more power supplies 803, one or more wired or wireless network interfaces 804, one or more input / output interfaces 805, and one or more keyboards 806.
[0119] Specifically in this embodiment, the data processing device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions in the data processing device, and is configured to be executed by one or more processors to include the one or more programs for performing the following computer-executable instructions: when it is detected that there is missing feature data in the newly added feature data in the first data, obtaining second data corresponding to the first data; inputting the historical feature data in the first data into a pre-trained encoding model to obtain a first compression score corresponding to the historical feature data in the first data, and inputting the historical feature data in the second data into a pre-trained encoding model to obtain a second compression score corresponding to the historical feature data in the second data; the encoding model is a model constructed based on a preset encoding algorithm for compressing feature data into a preset dimensional space, and the preset dimension is smaller than the dimension of the feature data; based on the first compression score and the second compression score, determining the target data corresponding to the first data in the second data, and based on the newly added feature data in the target data, filling the newly added feature data in the first data to obtain the filled first data.
[0120] Optionally, the method further includes: inputting the padded first data into a pre-trained risk detection model to obtain a risk detection result of the first data, wherein the risk detection model is a model constructed based on a preset deep learning algorithm.
[0121] Optionally, before inputting the historical feature data in the first data into a pre-trained coding model to obtain a first compression score corresponding to the historical feature data in the first data, it also includes: obtaining first sample data; inputting the first sample data into the coding module in the coding model to obtain a third compression score corresponding to the first sample data; inputting the third compression score into the decoding module in the coding model to obtain second sample data corresponding to the third compression score; iteratively training the coding model based on the first sample data and the second sample data to obtain a trained coding model; inputting the historical feature data in the first data into the pre-trained coding model to obtain the first compression score corresponding to the historical feature data in the first data includes: inputting the historical feature data in the first data into the coding module in the pre-trained coding model to obtain the first compression score corresponding to the historical feature data in the first data.
[0122] Optionally, the coding model is iteratively trained based on the first sample data and the second sample data to obtain a trained coding model, including: determining a risk loss function corresponding to the first data based on a risk detection requirement corresponding to the first data, the risk loss function being used to control the compression score output by the coding model to meet the risk detection requirement; inputting the first sample data into the coding module in the coding model to obtain a risk score corresponding to the first sample data; determining a first loss value based on the first sample data and the second sample data, and determining a second loss value based on the risk score and the risk loss function; iteratively training the coding model based on the first loss value and the second loss value to obtain the trained coding model.
[0123] Optionally, obtaining the second data corresponding to the first data includes: obtaining a target feature in which feature data is missing from the newly added feature data in the first data, and obtaining candidate data corresponding to the first data; and determining the candidate data in which feature data corresponding to the target feature is not missing from the candidate data as the second data.
[0124] Optionally, determining the target data corresponding to the first data in the second data based on the first compression score and the second compression score includes: obtaining the difference between the first compression score and each of the second compression scores; and determining, based on the difference, the target data corresponding to the first data in the second data corresponding to the second compression score.
[0125] Optionally, determining the target data corresponding to the first data in the second data based on the first compression score and the second compression score includes: obtaining a target feature with missing feature data in the newly added feature data in the first data; determining the second data in which the feature data corresponding to the target feature in multiple second data is not missing as third data; obtaining the difference between the first compression score and the second compression score corresponding to each of the third data; and determining the target data corresponding to the first data in the third data corresponding to the second compression score based on the difference.
[0126] Optionally, there are multiple target data, and the method of filling in the newly added feature data in the first data based on the newly added feature data in the target data to obtain the first data after filling in the feature data includes: obtaining the data generation time of the feature data corresponding to the target feature in the target data; based on the data generation time, determining the fourth data used for filling in the first data from the multiple target data, and filling in the newly added feature data in the first data based on the newly added feature data in the fourth data to obtain the first data after filling in the feature data.
[0127] An embodiment of the present disclosure provides a data processing device that, upon detecting that newly added feature data in first data is missing feature data, obtains second data corresponding to the first data, inputs historical feature data in the first data into a pre-trained encoding model to obtain a first compression score corresponding to the historical feature data in the first data, and inputs historical feature data in the second data into a pre-trained encoding model to obtain a second compression score corresponding to the historical feature data in the second data. The encoding model is a model constructed based on a preset encoding algorithm and used to compress feature data into a preset dimensional space, the preset dimension being smaller than the dimension of the feature data. Based on the first compression score and the second compression score, target data corresponding to the first data in the second data is determined, and based on the newly added feature data in the target data, the newly added feature data in the first data is padded to obtain the padded first data. In this way, the feature data can be compressed into the preset dimensional space to obtain the compression score, and the target data used for padded processing of the first data is determined based on the compression score, thereby improving data processing efficiency. Padded processing of the first data based on the target data avoids the problem of poor padded effect that occurs when padded processing is performed using default values, etc., thereby improving the padded effect of missing data and improving the accuracy of subsequent data processing.
[0128] Example 6
[0129] The embodiments of this specification also provide a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the various processes of the above-mentioned data processing method embodiments are implemented and can achieve the same technical effects. To avoid repetition, the details are not described here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0130] An embodiment of the present specification provides a computer-readable storage medium that, upon detecting that newly added feature data in first data is missing feature data, obtains second data corresponding to the first data, inputs historical feature data in the first data into a pre-trained encoding model to obtain a first compression score corresponding to the historical feature data in the first data, and inputs historical feature data in the second data into a pre-trained encoding model to obtain a second compression score corresponding to the historical feature data in the second data. The encoding model is a model constructed based on a preset encoding algorithm for compressing feature data into a preset dimensional space, the preset dimension being smaller than the dimension of the feature data. Based on the first compression score and the second compression score, target data corresponding to the first data in the second data is determined, and based on the newly added feature data in the target data, the newly added feature data in the first data is padded to obtain the padded first data. In this way, the feature data can be compressed into the preset dimensional space to obtain the compression score, and the target data used for padded processing of the first data is determined based on the compression score, thereby improving data processing efficiency. Padded processing of the first data based on the target data avoids the problem of poor padded effect that occurs when padded processing is performed using default values, etc., thereby improving the padded effect of missing data and improving the accuracy of subsequent data processing.
[0131] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0132] In the 1990s, technological improvements could be clearly distinguished as either hardware improvements (for example, improvements to circuit structures such as diodes, transistors, and switches) or software improvements (improvements to process flows). However, with the advancement of technology, many process flow improvements today can now be considered direct improvements to hardware circuit structures. Designers almost always create the corresponding hardware circuit structure by programming the improved process flow into the hardware circuit. Therefore, it cannot be said that a process flow improvement cannot be implemented using hardware modules. For example, a programmable logic device (PLD), such as a field programmable gate array (FPGA), is an integrated circuit whose logical function is determined by user programming. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to hire a chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly done using "logic compiler" software. This is similar to the software compiler used when developing programs. Before compilation, the original code must also be written in a specific programming language, called a hardware description language (HDL). There is not just one HDL, but many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art will also understand that by simply programming the method flow in one of these hardware description languages and then programming it into an integrated circuit, a hardware circuit that implements the logic method flow can be easily obtained.
[0133] The controller can be implemented in any suitable manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that in addition to implementing the controller in a purely computer-readable program code format, the controller can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules that implement the method and structures within the hardware component.
[0134] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0135] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing one or more embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0136] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, one or more embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, one or more embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0137] The embodiments of this specification are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0138] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0139] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0140] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0141] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0142] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0143] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0144] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Thus, one or more embodiments of this specification may take the form of a fully hardware embodiment, a fully software embodiment, or an embodiment combining software and hardware. Furthermore, one or more embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0145] One or more embodiments of this specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform specific tasks or implement specific abstract data types. One or more embodiments of this specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0146] The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.
[0147] The foregoing is merely an example of the present invention and is not intended to limit the present invention. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be included within the scope of the claims of the present invention.
Claims
1. A data processing method, comprising: When it is detected that feature data newly added to the first data is missing, obtaining second data corresponding to the first data; Inputting the historical feature data in the first data into a pre-trained encoding model to obtain a first compression score corresponding to the historical feature data in the first data, and inputting the historical feature data in the second data into a pre-trained encoding model to obtain a second compression score corresponding to the historical feature data in the second data; The encoding model is a model constructed based on a preset encoding algorithm and used to compress feature data into a preset dimensional space, wherein the preset dimension is smaller than the dimension of the feature data; Based on the first compression score and the second compression score, target data in the second data corresponding to the first data is determined, and based on the newly added feature data in the target data, the newly added feature data in the first data is padded to obtain the padded first data.
2. The method according to claim 1, further comprising: The padded first data is input into a pre-trained risk detection model to obtain a risk detection result of the first data, wherein the risk detection model is a model constructed based on a preset deep learning algorithm.
3. The method according to claim 1, before inputting the historical feature data in the first data into a pre-trained encoding model to obtain a first compression score corresponding to the historical feature data in the first data, further comprises: Obtaining first sample data; Inputting the first sample data into a coding module in the coding model to obtain a third compression score corresponding to the first sample data; Inputting the third compression score into a decoding module in the coding model to obtain second sample data corresponding to the third compression score; Iteratively training the coding model based on the first sample data and the second sample data to obtain a trained coding model; The step of inputting the historical feature data in the first data into a pre-trained encoding model to obtain a first compression score corresponding to the historical feature data in the first data includes: The historical feature data in the first data is input into a coding module in a pre-trained coding model to obtain a first compression score corresponding to the historical feature data in the first data.
4. The method according to claim 3, wherein the iterative training of the coding model based on the first sample data and the second sample data to obtain the trained coding model comprises: Based on the risk detection requirement corresponding to the first data, determining a risk loss function corresponding to the first data, the risk loss function being used to control the compression score output by the coding model to meet the risk detection requirement; Inputting the first sample data into a coding module in the coding model to obtain a risk score corresponding to the first sample data; Determine a first loss value based on the first sample data and the second sample data, and determine a second loss value based on the risk score and the risk loss function; Based on the first loss value and the second loss value, the encoding model is iteratively trained to obtain the trained encoding model.
5. The method according to claim 1, wherein obtaining the second data corresponding to the first data comprises: Obtain target features of feature data missing from the feature data newly added in the first data, and obtain the candidate data corresponding to the first data; The candidate data in which the feature data corresponding to the target feature is not missing among the candidate data is determined as the second data.
6. The method according to claim 5, wherein determining the target data corresponding to the first data in the second data based on the first compression score and the second compression score comprises: Obtaining a difference between the first compression score and each of the second compression scores; Based on the difference, target data corresponding to the first data in the second data corresponding to the second compression score is determined.
7. The method according to claim 1, wherein determining the target data corresponding to the first data in the second data based on the first compression score and the second compression score comprises: Acquire a target feature whose feature data is missing from the feature data newly added in the first data; Determine second data in which feature data corresponding to the target feature is not missing among the plurality of second data as third data; Obtaining a difference between the first compression score and a second compression score corresponding to each of the third data; Based on the difference, target data corresponding to the first data in the third data corresponding to the second compression score is determined.
8. The method according to any one of claims 6 or 7, wherein there are multiple target data, and the step of performing padding processing on the newly added feature data in the first data based on the newly added feature data in the target data to obtain the first data after padding processing comprises: Acquire data generation time of feature data corresponding to the target feature in the target data; Based on the data generation time, fourth data used to fill in the first data is determined from the multiple target data, and based on the newly added feature data in the fourth data, the newly added feature data in the first data is filled in to obtain the first data after the filling process.
9. A data processing device, comprising: A first acquisition module, configured to acquire second data corresponding to the first data when it is detected that feature data newly added to the first data is missing; a score acquisition module, configured to input the historical feature data in the first data into a pre-trained encoding model to obtain a first compressed score corresponding to the historical feature data in the first data, and input the historical feature data in the second data into the pre-trained encoding model to obtain a second compressed score corresponding to the historical feature data in the second data; The encoding model is a model constructed based on a preset encoding algorithm and used to compress feature data into a preset dimensional space, wherein the preset dimension is smaller than the dimension of the feature data; A data filling module is used to determine the target data corresponding to the first data in the second data based on the first compression score and the second compression score, and to fill the newly added feature data in the first data based on the newly added feature data in the target data to obtain the first data after filling.
10. A data processing device, comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: When it is detected that feature data newly added to the first data is missing, obtaining second data corresponding to the first data; Input the historical feature data in the first data into a pre-trained encoding model to obtain the first data The first compression score corresponding to the historical feature data in the second data is obtained, and the historical feature data in the second data is input into a pre-trained encoding model to obtain a second compression score corresponding to the historical feature data in the second data; The encoding model is a model constructed based on a preset encoding algorithm and used to compress feature data into a preset dimensional space, wherein the preset dimension is smaller than the dimension of the feature data; Based on the first compression score and the second compression score, target data in the second data corresponding to the first data is determined, and based on the newly added feature data in the target data, the newly added feature data in the first data is padded to obtain the padded first data.
11. A storage medium for storing computer executable instructions, wherein the executable instructions implement the following process when executed: When it is detected that feature data newly added to the first data is missing, obtaining second data corresponding to the first data; Inputting the historical feature data in the first data into a pre-trained encoding model to obtain a first compression score corresponding to the historical feature data in the first data, and inputting the historical feature data in the second data into a pre-trained encoding model to obtain a second compression score corresponding to the historical feature data in the second data; The encoding model is a model constructed based on a preset encoding algorithm and used to compress feature data into a preset dimensional space, wherein the preset dimension is smaller than the dimension of the feature data; Based on the first compression score and the second compression score, target data in the second data corresponding to the first data is determined, and based on the newly added feature data in the target data, the newly added feature data in the first data is padded to obtain the padded first data.
Citation Information
Patent Citations
Missing data recovery method and apparatus
CN107766294A
Air data complementation method and device, equipment and storage medium
CN113821760A
Missing data filling method and device and computer readable storage medium
CN115221153A
Data processing method, device and equipment
CN115952859A
Pixel Interpolation Apparatus, Pixel Interpolation Method and Image Reading Apparatus
US20100060949A1
