A method and device for processing session information

By calculating the similarity index between the expected vector and the actual vector in the conversation, determining the weight coefficient, and synthesizing the state vector, the problem of low accuracy of user intention judgment in the existing technology is solved, and the accuracy of semantic analysis of the intelligent customer service system is improved.

CN113076408BActive Publication Date: 2024-09-17LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110305854.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-19
Publication Date
2024-09-17
Estimated Expiration
2041-03-19

AI Technical Summary

Technical Problem

In the existing technology, state vectors are used as the basis for contacting context in semantic analysis, which is prone to misjudgment of user intentions, and the accuracy needs to be improved.

Method used

By determining the expected vector and actual vector of the previous round of dialogue, calculating the similarity index, determining the weight coefficient respectively, synthesizing the first state vector, and determining the target state vector combined with the current round of dialogue information to avoid erroneous judgments.

Benefits of technology

It improves the accuracy of user intention recognition in multiple rounds of dialogue, avoids erroneous dialogue status judgments and disrupts the semantic analysis of the above context, and enhances the judgment accuracy of the intelligent customer service system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113076408B
    Figure CN113076408B
Patent Text Reader

Abstract

The present application discloses a method and device for processing conversation information, including: determining an expected vector and an actual vector corresponding to a previous round of conversation; determining a first state vector corresponding to a current round of conversation according to the expected vector and the actual vector; determining a target state vector corresponding to the current round of conversation according to the first state vector corresponding to the current round of conversation and conversation information of the current round of conversation; realizing judgment of the conversation state of the current round and recognition of user intention in combination with context semantics in multiple rounds of conversation; and thereby avoiding the situation where an erroneous conversation state judgment in the above context disturbs the semantic analysis of the context of the above context, resulting in an erroneous judgment of the user intention.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method and device for processing session information. Background Art

[0002] Nowadays, with the maturity of human-computer dialogue technology, intelligent customer service systems have replaced manual customer service to a certain extent. In some cases, the intelligent customer service system will determine the user's intention based on multiple rounds of dialogue with the user, so as to solve related problems for the user. That is to say, in multiple rounds of dialogue, the intelligent customer service system needs to conduct semantic analysis based on the context of the dialogue to determine the user's intention.

[0003] In the prior art, the state vector can be determined based on the content of the previous round of conversation, and the state vector can include the intelligent customer service system's temporary judgment of the user's intention in the previous round of conversation. Combining the state vector of the previous round with the content of the current round of conversation, the effect of "connecting the previous context" can be achieved in semantic analysis.

[0004] However, the judgment of user intention included in the state vector is only a temporary analysis result, that is, the judgment is not necessarily correct. Therefore, in the prior art, the state vector is used as the basis for connecting the context in semantic analysis, which is prone to misjudgment of user intention, and the accuracy needs to be improved. Summary of the invention

[0005] The present application provides a method and device for processing session information.

[0006] In a first aspect, the present application provides a method for processing session information, comprising:

[0007] Determine the expected vector and actual vector corresponding to the previous round of dialogue;

[0008] Determine a first state vector corresponding to the current round of dialogue according to the expected vector and the actual vector;

[0009] A target state vector corresponding to the current round of dialogue is determined according to the first state vector corresponding to the current round of dialogue and the dialogue information of the current round of dialogue.

[0010] Preferably, determining the expectation vector corresponding to the previous round of dialogue includes:

[0011] Determining expected keywords according to the historical state vector corresponding to the previous round of dialogue;

[0012] The expected vector is determined according to the expected keyword.

[0013] Preferably, the determining the actual vector corresponding to the previous round of dialogue includes:

[0014] The actual vector is determined according to the dialogue information of the previous round of dialogue.

[0015] Preferably, determining the first state vector corresponding to the current round of dialogue according to the expected vector and the actual vector includes:

[0016] Determining a similarity index between the expected vector and the actual vector;

[0017] Determining weight coefficients of the expected vector and the actual vector respectively according to the similarity index;

[0018] The first state vector is determined according to the expected vector, the actual vector and the weight coefficient.

[0019] Preferably, determining the weight coefficients of the expected vector and the actual vector respectively according to the similarity index comprises:

[0020] Determining a first weight coefficient of the expected vector according to the similarity index; the first weight coefficient is positively correlated with the similarity index;

[0021] According to the similarity index, a second weight coefficient of the actual vector is determined; the second weight coefficient is negatively correlated with the similarity index.

[0022] Preferably, before determining the target state vector corresponding to the current round of dialogue, the method further includes:

[0023] A second state vector corresponding to the current round of dialogue is determined according to the dialogue information of the previous round of dialogue.

[0024] Preferably, determining the target state vector corresponding to the current round of dialogue according to the first state vector corresponding to the current round of dialogue and the dialogue information of the current round of dialogue includes:

[0025] A target state vector corresponding to the current round of dialogue is determined according to the first state vector, the second state vector, and the dialogue information of the current round of dialogue.

[0026] Preferably, it also includes:

[0027] Determine output information corresponding to a next round of dialogue according to the target state vector corresponding to the current round of dialogue.

[0028] Preferably, it also includes:

[0029] An expected vector corresponding to the next round of dialogue is determined according to the output information corresponding to the next round of dialogue.

[0030] In a second aspect, the present application provides a session information processing device, including:

[0031] A historical vector determination module, used to determine the expected vector and the actual vector corresponding to the previous round of dialogue;

[0032] A first state vector determination module, configured to determine a first state vector corresponding to a current round of dialogue according to the expected vector and the actual vector;

[0033] The target state vector determination module is used to determine the target state vector corresponding to the current round of dialogue according to the first state vector corresponding to the current round of dialogue and the dialogue information of the current round of dialogue.

[0034] Compared with the related art, the method and device for processing session information provided by the present application provide a completely new way of processing session information. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A schematic diagram showing a flow chart of a method for processing session information according to an embodiment of the present application;

[0036] Figure 2 A schematic diagram showing a flow chart of a method for processing session information according to another embodiment of the present application;

[0037] Figure 3 A schematic diagram of the structure of a session information processing device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0038] In order to make the purpose, features, and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0039] The intelligent customer service system will determine the user's intention based on multiple rounds of conversations with the user, so as to solve related problems for the user; that is, it can connect the context of the conversation for semantic analysis to achieve judgment of the user's intention. In some cases, the system can determine the state vector based on the content of the previous round of conversation, and the state vector can include the system's temporary judgment of the user's intention in the previous round of conversation. Combining the state vector of the previous round with the content of the current round of conversation, the effect of "connecting the previous context" can be achieved in semantic analysis.

[0040] However, the judgment of the user's intention in the above state vector is only a temporary analysis result, that is, the judgment is not necessarily correct. Therefore, in the prior art, the state vector is used as the basis for connecting the context in semantic analysis, which is prone to misjudgment of the user's intention, and the accuracy needs to be improved.

[0041] Therefore, the present application embodiment will provide a method for processing session information. Figure 1 As shown, the method in this embodiment includes the following steps:

[0042] Step 101: Determine the expected vector and the actual vector corresponding to the previous round of dialogue.

[0043] In the scenario of multiple rounds of dialogue, the specific content of the dialogue can be called dialogue information. Usually, a question and answer between the intelligent customer service system and the customer is defined as a round of dialogue. In a round of dialogue, the dialogue information output by the system can be called output information, and the dialogue information received by the system from the user can be called input information. According to the dialogue information of the previous round of dialogue, the corresponding expected vector and actual vector can be determined.

[0044] The expectation vector corresponding to the previous round of dialogue represents certain information that the system originally expected to learn from the previous round of dialogue before the previous round of dialogue began. Specifically, determining the expectation vector corresponding to the previous round of dialogue includes: determining the expected keyword according to the historical state vector corresponding to the previous round of dialogue; and determining the expectation vector according to the expected keyword.

[0045] Suppose that in an earlier conversation, the user asked the system about the "weather", indicating the user's "intention". In the semantic analysis, the conversation state determined by the "intention" can form a historical state vector. Furthermore, the system needs to make it clear in the previous round of conversation that the user wants to ask about "where the weather is" in order to accurately meet the user's intention. Therefore, in the previous round of conversation, the system's output information can be "where you need to ask about the weather", in the expectation that the user will reply to the input information about "location". In other words, the expected keyword corresponding to the previous round of conversation is "location"; this expected keyword is also generally referred to as a "slot" in this field. The expected vector can be reflected by the expected keyword "location".

[0046] However, the user's intention may change during the conversation, and the input information provided by the user may be standardized or non-standard. Therefore, the input information actually provided by the user in the previous round of conversation may or may not be consistent with the system's expectations. In this step, the corresponding actual vector can be determined based on the input information actually provided by the user in the previous round of conversation. The actual vector reflects the information actually expressed by the user in the previous round of conversation.

[0047] Step 102: Determine a first state vector corresponding to the current round of dialogue according to the expected vector and the actual vector.

[0048] It is understandable that the expected vector and the actual vector may have a strong correlation or a weak correlation. In combination with the above example, when the expected keyword of the expected vector is "location", if the actual vector contains information about "location", the correlation between the two is strong; if it does not contain information about "location", the correlation between the two is weak.

[0049] Assuming that the expected vector is highly correlated with the actual vector, it may indicate that the user accurately answered the question raised by the system. This can to some extent indicate that the system's previous judgment of the dialogue status was correct, or that the system's recognition of the user's intention was accurate.

[0050] On the contrary, if the expected vector is weakly correlated with the actual vector, it may indicate that the user's intention has changed, or the system has failed to accurately identify the user's intention, resulting in a lack of mutual understanding between the system and the user, and a communication barrier. In other words, it is believed that the system's previous judgment of the dialogue status had some errors.

[0051] Therefore, the dialogue state after the previous dialogue ended and before the current dialogue started can be reconfirmed based on the expected vector and the actual vector, that is, the first state vector can be determined. Specifically, the similarity index of the expected vector and the actual vector can be determined; the weight coefficients of the expected vector and the actual vector can be determined based on the similarity index; and the first state vector can be determined based on the expected vector, the actual vector and the weight coefficient.

[0052] The similarity index is an index that quantitatively measures the correlation between the expected vector and the actual vector. In this embodiment, the calculation process of the similarity index is not limited, and any algorithm that can achieve the same or similar effect can be combined in this embodiment.

[0053] It is understandable that if the similarity index is higher, that is, the correlation between the expected vector and the actual vector is stronger, it means that the system's previous judgment on the dialogue state is more accurate. At this time, the first state vector can be determined more based on the "previous context", that is, the expected vector determined based on the historical state vector, to continue and strengthen the relevance of the context. On the contrary, if the similarity index is lower, that is, the correlation between the expected vector and the actual vector is weaker, it means that the system's previous judgment on the dialogue state has a large error. At this time, the first state vector can be determined more based on the "user's latest situation", that is, the actual vector determined based on the input information of the previous round of dialogue, to weaken the relevance of the context, and try to re-judge the user's possible new intentions, or unrecognized intentions.

[0054] That is to say, the first weight coefficient of the expected vector should be determined according to the similarity index; the first weight coefficient is positively correlated with the similarity index. The second weight coefficient of the actual vector should be determined according to the similarity index; the second weight coefficient is negatively correlated with the similarity index. Then, the expected vector, the actual vector, the first weight coefficient and the second weight coefficient are weighted to determine the first state vector.

[0055] Step 103: Determine a target state vector corresponding to the current round of dialogue according to the first state vector corresponding to the current round of dialogue and the dialogue information of the current round of dialogue.

[0056] In this embodiment, the output information of the system in the current round can be determined according to the first state vector. Alternatively, the output information of the system in the current round can be determined according to other state vectors of the current round. For example, the output information of the system in the current round can be determined according to the second state vector determined based on the dialogue information of the previous round of dialogue. After the system provides the output information of the current round to the user, the input information fed back by the user based on the output information of the current round can be obtained. The output information and input information of the current round will constitute the complete dialogue information of the current round.

[0057] Furthermore, the target state vector corresponding to the current round of dialogue can be determined based on the first state vector corresponding to the current round and the dialogue information of the current round. The actual semantic content of the dialogue involved in the current round can be determined based on the dialogue information of the current round. Based on the first state vector, the semantic analysis of the previous round of dialogue can be combined to achieve the above connection.

[0058] And because there is a weight configuration of the expected vector and the actual vector in the first state vector, the context relevance can be continued and strengthened when the original dialogue state judgment is correct; it can also try to re-judge the user's possible new intention or unrecognized intention when the original dialogue state judgment is wrong. This avoids the situation in the prior art where the wrong dialogue state judgment disrupts the semantic analysis of the previous context, resulting in the wrong judgment of the user's intention.

[0059] It can be seen from the above technical scheme that the beneficial effects of this embodiment are: the first state vector is determined by using the expected vector and the actual vector, and the template state vector of the current round is determined by using the first state vector; in multiple rounds of dialogue, the judgment of the dialogue state of the current round and the recognition of the user's intention are realized in combination with the context semantics; and thereby avoiding the situation where the wrong dialogue state judgment in the above text disrupts the semantic analysis of the context of the above text, resulting in an erroneous judgment of the user's intention.

[0060] Figure 1 What is shown is only a basic embodiment of the method described in this application. By performing certain optimization and expansion on this basis, other preferred embodiments of the method can be obtained.

[0061] like Figure 2 As shown, another specific embodiment of a method for processing session information provided by the present application is shown. This embodiment is further expanded on the basis of the above-mentioned embodiment. The method specifically includes the following steps:

[0062] Step 201: Determine the expected vector and the actual vector corresponding to the previous round of dialogue.

[0063] Step 202: Determine a first state vector corresponding to the current round of dialogue according to the expected vector and the actual vector.

[0064] The contents of the above steps 201 to 202 are consistent with those of the above-mentioned embodiment and are not described in detail here.

[0065] Step 203: Determine a second state vector corresponding to the current round of dialogue according to the dialogue information of the previous round of dialogue.

[0066] In this embodiment, the conversation state is further judged based on the conversation information of the previous round of conversation to determine the intention expressed by the user in the previous round of conversation, that is, to determine the second state vector. When analyzing the current round of conversation, the second state vector is combined to realize the connection context in multiple rounds of conversation to a certain extent.

[0067] Step 204: Determine a target state vector corresponding to the current round of dialogue according to the first state vector, the second state vector and the dialogue information of the current round of dialogue.

[0068] In this embodiment, since the second state vector has been determined, the target state vector is determined by combining the first state vector, the second state vector and the dialogue information of the current dialogue round. As a result, the target state vector can involve more information related to the context of the previous text, which can further improve the accuracy of the semantic analysis of the current dialogue information.

[0069] Step 205: Determine the output information corresponding to the next round of dialogue according to the target state vector corresponding to the current round of dialogue.

[0070] Step 206: Determine the expected vector corresponding to the next round of dialogue according to the output information corresponding to the next round of dialogue.

[0071] In fact, among multiple rounds of dialogue, any round of dialogue may be the so-called current round in this embodiment. And any current round of dialogue may also be the "previous round" relative to the next round of dialogue. In other words, the above process of determining the target state vector of the current round of dialogue can be repeated in multiple rounds of dialogue.

[0072] Specifically, the output information corresponding to the next round of dialogue can be determined according to the target state vector corresponding to the current round of dialogue; at the same time, the expected vector corresponding to the next round of dialogue can be determined according to the output information corresponding to the next round of dialogue. Then, the next round of dialogue is started, and the target state vector corresponding to the next round of dialogue is determined in the same way.

[0073] Therefore, the method in this embodiment will continue to determine the dialogue state according to the dialogue information of each round and the previous dialogue information as multiple rounds of dialogue proceed, so as to more accurately judge the user's intention and improve the human-computer dialogue experience of the intelligent customer service system.

[0074] like Figure 3 As shown, a specific embodiment of a session information processing device provided by the present application is shown. The device of this embodiment is used to execute Figures 1-2 The physical device of the method. Its technical solution is essentially consistent with the above embodiment, and the corresponding description in the above embodiment is also applicable to this embodiment. The device in this embodiment includes:

[0075] A historical vector determination module 301 is used to determine the expected vector and the actual vector corresponding to the previous round of dialogue;

[0076] A first state vector determination module 302, configured to determine a first state vector corresponding to the current round of dialogue according to the expected vector and the actual vector;

[0077] The target state vector determination module 303 is used to determine the target state vector corresponding to the current round of dialogue according to the first state vector corresponding to the current round of dialogue and the dialogue information of the current round of dialogue.

[0078] In addition Figure 3 Based on the embodiment shown, preferably, it also includes:

[0079] The historical vector determination module 301 includes:

[0080] The expected vector determination unit 311 is used to determine the expected keyword according to the historical state vector corresponding to the previous round of dialogue; and determine the expected vector according to the expected keyword.

[0081] The actual vector determining unit 312 is used to determine the actual vector according to the dialogue information of the previous round of dialogue.

[0082] The first state vector determination module 302 includes:

[0083] The similarity index determining unit 321 is used to determine the similarity index between the expected vector and the actual vector.

[0084] The weight determination unit 322 is used to determine the weight coefficients of the expected vector and the actual vector respectively according to the similarity index.

[0085] The first state vector determining unit 323 is used to determine the first state vector according to the expected vector, the actual vector and the weight coefficient.

[0086] The weight determination unit 322 includes:

[0087] The first weight subunit 3221 is used to determine a first weight coefficient of the expected vector according to the similarity index; the first weight coefficient is positively correlated with the similarity index.

[0088] The second weight subunit 3222 is used to determine a second weight coefficient of the actual vector according to the similarity index; the second weight coefficient is negatively correlated with the similarity index.

[0089] Also includes:

[0090] The second state vector determination module 304 is used to determine the second state vector corresponding to the current round of dialogue according to the dialogue information of the previous round of dialogue.

[0091] The target state vector determination module 303 determines the target state vector corresponding to the current round of dialogue according to the first state vector, the second state vector and the dialogue information of the current round of dialogue.

[0092] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present application described in the above-mentioned "Exemplary Method" section of this specification.

[0093] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0094] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of the method according to various embodiments of the present application described in the above "Exemplary Method" section of this specification.

[0095] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0096] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.

[0097] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.

[0098] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.

[0099] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0100] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A method for processing session information, include: Determine the expected vector and actual vector corresponding to the previous round of dialogue; Determine a first state vector corresponding to the current round of dialogue according to the expected vector and the actual vector; Determining a target state vector corresponding to the current round of dialogue according to the first state vector corresponding to the current round of dialogue and dialogue information of the current round of dialogue; Wherein, determining the first state vector corresponding to the current round of dialogue according to the expected vector and the actual vector includes: determining a similarity index between the expected vector and the actual vector; determining weight coefficients of the expected vector and the actual vector respectively according to the similarity index; determining the first state vector according to the expected vector, the actual vector and the weight coefficient.

2. According to the method of claim 1, the determination of the expected vector corresponding to the previous round of dialogue include: Determining expected keywords according to the historical state vector corresponding to the previous round of dialogue; The expected vector is determined according to the expected keyword.

3. According to the method of claim 1, the actual vector corresponding to the previous round of dialogue is determined include: The actual vector is determined according to the dialogue information of the previous round of dialogue.

4. The method according to claim 1, wherein the weight coefficients of the expected vector and the actual vector are determined according to the similarity index. include: Determining a first weight coefficient of the expected vector according to the similarity index; The first weight coefficient is positively correlated with the similarity index; According to the similarity index, a second weight coefficient of the actual vector is determined; the second weight coefficient is negatively correlated with the similarity index.

5. According to the method of claim 1, before determining the target state vector corresponding to the current round of dialogue, include: A second state vector corresponding to the current round of dialogue is determined according to the dialogue information of the previous round of dialogue.

6. The method according to claim 5, wherein the target state vector corresponding to the current round of dialogue is determined based on the first state vector corresponding to the current round of dialogue and the dialogue information of the current round of dialogue. include: A target state vector corresponding to the current round of dialogue is determined according to the first state vector, the second state vector, and the dialogue information of the current round of dialogue.

7. The method according to any one of claims 1 to 6, further comprising: include: Determine output information corresponding to a next round of dialogue according to the target state vector corresponding to the current round of dialogue.

8. The method according to claim 7, further comprising: include: An expected vector corresponding to the next round of dialogue is determined according to the output information corresponding to the next round of dialogue.

9. A device for processing session information, include: A historical vector determination module is used to determine the expected vector and actual vector corresponding to the previous round of dialogue; A first state vector determination module, configured to determine a first state vector corresponding to a current round of dialogue according to the expected vector and the actual vector; a target state vector determination module, configured to determine a target state vector corresponding to the current round of dialogue according to the first state vector corresponding to the current round of dialogue and dialogue information of the current round of dialogue; Among them, the first state vector determination module is specifically used to: determine the similarity index between the expected vector and the actual vector; determine the weight coefficients of the expected vector and the actual vector respectively according to the similarity index; determine the first state vector according to the expected vector, the actual vector and the weight coefficient.