A method and system for optimizing and preventing knowledge base knowledge from being maliciously attacked

By identifying user identities and calculating feedback information, the knowledge base of the intelligent customer service robot is optimized, which solves the problem of the knowledge base being vulnerable to malicious attacks, improves maintenance efficiency and accuracy, and prevents malicious feedback from attacking the knowledge base.

CN112784267BActive Publication Date: 2024-09-06AISINO CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110010319.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-05
Publication Date
2024-09-06
Estimated Expiration
2041-01-05

AI Technical Summary

Technical Problem

The knowledge base of intelligent customer service robots is vulnerable to malicious feedback attacks, resulting in low efficiency and poor accuracy of knowledge base data maintenance, and cannot be effectively optimized.

Method used

By obtaining user identity information and recording feedback information, calculate user satisfaction and related knowledge satisfaction, optimize knowledge base data to prevent malicious attacks, use formulas such as Sx and S′x to determine user requirements, and adjust knowledge base data.

Benefits of technology

It effectively reduces the probability of knowledge base data attacks caused by malicious feedback, improves the maintenance efficiency and accuracy of the knowledge base, and realizes the optimization of the knowledge base.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112784267B
    Figure CN112784267B
Patent Text Reader

Abstract

The present invention discloses a method and system for optimizing and preventing knowledge in a knowledge base from being maliciously attacked, and belongs to the technical field of intelligent data optimization. The method of the present invention comprises: obtaining user identity information during the intelligent customer service stage when a user accesses a knowledge base, identifying the user identity according to the user identity information, and marking the user identity; recording the user's feedback information during the intelligent customer service access stage; determining the user's requirements according to the feedback information; and optimizing the knowledge base data according to the user's requirements. The present invention effectively reduces the probability of attacks on knowledge base data caused by malicious feedback, improves the efficiency of knowledge base maintenance, and also improves the accuracy of knowledge, thereby achieving the purpose of knowledge optimization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data intelligent optimization, and more specifically, to a method and system for optimizing and preventing knowledge in a knowledge base from being maliciously attacked. Background Art

[0002] The knowledge base is one of the core components of the intelligent customer service robot and plays an important role in the customer service system. After the QA component of the intelligent customer service robot correctly understands the questions raised by the user, the subsequent operation is to select the most matching QA question and answer pairs, that is, knowledge, from the built knowledge base. If the knowledge is not well maintained, even the best QA model cannot play its advantages.

[0003] Therefore, the knowledge base of the intelligent customer service robot is a component that needs to be continuously maintained and optimized, which is directly related to the question-answering effect of the intelligent customer service robot. Therefore, there are some methods and components that facilitate knowledge managers to maintain the knowledge base and achieve the purpose of optimization. One of the methods is to use user evaluation feedback to evaluate whether the matching and maintenance of this knowledge is correct from the user's subjective feeling. These feedbacks will be collected and organized into the knowledge base for the convenience of knowledge managers to make optimization references. Because the amount of data and feedback is large, in actual operations, many knowledge managers do not have the time and energy to carefully review and rely heavily on the relevant information of the feedback. This leads to the use of data attacks to mislead the knowledge base and achieve the purpose of attacking the knowledge base. Summary of the invention

[0004] In view of the above problems, the present invention proposes a method for optimizing and preventing knowledge base knowledge from being maliciously attacked, comprising:

[0005] During the intelligent customer service phase when a user accesses the knowledge base, the user's identity information is obtained, the user's identity is identified based on the user's identity information, and the user's identity is marked;

[0006] Record user feedback during the intelligent customer service access phase;

[0007] The feedback information includes: the association sa between the user's feedback and the knowledge base knowledge, the number n of user feedback per day and the time interval t between the user's last two feedbacks;

[0008] Determine user requirements based on feedback information;

[0009] The determining of user requirements comprises:

[0010] According to n and t, determine the user satisfaction weight s of sa, the formula is as follows:

[0011]

[0012] When the s of sa is satisfied, determine the satisfaction degree Sx of the associated knowledge x of sa. The formula is as follows:

[0013] Sx = ∑s i

[0014] Where i is the total number of satisfied associated knowledge x;

[0015] When the s of sa is dissatisfied, determine the satisfaction degree S'x of the associated knowledge x of sa. The formula is as follows

[0016] S'x = ∑s' i‘

[0017] Where i' is the total number of dissatisfied associated knowledge x;

[0018] Determine the user requirement h according to Sx and S'x. The formula is as follows:

[0019]

[0020] Optimize the knowledge base data according to the user requirements.

[0021] Optionally, the ways to identify the user identity include: writing cookies on the web side, writing temporary files, and generating hardware IDs.

[0022] Optionally, during the intelligent customer service access stage of the user, if the user does not give feedback within the preset time, a user feedback prompt is sent. If the user still does not give feedback after the prompt, the feedback of this time of the user is not recorded.

[0023] Optionally, for n and t, the upper limit of n is N, and the lower limit of t is T. If n > N or t < T, then s is invalid.

[0024] Optionally, h has two coefficients p1 and p2, and p1 > 1 > p2;

[0025] When h > p1, determine that the knowledge is correct and meets the user's needs;

[0026] When h < p2, determine that the knowledge is incorrect and correct the knowledge;

[0027] When p2 < h < p1, determine that the knowledge needs to be optimized.

[0028] The present invention also proposes a system for optimizing and preventing malicious attacks on knowledge in the knowledge base, including:

[0029] An identity identification module, during the intelligent customer service access stage of the user accessing the knowledge base, obtains the user identity information, identifies the user identity according to the user identity information, and identifies the user identity;

[0030] An information feedback module, records the feedback information of the user during the intelligent customer service access stage;

[0031] The feedback information includes: the feedback of the user associated with the knowledge in the knowledge base sa, the number of times n of the user's daily feedback, and the time interval t between the user's last two feedbacks;

[0032] The user requirement determination and optimization module determines the user requirements according to the feedback information;

[0033] The determination of the user requirements includes:

[0034] According to n and t, determine the user satisfaction weight s of sa, and the formula is as follows:

[0035]

[0036] When the s of sa is satisfied, determine the satisfaction Sx of the associated knowledge x of sa, and the formula is as follows:

[0037] Sx = ∑s i

[0038] where i is the total number of satisfied associated knowledge x;

[0039] When the s of sa is not satisfied, determine the satisfaction S'x of the associated knowledge x of sa, and the formula is as follows

[0040] S'x = ∑s' i‘

[0041] where i' is the total number of dissatisfied associated knowledge x;

[0042] Determine the user requirement h according to Sx and S'x, and the formula is as follows:

[0043]

[0044] Optimize the knowledge base data according to the user requirements.

[0045] Optionally, the ways to identify the user identity include: using cookie writing on the web side, temporary file writing, and hardware id generation.

[0046] Optionally, during the intelligent customer service access stage, if the user does not give feedback within the preset time of the user, a user feedback prompt is sent. If the user still does not give feedback after the prompt, the feedback of the user this time is not recorded.

[0047] Optionally, for n and t, the upper limit of n is N, and the lower limit of t is T. If n > N or t < T, then s is invalid.

[0048] Optionally, h has two coefficients p1 and p2, and p1 > 1 > p2;

[0049] When h > p1, it is determined that the knowledge is correct and meets the user's needs;

[0050] When h < p2, it is determined that the knowledge is incorrect and the knowledge is corrected.

[0051] When p2 < h < p1, it is determined that the knowledge needs to be optimized.

[0052] The present invention effectively reduces the probability of knowledge base data attacks caused by malicious feedback, improves the efficiency of knowledge base maintenance, and also improves the accuracy of knowledge, achieving the purpose of knowledge optimization. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 It is a flowchart of a method for optimizing and preventing knowledge in a knowledge base from being maliciously attacked according to the present invention;

[0054] Figure 2 It is a structural diagram of a system for optimizing and preventing knowledge in a knowledge base from being maliciously attacked according to the present invention. DETAILED DESCRIPTION OF THE INVENTION

[0055] Now, exemplary embodiments of the present invention will be described with reference to the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. These embodiments are provided to disclose the present invention in detail and completely, and to fully convey the scope of the present invention to those skilled in the art. The terms in the exemplary embodiments shown in the drawings are not limitations to the present invention. In the drawings, the same unit / element is denoted by the same reference numeral.

[0056] Unless otherwise specified, the terms (including scientific and technical terms) used herein have the ordinary meaning understood by those skilled in the art. In addition, it can be understood that the terms defined in the commonly used dictionary should be understood to have a meaning consistent with the context of their related fields, and should not be understood as idealized or overly formal meanings.

[0057] The present invention proposes a method for optimizing and preventing knowledge in a knowledge base from being maliciously attacked, as Figure 1 shown, including:

[0058] In the intelligent customer service stage when a user accesses the knowledge base, obtain the user identity information, identify the user identity according to the user identity information, and label the user identity;

[0059] Record the feedback information of the user in the intelligent customer service access stage;

[0060] The feedback information includes: the feedback of the user associated with the knowledge in the knowledge base sa, the number of times n the user feedbacks per day, and the time interval t between the last two feedbacks of the user;

[0061] Determine the user requirements according to the feedback information;

[0062] Said determining the user requirements includes:

[0063] According to n and t, determine the user satisfaction weighted s of sa, and the formula is as follows:

[0064]

[0065] When the s of sa is satisfied, determine the satisfaction Sx of the associated knowledge x of sa, and the formula is as follows:

[0066] Sx = ∑s i

[0067] Wherein, i is the total number of satisfied associated knowledge x;

[0068] When the s of sa is dissatisfied, determine the satisfaction S'x of the associated knowledge x of sa, and the formula is as follows

[0069] S'x = ∑s' i‘

[0070] Wherein, i' is the total number of dissatisfied associated knowledge x;

[0071] Determine the user requirement h according to Sx and S'x, and the formula is as follows:

[0072]

[0073] Optimize the knowledge base data according to the user requirements.

[0074] Ways to identify the user identity include: using cookie writing on the web side, temporary file writing, and hardware id generation.

[0075] During the intelligent customer service access stage, if the user does not give feedback within the preset time, a user feedback prompt is sent. If the user still does not give feedback after the prompt, the user's feedback this time is not recorded.

[0076] For n and t, the upper limit of n is N, and the lower limit of t is T. If n > N or t < T, then s is invalid.

[0077] h has two coefficients p1 and p2, and p1 > 1 > p2;

[0078] When h > p1, determine that the knowledge is correct and meets the user's needs;

[0079] When h < p2, determine that the knowledge is incorrect and correct the knowledge;

[0080] When p2 < h < p1, determine that the knowledge needs to be optimized.

[0081] The present invention also proposes a system 200 for optimizing and preventing malicious attacks on knowledge in the knowledge base, as Figure 2As shown, including:

[0082] The identity identification module 201 obtains user identity information, identifies the user identity according to the user identity information, and identifies the user identity during the intelligent customer service stage when the user accesses the knowledge base;

[0083] Information feedback module 202, recording the user's feedback information during the intelligent customer service access phase;

[0084] The feedback information includes: the association sa between the user's feedback and the knowledge base knowledge, the number n of user feedback per day and the time interval t between the user's last two feedbacks;

[0085] User requirement determination and optimization module 203, determining user requirements based on feedback information;

[0086] The determining of user requirements comprises:

[0087] According to n and t, determine the user satisfaction weight s of sa, the formula is as follows:

[0088]

[0089] When s of sa is satisfactory, determine the satisfaction Sx of sa's associated knowledge x, the formula is as follows:

[0090] Sx=∑s i

[0091] Among them, i is the total number of satisfactions of associated knowledge x;

[0092] When s of sa is unsatisfactory, determine the satisfaction S′x of sa’s associated knowledge x, the formula is as follows

[0093] S′x=∑s′ i‘

[0094] Among them, i' is the total number of unsatisfactory associated knowledge x;

[0095] Determine the user requirement h based on Sx and S′x, the formula is as follows:

[0096]

[0097] Optimize knowledge base data according to user requirements.

[0098] Methods for identifying user identities include: using web-side cookie writing, temporary file writing, and hardware ID generation.

[0099] During the intelligent customer service access stage, if the user does not provide feedback within the preset time, a user feedback prompt will be issued. If the user still does not provide feedback after the prompt, the user's feedback will not be recorded.

[0100] For n and t, the upper limit of n is N and the lower limit of t is T. If n > N or t < T, then s is invalid.

[0101] h has two coefficients p1 and p2, and p1 > 1 > p2;

[0102] When h > p1, it is determined that the knowledge is correct and meets the user's needs;

[0103] When h < p2, it is determined that the knowledge is incorrect and the knowledge is corrected;

[0104] When p2 < h < p1, it is determined that the knowledge needs to be optimized.

[0105] The present invention effectively reduces the probability of knowledge base data attacks caused by malicious feedback, improves the efficiency of knowledge base maintenance, and also improves the accuracy of knowledge, achieving the purpose of knowledge optimization.

[0106] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program codes. The solutions in the embodiments of the present application can be implemented in various computer languages. For example, object-oriented programming languages such as Java and interpreted scripting languages such as JavaScript.

[0107] The present application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, and the combination of the flows and / or blocks in the flowchart and / or block diagram can also be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in Figure 1 one or more flows and / or blocks Figure 1 one or more blocks.

[0108] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device implements the functions in Figure 1 one or more flows and / or blocks Figure 1 A function specified in one or more boxes.

[0109] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0110] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0111] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for optimizing the prevention of malicious attacks on knowledge in a knowledge base, the method comprising: In the intelligent customer service stage when a user accesses the knowledge base, obtaining the user identity information, identifying the user identity according to the user identity information, and marking the user identity; Recording the feedback information of the user in the intelligent customer service access stage; The feedback information includes: the feedback of the user associated with the knowledge in the knowledge base sa, the number of times n the user gives feedback per day, and the time interval t between the last two feedbacks of the user; Determining the user requirements according to the feedback information; The determining of the user requirements includes: Determining the weighted user satisfaction s of sa according to n and t, the formula is as follows: When the s of sa is satisfied, determining the satisfaction Sx of the associated knowledge x of sa, the formula is as follows: Sx=∑s i Where, i is the total number of satisfied associated knowledge x; When the s of sa is not satisfied, determining the satisfaction S'x of the associated knowledge x of sa, the formula is as follows S′x=∑s′ i‘ Where, i' is the total number of dissatisfied associated knowledge x; Determining the user requirement h according to Sx and S'x, the formula is as follows: Optimizing the knowledge base data according to the user requirements.

2. According to the method of claim 1, the method of identifying the user identity comprises: Using web - side cookie writing, temporary file writing, and hardware ID generation.

3. According to the method described in claim 1, in the intelligent customer service access stage of the user, if the user does not give feedback within the preset time, a user feedback prompt is sent. If the user still does not give feedback after the prompt, the feedback of this time of the user is not recorded.

4. According to the method described in claim 1, for n and t, the upper limit of n is N, the lower limit of t is T. If n > N or t < T, then s is invalid.

5. According to the method described in claim 1, h has two coefficients p1 and p2, and p1 > 1 > p2; When h > p1, it is determined that the knowledge is correct and meets the user's needs; When h < p2, it is determined that the knowledge is incorrect and the knowledge is corrected; When p2 < h < p1, it is determined that the knowledge needs to be optimized.

6. A system for optimizing the prevention of malicious attacks on knowledge in a knowledge base, the system comprising: An identity identification module, in the intelligent customer service stage when a user accesses the knowledge base, obtaining the user identity information, identifying the user identity according to the user identity information, and marking the user identity; An information feedback module, recording the feedback information of the user in the intelligent customer service access stage; The feedback information includes: the feedback of the user associated with the knowledge in the knowledge base sa, the number of times n the user gives feedback per day, and the time interval t between the last two feedbacks of the user; A user requirement determination and optimization module, determining the user requirements according to the feedback information; The determining of the user requirements includes: Determining the weighted user satisfaction s of sa according to n and t, the formula is as follows: When the s of sa is satisfied, determining the satisfaction Sx of the associated knowledge x of sa, the formula is as follows: Sx=∑s i Where, i is the total number of satisfied associated knowledge x; When the s of sa is not satisfied, determining the satisfaction S'x of the associated knowledge x of sa, the formula is as follows S′x=∑s′ i‘ Where, i' is the total number of dissatisfied associated knowledge x; Determining the user requirement h according to Sx and S'x, the formula is as follows: Optimizing the knowledge base data according to the user requirements.

7. The system according to claim 6, wherein the method of identifying the user identity comprises: Using web - side cookie writing, temporary file writing, and hardware ID generation.

8. The system according to claim 6, in the intelligent customer service access stage, if the user does not give feedback within the preset time, a user feedback prompt is sent. If the user still does not give feedback after the prompt, the feedback of the user this time is not recorded.

9. The system according to claim 6, for n and t, the upper limit of n is N and the lower limit of t is T. If n > N or t < T, then s is invalid.

10. The system according to claim 6, h has two coefficients p1 and p2, and p1 > 1 > p2; When h > p1, it is determined that the knowledge is correct and meets the user's needs; When h < p2, it is determined that the knowledge is incorrect and the knowledge is corrected; When p2 < h < p1, it is determined that the knowledge needs to be optimized.