Data processing method and electronic device
The data processing method generates counterfactual data using a causal model to address the issue of incomplete data sets, enhancing the predictive performance of AI algorithms in domains like smart balance scooters and autonomous driving.
Patent Information
- Application Number
- JP2022210067
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-12-30
- Filing Date
- 2022-12-27
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-12-27
AI Technical Summary
Existing AI algorithms are often trained on incomplete or imbalanced data sets, leading to decreased predictive performance due to insufficiently comprehensive data collection, particularly in fields like medicine and customer satisfaction, where there is more data on complete outcomes than incomplete or dissatisfied scenarios.
A data processing method that utilizes a learned data generation model based on a causal model to generate counterfactual data, allowing for data augmentation and expansion by simulating alternative outcomes based on actual data.
Enhances the validity and richness of data sets by incorporating counterfactual data, improving the accuracy and applicability of AI models in various domains, such as smart balance scooters and autonomous driving systems.
Smart Images

Figure 0007540480000021 
Figure 0007540480000022 
Figure 0007540480000023
Abstract
Description
[Technical field]
[0001] TECHNICAL FIELD Embodiments of the present disclosure relate generally to the field of computers, and more particularly to a data processing method, a model learning method, an electronic device, a computer-readable storage medium, and a computer program product. [Background technology]
[0002] With the development of technology, artificial intelligence (AI) is being applied to various industries. The application of AI in various fields all relies on algorithms such as machine learning and neural networks, and these AI algorithms are usually obtained by learning from a large amount of data.
[0003] Most algorithms are designed under the assumption of conditions such as data balance and environmental balance. Generally, data is collected from actual scenarios in each field, but the actually collected data is not sufficient to cover all cases. For example, in the medical field, the data on complete recovery is obviously more than the data on incomplete recovery. For example, in the field of customer satisfaction, the data on satisfaction is obviously more than the data on dissatisfaction. Therefore, most of the current algorithms are obtained based on data that is not sufficiently comprehensive, which results in problems such as a decline in the predictive performance of the algorithms.
[0004] How to obtain more valid and reasonable data under the condition of limited actual data is currently one of the problems to be solved. Summary of the Invention [Problem to be solved by the invention]
[0005] According to an exemplary embodiment of the present disclosure, a data processing solution is provided that can obtain counterfactual data for subsequent processing. [Means for solving the problem]
[0006] In a first aspect of the present disclosure, a data processing method is provided. The data processing method includes obtaining processing target data, determining result data based on the processing target data using a trained data generation model, and outputting the result data. The processing target data indicates at least one of first state information, a first operation, and second state information after the first operation is performed when the first state information is satisfied. The result data indicates third state information after the second operation is performed when the first state information is satisfied. The data generation model is obtained based on a training set and a causal model corresponding to at least one data item in the training set.
[0007] In a second aspect of the present disclosure, a data processing method is provided. The data processing method includes: acquiring processing target data indicating at least one of first state information, a first action, first attribute information, and second state information after an object having the first attribute information executes the first action when the object has the first state information; inputting at least one of the first state information, the first action, and the second state information into a first sub-model of a trained data generation model to obtain influence parameters corresponding to the processing target data, including the second attribute information and a noise parameter; inputting the first state information, the first action, and the influence parameters into a second sub-model of the trained data generation model to obtain result data; and outputting the result data. The result data indicates third state information after an object having the second attribute information executes the first action when the object has the first state information.
[0008] In a third aspect of the present disclosure, a model training method is provided. The model training method includes: constructing a training set including a plurality of data items; obtaining a causal model corresponding to at least one data item in the training set; and generating a trained data generation model based at least on the training set and the causal model. Each data item in the plurality of data items includes first state information, an action, and second state information after the action is performed during the first state information.
[0009] In a fourth aspect of the present disclosure, an electronic device is provided. The electronic device includes at least one processor unit and at least one memory coupled to the at least one processor unit and storing instructions executed by the at least one processor unit. The instructions, when executed by the at least one processor unit, cause the electronic device to perform the following operations: obtaining data to be processed; determining result data based on the data to be processed using a trained data generation model; and outputting the result data. The data to be processed indicates at least one of first state information, a first operation, and second state information after the first operation is executed when the first state information is satisfied. The result data indicates third state information after the second operation is executed when the first state information is satisfied. The data generation model is obtained based on a training set and a causal model corresponding to at least one data item in the training set.
[0010] In a fifth aspect of the present disclosure, an electronic device is provided. The electronic device includes at least one processor unit and at least one memory coupled to the at least one processor unit and storing instructions executed by the at least one processor unit. The instructions, when executed by the at least one processor unit, cause the electronic device to perform the following operations. The operations include: acquiring processing target data indicating at least one of first state information, a first operation, first attribute information, and second state information after an object having the first attribute information executes the first operation when the object has the first state information; inputting at least one of the first state information, the first operation, and the second state information into a first sub-model of a trained data generation model to obtain influence parameters corresponding to the processing target data, the influence parameters including the second attribute information and a noise parameter; inputting the first state information, the first operation, and the influence parameters into a second sub-model of the trained data generation model to obtain result data; and outputting the result data. The result data indicates third state information after an object having the second attribute information executes the first operation when the object has the first state information.
[0011] In a sixth aspect of the present disclosure, an electronic device is provided. The electronic device includes at least one processor unit and at least one memory coupled to the at least one processor unit and storing instructions executed by the at least one processor unit. The instructions, when executed by the at least one processor unit, cause the electronic device to perform the following operations. The operations include constructing a training set including a plurality of data items, obtaining a causal model corresponding to at least one data item in the training set, and generating a trained data generation model based at least on the training set and the causal model. Each data item in the plurality of data items includes first state information, an action, and second state information after the action is performed during the first state information.
[0012] In a seventh aspect of the present disclosure, there is provided an electronic device including a memory and a processor, the memory for storing one or more computer instructions, which when executed by the processor, perform a method according to the first, second or third aspect of the present disclosure.
[0013] In an eighth aspect of the present disclosure, there is provided a computer-readable storage medium having machine-readable instructions stored thereon that, when executed by a device, cause the device to perform a method according to the first, second or third aspect of the present disclosure.
[0014] In a ninth aspect of the present disclosure, there is provided a computer program product comprising computer readable instructions which, when executed by a processor, perform a method according to the first, second or third aspect of the present disclosure.
[0015] In a tenth aspect of the present disclosure, there is provided an electronic device comprising a processing circuit device configured to perform a method according to the first, second or third aspect of the present disclosure.
[0016] The Summary of the Invention is intended to introduce a series of concepts in a simplified manner, which will be further described in the following embodiments. The description in the Summary of the Invention is not intended to identify key or necessary features of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure should be readily understood from the following description. [Brief description of the drawings]
[0017] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent from the following detailed description taken in conjunction with the drawings, in which the same or similar reference numerals represent the same or similar elements.
[0018] [Figure 1] FIG. 1 illustrates a block diagram of an exemplary environment according to an embodiment of the present disclosure.
[0019] [Diagram 2] 1 shows a schematic diagram of the meaning of the display of data items according to an embodiment of the present disclosure.
[0020] [Diagram 3] 1 illustrates a flowchart of an exemplary training process according to an embodiment of the present disclosure.
[0021] [Figure 4] FIG. 1 shows a schematic diagram of a DAG according to an embodiment of the present disclosure.
[0022] [Diagram 5] 1 illustrates a flow chart of an exemplary usage process according to an embodiment of the present disclosure.
[0023] [Figure 6]1 illustrates a flow chart of an exemplary usage process according to an embodiment of the present disclosure.
[0024] [Figure 7] 1 illustrates a flow chart of an exemplary usage process according to an embodiment of the present disclosure.
[0025] [Figure 8] 1 shows a schematic flow according to an embodiment of the present disclosure.
[0026] [Figure 9] 1 illustrates a flowchart of an exemplary process for determining a goal strategy according to an embodiment of the present disclosure.
[0027] [Figure 10] FIG. 1 illustrates a block diagram of an exemplary device in which embodiments of the present disclosure can be implemented. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0028] Hereinafter, the embodiments of the present disclosure will be described in more detail with reference to the drawings. Although the drawings show some embodiments of the present disclosure, it is understood that the present disclosure can be realized in various forms, and should not be construed as being limited to the embodiments described herein, but rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should also be understood that the drawings and embodiments of the present disclosure are merely illustrative and are not intended to limit the scope of protection of the present disclosure.
[0029] In describing embodiments of the present disclosure, the terms "comprising" and similar terms should be understood as open ended, i.e., "including, but not limited to." The term "based on" should be understood as "based at least in part on." The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment." The terms "first," "second," etc. can refer to different or the same object. Other explicit and implicit definitions may be included in the following text.
[0030] The individual methods and processes described in the embodiments of the present disclosure may be applied to various electronic devices such as terminal equipment, network equipment, etc. Also, the embodiments of the present disclosure may be implemented in test equipment such as a signal generator, a signal analyzer, a spectrum analyzer, a network analyzer, a test terminal equipment, a test network equipment, a channel emulator, etc.
[0031] In describing the embodiments of the present disclosure, the term "circuitry" may refer to a hardware circuit and / or a combination of a hardware circuit and software. For example, a circuit may be a combination of analog and / or digital hardware circuitry and software / firmware. As another example, a circuit may be any portion of a hardware processor with software, including digital signal processor(s), software, and memory(s) that together enable an apparatus, such as a computing device, to operate and perform various functions. In yet another example, a circuit may be a hardware circuit and / or processor, such as a microprocessor or a portion of a microprocessor, that requires software / firmware for operation, but may not require software if software is not required for operation. As used herein, the term "circuitry" includes implementations of only a hardware circuit or processor(s) or a portion of a hardware circuit or processor(s) plus associated software and / or firmware.
[0032] In many domains and problems, agents need to come up with a set of policies to complete a particular task. For example, there are policies that AlphaGo must consider in the process of playing the game Go. Reinforcement learning (RL) algorithms aim to learn optimal policies under the premise of maximizing cumulative reward, and thus have been applied in fields such as autonomous driving, business management, and recommendation systems. However, traditional RL algorithms still have deficiencies in terms of data validity, etc.
[0033] To improve the validity of data, it is necessary to have more a priori knowledge or to extract more information from existing data. Model-based reinforcement learning algorithms can learn a dynamic model of the environment, but the assumptions made by the model can improve the validity of the data while also biasing the model, resulting in failure to meet the required performance. Data synthesis techniques obtain synthetic data by upsampling existing data, but this mechanism cannot be controlled, limiting the application field.
[0034] In view of this, to solve one or more of the above problems and / or other potential problems, embodiments of the present disclosure put forward a data augmentation solution, in which a trained data generation model obtained based on a causal model can be used to determine result data corresponding to the data to be processed, thereby achieving data augmentation.
[0035] 1 illustrates a block diagram of an example environment 100 according to an embodiment of the present disclosure. It should be understood that the environment 100 illustrated in FIG. 1 is merely one example in which embodiments of the present disclosure may be practiced and is not intended to limit the scope of the present disclosure. Embodiments of the present disclosure apply to other systems or architectures as well.
[0036] As shown in Fig. 1, the environment 100 may include a computing device 110. The computing device 110 may be any device having computing capabilities. The computing device 110 may include, but is not limited to, a personal computer, a server computer, a handheld or laptop type device, a mobile device (e.g., a mobile phone, a personal digital assistant PDA, a media player, etc.), a wearable device, a home appliance, a minicomputer, a mainframe computer, a distributed computing system, a cloud computing resource, etc. It should be understood that the computing device 110 may or may not have sufficient computing power resources for model training, taking into account factors such as cost.
[0037] The computing device 110 may be configured to obtain the data to be processed 120 and to output the result data 140. The determination of the result data 140 may be performed by a trained data generation model 130.
[0038] The data to be processed 120 may be entered by a user or obtained from a storage device, as the disclosure is not limited in this respect.
[0039] The processed data 120 may be used to represent information of a subject of a processed field. The processed data 120 may indicate at least one of first state information, a first action, and second state information after the first action is performed if the first state information is satisfied. Optionally, the processed data 120 may further include reward information in the process of performing the first action to transform the first state information into the second state information.
[0040] Results data 140 may include information similar to process data 120. In some examples, results data 140 may indicate at least one of first state information, a second action, and third state information after the second action is performed if the first state information is satisfied.
[0041] In some examples, the embodiments of the present disclosure may be applied to the field of smart balance scooters. Correspondingly, the object may represent a balance scooter. The state information may represent a moving state of the balance scooter, for example, the state information may include a moving distance, a moving speed, an angle with respect to a horizontal plane (or a vertical direction), an angular velocity, etc. The motion may include forward, backward, stop, etc.
[0042] TIFF0007540480000001.tif82168
[0043] TIFF0007540480000002.tif60168
[0044] It should be understood that the above scenarios are merely illustrative and do not limit the scope of the present disclosure. The embodiments of the present disclosure may be applied to various fields where similar problems exist, and will not be listed here one by one. In addition, the "actions" in the embodiments of the present disclosure may be referred to as, for example, "measures", and the present disclosure is not limited in this respect.
[0045] In some embodiments, the data generative model 130 may be trained before performing the above-described process. It should be understood that the data generative model 130 may be trained by the computing device 110 or by another suitable device external to the computing device 110. The trained data generative model 130 may be deployed on the computing device 110 or external to the computing device 110. An exemplary training process will now be described with reference to FIG. 3, taking the case where the computing device 110 trains the data generative model 130 as an example.
[0046] 3 illustrates a flowchart of an example learning process 300 according to an embodiment of the present disclosure. For example, the method 300 may be performed by the computing device 110 illustrated in FIG. It will be appreciated that the method 300 may further include additional blocks not illustrated and / or omit some of the blocks illustrated. The scope of the present disclosure is not limited in this respect.
[0047] At block 310, a training set is constructed. The training set includes a plurality of data items, where each data item in the plurality of data items includes first state information, an action, and, in the case of the first state information, second state information after the action is performed.
[0048] At block 320, a causal model corresponding to at least one data item in the training set is obtained.
[0049] At block 330, a trained data generative model is generated based on at least the training set and the causal model.
[0050] TIFF0007540480000003.tif89168
[0051] It can be understood that the display of data items in the above examples is merely schematic, and in actual scenarios, the data items may be expressed in other forms, such as (action, output, attribute), the output may include the second state information after conversion, and the attribute may include the first state information. Optionally, the output may further include reward information, and the attribute may further include attribute information. And it should be noted that the action may be set based on the actual application scenario, and it may be any item.
[0052] In some embodiments of the present disclosure, the causal model may be manually determined according to experience or the like. In some embodiments of the present disclosure, the causal model may be obtained by learning based on a learning set. The embodiments of the present disclosure are not limited in this respect. By way of example, the causal model method may include, but is not limited to, the Peter-Clark Algorithm (PC), Greedy Equivalent Search (GES), Linear non-Gaussian Model (LinGAM), Causal Additive Model (CAM), and the like.
[0053] By way of example, the causal model may be represented as a Directed Acyclic Graph (DAG), which may include multiple nodes, such as a source node, an intermediate node, and a target node.
[0054] Optionally, in the process of determining the DAG, a causal structure learning method may be used to identify the causal structure between multiple variables. For example, if a data item includes attribute information, the attribute information may be set as a source node of the DAG.
[0055] TIFF0007540480000004.tif36168
[0056] TIFF0007540480000005.tif23168
[0057] TIFF0007540480000006.tif28168
[0058] TIFF0007540480000007.tif27168
[0059] TIFF0007540480000008.tif58168
[0060] A model structure of the data generation model may be constructed based on the causal model, and the model structure may be trained based on the training set to generate a trained data generation model. In some embodiments, a network structure of a second sub-model may be constructed based on the causal model, and the first sub-model, the second sub-model, and the third sub-model may be trained to obtain a trained data generation model. For example, the network structure of the second sub-model may include a 2-time slice Bayesian network.
[0061] For ease of representation, the first sub-model may be represented as E, the second sub-model as G, and the third sub-model as D. Thus, it can be seen that in block 330, through training, trained E, G, and D can be obtained.
[0062] TIFF0007540480000009.tif28168
[0063] TIFF0007540480000010.tif49168
[0064] TIFF0007540480000011.tif57168
[0065] In this way, in an embodiment of the present disclosure, the difference between the output of the second sub-model and the actual data can be minimized by using the trained data generation model obtained by training and by using the loss function in the training process, taking into account the loss of mean squared error, thereby speeding up the training process and improving efficiency.
[0066] Above, an exemplary learning process of the data generation model 130 has been described with reference to Figures 3 and 4. The learned data generation model 130 can determine result data corresponding to the data to be processed, so that counterfactual data can be obtained and data enrichment can be realized. Below, a schematic use process of the data generation model 130 will be described in conjunction with Figures 5 and 6.
[0067] 5 illustrates a flowchart of an exemplary usage process 500 according to an embodiment of the present disclosure. For example, the method 500 may be performed by the computing device 110 illustrated in FIG. It will be appreciated that the method 500 may further include additional blocks not illustrated and / or omit some of the blocks illustrated. The scope of the present disclosure is not limited in this respect.
[0068] At block 510, data to be processed is obtained. The data to be processed indicates at least one of first state information, a first operation, and second state information after the first operation is performed if the first state information is satisfied.
[0069] At block 520, result data is determined based on the data to be processed using the trained data generation model, the result data being indicative of third state information after the second action is performed if the first state information is satisfied, the data generation model being derived based on the training set and a causal model corresponding to at least one data item in the training set.
[0070] At block 530 the resulting data is output.
[0071] In embodiments of the present disclosure, the data to be processed may be actual data collected in a real-world scenario, while the result data may be counterfactual data that differs from the actual data, e.g., the result data may represent the results that would occur if a current operation were changed while all other aspects remain unchanged.
[0072] The trained data generation model used in block 520 may be a data generation model as described above in connection with Figures 3-4, and more specifically may use a second sub-model in block 530 to obtain the result data.
[0073] TIFF0007540480000012.tif36168
[0074] In this manner, embodiments of the present disclosure can use a trained data generation model to obtain counterfactual data corresponding to the data to be processed.
[0075] 6 illustrates a flowchart of an example usage process 600 according to an embodiment of the present disclosure. For example, the method 600 may be performed by the computing device 110 illustrated in FIG. It will be appreciated that the method 600 may further include additional blocks not illustrated and / or omit some of the blocks illustrated. The scope of the present disclosure is not limited in this respect.
[0076] In block 610, data to be processed is obtained. The data to be processed indicates at least one of first state information, a first operation, first attribute information of an object represented by the first state information, and second state information after the object having the first attribute information performs the first operation when the object has the first state information.
[0077] In block 620, the first sub-model of the trained data generation model is used to obtain influence parameters, which include second attribute information and noise parameters.
[0078] In box 630, a second sub-model of the trained data generation model is used to obtain result data, the result data indicating third state information after the object having the second attribute information performs the first action when the object has the first state information.
[0079] At block 640 the resulting data is output.
[0080] TIFF0007540480000013.tif28168
[0081] TIFF0007540480000014.tif57169
[0082] Take the smart balance scooter for example. Balance scooters have many advantages as a means of transportation, such as small size, light weight, simple and trendy appearance, easy operation, and integration of entertainment and transportation, so they are not only used by individual consumers, but are also widely used in various industries such as the military, police, security, residential real estate, and airport ground work. Balance scooters realize operations such as acceleration, deceleration, and direction changes by moving the driver's center of gravity. The dynamics system used in balance scooters involves multiple variables, the system parameters are coupled to each other, and the relationships between each variable are time-varying and nonlinear, so it is impossible to accurately construct a model of the dynamics system of the balance scooter.
[0083] One method is to collect data in some specific scenarios and obtain a dynamics model based on the collected data, for example by learning. However, the data collected in the actual scenario is limited, for example, data can only be collected for specific drivers, and as a result, the collected data cannot be said to be sufficiently comprehensive.
[0084] TIFF0007540480000015.tif76168
[0085] TIFF0007540480000016.tif75168
[0086] Taking the field of autonomous driving as an example, the embodiments of the present disclosure may be applied to advanced driver assistance systems (ADAS) for vehicles. In ADAS, environmental data inside and outside the vehicle are collected through various in-vehicle sensors, and technical processing such as static and dynamic object recognition, detection, and tracking is performed, so that the driver can quickly sense danger and take corresponding measures to improve driving safety. Common subdivision functions include a Lane Departure Warning (LDW) system, a Blind Spot Detection (BSD) system, a Lane Change Assist (LCA) system, an Adaptive Cruise Control (ACC) system, an Autonomous Emergency Braking (AEB) system, a Driver Monitoring System (DMS), and the like.
[0087] Currently, vehicle fault diagnosis is generally based on the mechanism and the experience of experts, but this method places high demands on engineers and leads to high costs. Another method is to control the vehicle using existing data, but the currently available data is scarce and not comprehensive.
[0088] TIFF0007540480000017.tif61168
[0089] TIFF0007540480000018.tif53168
[0090] 7 illustrates a flowchart of an example usage process 700 according to an embodiment of the present disclosure. For example, the method 700 may be performed by the computing device 110 illustrated in FIG. It will be appreciated that the method 700 may further include additional blocks not illustrated and / or omit some of the blocks illustrated. The scope of the present disclosure is not limited in this respect.
[0091] In block 710, data to be processed is obtained. The data to be processed indicates at least one of first state information, a first operation, first attribute information of an object represented by the first state information, and second state information after the object having the first attribute information performs the first operation when the object has the first state information.
[0092] In block 720, the first sub-model of the trained data generation model is used to obtain influence parameters, which include second attribute information and noise parameters.
[0093] In block 730, a second sub-model of the trained data generation model is used to obtain result data, the result data indicating third state information after the object having the second attribute information performs the second action when the object has the first state information.
[0094] At block 740 the resulting data is output.
[0095] TIFF0007540480000019.tif28168
[0096] TIFF0007540480000020.tif60168
[0097] When combined with the above-mentioned embodiments of Figures 5 to 7, result data can be obtained based on the data to be processed. The result data can be counterfactual data. Specifically, when combined with process 500 of Figure 5, counterfactual data of a different operation from the actual data can be obtained, when combined with process 600 of Figure 6, counterfactual data of different attribute information from the actual data can be obtained, and when combined with process 700 of Figure 7, counterfactual data of a different operation from the actual data and different attribute information can be obtained.
[0098] As an example, the data to be processed in FIG. 5 to FIG. 7 may be one of a plurality of data items in a training set as shown in FIG. 3, and accordingly, the above-mentioned embodiment may be represented diagrammatically as a process 800 shown in FIG. 8. As shown in FIG. 8, a DAG 830 may be obtained by causal structure learning 820 based on a training set 810. A data generation model 850 may be obtained by causal model learning 840 based on the training set 810 and the DAG 830. The data generation model 850 may include a first sub-model E, a second sub-model G, and a third sub-model D. Result data 870 may be obtained by counterfactual inference 860 based on the training set 810 and the data generation model 850. The result data 870 is counterfactual data. It should be understood that the process shown in FIG. 8 is merely schematic and should not be construed as a limitation on the embodiments of the present disclosure.
[0099] FIG. 9 illustrates a flow chart of a process 900 for determining a goal strategy according to an embodiment of the present disclosure.
[0100] In box 910, input information is obtained from a user. The input information includes input state information.
[0101] In box 920, at least one target policy is determined based on the input information using a trained policy model generated based at least on the outcome data.
[0102] In box 930, at least one goal strategy is output.
[0103] In some embodiments, a trained policy model may be obtained by constructing a policy training set and generating a trained policy model based on at least the policy training set. The policy training set includes a plurality of policy data items, each of which includes at least one of attribute information, initial state information, a policy, transformed state information after applying the policy to the initial state information, and reward information in the process from the initial state information to the transformed state information. Illustratively, at least one policy data item in the plurality of policy data items is based on counterfactual data generated by the above process.
[0104] The policy model may include a set of state information, a set of policies, a transformation function, and a reward function. The transformation function can represent the probability that the state information changes due to application of the policies, and the reward function can be used to represent the reward obtained by applying the policies.
[0105] Optionally, in some embodiments, the user's input information may further include instruction information regarding an output condition. In box 920, a series of goal policies, for example, multiple goal policies, may be determined until the output condition is satisfied. Then, in box 930, the multiple goal policies may be output. In some embodiments, a first policy scheme corresponding to the input state information may be determined based on the learned policy model, and the first target policy may be determined based on the first policy scheme. By way of example, the first policy scheme may include multiple policies and multiple corresponding evaluation values, and a policy corresponding to the maximum evaluation value among the multiple evaluation values may be the first target policy. A transformed state information may be determined after applying the first target policy upon the input state information. Then, a second policy scheme corresponding to the transformed state information may be determined based on the learned policy model, and the second target policy may be determined based on the second policy scheme. In this way, multiple target policies that satisfy the output condition can be determined, and the multiple target policies include a first target policy, a second target policy, ...
[0106] It should be noted that the present disclosure does not limit the output condition. For example, the output condition includes at least one of the following: the number of the multiple target policies to be output is equal to a predetermined value, the state information after the multiple target policies is a predetermined state information, the total reward in the process of applying the multiple target policies is greater than a first predetermined value, the total reward in the process of applying the multiple target policies is less than a first predetermined value, etc.
[0107] Thus, in an embodiment of the present disclosure, when generating a policy model, the policy dataset includes counterfactual data, making it possible to take into account richer data, thereby making the resulting policy model more applicable and, specifically, making the target policy obtained based on the policy model more accurate.
[0108] In this way, a data generation model can be obtained by training and used to obtain counterfactual outcome data based on the data to be processed. Furthermore, the outcome data can be used to train a policy model, thereby making at least one target policy obtained based on the policy model more accurate.
[0109] In some embodiments, the computing device comprises circuitry configured to perform the following operations: obtain data to be processed; determine result data based on the data to be processed using the trained data generation model; and output the result data. The data to be processed indicates at least one of first state information, a first action, and second state information after the first action is performed if the first state information is satisfied. The result data indicates third state information after the second action is performed if the first state information is satisfied. The data generation model is derived based on a training set and a causal model corresponding to at least one data item in the training set.
[0110] In some embodiments, the computing device comprises circuitry configured to perform the following operations: inputting at least one of the first state information, the first operation, and the second state information into a first sub-model to obtain an impact parameter corresponding to the data to be processed, and inputting the first state information, the second operation, and the impact parameter into a second sub-model to obtain third state information.
[0111] In some embodiments, the influence parameter includes at least one of attribute information of the object represented by the first state information, or a noise parameter.
[0112] In some embodiments, the data to be processed is factual data and the outcome data is counterfactual data.
[0113] In some embodiments, the computing device comprises circuitry configured to perform operations to determine availability of result data by inputting the first state information, the second operation, and the third state information into a third sub-model.
[0114] In some embodiments, the computing device comprises circuitry configured to perform the following operations: obtain input information from a user, including input state information, determine at least one goal policy based on the input information using a trained policy model generated based at least on the outcome data, and output the at least one goal policy.
[0115] In some embodiments, a computing device comprises circuitry configured to perform the following operations: obtain processing target data indicative of at least one of first state information, a first action, a first attribute information, and second state information after an object having the first attribute information performs the first action during the first state information, inputting at least one of the first state information, the first action, and the second state information into a first sub-model of the trained data generation model to obtain influence parameters corresponding to the processing target data, the influence parameters including the second attribute information and a noise parameter, inputting the first state information, the first action, and the influence parameters into a second sub-model of the trained data generation model to obtain result data, and outputting the result data, the result data indicative of third state information after an object having the second attribute information performs the first action during the first state information.
[0116] In some embodiments, a computing device comprises circuitry configured to perform the following operations: constructing a training set including a plurality of data items, obtaining a causal model corresponding to at least one data item in the training set, and generating a trained data generation model based at least on the training set and the causal model, wherein each data item in the plurality of data items includes at least one of first state information, an action, and second state information after the action is performed upon the first state information.
[0117] In some embodiments, each data item in the plurality of data items further includes attribute information of the object represented by the first state information.
[0118] In some embodiments, the data generation model includes a first sub-model, a second sub-model, and a third sub-model, where the inputs of the first sub-model include the first state information, an action, and the second state information, the inputs of the second sub-model include the first state information, an action, and attribute information, and the third sub-model is used to determine a difference between an output of the second sub-model and the second state information.
[0119] In some embodiments, the input of the second sub-model further includes influence parameters, the influence parameters including at least one of attribute information of the object represented by the first state information, or noise parameters.
[0120] In some embodiments, the computing device comprises circuitry configured to perform operations to generate a causal model based on at least one data item of the plurality of data items, the causal model indicating causal relationships between a plurality of elements in the at least one data item.
[0121] In some embodiments, the computing device comprises circuitry configured to perform the following operations: constructing a model structure of the data generative model based on the causal model, and training the model structure based on at least a training set to generate a trained data generative model.
[0122] FIG. 10 shows a schematic block diagram of an exemplary device 1000 capable of implementing embodiments of the present disclosure. For example, the computing device 110 shown in FIG. 1 can be realized by the device 1000. As shown in the figure, the device 1000 includes a central processor unit (CPU) 1001. The CPU 1001 may perform various appropriate operations and processes based on instructions of a computer program stored in a read-only memory (ROM) 1002 or loaded from a storage unit 1008 into a random access memory (RAM) 1003. The RAM 1003 may further store various programs and data required for the operation of the device 1000. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0123] A number of components in the device 1000 are connected to an I / O interface 1005. The components include an input unit 1006 such as a keyboard, a mouse, etc., an output unit 1007 such as various types of displays, speakers, etc., a storage unit 1008 such as a magnetic disk, an optical disk, etc., and a communication unit 1009 such as a network interface card, a modem, a wireless communication transceiver, etc. Through the communication unit 1009, the device 1000 can exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks. As can be understood, in the present disclosure, the output unit 1007 may be used to display information on real-time dynamic changes of user satisfaction, key factor specific information of user groups or individual users regarding satisfaction, information on optimization policies, and information on evaluation of policy implementation effects, etc.
[0124] The processor unit 1001 may be implemented by one or more processing circuits. The processor unit 1001 may be configured to execute each of the processes and operations described above. For example, in some embodiments, the aforementioned processes may be implemented as computer software programs and tangibly stored in a machine-readable medium, such as the storage unit 1008. In some embodiments, some or all of the computer programs may be loaded and / or installed in the device 1000 via the ROM 1002 and / or the communication unit 1009. When the computer programs are loaded into the RAM 1003 and executed by the CPU 1001, they may perform one or more steps of the processes described above.
[0125] The present disclosure may be a system, a method, and / or a computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions stored thereon for carrying out aspects of the present disclosure.
[0126] A computer readable storage medium may be a tangible device capable of holding and storing instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples (but not all) of computer readable storage media include portable computer diskettes, hard disks, random access memories (RAM), read-only memories (ROM), erasable-programmable read-only memories (EPROM or flash memory), static random access memories (SRAM), portable compact disk read-only memories (CD-ROM), digital versatile disks (DVD), memory sticks, floppy disks, mechanical encoder disks, punch cards or protruding structures in grooves on which instructions are stored, and any suitable combination of the above. A computer readable storage medium as used herein is not to be construed as being a momentary signal itself, such as, for example, radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through guided waves or other transmission media (e.g., light pulses through optical cables), or electrical signals transmitted over electrical wires.
[0127] The computer readable program instructions described herein may be downloaded from a computer readable storage medium to each computing / processing device, or may be downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network may include copper transmission cables, optical transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network interface card or network interface in each computing / processing device receives the computer readable program instructions from the network and forwards the computer readable program instructions to be stored in the computer readable storage medium of each computing / processing device.
[0128] The computer program instructions for carrying out the operations of the present disclosure may be assembler directives, instruction set architecture (ISA), machine language instructions, machine related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, and general process-based programming languages such as "C" or similar programming languages. The computer readable program instructions may run entirely on the user computer, partially on the user computer, as a separate software package, partially on the user computer and partially on a remote computer, or entirely on a remote computer or server. In the context of a remote computer, the remote computer may be connected to the user computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider). In some embodiments, the status information of the computer readable program instructions may be used to personalize electronic circuitry, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), that may execute the computer readable program instructions to implement aspects of the present disclosure.
[0129] Aspects of the present disclosure have been described herein with reference to flowcharts and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present disclosure. It will be understood that each block of the flowcharts and / or block diagrams, and combinations of each block in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.
[0130] These computer readable program instructions may be provided to a processor unit of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, which, when executed by the processor unit of the computer or other programmable data processing apparatus, produces an apparatus implementing the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams. These computer readable program instructions may be stored on a computer readable storage medium. These instructions cause a computer, programmable data processing apparatus, and / or other device to operate in a particular manner. Thus, a computer readable medium having instructions stored thereon includes an article of manufacture containing instructions for each aspect of implementing the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams.
[0131] The computer readable program instructions may be loaded into a computer, other programmable data processing apparatus, or other device to cause the computer, other programmable data processing apparatus, or other device to perform a series of operational steps to generate a computer implemented process, such that the instructions executing on the computer, other programmable data processing apparatus, or other device implement the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams.
[0132] The flowcharts and block diagrams in the figures represent possible architectures, functions and operations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, program segment or part of instructions, which includes one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions depicted in the blocks may occur in a different order than depicted in the figures. For example, two consecutive blocks may actually be essentially executed in parallel, or may be executed in the opposite order, depending on the functionality involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts may be implemented in a dedicated hardware-based system that performs the specified functions or operations, or may be implemented in a combination of dedicated hardware and computer instructions.
[0133] Although each embodiment of the present disclosure has been described above, the above description is illustrative and not exhaustive, and is not limited to each of the disclosed embodiments. It is clear that a person skilled in the art can make multiple modifications and changes without departing from the scope and spirit of each of the described embodiments. The terms used herein are selected with the intention of optimally explaining the principles, actual applications, or technical improvements in the market of each embodiment, or allowing a person skilled in the art to understand each embodiment disclosed in this specification.
Claims
1. Obtaining data to be processed; determining result data based on the processing target data using a trained data generation model; outputting the result data; and Including, the processing target data indicates at least one of first state information, a first operation, and second state information after the first operation is executed when the first state information is satisfied; the result data indicates third state information after a second operation is performed when the first state information is satisfied; the data generation model is derived based on a training set and a causal model corresponding to at least one data item in the training set; the data generation model includes a first sub-model and a second sub-model; determining the result data includes: inputting at least one of the first state information, the first operation, and the second state information into the first sub-model to obtain an influence parameter corresponding to the processing target data; and inputting the first state information, the second operation, and the influence parameter into the second sub-model to obtain the third state information; The data generation model further includes a third sub-model; and inputting the first state information, the second operation, and the third state information into the third sub-model to determine availability of the result data. Data processing methods.
2. The influence parameter includes at least one of attribute information of the object represented by the first state information or a noise parameter. The method of claim 1.
3. Obtaining input information from a user, including input state information; determining at least one target policy based on the input information using a trained policy model generated based on at least the outcome data; outputting said at least one goal strategy; Further comprising: The method according to claim 1 or 2.
4. constructing said training set; obtaining said causal model; generating the trained data generative model based on at least the training set and the causal model; the training set includes a plurality of data items; each data item in the plurality of data items includes at least one of first state information, an action, and second state information after the action is performed during the first state information; The method according to claim 1 or 2.
5. Each data item in the plurality of data items further includes attribute information of the object represented by the first status information. The method according to claim 4.
6. the data generation model includes a first sub-model, a second sub-model, and a third sub-model; inputs of the first sub-model include the first state information, the action, and the second state information; The input of the second sub-model includes the first state information, the action, and the attribute information; the third sub-model is used to determine a difference between an output of the second sub-model and the second state information; The method according to claim 5.
7. The input of the second sub-model further includes influence parameters; The influence parameter includes at least one of attribute information of the object represented by the first state information or a noise parameter. The method according to claim 6.
8. Obtaining the causal model includes: generating the causal model based on at least one data item of the plurality of data items; the causal model indicates causal relationships between a plurality of elements in the at least one data item; The method according to claim 4.
9. Generating the trained data generation model includes: constructing a model structure of the data generation model based on the causal model; training the model structure based on at least the training set to generate the trained data generation model; Including, The method according to claim 4.
10. The data to be processed is factual data; The outcome data is counterfactual data. The method according to claim 1 or 2.
11. acquiring processing target data indicating at least one of first status information, a first action, first attribute information, and second status information after an object having the first attribute information executes the first action when the object has the first status information; inputting at least one of the first state information, the first operation, and the second state information into a first sub-model of a trained data generation model to obtain influence parameters corresponding to the processing target data, the influence parameters including second attribute information and a noise parameter; obtaining result data by inputting the first state information, the first operation, and the influence parameter into a second sub-model of the trained data generation model; Outputting the result data; and Including, The result data indicates third status information after the object having the second attribute information executes the first action when the object has the first status information. Data processing methods.
12. constructing a training set including a plurality of data items; obtaining a causal model corresponding to at least one data item in the training set; generating a trained data generative model based on at least the training set and the causal model; Including, each data item in the plurality of data items includes at least one of first state information, an action, and second state information after the action is performed during the first state information; Each data item in the plurality of data items further includes attribute information of the object represented by the first status information; the data generation model includes a first sub-model, a second sub-model, and a third sub-model, inputs of the first sub-model include the first state information, the action, and the second state information, inputs of the second sub-model include the first state information, the action, and the attribute information, and the third sub-model is used to determine a difference between an output of the second sub-model and the second state information. Model training methods.
13. The input of the second sub-model further includes influence parameters; The influence parameter includes at least one of attribute information of the object represented by the first state information or a noise parameter. The method of claim 12.
14. Obtaining the causal model includes: generating the causal model based on at least one data item of the plurality of data items; the causal model indicates causal relationships between a plurality of elements in the at least one data item; 14. The method according to claim 12 or 13.
15. Generating the trained data generation model includes: constructing a model structure of the data generation model based on the causal model; generating the trained data generation model by training the model structure based on at least the training set; Including, 14. The method according to claim 12 or 13.
16. Constructing a training set including a plurality of data items; obtaining a causal model corresponding to at least one data item in the training set; generating a trained data generative model based on at least the training set and the causal model; Including, each data item in the plurality of data items includes at least one of first state information, an action, and second state information after the action is performed during the first state information; Obtaining the causal model includes: generating the causal model based on at least one data item of the plurality of data items; the causal model indicates causal relationships between a plurality of elements in the at least one data item; Model training methods.
17. An electronic device, At least one processor unit; at least one memory coupled to the at least one processor unit for storing instructions executed by the at least one processor unit; Equipped with said instructions, when executed by said at least one processor unit, perform the method according to any one of claims 1, 2, 11 to 13. electronic equipment.
18. An electronic device, A processing circuit arrangement configured to carry out the method according to any one of claims 1, 2, 11 to 13, electronic equipment.
Citation Information
Patent Citations
Training action selection neural networks using hindsight modelling
WO2021058588A1
