Data processing method and device, equipment, storage medium and program product
By simulating interactive sessions and continuous testing, it solves the problem of lack of interactivity and immersion in traditional anti-fraud propaganda, and improves the public's ability to identify online fraud scenarios and the effectiveness of information output.
Patent Information
- Application Number
- CN202410599442.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-13
- Publication Date
- 2024-09-17
AI Technical Summary
Traditional methods lack interactivity and immersion in anti-fraud propaganda, making it difficult to improve people's ability to identify online fraud scenarios, and the effectiveness of information output is low.
By simulating the interactive session, the interactive session is determined from the script to be exercised. The target object responds through the back-and-forth dialogue interaction, identifies its intention, and calculates the exercise score based on the reply. The test continues until the conditions are met, improving the effectiveness of the information output.
It improves the target object's ability to identify deceptive conversations in real scenarios, enhances the effectiveness and publicity effect of information output, and enhances the public's anti-fraud awareness and ability.
Smart Images

Figure CN118656456A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data processing method, apparatus, device, storage medium and program product. Background Art
[0002] With the rapid development of mobile Internet, online fraud methods are becoming more and more innovative, posing a serious threat to the property and personal safety of the general public. In order to cope with this severe challenge, it is urgent to take action to improve the public's anti-fraud awareness and ability. In traditional methods, anti-fraud knowledge is often output to the public unilaterally in the same way of information output. However, in the face of a variety of fraud scenarios, different people have different abilities to identify different fraud scenarios. Traditional methods cannot achieve effective promotion and have the problem of low effectiveness of information output. Summary of the invention
[0003] Based on this, it is necessary to provide a data processing method, device, computer equipment, computer-readable storage medium and computer program product to address the above-mentioned technical problems, which can improve the effectiveness of information output through multiple simulated interactive conversations, thereby enhancing the target object's ability to identify deceptive conversations in real scenarios.
[0004] In a first aspect, the present application provides a data processing method, comprising:
[0005] Acquire a script to be rehearsed, and determine a first interactive session for testing a target object from the script to be rehearsed;
[0006] Outputting the conversation belonging to the simulated object in the first interactive conversation, and obtaining the target object's response to the conversation;
[0007] Identify the target subject’s intention based on the response and calculate the exercise score based on the intention and response;
[0008] If it is determined based on the practice score that the test end condition is not met, a second interactive session is determined from the script to be practiced based on the intention to test the second interactive session on the target object, otherwise, the test is ended to obtain the test result of the target object.
[0009] In a second aspect, the present application further provides a data processing device, comprising:
[0010] An acquisition module, used for acquiring a script to be rehearsed, and determining a first interactive session for testing a target object from the script to be rehearsed;
[0011] A reply module, used to output the conversation belonging to the simulated object in the first interactive conversation, and obtain the target object's reply to the conversation;
[0012] A recognition module, used to identify the target object's intention based on the reply, and calculate the exercise score based on the intention and the reply;
[0013] The test module is used to determine a second interactive session from the script to be rehearsed based on the intention to test the second interactive session on the target object if it is determined based on the rehearsal score that the test end condition is not met, otherwise, end the test to obtain the test result of the target object.
[0014] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0015] Acquire a script to be rehearsed, and determine a first interactive session for testing a target object from the script to be rehearsed;
[0016] Outputting the conversation belonging to the simulated object in the first interactive conversation, and obtaining the target object's response to the conversation;
[0017] Identify the target subject’s intention based on the response and calculate the exercise score based on the intention and response;
[0018] If it is determined based on the practice score that the test end condition is not met, a second interactive session is determined from the script to be practiced based on the intention to test the second interactive session on the target object, otherwise, the test is ended to obtain the test result of the target object.
[0019] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0020] Acquire a script to be rehearsed, and determine a first interactive session for testing a target object from the script to be rehearsed;
[0021] Outputting the conversation belonging to the simulated object in the first interactive conversation, and obtaining the target object's response to the conversation;
[0022] Identify the target subject’s intention based on the response and calculate the exercise score based on the intention and response;
[0023] If it is determined based on the practice score that the test end condition is not met, a second interactive session is determined from the script to be practiced based on the intention to test the second interactive session on the target object, otherwise, the test is ended to obtain the test result of the target object.
[0024] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0025] Acquire a script to be rehearsed, and determine a first interactive session for testing a target object from the script to be rehearsed;
[0026] Outputting the conversation belonging to the simulated object in the first interactive conversation, and obtaining the target object's response to the conversation;
[0027] Identify the target subject’s intention based on the response and calculate the exercise score based on the intention and response;
[0028] If it is determined based on the drill score that the test end condition is not met, a second interactive session is determined from the to-be-drilled script based on the intention to test the second interactive session on the target object, otherwise, the test is ended to obtain the test result of the target object.
[0029] The above-mentioned data processing method, device, computer equipment, storage medium and computer program product determine the first interactive session for testing the target object from the script to be rehearsed, thereby outputting the session belonging to the simulated object in the first interactive session. In this way, the target object can respond according to its own understanding through a back-and-forth dialogue interaction. Next, the intention of the target object can be accurately identified according to the reply of the target object, so as to understand the degree of trust of the target object in the session belonging to the simulated object, and also know whether the target object recognizes false information. Then, the rehearsal score is calculated according to the intention and the reply, so that it can be determined whether the test end condition is met based on the rehearsal score. In this way, if it is determined that the test end condition is not met, the next session can be pushed to the target object in a targeted manner based on the intention of the target object, so as to continuously test and rehearse the target object until the test result of the target object is obtained when the test is ended, so that the information promoted in the script to be rehearsed can be more effectively reached to the target object, and the target object can deeply understand the promoted information during the test process, thereby improving the effectiveness of information output. Especially when the information to be practiced is related to a conversation with a deceptive nature, the present application can greatly improve the target object's ability to identify the conversation with a deceptive nature in a real scene. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0031] Figure 1 An application environment diagram of a data processing method in an embodiment;
[0032] Figure 2is a flow chart of a data processing method in one embodiment;
[0033] Figure 3 A schematic diagram of a test process in one embodiment;
[0034] Figure 4 A schematic diagram of a multiple-choice question in an embodiment;
[0035] Figure 5 A schematic diagram of a data processing method in a cloud server in one embodiment;
[0036] Figure 6 A schematic diagram of a data processing method in a cloud server in another embodiment;
[0037] Figure 7 A schematic diagram of a data processing method in a terminal device in an embodiment;
[0038] Figure 8 A schematic diagram showing test results in one embodiment;
[0039] Fig. 9 is a structural block diagram of a data processing device in one embodiment;
[0040] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0041] In order to better understand a data processing method, apparatus, computer device, computer-readable storage medium, and computer program product provided in an embodiment of the present application, an application environment applicable to an embodiment of the present application is first described below.
[0042] With the rapid development of mobile Internet, online fraud methods are becoming more and more innovative, posing a serious threat to the property and personal safety of the general public. In order to meet this severe challenge, it is urgent to take action to improve the public's anti-fraud awareness and ability. In traditional methods, anti-fraud knowledge is often output to the target object unilaterally in the same way of information output, for example, using a one-way text or voice communication method. However, this unilateral output method lacks a sense of substitution and one-to-one interactivity, and it is difficult to improve the target object's enthusiasm for learning anti-fraud knowledge. Anti-fraud knowledge cannot be effectively promoted, and there is a problem of low effectiveness of information output. Therefore, there is an urgent need for a data processing method that can improve the effectiveness of anti-fraud information output, so as to improve the target object's ability to recognize deceptive conversations in real scenarios and curb the occurrence of deceptive behavior.
[0043] Based on this, the data processing method proposed in the embodiment of the present application determines the first interactive session for testing the target object from the script to be rehearsed, so as to output the session belonging to the simulated object in the first interactive session by voice or other means, and the target object can reply according to its own understanding through a back-and-forth dialogue interaction. Then accurately identify the intention of the target object based on the reply, so as to understand the degree of trust of the target object in the session belonging to the simulated object, and also know whether the target object recognizes false information. Then, the rehearsal score is calculated according to the intention and the reply, so as to determine whether the test end condition is met based on the rehearsal score. If it is determined that the test end condition is not met, the next session can be pushed to the target object in a targeted manner based on the intention of the target object, until the test result of the target object is obtained when the test is ended, so as to continuously test and rehearse the target object, so that the information promoted in the script to be rehearsed can reach the target object more effectively, and the target object can deeply understand the promoted information during the test, thereby improving the effectiveness of information output. During the interactive test, the target objects learned and experienced real cases in person. The simulation and re-enactment of these cases helped the target objects to have a deeper understanding of the scenarios of deceptive conversations and the deceptive strategies involved. Especially when the information promoted in the script to be rehearsed is related to deceptive conversations, this data processing method makes the anti-fraud propaganda more interactive and interesting, greatly improving the target objects' ability to identify deceptive conversations in real scenarios.
[0044] See also Figure 1 , Figure 1 FIG. 1 is a schematic diagram showing an application environment of a data processing method provided in an embodiment of the present application. As an implementation mode, the data processing method provided in an embodiment of the present application can be applied to a computer device. The computer device can be Figure 1 The server 110 shown in the figure can be connected to the terminal device 120 through a network. The network is used to provide a medium for a communication link between the server 110 and the terminal device 120. The network can include various connection types, such as wired communication links, wireless communication links, etc., which are not limited in the embodiments of the present application. Optionally, in other embodiments, the computer device can also be a smart phone, a laptop computer, etc.
[0045] It should be understood that Figure 1The server 110, network and terminal device 120 are merely illustrative. Depending on the implementation requirements, there may be any number of servers, networks and terminal devices. For example, the server 110 may be a physical server or a server cluster composed of multiple servers, and the terminal device 120 may be a mobile phone, a tablet, a desktop computer, a laptop computer, and the like. It is understood that the embodiments of the present application may also allow multiple terminal devices 120 to access the server 110 at the same time.
[0046] In some embodiments, the terminal device 120 can obtain the script to be rehearsed. Further, the terminal device 120 sends the script to be rehearsed to the server 110 through the network. After the server 110 receives the script to be rehearsed, the script to be rehearsed can be processed by the data processing method described in the embodiment of the present application.
[0047] As another implementation, the data processing method provided in the embodiment of the present application can be applied to different computer devices. For example, computer device A obtains the script to be rehearsed, and computer device B determines each interactive session from the script to be rehearsed; computer C tests the target object through each interactive session, etc. The embodiment of the present application does not limit this.
[0048] In an exemplary embodiment, Figure 2 As shown, a data processing method is provided, which is applied to Figure 1 The terminal device 120 in the example is used as an example to illustrate, including the following steps 201 to 204. Among them:
[0049] Step 201, obtaining a script to be rehearsed, and determining a first interactive session for testing a target object from the script to be rehearsed.
[0050] The script to be rehearsed is a set of interactive sessions related to a specific scenario. The specific scenario is a scenario that simulates a real situation that may be encountered in real life, such as an identity impersonation scenario, a fake recruitment scenario, a fake financial transaction scenario, etc. The target object is the person who is tested using the script to be rehearsed. In some embodiments, the script to be rehearsed can be a script specifically used to test the target object.
[0051] An interactive conversation is a conversation for interaction between simulated objects, and can be specifically a question-and-answer conversation. For example, the interactive conversation includes questions from the first simulated object, and answers from the second simulated object. For another example, the interactive conversation includes questions from the second simulated object, and answers from the first simulated object. The interactive conversation can also be a guided conversation, for example, the interactive conversation includes the guide words from the first simulated object, and the answers from the second simulated object. For another example, the interactive conversation includes the guide words from the second simulated object, and the answers from the first simulated object. Exemplarily, the guide words from the first simulated object are "Please provide identity information for information verification", and the answer from the second simulated object is "The identity information is D".
[0052] The script to be rehearsed includes multiple groups of interactive conversations. The interactive conversations may include multiple forms, for example, the interactive conversations may include at least one of text conversations, voice conversations, and video conversations, and the corresponding conversation sets include at least one of text sets, voice sets, and video sets.
[0053] The first interactive session is the interactive session used at the time in the script to be rehearsed. In some embodiments, the interactive sessions have a preset sequence in the script to be rehearsed, and the terminal device can determine the first interactive session from the script to be rehearsed according to the preset sequence.
[0054] In other embodiments, the interactive sessions do not have a sequence in the script to be rehearsed, and the terminal device can use any untested interactive session as the first interactive session.
[0055] In some other embodiments, the first interactive session may be a session determined based on the intention of the target object's previous reply.
[0056] In the process of testing based on the script to be rehearsed, multiple tests can be performed to improve the effectiveness of information output and the promotion effect on the target object. For example, the first interactive session can be an interactive session in the first test, or an interactive session in the i-th test, where i is a positive integer greater than 1.
[0057] Since different target objects have different abilities to recognize deceptive conversations in different scenarios, for example, the target object has a stronger ability to recognize deceptive conversations in scenario E, but a weaker ability to recognize deceptive conversations in scenario F. Different scenarios have different interactive conversations in the scripts to be practiced. Therefore, the terminal device obtains the scripts to be practiced, and determines the first interactive conversation for testing the target object from the scripts to be practiced, which is conducive to targeted testing of the target object.
[0058] Step 202: output the conversation belonging to the simulated object in the first interactive conversation, and obtain the target object's reply to the conversation.
[0059] The simulated object is an object that outputs a deceptive conversation in the first interactive conversation.
[0060] During the test, the terminal device outputs the conversation belonging to the simulated object in the first interactive conversation, and the output form is not limited to text form, voice form or video form. The target object responds to the conversation output by the terminal device, and the terminal device obtains the target object's response to the conversation. The target object's response can be in a variety of forms, such as text form, voice form or video form.
[0061] Step 203, identifying the intention of the target object according to the reply, and calculating the exercise score according to the intention and the reply.
[0062] The terminal device can understand the semantics of the target object's reply, thereby identifying the intent in the reply. Specifically, the Natural Language Processing (NLP) method can be used to identify the intent of the reply.
[0063] In some embodiments, a rule method based on a dictionary and a template may be used for intent recognition. Different intent dictionaries are provided for different fields, such as the financial field, the identity authentication field, and the like. The terminal device determines the intent of the target object based on the matching degree or overlap degree between the reply and the intent dictionary. For example, the intent in the intent dictionary with a degree of overlap with the reply higher than a preset value is used as the intent of the target object. In other embodiments, a machine learning model method may be used for intent recognition. Through machine learning and deep learning, the conversation corpus with marked intent is trained and learned to obtain an intent recognition model. When the reply is input into the intent recognition model, the model can quickly predict the intent corresponding to the reply. For example, for different fields, the conversation in the relevant field can be used as a sample, and the real intent of the conversation can be used as a label to train the intent recognition model of the field to obtain an intent recognition model suitable for the field. When in use, the target field to which the first interactive conversation belongs can be determined, and the reply can be processed according to the intent recognition model adapted to the target field, and the intent of the target object can be output. This method of dividing by field, using the intent recognition model in the corresponding field for intent recognition, can improve the accuracy of intent recognition.
[0064] Since the conversations belonging to the simulated object are often deceptive conversations, the intention corresponding to the target object's reply can reflect the target object's trust in the conversations belonging to the simulated object. For example, the intentions include cooperation, suspicion, and rejection. For the three intentions of cooperation, suspicion, and rejection, the target object's trust in the conversations belonging to the simulated object decreases in turn.
[0065] The drill score refers to the score obtained by testing the target object using the script to be drilled. A drill score calculation is performed after each interactive session to obtain a drill score. After the last interactive session, the final drill score is obtained.
[0066] The drill score is calculated based on the intent and the response. For different responses, the corresponding drill score can be determined according to different scoring rules. In addition, since the intent is used to characterize the target object's trust in the conversation belonging to the simulated object, different drill scores should be given to the target object for different trust levels. The drill score is used to characterize the target object's ability to recognize the interactive conversation in the drill script. The lower the drill score, the weaker the target object's ability to recognize the interactive conversation with a deceptive nature.
[0067] For example, for the same interactive session, the drill score was lower for the test that represented the intention to cooperate than for the test that represented the intention to refuse.
[0068] Step 204, if it is determined based on the drill score that the test end condition is not met, then based on the intention, determine a second interactive session from the script to be drilled to test the second interactive session on the target object, otherwise, end the test to obtain the test result of the target object.
[0069] The test end condition is a condition for stopping the test on the target object. The terminal device can determine whether the test end condition is met based on the drill score.
[0070] After the first interactive session ends, it is necessary to determine the test end conditions. If it is determined based on the practice score that the test end conditions are not met, a second interactive session is determined by intention to continue testing the target object through the second interactive session.
[0071] Whether the test end condition is met can be determined based on at least one of the drill score, the number of tests, and the number of remaining interactive sessions in the script to be drilled. The number of tests refers to the number of tests performed from the first test to the end of the test when the script to be drilled is used to test the target object. The remaining interactive sessions refer to the interactive sessions remaining in the script to be drilled after removing the interactive sessions that have been tested.
[0072] After each interactive session test, the terminal device will confirm the drill score and count the number of tests and the number of remaining interactive sessions. The terminal device determines whether to end the test based on the drill score, the number of tests, and the number of remaining interactive sessions. The test end condition includes at least one of whether the drill score is less than a preset score threshold, whether the number of tests exceeds a preset number, and whether the number of remaining interactive sessions in the script to be drilled is less than a preset number.
[0073] For example, when the rehearsal score is not less than a preset score threshold, the number of tests does not exceed a preset number, and the number of remaining interactive sessions in the script to be rehearsed is not less than a preset number, it is determined that the test end condition is not met.
[0074] For another example, if any two of the following occur simultaneously: the rehearsal score is not less than a preset score threshold, the number of tests does not exceed a preset number, and the number of remaining interactive sessions in the script to be rehearsed is not less than a preset number, it is determined that the test end condition is not met.
[0075] For another example, if any of the following conditions occurs: the rehearsal score is not less than a preset score threshold, the number of tests does not exceed a preset number, and the number of remaining interactive sessions in the script to be rehearsed is not met, it is determined that the test end condition is not met.
[0076] When testing a target object, at least one conversation interaction is usually performed. Figure 3 The figure shows a schematic diagram of the test process in one embodiment. The conversation of the simulated object is output in the form of voice playback, and the target object replies in the form of voice. Figure 3 The interactive session includes two sessions. For example, in the first interactive session, the simulated object outputs the voice content "Hello, I am the Q system customer service, your service fee has expired, do you need to renew it?", and the target object's voice reply content is "I have never subscribed to this service."
[0077] The second interactive session is an interactive session that the terminal device re-determines from the script to be rehearsed after the first interactive session ends. After the terminal device receives a response from the target object, the first interactive session ends and the second interactive session is re-determined. For example, in the second interactive session, the voice content output by the simulated object is "You can see from the Q system that you have already ordered", and the voice reply content of the target object is "I have indeed ordered and need to renew."
[0078] The second interactive session can be determined according to the intention. For example, the script to be rehearsed includes interactive sessions related to multiple test items. Multiple interactive sessions related to one test item constitute a script segment. For example, the test items include impersonation, forged credit status, etc.
[0079] If the intention is characterized as cooperation, it indicates that the current test item is a weak point of the target object, and the second interactive session is determined from the current test item. If the intention is characterized as rejection, it indicates that the target object has a high recognition ability for the current test item, and a test item that matches the current response can be switched from the script to be rehearsed, so as to determine the second interactive session from the new test item. This method of re-determining the second interactive session based on intention is conducive to timely adjusting the interactive session during the test process according to the target object's trust level in different sessions, and improving the target object's ability to recognize weak points.
[0080] Taking the first interactive session as an interactive session in the i-th test as an example, if the test end condition is not met, the second interactive session is an interactive session in the i+1-th test. The terminal device outputs the session belonging to the simulated object in the second interactive session to continue testing the target object. After the target object responds to the session belonging to the simulated object in the second interactive session, the terminal device obtains the response of the target object and completes the i+1-th test. Similarly, the terminal device identifies the intention of the target object based on the response in the i+1-th test, determines the interactive session in the i+2-th test based on the intention, and continues to test the target object through the new second interactive session, thereby realizing multiple simulation tests on the target object.
[0081] Since the target subject has undergone at least one simulation test, during the test process, continuously testing and rehearsing the interactive conversations with deceptive nature in the rehearsal script is conducive to improving the effectiveness of information output, thereby improving the target subject's ability to recognize conversations in real scenarios similar to the rehearsal script.
[0082] The test result is the result generated at the end of the test based on the script to be drilled, which is used to characterize the target object's recognition of the deceptive conversations in the script to be drilled. For example, the test result may include the final drill score, the drill score of each test, the number of tests, the interactive conversations that were deceived, the number of times deceived, etc.
[0083] When the test end conditions are met, the terminal device can end the test and obtain the test results of the target object.
[0084] For example, if any one of the following occurs: the rehearsal score is less than a preset score threshold, the number of tests exceeds a preset number, and the number of remaining interactive sessions in the script to be rehearsed is less than a preset number, it is determined that the test end condition is met.
[0085] For another example, if any two of the following conditions occur simultaneously: the rehearsal score is less than a preset score threshold, the number of tests exceeds a preset number, and the number of remaining interactive sessions in the script to be rehearsed is less than a preset number, it is determined that the test end condition is met.
[0086] For another example, when the rehearsal score is less than a preset score threshold, the number of tests exceeds a preset number, and the number of remaining interactive sessions in the rehearsal script is less than a preset number, it is determined that the test end condition is met.
[0087] In some embodiments, after the test is completed, the terminal device may display or output the test results in the form of a reminder, so that the target object can promptly understand its own recognition of the deceptive conversations in the drill script.
[0088] This method of determining whether the test termination conditions are met based on the drill score, number of tests, or number of remaining interactive sessions allows the target objects to quickly complete the phased test and to promptly learn the drill score after the test, which is conducive to improving the target objects' enthusiasm for testing and thus improving the effectiveness of information dissemination.
[0089] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first interactive session may be referred to as a second interactive session, and similarly, a first interactive session may be referred to as a second interactive session.
[0090] In the above data processing method, the first interactive session for testing the target object is determined from the script to be rehearsed, so as to output the session belonging to the simulated object in the first interactive session. In this way, the target object can respond according to his own understanding through a back-and-forth dialogue interaction. Next, the intention of the target object can be accurately identified according to the reply of the target object, so as to understand the degree of trust of the target object in the session belonging to the simulated object, and also know whether the target object recognizes false information. Then, the rehearsal score is calculated according to the intention and the reply, so as to determine whether the test end condition is met based on the rehearsal score. In this way, if it is determined that the test end condition is not met, the next session can be pushed to the target object in a targeted manner based on the intention of the target object, so as to continuously test and rehearse the target object until the test result of the target object is obtained when the test is ended, so that the information promoted in the script to be rehearsed can reach the target object more effectively, and the target object can deeply understand the promoted information during the test process, thereby improving the effectiveness of information output. Especially when the information to be practiced is related to a conversation with a deceptive nature, the present application can greatly improve the target object's ability to identify the conversation with a deceptive nature in a real scene.
[0091] In an exemplary embodiment, identifying the intent of a target object based on a reply includes: extracting a first keyword in the reply; determining a target weight for each first keyword based on at least one of the target object's historical replies and a portrait tag; determining a target keyword from a plurality of first keywords based on the target weight; and determining the intent of the target object based on the target keyword.
[0092] The first keyword refers to the key information in the reply. The first keyword can be extracted by using a keyword extraction method in natural language processing, including TF-IDF (Term Frequency - Inverse Document Frequency) algorithm, TextRank (an extractive summary algorithm) algorithm, classification model method, etc. For example, the terminal device performs word segmentation on the reply and removes function words and words without actual meaning to obtain the first keyword.
[0093] The historical replies refer to replies made by the target object to the interactive sessions output before the first interactive session.
[0094] Portrait tags refer to identification information used to describe the characteristics of the target object. For example, portrait tags include gender, occupation type, whether there are disposable resources, occupation status, transaction frequency, large-amount transaction status, etc. Portrait tags can be determined based on historical responses and basic information of the target object.
[0095] Since the interactive conversation corresponding to the historical reply and the first interactive conversation often belong to the same script segment and have a certain correlation, the target weight of each first keyword in the first interactive conversation can be determined based on the historical reply to determine the target keyword that is relevant to the intention of the target object.
[0096] In addition, since the portrait tag of the target object can characterize the characteristics of the target object, the responses of target objects with different characteristics to the interactive session have a certain correlation. Therefore, the target weight of each first keyword in the first interactive session can be determined based on the portrait tag to determine the target keyword that is relevant to the intention of the target object.
[0097] Each first keyword may have a different target weight, and the terminal device may use the first keyword with the largest target weight among multiple first keywords as the target keyword, or may use the first keyword with a target weight exceeding a preset weight as the target keyword.
[0098] The terminal device pre-stores a mapping relationship between keywords and intents, so that the mapping relationship can be searched and the intent corresponding to the target keyword can be used as the intent of the target object. For example, in the scenario of deceiving the target object to transfer money, the keyword is "transfer", and the corresponding intent represents suspicion; the keyword is "account", and the corresponding intent represents cooperation; the keywords are "no", "no", etc., and the corresponding intent represents rejection.
[0099] In some embodiments, the target keyword can be compared with each keyword in the mapping relationship to determine the candidate keyword whose similarity meets the preset similarity condition, and the intention corresponding to the candidate keyword in the mapping relationship is used as the intention of the target object. In this embodiment, since the historical replies and portrait tags of the target object have a certain correlation with the replies of the first interactive session, the target weight of each first keyword is determined based on at least one of the historical replies and portrait tags, so as to determine the intention of the target object based on the target weight, which is conducive to improving the accuracy of intention recognition compared to the method of directly using keywords in the reply for intention recognition.
[0100] In an exemplary embodiment, the target weight of each first keyword is determined based on at least one of the historical replies and portrait tags of the target object, including: obtaining the first weight of each first keyword; adjusting the first weight based on the second keyword in the historical replies to obtain the second weight; adjusting the second weight based on the portrait tag to obtain the target weight.
[0101] The first weight refers to the weight assigned by the terminal device to each first keyword based on the number of first keywords. For example, if the terminal device evenly distributes the weight based on the number of keywords, the first weight of each first keyword is the same.
[0102] The second keyword refers to a keyword in a historical reply. The terminal device compares the second keyword with the first keyword to obtain a similarity result, and determines, among the first keywords, a first candidate keyword whose similarity result meets a preset similarity condition and a second candidate keyword that does not meet the preset similarity condition. The first weight of the first candidate keyword is increased by a first preset value, and the first weight of the second candidate keyword is reduced by a second preset value to obtain a second weight corresponding to each first keyword.
[0103] In some embodiments, the sum of the first weights corresponding to the first keywords is 1, and the ratio between the first preset value and the second preset value should be equal to the ratio between the number of second candidate keywords and the number of first candidate keywords.
[0104] The preset similarity condition may be that the similarity result is greater than a preset value, or the first keyword with the greatest similarity is used as the first candidate keyword.
[0105] For example, the first keywords include A, B, and C, and the first weights are all 33.3%. The keywords in the historical replies include A and B. Therefore, the second weights can be 40%, 40%, and 20%, respectively.
[0106] The terminal device pre-stores the mapping relationship between the image tag and the keyword, which is used to represent the multiple keywords corresponding to each image tag. For example, if the image tag is a hobby of stock trading, the keywords include stock trends, stock codes, etc.
[0107] The terminal device queries the mapping relationship, determines the target portrait tag to which each first keyword belongs, and then determines whether the target portrait tag exists in the portrait tag of the target object.
[0108] If all target portrait tags to which the first keyword belongs do not exist in the portrait tags of the target object, the second weight is not adjusted and is used as the target weight.
[0109] If the target portrait tag to which any first keyword belongs exists in the portrait tag of the target object, the first weight of the corresponding first keyword is increased by the third preset value, and the first weights of other first keywords in the first interactive session are reduced by the fourth preset value to obtain the second weight.
[0110] In some embodiments, the sum of the first weights corresponding to the first keywords is 1, and the ratio between the third preset value and the fourth preset value is equal to the number of other first keywords.
[0111] For example, the first keywords include A, B, and C, and the first weights can be 40%, 40%, and 20% respectively. The portrait tags of the target objects include S1, S2, and S3. The target portrait tag corresponding to the first keyword A is S1, and the target portrait tag corresponding to the first keywords B and C is S4. Then the second weights corresponding to the first keywords are 60%, 30%, and 10% respectively.
[0112] In some embodiments, if all target portrait tags to which the first keyword belongs exist in the portrait tag of the target object, there is no need to adjust the second weight, and the second weight is used as the target weight.
[0113] In this embodiment, the first weight is adjusted twice based on the historical replies and portrait tags of the target object, taking the historical replies and portrait tags into consideration, which is beneficial to increase the weight of keywords related to the intent and reduce the weight of keywords unrelated to the intent, thereby helping to improve the accuracy of intent recognition.
[0114] In an exemplary embodiment, determining a second interactive session from a script to be rehearsed based on intent includes: determining a first test item to which the first interactive session belongs; if the intent represents suspicion or cooperation, filtering out interactive sessions belonging to the first test item from the remaining interactive sessions of the script to be rehearsed as the second interactive session; if the intent represents rejection, filtering out interactive sessions belonging to the second test item from the remaining interactive sessions of the script to be rehearsed as the second interactive session; the second test item is different from the first test item.
[0115] The test item refers to a knowledge point indicated by a script segment in the script to be practiced. The script to be practiced includes interactive sessions related to multiple test items respectively, and multiple interactive sessions related to one test item constitute a script segment.
[0116] The first test item is the test item to which the first interactive session belongs. For the first interactive session, when the intention represents suspicion or cooperation, it indicates that the target object has poor recognition ability for the first test item, and the terminal device determines the second interactive session from the interactive session in the first test item to ensure that the interactive session in the same test item is fully tested.
[0117] The second test item is a test item different from the first test item. In the first interactive session, the intention representation is rejected, indicating that the target object has a strong recognition ability for the first test item. The terminal device determines the second interactive session from the interactive session of the second test item to ensure that more test items are tested on the target object and improve the promotion effect.
[0118] In some embodiments, the test items in the script to be rehearsed have a certain sequence, and the terminal device determines the test items in sequence according to the sequence.
[0119] For example, for the first test, the terminal device uses the test item ranked first in the script to be rehearsed as the first test item, and determines the first interactive session from the first test item.
[0120] For the i-th test, if the intention represents cooperation or suspicion, the interactive session belonging to the first test item is selected from the remaining interactive sessions of the script to be rehearsed as the second interactive session. If the intention represents rejection, the interactive session belonging to the second test item is selected from the remaining interactive sessions of the script to be rehearsed as the second interactive session, and the second test item is the test item that is sorted after the first test item. Where i is a positive integer greater than 1.
[0121] In this embodiment, for different intentions, the interactive conversations in the corresponding test items are used for testing, which is conducive to adjusting the interactive conversation of the test according to the target object's recognition of the conversation, thereby improving the target object's recognition ability of different test items.
[0122] In an exemplary embodiment, obtaining a script to be rehearsed includes: determining a target category to which the knowledge to be promoted to the target object belongs; screening out a target script that contains at least one of the target categories from a script library; determining the order of the target scripts according to the number of target categories contained in the target scripts, and combining the target scripts in order to obtain the script to be rehearsed.
[0123] Here, knowledge refers to the information to be promoted to the target object. Since each target object has different abilities to recognize different false information, different knowledge can be promoted to each target object. The knowledge to be promoted to the target object is often the information that the target object has poor ability to recognize.
[0124] Different knowledge may belong to the same category or different categories, for example, impersonation category, fake website category, fake points redemption category, etc. The target category is the category to which the knowledge to be promoted to the target object belongs.
[0125] In some embodiments, the step of determining the target category to which the knowledge to be promoted to the target object belongs includes: obtaining the target object's answer results to preset test questions; based on the answer results, filtering out incorrectly answered test questions from the preset test questions, and based on the incorrectly answered test questions, determining the category to which the target object's weaknesses belong, and taking the category to which the weaknesses belong as the target category.
[0126] The preset test questions are questions for testing the target object, and the types of preset test questions include multiple-choice questions or true-false questions. Multiple-choice questions include questions and multiple options. Figure 4 The figure shows a schematic diagram of a multiple-choice question in an embodiment. The question in the preset test question is "If you see an advertisement predicting the winning numbers, will you pay the consulting fee?" The preset test question includes 4 options with different contents. The target object selects one or more options from the multiple options according to the question in the preset test question.
[0127] True or false questions include questions and true or false options (including yes and no options). The target subject selects the yes option or the no option according to the question in the preset test question. The option selected by the target subject is the answer result of the target subject for the preset test question.
[0128] The preset test questions include at least one question. The preset test questions can be fixed questions set in advance, or can be a combination of questions randomly selected from a preset question bank.
[0129] Each preset test question has a reference answer. The terminal device compares the answer result of each preset test question with the reference answer corresponding to the preset test question to determine whether the answer result is wrong.
[0130] The terminal device determines the target answer result with an incorrect answer from the answer results, and uses the test question corresponding to the target answer result as the test question with an incorrect answer.
[0131] Each preset test question has a corresponding fraud category label. The preset test question and the fraud category label can be in a one-to-one, one-to-many, or many-to-many relationship. The fraud category label can be used to characterize the fraud category to which the preset test question belongs. For example, the fraud category label includes an impersonation category label, a fake website category label, a fake points redemption category label, etc.
[0132] The terminal device obtains the deception category label of the incorrectly answered test question, and uses the deception category corresponding to the incorrectly answered test question as the category to which the weakness of the target object belongs.
[0133] If there are zero incorrectly answered test questions, indicating that the target object has a good recognition ability for the current preset test questions, the terminal device updates the preset test questions and obtains the target object's answer results for the preset test questions until there is at least one incorrectly answered test question.
[0134] If the incorrectly answered test questions include at least one, the category to which the weak item belongs includes at least one.
[0135] The target category to which the knowledge to be promoted to the target object belongs is the category to which the weak points belong, which is conducive to targeted promotion of the weak points of the target object, thereby improving the promotion effect.
[0136] The script library can be preset in the terminal device or in an external data storage device, and the script library includes at least one script, and each script includes at least one sub-script of a deception category. The scripts in the script library can be established based on conversations in real scenarios, manually arranged and designed, or generated by artificial intelligence methods.
[0137] There may be at least one target category in the deception category contained in any script, or there may be no target category. For example, the target categories include X, Y, and Z, the deception category contained in script J1 is X, the deception categories contained in script J2 are Y and W, the deception categories contained in script J3 are Y, Z, and T, the deception categories contained in script J4 are X, Y, Z, and V, and the deception category contained in script J5 is U. Therefore, scripts J1 and J2 contain one target category, script J3 contains two target categories, script J4 contains three target categories, and script J5 does not contain a target category. Therefore, scripts J1, J2, J3, and J4 are taken as target scripts.
[0138] The terminal device obtains the number of target categories contained in each target script, and determines the order of the target scripts according to the order of the number. The number of target categories contained in the target script can represent the degree of relevance between the target script and the target category. The more target categories contained in the target script, the higher the degree of relevance between the target script and the target category.
[0139] For example, the target scripts may be sorted in descending order of quantity, and target scripts with the same quantity may be further sorted according to the quantity of deception categories contained in the target scripts.
[0140] The target scripts are combined in order to obtain the scripts to be rehearsed. For example, the number of target categories contained in scripts J4 to J2 decreases successively, the number of target categories contained in scripts J2 and J1 is the same, and the number of deception categories contained in script J2 is greater than the number of deception categories contained in script J1. Therefore, the scripts to be rehearsed can be combined in the order of script J4, script J3, script J2, and script J1.
[0141] In some embodiments, for example, the script to be drilled includes interactive sessions respectively related to multiple test items. Multiple interactive sessions related to one test item constitute a script segment. The terminal device calculates the similarity between the target category and the deception category corresponding to each test item, and sorts the test items in the script to be drilled in the order of the similarity results.
[0142] In this embodiment, the target scripts are screened by the target categories to which the knowledge to be promoted to the target object belongs, and the order is determined, so as to obtain the scripts to be rehearsed that match the target categories. Since each target script includes at least one category in the target category, it can be ensured that the content in the scripts to be rehearsed is related to the target category, which is conducive to targeted testing of the target object. The order of the target scripts in the scripts to be rehearsed can be determined according to the number of target categories it contains, so as to give priority to testing the target scripts containing a large number of target categories, thereby improving the test effect.
[0143] In an exemplary embodiment, taking the establishment of a script in a script library based on a conversation in a real scene as an example, the script construction steps include: the terminal device obtains a real interactive conversation in a real scene, and the real interactive conversation may include a conversation in the form of text, voice or video. The timbre features in the real interactive conversation are extracted, and the real interactive conversation is divided into multiple conversations according to the timbre features, each of which includes a first conversation with a deceptive nature and a second conversation as a reply to the first conversation. Semantic analysis is performed on the first conversation and the second conversation respectively to determine the deception category to which the real interactive conversation belongs. The first conversation and the second conversation in the same real scene are arranged into a script according to the order in the real interactive conversation, and each real interactive conversation in the script has a label corresponding to the deception category to which it belongs.
[0144] For a non-textual conversation, the terminal device may convert the first conversation and the second conversation into textual form, thereby obtaining a script in textual form. For a textual conversation, the first conversation and the second conversation may be combined into a script in textual form. The form of the script may be determined according to requirements, thereby converting the conversation into a corresponding form to obtain a script in a form that meets the requirements, which has high flexibility.
[0145] In this embodiment, a script is constructed based on real interactive conversations in real scenarios, so that the constructed script is more in line with the real scenario, which is conducive to immersive practice of the target object, enhances the authenticity and sense of substitution of the script, and is conducive to improving the target object's ability to recognize deceptive conversations in real scenarios.
[0146] In an exemplary embodiment, outputting a conversation belonging to a simulated object in a first interactive conversation includes: outputting the conversation belonging to the simulated object in the first interactive conversation in the form of voice broadcast according to a timbre that matches the conversation content of the first interactive conversation, or displaying a virtual interactive scene from the perspective of the target object, wherein the simulated object is displayed in the virtual interactive scene, and outputting the conversation belonging to the simulated object in the first interactive conversation through the simulated object.
[0147] The terminal device can flexibly set the output mode of the session according to the needs. The output mode can include any one of text display, voice broadcast, video playback or virtual interaction. The needs can come from the selection of the target object or the task requirements corresponding to the data processing method.
[0148] Taking voice broadcast as an example, the terminal device obtains a timbre matching the conversation content of the first interactive conversation, synthesizes the conversation belonging to the simulation object in the first interactive conversation with the timbre to obtain a synthesized voice, and the terminal device plays the synthesized voice to output the conversation belonging to the simulation object.
[0149] Taking video playback as an example, the terminal device obtains a video matching the session content of the first interactive session, synthesizes the session belonging to the simulation object in the first interactive session with the video to obtain a synthesized video, and the terminal device plays the synthesized video to output the session belonging to the simulation object.
[0150] Taking the virtual interaction as an example, a virtual interaction scene is displayed from the perspective of the target object in a virtual interaction device (for example, a VR device or an AR device), a simulated object is displayed in the virtual interaction scene, and a session belonging to the simulated object in the first interactive session is output through the simulated object in the virtual interaction scene.
[0151] In this embodiment, the conversation belonging to the simulated object is output through voice broadcast or virtual interaction. The output method can be flexibly selected. The target object experiences an interactive conversation that is closer to the real scene during the simulation test, which is conducive to improving the target object's ability to recognize deceptive conversations in real scenes.
[0152] In an exemplary embodiment, a drill score is calculated based on the intention and the response, including: if the intention represents suspicion or cooperation, determining a first drill deduction; if the response hits a third keyword in a preset keyword library, determining a second drill deduction; and determining the drill score based on the first drill deduction and the second drill deduction.
[0153] Among them, in determining the drill score, the embodiment of the present application provides two ways of deducting points, one is to deduct points based on intention, that is, if the intention represents suspicion or cooperation, then the first drill deduction is determined, and the other is to deduct points based on keywords, that is, if the reply hits the third keyword in the preset keyword library, then the second drill deduction is determined. Among them, the third keyword can be a word related to deception, or a word related to a specific scenario. The category and content of the third keyword can be configured according to actual needs.
[0154] The terminal device deducts points according to at least one of the two deduction methods to obtain a drill score. For example, the terminal device deducts points according to the first drill to obtain a drill score. Alternatively, the terminal device deducts points according to the second drill to obtain a drill score. Alternatively, the terminal device deducts points according to the first drill and the second drill to obtain a drill score.
[0155] Among them, in a possible embodiment of the method of deducting points based on intention, a mapping relationship between intention and deduction points is stored in the terminal device. The terminal device queries the mapping relationship between intention and deduction points, and obtains the deduction points corresponding to the intention representing suspicion, and the deduction points corresponding to the intention representing cooperation. If the intention represents suspicion, the deduction points corresponding to the intention representing suspicion are used as the first practice deduction points. If the intention represents cooperation, the deduction points corresponding to the intention representing cooperation are used as the first practice deduction points.
[0156] In another possible embodiment, the terminal device performs similarity matching between the target object's reply and the second session in the first interactive session, and determines the first exercise deduction based on the similarity result. Each interactive session includes a first session with a deceptive nature and a second session as a reply to the first session.
[0157] The method for deducting points based on keywords includes: a preset keyword library is stored in a terminal device or a database, and the preset keyword library includes at least one keyword. The third keyword is the keyword hit by the reply, and the terminal device determines the second drill score according to the hit third keyword. For example, each keyword corresponds to a drill deduction, and the terminal device uses the drill deduction corresponding to the third keyword hit by the reply as the second drill deduction. For another example, the terminal device obtains the number of third keywords, determines the deduction corresponding to the number of third keywords according to the mapping relationship between the number and the deduction, and uses it as the second drill deduction.
[0158] The method for determining the third keyword hit by the reply may adopt a similarity matching method. The terminal device performs similarity matching between the reply and the keywords in the preset keyword library, obtains the similarity result corresponding to each keyword, and uses the keyword that meets the preset conditions as the third keyword hit by the reply.
[0159] Take the example of a terminal device obtaining a drill score based on the first drill score and the second drill score. If the test is the first test, the sum of the first drill score and the second drill score is subtracted from the preset score, and the result is used as the drill score. If the test is the i-th test, i is a positive integer greater than 1, then the drill score of the i-1th test is obtained, and the sum of the first drill score and the second drill score in the test is subtracted from the drill score of the i-1th test, and the result is used as the drill score of the i-th test.
[0160] In this embodiment, different deduction methods are adopted to determine different rehearsal deduction points and then obtain a rehearsal score. The deduction method can be flexibly set according to actual needs. This method of calculating the rehearsal score based on intention and response, the rehearsal score obtained can more accurately reflect the target object's recognition of the first interactive session.
[0161] In an exemplary embodiment, if the intention represents suspicion or cooperation, a first drill deduction is determined, including: if the intention represents suspicion or cooperation, a conversation matching the intention is screened out from the first interactive conversation; similarity is calculated between the screened conversation and the reply, and the first drill deduction is determined based on the similarity calculation result.
[0162] Each interactive session includes a first session with a deceptive nature and a second session as a reply to the first session, and the second session includes at least one session content representing different intentions. For example, for the first session, the second session includes at least one of session content representing suspicion, session content representing cooperation, and session content representing non-cooperation.
[0163] Matching intent can be Figure 1or the similarity with the intention meets a preset condition. For example, the similarity is greater than or equal to a preset similarity.
[0164] Sessions matching the intent are mainly filtered from the second session in the first interaction session.
[0165] If the intention indicates suspicion or cooperation, the terminal device selects the person who is related to the intention from the first interactive session. Figure 1 Alternatively, the intent is matched with the intent of the session in the first interactive session by similarity, and the session corresponding to the intent whose similarity result meets the preset conditions is taken as the session matching the intent.
[0166] For example, if the target object's intention representation matches, and the first interactive session includes multiple sessions whose intentions are all to agree to transfer resources, then these sessions are all sessions that match the target object's intention.
[0167] The conversations that match the intent filtered out by the terminal device are the conversations that are closest to the intent of the target object. The terminal device calculates the similarity between the filtered conversations and the replies of the target object to obtain a similarity result.
[0168] In some embodiments, each session corresponds to a deduction point, and the terminal device obtains the deduction point corresponding to the session with the highest similarity result as the first drill deduction point.
[0169] In other embodiments, the terminal device pre-stores the correspondence between the similarity results and the deduction points, and the terminal device obtains the deduction points corresponding to each similarity result, and sums, averages, or medians the multiple deduction points, and uses the obtained result as the first drill deduction points. If there is only one session selected, the similarity result corresponding to the session is determined, and the deduction points corresponding to the similarity result are used as the first drill deduction points.
[0170] In this embodiment, by selecting conversations with matching intentions representing suspicion or cooperation from the first interactive conversation, and performing similarity calculation between the selected conversations and the replies, this method of determining the first rehearsal score deduction through intention matching and conversation similarity calculation can more accurately reflect the degree to which the target object has been deceived.
[0171] In an exemplary embodiment, the data processing method also includes: after the test is completed, screening out target responses that are intended to be suspicious or cooperative from all responses of the target object; obtaining a target interactive session corresponding to the target response; determining a target test item involved in the target interactive session, and screening scripts containing the target test items from a script library to obtain a customized script; and the customized script is used to test the target object.
[0172] In this embodiment, the target interactive session is an interactive session in which the target object recognition ability is poor, and the target test items involved in the target interactive session are weak items in which the target object recognition ability is poor. After the test is completed, the terminal device further screens the script containing the target test items as a customized script, and the target object uses the customized script for further testing, which is conducive to targeted learning of weak items, thereby improving the target object's ability to recognize deceptive sessions involved in the weak items.
[0173] In a specific embodiment, the method of the present application can be applied to data processing in the fields of mobile communications, network communications, etc. The data processing method of the present application includes the following steps:
[0174] Taking the data processing in the field of network communication as an example, the data processing method is applied to a data processing system based on network communication. The data processing system includes a cloud server and a terminal device, the terminal device includes a human-computer interaction interface, and the data processing method is implemented through the interaction between the cloud server and the terminal device.
[0175] Among them, Figure 5 The figure shows a schematic diagram of a data processing method in a cloud server in one embodiment. The cloud server can configure preset test questions and add deception category tags to the preset test questions. Each preset test question has a corresponding deception category tag. The preset test questions and deception category tags can be one-to-one, one-to-many, or many-to-many. The deception category tag can be used to characterize the deception category to which the preset test question belongs. For example, the deception category tag includes an impersonation category tag, a fake website category tag, a fake points redemption category tag, etc.
[0176] like Figure 6 The figure shows a schematic diagram of a data processing method in a cloud server in another embodiment. The cloud server constructs a script based on a real interactive conversation in a real scene; configures keywords and scoring methods; and adds tags to the real interactive conversation in the script. Among them, the method of constructing the script includes: the cloud server obtains a real interactive conversation in a real scene, and the real interactive conversation may include a conversation in the form of text, voice or video. The timbre features in the real interactive conversation are extracted, and the real interactive conversation is divided into multiple conversations according to the timbre features, each of which includes a first conversation with a deceptive nature and a second conversation as a reply to the first conversation. The first conversation and the second conversation are semantically analyzed to determine the deception category to which the real interactive conversation belongs. The first conversation and the second conversation in the same real scene are arranged into a script according to the order in the real interactive conversation, and each real interactive conversation in the script has a label corresponding to the deception category to which it belongs.
[0177] The cloud server includes a preset keyword library, which includes at least one keyword. The category and content of the keyword can be flexibly adjusted according to actual needs.
[0178] Among them, the deduction method preset in the cloud server includes at least one of the following methods: one is to deduct points based on intention, that is, if the intention represents suspicion or cooperation, then the first rehearsal deduction is determined, and the other is to deduct points based on keywords, that is, if the reply hits the keywords in the preset keyword library, then the second rehearsal deduction is determined. The cloud server will deduct points according to at least one of the two deduction methods to obtain a rehearsal score. For example, according to the first rehearsal deduction, a rehearsal score is obtained. Or, according to the second rehearsal deduction, a rehearsal score is obtained. Or, according to the first rehearsal deduction and the second rehearsal deduction, a rehearsal score is obtained.
[0179] like Figure 7 The figure shows a schematic diagram of a data processing method in a terminal device in an embodiment. In which, data is exchanged between the terminal device and the cloud server. The terminal device obtains basic information entered by the target object, and the answer results of the target object for the preset test questions in the cloud server, determines the test questions with incorrect answers, and sends the test questions with incorrect answers to the cloud server.
[0180] The cloud server determines the target category to which the target object's weak points belong based on the incorrectly answered test questions, and sends the script to be practiced that matches the basic information and the target category to the terminal device.
[0181] In some embodiments, the terminal device also responds to the target object's selection operation on the scripts to be rehearsed sent by the cloud server, determines a final script to be rehearsed from the scripts to be rehearsed sent by the cloud server, and uses it to test the target object.
[0182] In other embodiments, the terminal device may also respond to the target object's selection operation on a script in the script library, use the script selected by the target object from the script library as the script to be rehearsed, and use it to test the target object.
[0183] The terminal device determines the first interactive session from the script to be rehearsed, outputs the session belonging to the simulated object in the first interactive session in the human-computer interaction interface, and obtains the response of the target object. The terminal device can flexibly set the output mode of the session according to the needs. The output mode may include any one of text display, voice broadcast, video playback or virtual interaction. The needs may come from the selection of the target object, or the task requirements corresponding to the data processing method.
[0184] The terminal device obtains the timbre matching the conversation content of the first interactive conversation, synthesizes the conversation belonging to the simulation object in the first interactive conversation with the timbre to obtain synthesized speech, and the terminal plays the synthesized speech to output the conversation belonging to the simulation object.
[0185] Taking the virtual interaction as an example, a virtual interaction scene is displayed from the perspective of the target object in a virtual interaction device (for example, a VR device or an AR device), a simulated object is displayed in the virtual interaction scene, and a session belonging to the simulated object in the first interactive session is output through the simulated object in the virtual interaction scene.
[0186] The terminal device identifies the intention of the target object based on the reply. Specifically, it can extract the first keyword in the reply and obtain the first weight of each first keyword. According to the second keyword in the historical reply, the first weight is adjusted to obtain the second weight; according to the portrait label, the second weight is adjusted to obtain the target weight, and the target keyword is determined from multiple first keywords according to the target weight. Based on the target keyword, the intention of the target object is determined.
[0187] The step of adjusting the first weight may be: the terminal device compares the second keyword with the first keyword for similarity to obtain a similarity result, and determines, among the first keywords, first candidate keywords whose similarity results meet the preset similarity condition and second candidate keywords that do not meet the preset similarity condition. The first weight of the first candidate keyword is increased by a first preset value, and the first weight of the second candidate keyword is reduced by a second preset value to obtain a second weight corresponding to each first keyword.
[0188] The step of adjusting the second weight may be: the terminal device queries the pre-stored mapping relationship between the portrait tag and the keyword to determine the target portrait tag to which each first keyword belongs. If the target portrait tag to which any first keyword belongs exists in the portrait tag of the target object, the first weight of the corresponding first keyword is increased by a third preset value, and the first weight of other first keywords in the first interactive session is reduced by a fourth preset value to obtain the second weight.
[0189] The terminal device calculates the drill score based on whether the intention hits the intention representing cooperation, rejection or suspicion, and whether the target object's response hits the keywords in the preset keyword library, and then determines whether the test end conditions are met based on the drill score, thereby determining whether to end the test.
[0190] Specifically, the terminal device calculates the rehearsal score based on the hit intent and the reply hit keywords. If the rehearsal score is less than the preset score threshold, the number of tests exceeds the preset number of times, or the number of remaining interactive sessions is less than the preset value, it is determined that the test end condition is met and the test is ended. Otherwise, it is determined that the test end condition is not met, and a second interactive session is determined based on the intent, and the test continues to be conducted on the target object.
[0191] Among them, the calculation steps of the rehearsal score include: if the intention represents suspicion or cooperation, then filtering out the conversation matching the intention from the first interactive conversation; calculating the similarity between the filtered conversation and the reply, and determining the first rehearsal deduction based on the similarity calculation result; if the reply hits the third keyword in the preset keyword library, then determining the second rehearsal deduction, and determining the rehearsal score based on the first rehearsal deduction and the second rehearsal deduction.
[0192] In some embodiments, if the intention hit represents an intention of cooperation or suspicion, or the target object's reply hits the third keyword in the preset keyword library, it indicates that the target object has poor recognition ability for conversations belonging to the simulated object and the target object has been deceived. The terminal device can prompt the target object that it has been deceived and inform the category of the deception through the human-computer interaction interface.
[0193] In some embodiments, the script to be rehearsed includes interactive sessions respectively related to multiple test items, and the terminal device determines the order of the test items based on the similarity results between the target category and the deception category corresponding to each test item. For the first test, the terminal device uses the test item ranked first in the script to be rehearsed as the first test item, and determines the first interactive session from the first test item. For a non-first test, if the intention hits the intention representing rejection, or the target object's reply does not hit the keywords in the preset keyword library, it indicates that the target object has not been deceived, and the terminal device selects the interactive session belonging to the second test item from the remaining interactive sessions of the script to be rehearsed as the second interactive session; if the intention hits the intention representing cooperation or suspicion, the interactive session belonging to the first test item is selected from the remaining interactive sessions of the script to be rehearsed as the second interactive session, and the target object continues to be tested through the second interactive session until the rehearsal score, the number of tests, or the number of remaining interactive sessions meet the test end condition, and the test ends.
[0194] After the test is completed, the terminal device can filter out target replies with the intention of suspicion or cooperation from all replies of the target object; obtain the target interactive session corresponding to the target reply; determine the target test items involved in the target interactive session, and filter the script containing the target test items from the script library to obtain a customized script; the customized script is used to test the target object.
[0195] In some embodiments, the target object includes at least one, and the terminal device can also obtain and display the drill scores of all target objects, the number of target objects that intend to represent cooperation in each test item, the number of target objects that intend to represent rejection in each test item, and the number of target objects that intend to represent suspicion in each test item. When the number of target objects that intend to represent cooperation or suspicion in the test item exceeds a preset value, the interactive dialogue corresponding to the test item is combined into a high-frequency deception script for testing the target object.
[0196] Among them, Figure 8 The figure shows a schematic diagram of displaying the test results in one embodiment. After the test is completed, the terminal device can also display the test results on the human-computer interaction interface or output them in the form of a reminder. The test results include but are not limited to the final exercise score, the exercise score of each test, the number of tests, the target category to which the weak items belong, the deceived interactive sessions, and the number of deceived times, so that the target object can understand its own recognition of the deceptive conversations in the exercise script.
[0197] The above data processing method determines the first interactive session for testing the target object from the script to be rehearsed, thereby outputting the session belonging to the simulated object in the first interactive session. In this way, the target object can respond according to his own understanding through a back-and-forth dialogue interaction. Next, the intention of the target object can be accurately identified based on the reply of the target object, so as to understand the degree of trust of the target object in the session belonging to the simulated object, and also know whether the target object recognizes false information. Then, the rehearsal score is calculated according to the intention and the reply, so that it can be determined whether the test end condition is met based on the rehearsal score. In this way, if the test end condition is not met, the next session can be pushed to the target object in a targeted manner based on the intention of the target object, so as to continuously test and rehearse the target object until the test result of the target object is obtained when the test is ended, so that the information promoted in the script to be rehearsed can be more effectively reached to the target object, and the target object can deeply understand the information promoted in the script to be rehearsed during the test, thereby improving the effectiveness of information output. Especially when the information promoted in the script to be rehearsed is related to the conversation with a deceptive nature, the present application can greatly improve the target object's ability to identify the conversation with a deceptive nature in the real scene. In addition, by testing the target object through the script to be rehearsed, the target object is placed in a real scene case. Compared with the traditional method, this real test rehearsal has a stronger sense of scene and a stronger sense of substitution, which improves the fun of the test process. Through the real case rehearsal, the target object can feel the possibility of being deceived, which can motivate the target object to better improve the ability to identify various deceptive conversations, reduce the probability of being deceived, and have a better publicity effect on the target object. The script can also be customized according to different target objects to meet the needs and characteristics of different target objects, so as to achieve better publicity effects and improve the target object's ability to identify conversations with a deceptive nature.
[0198] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0199] Based on the same inventive concept, the embodiment of the present application also provides a data processing device for implementing the data processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more data processing device embodiments provided below can refer to the limitations on the data processing method above, and will not be repeated here.
[0200] In an exemplary embodiment, Fig. 9 As shown, a data processing device 900 is provided, including: an acquisition module 910, a reply module 920, an identification module 930 and a test module 940, wherein:
[0201] An acquisition module 910 is used to acquire a script to be rehearsed, and determine a first interactive session for testing a target object from the script to be rehearsed;
[0202] A reply module 920, configured to output the conversation belonging to the simulated object in the first interactive conversation, and obtain a reply from the target object to the conversation;
[0203] An identification module 930, for identifying the intention of the target object according to the reply, and calculating a drill score according to the intention and the reply;
[0204] The test module 940 is used to determine a second interactive session from the script to be rehearsed based on the intention to test the second interactive session on the target object if it is determined based on the rehearsal score that the test end condition is not met, otherwise, end the test to obtain the test result of the target object.
[0205] The above-mentioned data processing device determines the first interactive session for testing the target object from the script to be rehearsed, thereby outputting the session belonging to the simulated object in the first interactive session. In this way, the target object can respond according to his own understanding through a back-and-forth dialogue interaction. Next, the intention of the target object can be accurately identified according to the reply of the target object, so as to understand the degree of trust of the target object in the session belonging to the simulated object, and also know whether the target object recognizes false information. Then, the rehearsal score is calculated according to the intention and the reply, so that it can be determined whether the test end condition is met based on the rehearsal score. In this way, if it is determined that the test end condition is not met, the next session can be pushed to the target object in a targeted manner based on the intention of the target object, so as to continuously test and rehearse the target object until the test result of the target object is obtained when the test is ended, so that the information promoted in the script to be rehearsed can be more effectively reached to the target object, and the target object can deeply understand the information promoted in the script to be rehearsed during the test, thereby improving the effectiveness of information output. Especially when the information to be practiced is related to a conversation with a deceptive nature, the present application can greatly improve the target object's ability to identify the conversation with a deceptive nature in a real scene.
[0206] In one embodiment, to identify the intention of the target object according to the reply, the identification module 930 is further configured to:
[0207] Extract the first keyword in the reply; determine the target weight of each first keyword based on the historical replies and at least one of the portrait tags of the target object; determine the target keyword from multiple first keywords based on the target weight, and determine the intention of the target object based on the target keyword.
[0208] In one embodiment, the target weight of each first keyword is determined according to at least one of the historical replies and the portrait tag of the target object, and the identification module 930 is further used to:
[0209] Get the first weight of each first keyword; adjust the first weight according to the second keyword in the historical replies to get the second weight; adjust the second weight according to the portrait label to get the target weight.
[0210] In one embodiment, based on the intention, the second interactive session is determined from the script to be rehearsed, and the test module 940 is also used to: determine the first test item to which the first interactive session belongs; if the intention represents suspicion or cooperation, then filter out the interactive session belonging to the first test item from the remaining interactive sessions of the script to be rehearsed as the second interactive session; if the intention represents rejection, then filter out the interactive session belonging to the second test item from the remaining interactive sessions of the script to be rehearsed as the second interactive session; the second test item is different from the first test item.
[0211] In one embodiment, the script to be rehearsed is obtained, and the obtaining module 910 is further used to:
[0212] Determine the target category to which the knowledge to be promoted to the target object belongs; select target scripts that contain at least one of the target categories from the script library; determine the order of the target scripts according to the number of target categories contained in the target scripts, and combine the target scripts in order to obtain the scripts to be rehearsed.
[0213] In one embodiment, the response module 920 outputs the conversation belonging to the simulation object in the first interactive conversation, and is further configured to:
[0214] The conversation belonging to the simulated object in the first interactive conversation is outputted in the form of voice broadcast according to the timbre matching the conversation content of the first interactive conversation, or the virtual interactive scene is displayed from the perspective of the target object, a virtual object of the simulated object is displayed in the virtual interactive scene, and the conversation belonging to the simulated object in the first interactive conversation is outputted through the simulated object.
[0215] In one embodiment, the drill score is calculated based on the intent and the reply, and the identification module 930 is further used to:
[0216] If the intention is to express suspicion or cooperation, the first drill deduction is determined; if the reply hits the third keyword in the preset keyword library, the second drill deduction is determined; based on the first drill deduction and the second drill deduction, the drill score is determined.
[0217] In one embodiment, if the intention is to represent suspicion or cooperation, a first exercise deduction is determined, and the identification module 930 is further used to:
[0218] If the intention represents suspicion or cooperation, the conversations matching the intention are screened out from the first interactive conversation; the screened conversations are similarly calculated with the replies, and the first exercise deduction is determined based on the similarity calculation result.
[0219] Each module in the above data processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0220] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.10As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a data processing method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0221] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0222] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0223] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0224] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0225] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0226] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0227] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0228] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A data processing method, characterized in that: The method comprises: Acquire a script to be rehearsed, and determine a first interactive session for testing a target object from the script to be rehearsed; Outputting the conversation belonging to the simulated object in the first interactive conversation, and obtaining the target object's reply to the conversation; identifying the target object's intention according to the reply, and calculating a drill score according to the intention and the reply; If it is determined based on the practice score that the test end condition is not met, a second interactive session is determined from the to-be-practiced script based on the intention to test the second interactive session on the target object, otherwise, the test is ended to obtain the test result of the target object.
2. The method according to claim 1, characterized in that The identifying the intention of the target object according to the reply includes: Extracting the first keyword in the reply; Determining a target weight for each first keyword according to at least one of the historical responses and the portrait tag of the target object; A target keyword is determined from the plurality of first keywords according to the target weight, and the intention of the target object is determined based on the target keyword.
3. The method according to claim 2, characterized in that The determining the target weight of each first keyword according to at least one of the historical responses and the portrait tag of the target object includes: Get the first weight of each first keyword; According to the second keyword in the historical reply, the first weight is adjusted to obtain a second weight; The second weight is adjusted according to the portrait label to obtain a target weight.
4. The method according to claim 1, characterized in that: The determining a second interactive session from the to-be-rehearsed script based on the intention includes: determining a first test item to which the first interactive session belongs; If the intention represents suspicion or cooperation, then selecting the interactive session belonging to the first test item from the remaining interactive sessions of the to-be-rehearsed script as the second interactive session; If the intent representation is rejected, an interactive session belonging to a second test item is screened out from the remaining interactive sessions of the script to be rehearsed as a second interactive session; the second test item is different from the first test item.
5. The method according to claim 1, characterized in that The step of obtaining the script to be rehearsed includes: Determine the target category to which the knowledge to be disseminated to the target audience belongs; Filtering a target script containing at least one of the target categories from a script library; According to the number of target categories contained in the target script, the order of the target scripts is determined, and the target scripts are combined in order to obtain the scripts to be rehearsed.
6. The method according to claim 1, characterized in that The outputting of the session belonging to the simulation object in the first interactive session includes: outputting the conversation belonging to the simulation object in the first interactive conversation in a voice broadcast manner according to a tone matching the conversation content of the first interactive conversation, or, A virtual interaction scene is displayed from the perspective of the target object, a simulation object is displayed in the virtual interaction scene, and a session belonging to the simulation object in the first interactive session is output through the simulation object.
7. The method according to claim 1, characterized in that The calculating of the drill score according to the intention and the response includes: If the stated intention represents suspicion or cooperation, a penalty for the first exercise is determined; If the reply hits the third keyword in the preset keyword library, a second exercise point deduction is determined; A drill score is determined according to the first drill deduction point and the second drill deduction point.
8. The method according to claim 7, characterized in that If the intention indicates suspicion or cooperation, the first exercise deduction is determined, including: If the intention represents suspicion or cooperation, screening out a session matching the intention from the first interactive session; The screened conversations are compared with the replies and similarity is calculated, and the first exercise deduction is determined based on the similarity calculation result.
9. A data processing device, characterized in that: The device comprises: An acquisition module, used for acquiring a script to be rehearsed, and determining a first interactive session for testing a target object from the script to be rehearsed; A reply module, configured to output the conversation belonging to the simulated object in the first interactive conversation, and obtain the reply of the target object to the conversation; an identification module, configured to identify the intention of the target object according to the reply, and calculate a drill score according to the intention and the reply; The test module is used to determine a second interactive session from the script to be rehearsed based on the intention to test the second interactive session for the target object if it is determined based on the rehearsal score that the test end condition is not met, otherwise, end the test to obtain the test result of the target object.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Intelligent training partner method and device, electronic equipment and storage medium
CN113627801A
Fraud prevention method and device, electronic equipment and storage medium
CN114119030A
Anti-fraud propaganda method and system
CN115829592A
Interactive method and device of robot, and device
US20200005772A1
Multi-round dialogue processing method and apparatus, electronic device and storage medium
US20230306048A1
Cited By
Text processing method and device, electronic equipment, computer readable storage medium and computer program product
CN122019732A
