Test evaluation method, device, electronic device and storage medium

By adopting a preset sampling model and a propensity score matching model in data processing technology, samples with the same joint probability distribution are selected for evaluation, which solves the problem of inaccurate evaluation caused by data differences in the existing technology and achieves a more accurate negative Behavioral impact assessment.

CN112163633BActive Publication Date: 2024-10-15BEIJING DIDI INFINITY TECH & DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011099198.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-14
Publication Date
2024-10-15
Estimated Expiration
2040-10-14

AI Technical Summary

Technical Problem

In the existing technology, the overall impact probability of a certain measure in the selected two sets of data is the same, but the difference is large, which leads to the problem of inaccurate assessment of the impact of a certain measure in the service.

Method used

Use a preset sampling model to determine the joint probability distribution of multiple features in multiple first positive samples, and select multiple target positive samples with the same joint probability distribution from the multiple first positive samples; according to the target positive sample , select the target negative sample that is the same as the joint probability distribution from the first negative sample; test and evaluate the impact of negative behavior based on the first positive sample and the target negative sample to ensure that the overall probability is similar and the characteristics are in the same probability distribution, reducing Differences between experimental and control groups.

Benefits of technology

Through this method, the impact of negative behaviors is more accurately assessed, reducing the difference between the experimental group and the control group, making the assessment results more reliable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112163633B_ABST
    Figure CN112163633B_ABST
Patent Text Reader

Abstract

The present application provides a test evaluation method, device, electronic device and storage medium, which relates to the field of data processing technology. The method includes: using a preset sampling model to determine the joint probability distribution of multiple features in multiple first positive samples, and selecting multiple target positive samples with the same joint probability distribution from the multiple first positive samples; selecting target negative samples with the same joint probability distribution from the first negative samples according to the target positive samples; and testing and evaluating the impact of negative behavior according to the first positive samples and the target negative samples. The first positive sample and the first negative sample have similar overall probabilities. The target positive samples screened based on the first positive samples and the target negative samples screened based on the first negative samples satisfy both the similar overall probabilities and the same probability distribution of features, which reduces the difference between the experimental group and the control group, and makes the impact of the evaluated negative behavior in the service more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a test and evaluation method, device, electronic device and storage medium. Background Art

[0002] Random experiments are one of the best ways to study causal relationships. Online experiments cannot be conducted due to time-consuming and high costs. Therefore, offline experiments based on online historical data have been widely welcomed.

[0003] In the related technology, experimental group data and control group data with the same overall impact probability for a certain measure can be selected from the historical data of the service provider and the service recipient, and then the impact of a certain measure on the service can be evaluated based on the experimental group data and the control group data.

[0004] However, in the related art, the overall impact probability of a certain measure in two sets of data selected is the same, and the two sets of data are quite different, which can easily lead to the problem of inaccurate impact of a certain measure in the evaluation of the service. Summary of the invention

[0005] In view of this, the purpose of the embodiments of the present application is to provide a test evaluation method, device, electronic device and storage medium, which have solved the problem in the related art that the overall impact probability of a certain measure of two sets of data selected is the same, and the two sets of data are quite different, which can easily lead to inaccurate impact of a certain measure in the evaluation on the service.

[0006] In a first aspect, an embodiment of the present application provides a test evaluation method, comprising:

[0007] Using a preset sampling model, determining a joint probability distribution of a plurality of features in a plurality of first positive samples, and selecting a plurality of target positive samples having the same joint probability distribution from the plurality of first positive samples; wherein the first positive samples include: data of a service recipient who has received a negative behavior from a service provider;

[0008] According to the target positive sample, a target negative sample having the same joint probability distribution is selected from the first negative sample; the first negative sample comprises: data of a service recipient who has not received a negative behavior from a service provider, and the overall influence probability of the multiple features in the first positive sample and the first negative sample on the negative behavior is within a preset range;

[0009] The impact of negative behavior is tested and evaluated based on the first positive sample and the target negative sample.

[0010] Optionally, before adopting a preset sampling model to determine the joint probability distribution of the multiple features in the multiple first positive samples, the method further includes:

[0011] A preset propensity score matching model is adopted, and according to preset independent variables, the first positive sample and the first negative sample are respectively determined from the second positive sample and the second negative sample; the preset independent variables are the multiple features.

[0012] Optionally, the adopting a preset sampling model to determine the joint probability distribution of multiple features in multiple first positive samples includes:

[0013] Using the sampling model, respectively determining the conditional probability of each feature in the multiple first positive samples, and obtaining the joint probability distribution based on the conditional probabilities of the multiple features;

[0014] The conditional probability of each feature is the conditional probability of other features under each feature.

[0015] Optionally, selecting, according to the target positive sample, a target negative sample having the same joint probability distribution from the first negative sample includes:

[0016] According to the data of each feature in the target positive sample, the target negative sample is selected from the first negative sample, which has the same joint probability distribution and a data deviation of the same type of feature within a preset range.

[0017] Optionally, the testing and evaluating the impact of the negative behavior according to the first positive sample and the target negative sample includes:

[0018] Using a preset evaluation model, the first positive sample and the target negative sample are evaluated to obtain an evaluation value;

[0019] If the evaluation value meets a preset condition, an analysis is performed based on the first positive sample and the target negative sample to determine the influence coefficient of the negative behavior.

[0020] Optionally, the method further includes:

[0021] If the evaluation value does not meet the preset conditions, the model parameters of the sampling model and the propensity score matching model are updated according to the evaluation value.

[0022] Optionally, the performing analysis based on the first positive sample and the target negative sample to determine the influence coefficient of the negative behavior includes:

[0023] Determine, from the first positive samples and the target negative samples, a first data group and a second data group corresponding to each negative behavior;

[0024] An influence coefficient of each negative behavior is calculated according to a deviation of the influence characteristic data of each negative behavior in the first data group and the second data group.

[0025] Optionally, the method further includes:

[0026] According to the influence coefficient of each negative behavior, reference data of the penalty strategy corresponding to the negative behavior is obtained.

[0027] In a second aspect, an embodiment of the present application provides a test evaluation device, comprising:

[0028] A determination module, configured to use a preset sampling model to determine a joint probability distribution of a plurality of features in a plurality of first positive samples, and select a plurality of target positive samples having the same joint probability distribution from the plurality of first positive samples; wherein the first positive samples include: data of a service recipient who has received a negative behavior from a service provider;

[0029] A selection module is used to select a target negative sample with the same joint probability distribution from the first negative sample according to the target positive sample; the first negative sample includes: data of the service recipient who has not received the negative behavior of the service provider, and the overall influence probability of the multiple features in the first positive sample and the first negative sample on the negative behavior is within a preset range;

[0030] An evaluation module is used to test and evaluate the impact of negative behavior based on the first positive sample and the target negative sample.

[0031] Optionally, the device further comprises:

[0032] The first determination module is used to respectively determine the first positive sample and the first negative sample from the second positive sample and the second negative sample by using a preset propensity score matching model according to preset independent variables; the preset independent variables are the multiple features.

[0033] Optionally, the determination module is also used to adopt the sampling model to determine the conditional probability of each feature in the multiple first positive samples respectively, and obtain the joint probability distribution based on the conditional probabilities of the multiple features; wherein the conditional probability of each feature is the conditional probability of other features under each feature.

[0034] Optionally, the selection module is further used to select the target negative sample from the first negative sample based on the data of each feature in the target positive sample, which has the same joint probability distribution and the data deviation of the same type of features is within a preset range.

[0035] Optionally, the evaluation module is further used to use a preset evaluation model to evaluate the first positive sample and the target negative sample to obtain an evaluation value; if the evaluation value meets a preset condition, an analysis is performed based on the first positive sample and the target negative sample to determine the influence coefficient of the negative behavior.

[0036] Optionally, the device further comprises:

[0037] An updating module is used to update the model parameters of the sampling model and the propensity score matching model according to the evaluation value if the evaluation value does not meet the preset conditions.

[0038] Optionally, the evaluation module is also used to determine the first data group and the second data group corresponding to each negative behavior from the first positive sample and the target negative sample, respectively; and calculate the influence coefficient of each negative behavior based on the deviation of the influence characteristic data of each negative behavior in the first data group and the second data group.

[0039] Optionally, the device further comprises:

[0040] The acquisition module is used to obtain reference data of the penalty strategy corresponding to the negative behavior according to the influence coefficient of each negative behavior.

[0041] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the test and evaluation method as described in any one of the first aspects.

[0042] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the test and evaluation method as described in any one of the first aspects are executed.

[0043] In summary, the embodiments of the present application provide a test evaluation method, device, electronic device and storage medium, the method comprising: using a preset sampling model to determine the joint probability distribution of multiple features in multiple first positive samples, and selecting multiple target positive samples with the same joint probability distribution from the multiple first positive samples; selecting target negative samples with the same joint probability distribution from the first negative samples according to the target positive samples; and testing and evaluating the impact of negative behavior according to the first positive samples and the target negative samples. The first positive sample and the first negative sample have similar overall probabilities, and the target positive samples screened based on the first positive sample and the target negative samples screened based on the first negative sample satisfy both the similar overall probabilities and the same probability distribution of features, which reduces the difference between the experimental group and the control group, and makes the impact of the evaluated negative behavior more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 is a block diagram of a test evaluation system according to some embodiments of the present application;

[0046] Figure 2 A schematic diagram of the structure of an electronic device provided by some embodiments of the present application is shown;

[0047] Figure 3 A flow chart of a test evaluation method provided by an embodiment of the present application is shown;

[0048] Figure 4 A flow chart of a test evaluation method provided by an embodiment of the present application is shown;

[0049] Figure 5 A flow chart of a test evaluation method provided by an embodiment of the present application is shown;

[0050] Figure 6 A flow chart of a test evaluation method provided by an embodiment of the present application is shown;

[0051] Figure 7 A structural diagram of a test and evaluation device provided in an embodiment of the present application is shown;

[0052] Figure 8 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0053] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0054] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0055] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0056] The terms "passenger", "requester", "attendant", "service requester" and "customer" in this application are used interchangeably to refer to individuals, entities or tools that can request or order services. The terms "driver", "provider", "service provider" and "supplier" in this application are used interchangeably to refer to individuals, entities or tools that can provide services.

[0057] Figure 1 A block diagram of a test evaluation system 100 of some embodiments of the present application is shown. For example, the test evaluation system 100 may be an online transportation service platform for transportation services such as taxis, chauffeur services, express trains, carpooling, bus services, driver rentals, or shuttle services, or any combination thereof. The test evaluation system 100 may include one or more of a server 110, a network 120, a service requester terminal 130, a service provider terminal 140, and a database 150, and the server 110 may include a processor for executing instruction operations.

[0058] In some embodiments, the server 110 may be a single server or a server group. The server group may be centralized or distributed (for example, the server 110 may be a distributed system). In some embodiments, the server 110 may be local or remote relative to the terminal. For example, the server 110 may access information and / or data stored in the service requester terminal 130, the service provider terminal 140, or the database 150, or any combination thereof, via the network 120. As another example, the server 110 may be directly connected to at least one of the service requester terminal 130, the service provider terminal 140, and the database 150 to access the stored information and / or data. In some embodiments, the server 110 may be implemented on a cloud platform; as an example only, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an inter-cloud, a multi-cloud, etc., or any combination thereof. In some embodiments, the server 110 may be implemented on a cloud platform having the cloud computing capabilities described in this application. Figure 2 One or more of the components shown are implemented on the electronic device 200 .

[0059] In some embodiments, the server 110 may include a processor. The processor may process information and / or data related to the service request to perform one or more functions described in the present application. For example, the processor may obtain a first positive sample and a first negative sample. In some embodiments, the processor may include one or more processing cores (e.g., a single-core processor (S) or a multi-core processor (S)). By way of example only, the processor may include a central processing unit (CPU), an application specific integrated circuit (ASIC), an application specific instruction set processor (ASIP), a graphics processing unit (GPU), a physical processing unit (PPU), a digital signal processor (DSP), a field programmable gate array (FPGA), a programmable logic device (PLD), a controller, a microcontroller unit, a reduced instruction set computer (RISC), or a microprocessor, or any combination thereof.

[0060] The network 120 can be used for the exchange of information and / or data. In some embodiments, one or more components (e.g., server 110, service requester terminal 130, service provider terminal 140, and database 150) in the test evaluation system 100 can send information and / or data to other components. For example, the server 110 can obtain sample data from the service requester terminal 130 via the network 120. In some embodiments, the network 120 can be any type of wired or wireless network, or a combination thereof. As an example only, the network 120 can include a wired network, a wireless network, an optical fiber network, a telecommunication network, an intranet, the Internet, a local area network (LAN), a wide area network (WAN), a wireless local area network (WLAN), a metropolitan area network (MAN), a wide area network (WAN), a public switched telephone network (PSTN), a Bluetooth network, a ZigBee network, or a near field communication (NFC) network, or any combination thereof. In some embodiments, the network 120 may include one or more network access points. For example, the network 120 may include a wired or wireless network access point, such as a base station and / or a network switching node, through which one or more components of the test evaluation system 100 may connect to the network 120 to exchange data and / or information.

[0061] The database 150 may store data and / or instructions. In some embodiments, the database 150 may store data obtained from the service requester terminal 130 and / or the service provider terminal 140. In some embodiments, the database 150 may store data and / or instructions of the exemplary methods described in the present application. In some embodiments, the database 150 may include a mass storage device, a removable storage device, a volatile read-write memory, or a read-only memory (ROM), etc., or any combination thereof. As an example, mass storage may include magnetic disks, optical disks, solid-state drives, etc.; removable storage may include flash drives, floppy disks, optical disks, memory cards, zip disks, magnetic tapes, etc.; volatile read-write storage may include random access memory (Random Access Memory, RAM); RAM may include dynamic RAM (Dynamic RandomAccess Memory, DRAM), double data rate synchronous dynamic RAM (Double Date-Rate Synchronous RAM, DDR SDRAM); static RAM (Static Random-Access Memory, SRAM), thyristor RAM (Thyristor-Based Random Access Memory, T-RAM) and zero capacitor RAM (Zero-RAM), etc. As an example, ROM may include mask ROM (Mask Read-Only Memory, MROM), programmable ROM (Programmable Read-Only Memory, PROM), erasable programmable ROM (Programmable Erasable Read-only Memory, PEROM), electrically erasable programmable ROM (Electrically Erasable Programmable read only memory, EEPROM), CD-ROM (CD-ROM), and digital versatile disk ROM, etc. In some embodiments, database 150 can be implemented on a cloud platform. As an example only, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, a cross-cloud, a multi-cloud, or other similar, etc., or any combination thereof.

[0062] In some embodiments, the database 150 may be connected to the network 120 to communicate with one or more components in the test evaluation system 100 (e.g., the server 110, the service requester terminal 130, the service provider terminal 140, etc.). One or more components in the test evaluation system 100 may access data or instructions stored in the database 150 via the network 120. In some embodiments, the database 150 may be directly connected to one or more components in the test evaluation system 100 (e.g., the server 110, the service requester terminal 130, the service provider terminal 140, etc.); or, in some embodiments, the database 150 may also be part of the server 110.

[0063] Figure 2 A schematic diagram showing exemplary hardware and software components of an electronic device 200 of a server 110 that can implement the concept of the present application according to some embodiments of the present application. For example, a processor 220 can be used on the electronic device 200 and used to perform the functions in the present application.

[0064] The electronic device 200 can be a general-purpose computer or a special-purpose computer, both of which can be used to implement the test evaluation method of the present application. Although only one computer is shown in the present application, for convenience, the functions described in the present application can be implemented in a distributed manner on multiple similar platforms to balance the processing load.

[0065] For example, the electronic device 200 may include a network port 210 connected to a network, one or more processors 220 for executing program instructions, a communication bus 230, and storage media 240 in different forms, such as disks, ROMs, or RAMs, or any combination thereof. Exemplarily, the computer platform may also include program instructions stored in ROMs, RAMs, or other types of non-transitory storage media, or any combination thereof. The method of the present application may be implemented according to these program instructions. The electronic device 200 also includes an input / output (I / O) interface 250 between the computer and other input / output devices (e.g., keyboards, display screens).

[0066] For ease of explanation, only one processor is described in the electronic device 200. However, it should be noted that the electronic device 200 in the present application may also include multiple processors, so the steps performed by one processor described in the present application may also be performed jointly or individually by multiple processors. For example, if the processor of the electronic device 200 performs step A and step B, it should be understood that step A and step B may also be performed jointly by two different processors or individually in one processor. For example, the first processor performs step A, the second processor performs step B, or the first processor and the second processor perform steps A and B together.

[0067] The test evaluation method provided in the embodiment of the present application can be executed by the server 110, which can be called an application server. In addition, the execution subject can be an independent test server or test terminal, which is not specifically limited in the embodiment of the present application. The following explanation is given by taking the server as an example.

[0068] Figure 3 A flow chart of a test evaluation method provided in an embodiment of the present application is shown. Figure 3 As shown, the method may include:

[0069] S101. Using a preset sampling model, determine the joint probability distribution of multiple features in multiple first positive samples, and select multiple target positive samples with the same joint probability distribution from the multiple first positive samples.

[0070] The first positive sample includes: data of the service recipient who receives negative behavior from the service provider. For example, in a driver-passenger service, the service provider may be the driver and the service recipient may be the passenger, and the first sample may be data of the passenger who receives negative behavior from the driver.

[0071] In addition, each feature may include: attribute features of the service recipient and behavioral features of the service recipient. Optionally, negative behaviors may include at least one of the following: malicious cancellation of an order by a service provider, overcharging of an additional fee by a service provider, charging of fees by a service provider without providing a service, failure of a service provider to arrive at a designated location on time, etc. Of course, other types of negative behaviors that affect the experience of the service recipient may also be used, and the embodiments of the present application do not impose specific restrictions on this.

[0072] In some embodiments, each first positive sample may include multiple features, and each feature includes corresponding multiple feature data. The server may adopt a preset sampling model to select target feature data from the multiple feature data corresponding to each feature according to the determined joint probability distribution of the multiple features, thereby obtaining the target feature data corresponding to each feature, that is, obtaining the target positive sample.

[0073] It should be noted that, if the joint probability distribution of the multiple target positive samples selected from the first positive sample is the same, then the data corresponding to each feature in the selected multiple target positive samples are similar, that is, the difference between the multiple target positive samples is extremely small.

[0074] S102. According to the target positive sample, select a target negative sample having the same joint probability distribution from the first negative sample.

[0075] The first negative sample includes: data of the service recipient who has not received any negative behavior from the service provider, and the overall impact probability of multiple features in the first positive sample and the first negative sample on the negative behavior is within a preset range.

[0076] In a possible implementation, the joint probability distribution of the target positive samples is the same, and the joint probability distribution of the target negative samples selected from the first negative samples based on the target positive samples is also the same, that is, the selected target negative samples are slightly different.

[0077] In the embodiment of the present application, the target positive sample and the target negative sample, in addition to the different characteristics of whether or not negative behavior is received, the target characteristics (research objects) may also be different. The feature data corresponding to other features in the target positive sample and the target negative sample may be the same or similar, and the embodiment of the present application does not specifically limit this. Other features may be the remaining features in multiple features except negative behavior features and target features. Among them, the target feature may also be referred to as a research factor, and the negative behavior may be referred to as an intervention measure.

[0078] In addition, on the basis that the overall probabilities of the first positive sample and the first negative sample are within a preset range, the joint probability of the target negative sample selected from the first negative sample according to the target positive sample is also the same. Therefore, the obtained samples satisfy both the similarity of the overall probability and the same probability distribution of the features.

[0079] It should be noted that the similarity of the overall probabilities of the first positive sample and the first negative sample means that the probabilities for the preset independent variables are similar. When the overall probabilities are similar, the distribution of the first positive sample and the first negative sample in each feature will be different, that is, a single variable will be different.

[0080] S103: Based on the first positive sample and the target negative sample, test and evaluate the impact of the negative behavior.

[0081] The server may evaluate the impact of the negative behavior on the target feature based on the first positive sample and the target negative sample.

[0082] In a possible implementation, the server may collect statistics on the feature data corresponding to the target feature in the first sample; it may also collect statistics on the scoring feature data corresponding to the target feature in the target sample, and evaluate the impact of negative behavior on the target feature based on the statistical data.

[0083] It should be noted that the target feature can be the order quantity, that is, the number of orders placed by the service recipient, or the number of positive reviews, that is, whether the server recipient gives a positive review to the service provider, or other features to be studied, and the embodiments of the present application do not impose specific restrictions on this.

[0084] In addition, the target negative sample can also be called the control group, and the sample to which the first positive sample belongs can be called the experimental group. In the embodiment of the present application, the joint probability distribution of the obtained control group and experimental group data is the same. Therefore, the difference between the control group and the experimental group is very small, and the two groups of data satisfy both the overall probability similarity and the feature same probability distribution. On this basis, when evaluating the impact of negative behavior on the target feature, the evaluation result obtained is also more accurate.

[0085] In the embodiment of the present application, when studying the impact of negative behaviors on target features, directly conducting online tests will affect the driver and passenger experience. Therefore, offline simulation tests can be conducted by tracing back historical data.

[0086] In summary, the embodiment of the present application provides a test evaluation method, which may include: using a preset sampling model to determine the joint probability distribution of multiple features in multiple first positive samples, and selecting multiple target positive samples with the same joint probability distribution from the multiple first positive samples; selecting target negative samples with the same joint probability distribution from the first negative samples according to the target positive samples; and testing and evaluating the impact of negative behavior according to the first positive samples and the target negative samples. The first positive sample and the first negative sample have similar overall probabilities. The target positive samples screened based on the first positive samples and the target negative samples screened based on the first negative samples satisfy both the similar overall probabilities and the same probability distribution of features, which reduces the difference between the experimental group and the control group, and makes the impact of the evaluated negative behavior more accurate.

[0087] Optional, Figure 4 A flow chart of a test evaluation method provided in an embodiment of the present application is shown. Figure 4 As shown, before the process of using a preset sampling model to determine the joint probability distribution of multiple features in multiple first positive samples in S101, the method may also include:

[0088] S201 . Using a preset propensity score matching model, and according to preset independent variables, respectively determining a first positive sample and a first negative sample from a second positive sample and a second negative sample.

[0089] The preset independent variables are multiple features. The second positive sample can be the original data of the service recipient who has received the negative behavior of the service provider; the second negative sample can be the original data of the service recipient who has not received the negative behavior of the service provider. In the embodiment of the present application, the negative behavior can also be referred to as malicious behavior.

[0090] In addition, the second positive sample and the second negative sample may be data collected from multiple service recipients online in a preset time period. The preset time period may be two weeks or one month, and may also be set according to actual needs or experience values, and the present application embodiment does not impose specific restrictions on this.

[0091] In an embodiment of the present application, a second positive sample and a second negative sample can be collected from online service data, and then the preset independent variables in the second positive sample and the second negative sample are determined, and then the second positive sample and the second negative sample are preprocessed to obtain the preprocessed second positive sample and the second negative sample. The preprocessed second positive sample and the second negative sample are input into a preset propensity score matching model, and the preset propensity score matching model can process the preprocessed second positive sample and the second negative sample, and output the first positive sample and the first negative sample. Among them, the preprocessing may include but is not limited to data cleaning processing, feature processing, etc.

[0092] The preset independent variables may be determined based on the negative behavior, and may be multiple features that are associated with the negative behavior. The preset independent variables may be called confounding variables, for example, the preset independent variables may include service provider labels, historical behaviors, and the like.

[0093] In some embodiments, the preset propensity score matching model may be a PSM (Propensity Score Matching) model, which determines the first positive sample from the second positive sample based on a preset independent variable; and determines the first negative sample from the second negative sample based on the overall probability of the first positive sample. The overall probabilities of the first positive sample and the first negative sample may be the same, and the overall probabilities of the two may also be within a preset range, which is not specifically limited in the embodiments of the present application.

[0094] It should be noted that the PSM model is a statistical method that can weaken the influence of confounding variables between the first positive sample and the first negative sample, eliminate interference factors, and make the overall probability between the first positive sample and the first negative sample the same.

[0095] In practical applications, the number of first negative samples may be much larger than the number of first positive samples. For example, the number of first positive samples: the number of second negative samples=1:n, where n is greater than 1.

[0096] In summary, the preset propensity score matching model is used to determine the first positive sample and the first negative sample from the second positive sample and the second negative sample according to the preset independent variable. The first positive sample and the first negative sample are selected using the preset propensity score matching model, so that the overall probabilities of the selected first positive sample and the first negative sample are closer or the same.

[0097] Optionally, the process of using a preset sampling model in S101 to determine the joint probability distribution of multiple features in multiple first positive samples may include:

[0098] A sampling model is adopted to respectively determine the conditional probability of each feature in the plurality of first positive samples, and a joint probability distribution is obtained based on the conditional probabilities of the plurality of features.

[0099] The conditional probability of each feature may be the conditional probability of other features under each feature.

[0100] In a possible implementation, the first positive sample is input into the sampling model, and the sampling model can screen the first positive sample to obtain and output a target positive sample. When the sampling model screens the first positive sample, it can determine the conditional probability of each feature in the multiple features, and then determine the joint probability distribution; the server can use the sampling model to select samples that meet the joint probability distribution from the multiple first positive samples as multiple target positive samples, and each target positive sample has the same probability distribution.

[0101] For example, multiple features may be: A, B, C, D, E, and the conditional probability of each feature may be P(A|B,C,D,E), P(B|A,C,D,E), P(C|A,B,D,E), P(D|A,B,C,E), P(E|A,B,C,D). Among them, P(A|B,C,D,E) represents the probability of feature A occurring under features B,C,D,E; P(B|A,C,D,E) represents the probability of feature B occurring under features A,C,D,E; P(C|A,B,D,E) represents the probability of feature C occurring under features A,B,D,E; P(D|A,B,C,E) represents the probability of feature D occurring under features A,B,C,E; and P(E|A,B,C,D) represents the probability of feature E occurring under features A,B,C,D.

[0102] In addition, if in the first positive sample, the feature data corresponding to a sample all satisfy P(A|B,C,D,E), P(B|A,C,D,E), P(C|A,B,D,E), P(D|A,B,C,E), P(E|A,B,C,D), then the sample can be used as the target positive sample.

[0103] It should be noted that the multiple first positive samples may be an experimental group, and the multiple target negative samples may be a control group.

[0104] In the embodiment of the present application, multiple first positive samples can be distributed in a table, the first row of the table can be multiple features, the first column of the table can be multiple service providers, and for the same row of data, that is, the data of the same service provider, different feature data can be filled in the corresponding column to correspond to the corresponding features. When selecting a target positive sample from multiple first positive samples, the feature data of each row in the table can be traversed in turn.

[0105] In summary, the sampling model is used to determine the conditional probability of each feature in multiple first positive samples, and the joint probability distribution is obtained based on the conditional probabilities of multiple features. This makes the selected target positive samples more accurate, that is, better meet the joint probability distribution, and also improves the screening efficiency.

[0106] Optionally, the sampling model may be a Gibbs sampling model, or may be other types of models capable of screening a target positive sample from a plurality of first positive samples, and the embodiment of the present application does not impose any specific limitation on this.

[0107] Optionally, according to the target positive sample, selecting a target negative sample having the same joint probability distribution from the first negative sample includes:

[0108] According to the data of each feature in the target positive sample, a target negative sample is selected from the first negative sample, which has the same joint probability distribution and a data deviation of the same type of feature within a preset range.

[0109] In a possible implementation, the server may select candidate negative samples with the same joint probability distribution from the first negative samples, and then use samples with data deviations of the same type of features in the candidate negative samples within a preset range as target negative samples.

[0110] In another possible implementation, for each target positive sample, the server may select a sample having the same data as each feature in the positive sample from the first negative sample as a negative sample; wherein each feature may not include negative behavior features and research features.

[0111] For example, the characteristics of a target positive sample include: gender, age, number of complaints, number of negative reviews, and whether it has been subjected to malicious behavior. The corresponding characteristic data are: male, 26, 3, 4, yes; the negative sample selected based on the target positive sample, the corresponding characteristic data can be: male, 26, 4, 3, no, or: male, 26, 3, 4, no.

[0112] In summary, according to the data of each feature in the target positive sample, a target negative sample with the same joint probability distribution and the data deviation of the same type of feature within a preset range is selected from the first negative sample, so that the obtained target negative sample can satisfy both the same joint probability distribution and the quantity requirement.

[0113] Optional, Figure 5 A flow chart of a test evaluation method provided in an embodiment of the present application is shown. Figure 5 As shown, the process of testing and evaluating the impact of the negative behavior according to the first positive sample and the target negative sample in S103 may include:

[0114] S301: Use a preset evaluation model to evaluate a first positive sample and a target negative sample to obtain an evaluation value.

[0115] The evaluation value can be used to characterize whether the first positive sample and the target negative sample obtained by screening are random.

[0116] In some embodiments, the preset evaluation model may be an AUC (Area Under Curve) model. The first positive sample and the target negative sample are input into the AUC model, and the AUC model may output an evaluation value, based on which it may be determined whether the experimental group and the control group have randomness.

[0117] It should be noted that AUC is an evaluation indicator of the binary classification model. The evaluation value can be between 0.5 and 1. When the evaluation value is 1, it means that the model can completely correctly predict the positive and negative samples and has no randomness; when the evaluation value is 0.5, it means that there is no pattern and it is completely random.

[0118] In an embodiment of the present application, the server may calculate the evaluation values ​​of the first positive sample and the target negative sample, and if the evaluation values ​​meet the preset conditions, it indicates that the first positive sample and the target negative sample obtained are random. The preset conditions may be determined based on 0.5.

[0119] S302: If the evaluation value meets the preset conditions, an analysis is performed based on the first positive sample and the target negative sample to determine the influence coefficient of the negative behavior.

[0120] In a possible implementation, the preset condition may be 0.5. If the evaluation value is equal to 0.5, the first positive sample and the target negative sample are random. Then, analysis may be performed based on the first positive sample and the target negative sample to determine the influence coefficient of the negative behavior.

[0121] In another possible implementation, the server can calculate the absolute value of the difference between the evaluation value and 0.5, and determine whether the absolute value is less than a preset threshold. If the absolute value is less than the preset threshold, the first positive sample and the target negative sample are random, and then analysis is performed based on the first positive sample and the target negative sample to determine the impact coefficient of the negative behavior.

[0122] It should be noted that the server may also use other models or algorithms to evaluate the randomness between the first positive sample and the target negative sample, and the embodiments of the present application do not impose specific limitations on this.

[0123] In summary, the randomness of the first positive sample and the target negative sample is evaluated. If the evaluation value meets the preset conditions, an analysis is performed based on the first positive sample and the target negative sample to determine the influence coefficient of the negative behavior, so that the confidence of the impact of the evaluated negative behavior is higher.

[0124] Optionally, the method further includes:

[0125] If the evaluation value does not meet the preset conditions, the model parameters of the sampling model and the propensity score matching model are updated according to the evaluation value.

[0126] The server may update the model parameters of the sampling model and / or the propensity score matching model according to the evaluation value. That is, the server may only update the model parameters of the sampling model or the propensity score matching model, or may update the model parameters of the sampling model and the propensity score matching model at the same time, which is not specifically limited in the embodiments of the present application.

[0127] Optionally, the server may select a model to be updated according to the size of the evaluation value, and then update the model parameters of the corresponding model to be updated. The model to be updated may include: a sampling model and a propensity score matching model.

[0128] In a possible implementation, if the absolute value of the difference between the evaluation value and 0.5 is greater than or equal to a preset threshold, the first positive sample and the target negative sample are not random. That is, it means that the samples selected by the sampling model and the propensity score matching model are unqualified. Therefore, the model parameters of the sampling model and the propensity score matching model can be updated; so as to screen out the first positive sample and the target negative sample with randomness based on the updated sampling model and the updated propensity score matching model.

[0129] To sum up, when the evaluation value does not meet the preset conditions, the model parameters of the sampling model and the propensity score matching model are updated according to the evaluation value, thereby realizing intelligent optimization of the sampling model and the propensity score matching model, so that the first positive sample and the target negative sample selected based on the sampling model and the propensity score matching model are more random.

[0130] Optional, Figure 6 A flow chart of a test evaluation method provided in an embodiment of the present application is shown. Figure 6 As shown, in the above S302, the process of analyzing the first positive sample and the target negative sample to determine the influence coefficient of the negative behavior may include:

[0131] S401 . Determine, from the first positive sample and the target negative sample, a first data group and a second data group corresponding to each negative behavior.

[0132] Optionally, negative behaviors may include at least one of the following: malicious cancellation of an order by a service provider, overcharging of a service provider, charging of fees by a service provider without providing a service, failure of a service provider to arrive at a designated location on time, etc. Each negative behavior may have a corresponding first positive sample and a target negative sample, that is, each may have a corresponding experimental group and a control group.

[0133] In some embodiments, for each negative behavior, the feature data for the target feature (research feature) in the corresponding first positive sample is counted to obtain a first data group; the feature data for the target feature in the corresponding target negative sample is counted to obtain a second data group, thereby obtaining a first data group and a second data group corresponding to each negative behavior.

[0134] For example, the negative behavior may be that the service provider maliciously cancels an order, and the target feature may be the number of orders. For the first data group and the second data group corresponding to the service provider maliciously canceling an order, the first data group may represent the number of orders per capita in the first positive sample, and the second data group may represent the number of orders per capita in the target negative sample.

[0135] Of course, the first data group may also represent the total number of orders issued in the first positive sample, and the second data group may represent the total number of orders issued in the target negative sample. The embodiment of the present application does not impose any specific restrictions on this.

[0136] S402: Calculate the influence coefficient of each negative behavior according to the deviation of the influence characteristic data of each negative behavior in the first data group and the second data group.

[0137] There may be multiple negative behaviors, for example, there may be more than ten or dozens of negative behaviors, and each negative behavior has a corresponding influence coefficient.

[0138] In a possible implementation, for each first data group and second data group of each negative behavior, a difference between the first data group and the second data group is calculated, and then an influence coefficient of the corresponding negative behavior is calculated according to the difference.

[0139] For example, with respect to the negative behavior of maliciously canceling orders by the service provider, the first data group represents the average number of orders issued per capita in the first positive sample, and the second data group represents the average number of orders issued per capita in the target negative sample. The difference between the average number of orders issued per capita between the two can be used as the influence coefficient of malicious order cancellation (negative behavior) by the service provider on the order volume (target feature).

[0140] In another possible implementation, for each negative behavior, the first data group and the second data group are compared to obtain a comparison result, and then the influence coefficient of the corresponding negative behavior is calculated according to the comparison result.

[0141] It should be noted that the server may also determine the influence coefficient corresponding to each negative behavior based on the first data group and the second data group corresponding to each negative behavior, and the embodiment of the present application does not impose any specific limitation on this.

[0142] Optionally, the method further includes:

[0143] According to the influence coefficient of each negative behavior, the reference data of the punishment strategy corresponding to the negative behavior is obtained.

[0144] The reference data of the penalty strategy may be penalty reference data for the service provider.

[0145] In some implementations, the service provider that has engaged in negative behavior may be punished accordingly based on the reference data of the punishment strategy corresponding to the negative behavior. Optionally, the punishment method may include: deducting the score of the service provider, and different negative behaviors may correspond to different deductions of the service provider's score; the higher the score of the service provider, the higher the credibility of the service provider; the lower the score of the service provider, the lower the credibility of the service provider.

[0146] For example, the initial score of the service provider can be 100 points; the impact coefficient of the service provider overcharging additional fees and charging fees for not providing services is greater than the impact coefficient of the service provider maliciously canceling orders. Then the deduction value corresponding to the service provider maliciously canceling orders can be 5 points, the deduction value corresponding to the service provider overcharging additional fees can be 10 points, and the deduction value corresponding to the service provider charging fees for not providing services can be 10 points. If the service provider maliciously cancels orders twice and overcharges additional fees twice, the score of the service provider can be updated to 70 points.

[0147] In summary, a preset sampling model is used to determine the joint probability distribution of multiple features in multiple first positive samples, and multiple target positive samples with the same joint probability distribution are selected from the multiple first positive samples; based on the target positive samples, target negative samples with the same joint probability distribution are selected from the first negative samples; based on the first positive samples and the target negative samples, the impact of negative behavior is tested and evaluated. The overall probabilities of the first positive sample and the first negative sample are similar. The target positive samples screened based on the first positive samples and the target negative samples screened based on the first negative samples satisfy both the similar overall probabilities and the same probability distribution of features, which reduces the difference between the experimental group and the control group, making the impact of the negative behavior evaluated more accurate. Moreover, based on the accurate replacement of the impact of the negative behavior evaluated, the reference data of the determined penalty strategy is also more accurate, and the score of the service provider determined based on the reference data of the penalty strategy is also more accurate, thereby improving the user experience.

[0148] The following describes the test evaluation device, electronic device, storage medium, etc. used to execute the test evaluation method provided by this application. Its specific implementation process and technical effects can be found in the relevant content of the above-mentioned test evaluation method, which will not be repeated below.

[0149] Figure 7 A structural diagram of a test and evaluation device provided in an embodiment of the present application is shown. Figure 7 As shown, the functions implemented by the test evaluation device correspond to the steps performed by the above method. The device can be understood as the above server, or the processor of the server, or it can be understood as a component independent of the above server or processor that implements the functions of the present application under the control of the server, such as Figure 7 As shown, the device may include:

[0150] The determination module 701 is used to determine the joint probability distribution of multiple features in multiple first positive samples using a preset sampling model, and select multiple target positive samples with the same joint probability distribution from the multiple first positive samples; wherein the first positive samples include: data of the service recipient who receives the negative behavior of the service provider;

[0151] The selection module 702 is used to select a target negative sample with the same joint probability distribution from the first negative sample according to the target positive sample; the first negative sample includes: data of the service recipient who has not received the negative behavior of the service provider, and the overall influence probability of multiple features in the first positive sample and the first negative sample on the negative behavior is within a preset range;

[0152] The evaluation module 703 is used to test and evaluate the impact of the negative behavior based on the first positive sample and the target negative sample.

[0153] Optionally, the device further comprises:

[0154] The first determination module is used to respectively determine the first positive sample and the first negative sample from the second positive sample and the second negative sample according to the preset independent variables by using the preset propensity score matching model; the preset independent variables are multiple features.

[0155] Optionally, the determination module 701 is also used to adopt a sampling model to determine the conditional probability of each feature in multiple first positive samples respectively, and obtain a joint probability distribution based on the conditional probabilities of multiple features; wherein the conditional probability of each feature is the conditional probability of other features under each feature.

[0156] Optionally, the selection module 702 is further configured to select, from the first negative sample, a target negative sample having the same joint probability distribution and a data deviation of the same type of feature within a preset range, based on the data of each feature in the target positive sample.

[0157] Optionally, the evaluation module 703 is further used to use a preset evaluation model to evaluate the first positive sample and the target negative sample to obtain an evaluation value; if the evaluation value meets a preset condition, an analysis is performed based on the first positive sample and the target negative sample to determine the influence coefficient of the negative behavior.

[0158] Optionally, the device further comprises:

[0159] The updating module is used to update the model parameters of the sampling model and the propensity score matching model according to the evaluation value if the evaluation value does not meet the preset conditions.

[0160] Optionally, the evaluation module 703 is also used to determine the first data group and the second data group corresponding to each negative behavior from the first positive sample and the target negative sample, respectively; and calculate the influence coefficient of each negative behavior based on the deviation of the influence characteristic data of each negative behavior in the first data group and the second data group.

[0161] Optionally, the device further comprises:

[0162] The acquisition module is used to obtain reference data of the penalty strategy corresponding to the negative behavior according to the influence coefficient of each negative behavior.

[0163] The above modules can be connected or communicated with each other via wired connection or wireless connection. The wired connection may include metal cables, optical cables, hybrid cables, etc., or any combination thereof. The wireless connection may include a connection in the form of LAN, WAN, Bluetooth, ZigBee, or NFC, or any combination thereof. Two or more modules may be combined into a single module, and any module may be divided into two or more units. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the coupling or direct coupling or communication connection between each other shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0164] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0165] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0166] It should be noted that the above modules can be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module above is implemented in the form of a processing element scheduling program code, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program codes. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0167] Figure 8 A structural diagram of an electronic device provided in an embodiment of the present application is shown. Figure 8 As shown, the electronic device may include: a processor 801 and a memory 802, wherein:

[0168] The memory 802 is used to store programs, and the processor 801 calls the programs stored in the memory 802 to execute the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.

[0169] It should be noted that electronic devices can be Figure 1 The server 110 may also be an independent test server or test terminal, which is not specifically limited in the embodiments of the present application.

[0170] Optionally, the present invention also provides a program product, such as a computer-readable storage medium, comprising a program, which is used to execute the above method embodiment when executed by a processor.

[0171] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A test evaluation method, characterized in that: include: Using a preset sampling model, determining a joint probability distribution of multiple features in a plurality of first positive samples, and selecting a plurality of target positive samples having the same joint probability distribution from the plurality of first positive samples; wherein the first positive samples include data of a service recipient who has received a negative action from a service provider; Selecting, from the first negative samples, a target negative sample having the same joint probability distribution as the target positive sample; the first negative sample comprising data of a service recipient who has not received any negative behavior from the service provider, wherein the overall probability of the multiple features in the first positive sample and the first negative sample having an impact on the negative behavior is within a preset range; Performing a test and evaluation on the impact of the negative behavior based on the first positive sample and the target negative sample; Among them, the test evaluation method includes: statistics on the feature data corresponding to the target feature in the first positive sample, statistics on the scoring feature data corresponding to the target feature in the target negative sample, or using a preset evaluation model to evaluate the first positive sample and the target negative sample.

2. The method according to claim 1, characterized in that Before determining the joint probability distribution of the plurality of features in the plurality of first positive samples using the preset sampling model, the method further includes: A preset propensity score matching model is adopted, and according to preset independent variables, the first positive sample and the first negative sample are respectively determined from the second positive sample and the second negative sample; the preset independent variables are the multiple features.

3. The method according to claim 1, wherein the step of using a preset sampling model to determine the joint probability distribution of multiple features in multiple first positive samples comprises: Using the sampling model, respectively determining the conditional probability of each feature in the plurality of first positive samples, and obtaining the joint probability distribution based on the conditional probabilities of the plurality of features; The conditional probability of each feature is the conditional probability of other features under each feature.

4. The method according to claim 1, wherein The selecting, according to the target positive sample, a target negative sample having the same joint probability distribution from the first negative samples includes: According to the data of each feature in the target positive sample, the target negative sample is selected from the first negative sample, which has the same joint probability distribution and a data deviation of the same type of feature within a preset range.

5. The method according to claim 2, characterized in that The testing and evaluating of the impact of the negative behavior based on the first positive sample and the target negative sample includes: Using a preset evaluation model, the first positive sample and the target negative sample are evaluated to obtain an evaluation value; If the evaluation value meets a preset condition, an analysis is performed based on the first positive sample and the target negative sample to determine the influence coefficient of the negative behavior.

6. The method according to claim 5, characterized in that The method further comprises: If the evaluation value does not meet the preset conditions, the model parameters of the sampling model and the propensity score matching model are updated according to the evaluation value.

7. The method according to claim 5, characterized in that The analyzing the first positive sample and the target negative sample to determine the influence coefficient of the negative behavior includes: Determining, from the first positive samples and the target negative samples, a first data group and a second data group corresponding to each negative behavior; An influence coefficient of each negative behavior is calculated according to a deviation of the influence characteristic data of each negative behavior in the first data group and the second data group.

8. A test and evaluation device, characterized in that: include: a determination module configured to determine a joint probability distribution of a plurality of features in a plurality of first positive samples using a preset sampling model, and select a plurality of target positive samples from the plurality of first positive samples that have the same joint probability distribution; wherein the first positive samples include data of a service recipient that has received a negative action from a service provider; Selecting, from the first negative samples, a target negative sample having the same joint probability distribution as the target positive sample; the first negative sample comprising data of a service recipient who has not received any negative behavior from the service provider, wherein the overall probability of the multiple features in the first positive sample and the first negative sample having an impact on the negative behavior is within a preset range; Performing a test and evaluation on the impact of the negative behavior based on the first positive sample and the target negative sample; Among them, the test evaluation method includes: statistics on the feature data corresponding to the target feature in the first positive sample, statistics on the scoring feature data corresponding to the target feature in the target negative sample, or using a preset evaluation model to evaluate the first positive sample and the target negative sample.

9. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the storage medium communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of the test and evaluation method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the steps of the test and evaluation method according to any one of claims 1 to 7.