Input error correction method and related device, input device and storage medium

By obtaining and predicting the user's key operation information, real-time error correction of the input method is achieved, which solves the problem of low real-time and low reliability of mistouch correction of the existing input method, reduces operating costs, and improves the input experience.

CN114356110BActive Publication Date: 2024-10-25IFLYTEK CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202111415890.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-25
Publication Date
2024-10-25
Estimated Expiration
2041-11-25

AI Technical Summary

Technical Problem

When the existing input method accidentally touches a key during the input process, the immediacy and reliability of the error correction mechanism are low, and the operation cost is high. The user needs to choose among error correction candidate results, resulting in a poor experience.

Method used

By obtaining the characters and reference information actually triggered by the user's key operation, it predicts whether it is an accidental touch, and replaces the accidentally touched characters in the prediction results, achieving instant error correction during the input process and reducing user operation costs.

Benefits of technology

It improves the immediacy and reliability of input error correction, reduces the user's operating costs during the input process, and improves the input experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114356110B_ABST
    Figure CN114356110B_ABST
Patent Text Reader

Abstract

The present application discloses an input error correction method and related apparatus, input device and storage medium, wherein the input error correction method comprises: obtaining the first character actually triggered by the key operation performed by the user and the reference information of the key operation; performing prediction based on the first character and the reference information to obtain the predicted result of the key operation; wherein the predicted result includes whether the first character is a false touch, and the second character expected to be triggered by the key operation when the first character is a false touch; in response to the predicted result including that the first character is a false touch, the first character is replaced by the second character. The above scheme can improve the immediacy and reliability of input error correction and reduce the operating cost of input error correction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of input methods, and in particular to an input error correction method and related apparatus, input device and storage medium. Background Art

[0002] With the rapid development of electronic information technology, users are increasingly using electronic devices such as mobile phones and tablets to send messages, retrieve information, and perform other operations, which provides great convenience for daily study, work, and life.

[0003] However, users will inevitably touch the keys by mistake during the input process, especially when inputting through 26 keys. Since the keys are small, they are relatively more likely to touch by mistake. At present, mainstream input methods often provide error correction candidate results after the user has completed the overall input of words, phrases, etc., so that the user can choose between the error correction candidate results and the actual input results. In this way, on the one hand, in terms of experience, the user can clearly perceive that the key has been accidentally touched through the error correction candidate results after the input is completed. In other words, the error correction mechanism is post-processing and has poor immediacy; on the other hand, in terms of interaction, the user also needs and can only choose from the options after the error correction. In other words, the error correction mechanism requires the user to actively confirm, has low reliability, and high operating costs. In view of this, how to improve the immediacy and reliability of input error correction and reduce the operating cost of input error correction has become an urgent problem to be solved. Summary of the invention

[0004] The main technical problem solved by the present application is to provide an input error correction method and related apparatus, input device and storage medium, which can improve the immediacy and reliability of input error correction and reduce the operating cost of input error correction.

[0005] In order to solve the above-mentioned technical problems, the first aspect of the present application provides an input error correction method, including: obtaining a first character actually triggered by a key operation performed by a user and reference information of the key operation; making a prediction based on the first character and the reference information to obtain a predicted result of the key operation; wherein the prediction result includes whether the first character is a false touch, and a second character that is expected to be triggered by the key operation when the first character is a false touch; in response to the prediction result including that the first character is a false touch, replacing the first character with the second character.

[0006] In order to solve the above-mentioned technical problems, the second aspect of the present application provides an input error correction device, including: an acquisition module, a prediction module and a replacement module, the acquisition module is used to acquire the first character actually triggered by the key operation performed by the user and the reference information of the key operation; the prediction module is used to make a prediction based on the first character and the reference information to obtain a predicted result of the key operation; wherein the prediction result includes whether the first character is a false touch, and the second character expected to be triggered by the key operation when the first character is a false touch; the replacement module is used to replace the first character with the second character in response to the prediction result including that the first character is a false touch.

[0007] In order to solve the above technical problems, the third aspect of the present application provides an input device, including a memory and a processor coupled to each other, the memory storing program instructions, and the processor being used to execute the program instructions to implement the input error correction method in the above first aspect.

[0008] In order to solve the above technical problem, the fourth aspect of the present application provides a computer-readable storage medium, which stores program instructions that can be executed by a processor, and the program instructions are used to implement the input error correction method in the above first aspect.

[0009] The above scheme obtains the first character actually triggered by the key operation performed by the user and the reference information of the key operation, and then predicts based on the first character and the reference information to obtain the predicted result of the key operation, and the predicted result includes whether the first character is a false touch, and the second character that the key operation is expected to trigger when the first character is a false touch. Based on this, in response to the prediction result including that the first character is a false touch, the first character is replaced with the second character. On the one hand, in terms of experience, during the input error correction process, the key operation performed by the user is directly corrected by false touch prediction and direct replacement, that is, the key operation is corrected immediately during the input process. On the other hand, in terms of interaction, once the first character actually triggered by the key operation is predicted to be a false touch, it is replaced according to the predicted second character without the need for user selection, which greatly reduces the operating cost. Moreover, since the false touch prediction is combined with the reference information of the key operation, the reliability can also be improved. Therefore, the immediacy and reliability of input error correction can be improved, and the operating cost of input error correction can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 It is a flowchart of an embodiment of the input error correction method of the present application;

[0011] Figure 2 is a schematic diagram of an embodiment of an accidental key press;

[0012] Figure 3 is a schematic diagram of an embodiment of a contact area;

[0013] Figure 4 It is a schematic diagram of the framework of an embodiment of the input error correction device of the present application;

[0014] Figure 5 It is a schematic diagram of the framework of an embodiment of an input device of the present application;

[0015] Figure 6 It is a schematic diagram of a framework of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0016] The scheme of the embodiment of the present application is described in detail below in conjunction with the drawings of the specification.

[0017] In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures, interfaces, and technologies are provided to facilitate a thorough understanding of the present application.

[0018] The terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship. In addition, "many" in this article means two or more than two.

[0019] See also Figure 1 , Figure 1 It is a flowchart of an embodiment of the input error correction method of the present application.

[0020] Specifically, the following steps may be included:

[0021] Step S11: Acquire the first character actually triggered by the key operation performed by the user and reference information of the key operation.

[0022] In one implementation scenario, a user can perform key operations through an input device such as a smart phone or a tablet computer, that is, the input device can be integrated with a touch screen, and a soft keyboard can be provided through the touch screen for the user to perform key operations through the soft keyboard. In addition, the soft keyboard can also freely switch input methods, such as Chinese input method, English input method, etc., and the input language is not limited here. It should be noted that the soft keyboard can be set to 26 keys by default, that is, the soft keyboard can include keys for 26 English letters.

[0023] In one implementation scenario, the above-mentioned input device may include but is not limited to: service equipment integrated with a touch screen (such as a violation query self-service terminal, etc.), vehicle-mounted equipment (such as a central control, etc.), which is not limited here.

[0024] In an implementation scenario, it should be noted that when a user performs a key operation, the user actually presses the area with the user's fingertips, so the first character actually triggered by the key operation can be the character where the center of the press is located. In real scenarios, due to many reasons such as the small keyboard and user input habits, mis-touch is often caused by the user's center of press not falling on the target key. Please refer to Figure 2 , Figure 2 Schematic diagram of an embodiment of a key mis-touch. Figure 2 As shown in the figure, the user expects to click the key "u", but because the user is used to being able to see the key he wants to click, the finger will shift downward when performing the key operation, leaving part of the key "u" visible. Figure 2 The elliptical shadow in the middle actually covers the four keys "u", "i", "h" and "j", and due to the pressure on the center point (as shown in the figure Figure 2 If the key (as shown by the black dot in the middle) falls on the key "j", the first character actually triggered by the key operation performed by the user is "j", thereby causing a "false touch" that is inconsistent with the key expected by the user. Figure 2 The "false touch" shown is only a possible false touch situation in the real scene, and does not limit the false touch situations that may occur in the actual application process. Of course, in the display scene, the first character actually triggered by the user's key operation may also be the user's expected character, which is not limited here.

[0025] In one implementation scenario, the key operation involves two reference areas, which may include: the key area of ​​the first character on the input device, and the contact area between the user and the input device when performing the key operation, and the reference information may include a first reference value, and the overlap area of ​​the above two reference areas is related to the first reference value. Figure 2 , still taking the first character as "j" as an example, Figure 2 The rounded rectangular area where the letter J is located is the key area of ​​the first character "j" on the input device, and the contact area between the user and the input device when the user performs a key operation is the fingertip area where the user contacts the input device, such as Figure 2 As shown in the ellipse shadow, other situations can be deduced by analogy, and no more examples are given here. In the above method, the key operation involves two reference areas, the two reference areas include the key area of ​​the first character input device and the contact area of ​​the input device when the user performs the key operation, the reference information includes a first reference value, and the overlapping area of ​​the two reference areas is related to the first reference value, so in the subsequent false touch prediction process, the prediction can be made by combining the contact area of ​​the input device actually pressed by the user and the key area of ​​the first character actually triggered, which is conducive to improving the accuracy of false touch prediction.

[0026] In a specific implementation scenario, the contact center, the first contact axis length, and the second contact axis length on the input device when the user performs a key operation can be obtained, and based on the contact center, the first contact axis length, and the second contact axis length, an elliptical area is obtained as the contact area. Specifically, the above-mentioned contact center (i.e., the aforementioned point pressure center point), the first contact axis length, and the second contact axis length can all be obtained through the underlying system of the input device. Taking Android as an example, in addition to obtaining the contact center through the Android onTouchEvent event, relevant parameters can also be obtained through the Android underlying getEvent event. For example, the fields EV_ABS, ABS_MT_TOUCH_MAJOR, and ABS_MT_TOUCH_MINOR can be obtained through the getEvent event, where EV_ABS represents the contact center, ABS_MT_TOUCH_MAJOR represents the major axis length of the contact area (i.e., the first contact axis length), and ABS_MT_TOUCH_MINOR represents the minor axis length of the contact area (i.e., the second contact axis length). On this basis, an ellipse is made based on the contact center, the first contact axis length, and the second contact axis length, which can be regarded as the contact area. Other systems such as Windows, Linux, and iOS can be deduced in the same way, and I will not give examples one by one here. Figure 3 , Figure 3 FIG. 1 is a schematic diagram of an embodiment of a contact area. Figure 3 As shown, the black dot represents the contact center, the long axis length represents the first contact axis length, the short axis length represents the second contact axis length, and the elliptical shadow represents the contact area. The above method obtains the contact center, the first contact axis length, and the second contact axis length on the input device when the user performs a key operation from the underlying system of the input device, and obtains the elliptical area as the contact area based on the contact center, the first contact axis length, and the second contact axis length, which is conducive to improving the accuracy of the contact area.

[0027] In a specific implementation scenario, the first reference value may be a ratio of the area between the overlapped area and the contacted area. Figure 3 , still taking the first character as "j" as an example, Figure 3 The shaded area on the middle letter J key represents the overlapping area between the contact area and the key area of ​​the first character. On this basis, the area of ​​this area is divided by the area of ​​the entire elliptical shaded area to obtain the first reference value. Other cases can be deduced by analogy, and examples are not given one by one here. It should be noted that based on the actual test verification of this application, the above-mentioned first reference value has a significant correlation with the key mis-touch. Please refer to Table 1, which is a schematic table of an embodiment of the correlation between the first reference value and the key mis-touch.

[0028] Table 1 Schematic table of an embodiment of the correlation between the first reference value and the key mis-touch

[0029]

[0030]

[0031] As shown in Table 1, during multiple test verifications, the number of times the first reference value is higher is greater, and the number of times the first reference value is lower is less, because in actual operation, in most cases, the overlapping area between the key area of ​​the first character actually triggered by the user's key operation and the contact area still accounts for a large proportion of the entire contact area, which obviously also follows the actual usage rules. On this basis, the larger the first reference value, the lower the false touch rate is generally, and conversely, the smaller the first reference value, the higher the false touch rate is generally. It can be seen that the above method, by setting the first reference value as the ratio of the area between the overlapping area and the contact area, can provide robust and accurate reference information for subsequent false touch predictions, which is beneficial to improving the accuracy of subsequent false touch predictions.

[0032] In an implementation scenario, in order to further improve the accuracy of subsequent false touch prediction, the reference information may also include a second reference value, and the input device may also be integrated with a gyroscope, then the second reference value may include at least one of the following: the state value of the gyroscope on the Y axis, the state value of the gyroscope on the Z axis, and the angular velocity of the gyroscope on the X axis in the first time period before the key operation is performed. It should be noted that, in combination with the state value of the gyroscope on the Y axis, the state value of the gyroscope on the Z axis, and the angular velocity of the gyroscope on the X axis in the first time period before the key operation is performed, the state of the input device during the user's input through the input device can be reflected. For details, please refer to the relevant technical details of the gyroscope, which will not be repeated here. For example, when the above three are relatively constant, it can be considered that the user may be in a stable placement state during the input process through the input device, and the probability of false touch is usually low at this time; or, if the state value of the gyroscope on the Y axis or the state value of the Z axis changes significantly, it can be considered that the input device switches between the horizontal screen and the vertical screen, and false touch may occur at this time. In summary, the above method, combined with the relevant information of the gyroscope on the X-axis, Y-axis, and Z-axis, can be used to obtain the state of the input device when the user inputs through the input device (such as being in a stable placement state, in a forward and backward swinging state, in a left and right swinging state, etc.), thereby assisting in the subsequent false touch prediction and improving the accuracy of the false touch prediction.

[0033] In one implementation scenario, the reference information may also include a third reference value, and the third reference value indicates the time difference between the execution time of the key operation and the execution time of the previous key operation, that is, the third reference value may reflect the user's key speed. The smaller the time difference is, the faster the user's key speed is, and the possibility of a false key press is also increased. Conversely, the larger the time difference is, the slower the user's key speed is, and the possibility of a false key press is generally reduced compared to a fast key press. In the above manner, the reference information is also set to include a third reference value, and the third reference value indicates the time difference between the execution time of the key operation and the execution time of the previous key operation, so the key speed can be used to further assist in the subsequent false touch prediction and improve the accuracy of the false touch prediction.

[0034] In one implementation scenario, the reference information further includes a fourth reference value, which indicates the final character ultimately triggered by the previous key operation. In real scenarios, there is often a certain correlation between the character that the user expects to trigger by pressing this key and the final character ultimately triggered by the previous key operation. Therefore, by obtaining the final character ultimately triggered by the previous key operation, it is possible to assist in the prediction of the false touch of this key operation to a certain extent, thereby improving the accuracy of the false touch prediction. For example, for this key operation, the character expected to be triggered is "o", but the character "i" is mistakenly touched, and the final character finally triggered by the previous key operation is "w". In the Chinese pinyin input state, the characters "w" and "i" cannot form a word. Therefore, when predicting the mis-touch of this key in the future, it can be considered that the first character "i" actually triggered by this key operation is most likely a mistake, and it can be further inferred through the final character "w" finally triggered by the previous key operation, as well as the characters "u", "o", "h", "j", "k", etc. near the first character "i" actually triggered by this key operation. It can be found that the characters "u" and "o" can form a word with the character "w", so it can be considered that there is a high probability that these two are the characters expected to be triggered by this key operation. It should be noted that the above example is only a possible key operation in actual application, and does not limit the actual key operation. In the above method, the reference information is set to also include a fourth reference value, and the fourth reference value represents the final character finally triggered by the previous key operation, which can further assist in the prediction of subsequent false touches, and not only helps to assist in predicting whether a false touch occurs, but also helps to assist in predicting the character that the key operation is expected to trigger, which is beneficial to improving the reliability of input error correction.

[0035] In an implementation scenario, the reference information may also include a fifth reference value, and the fifth reference value indicates the time when the key operation is performed. Exemplarily, the time when the key operation is performed can be in units of precision of "ke". For example, when the user uses the pinyin input method to input the word "home" through the input device, the first character actually triggered by the key operation is "j", and its execution time is 10:15, the first character actually triggered by the key operation is "i", and its execution time is also 10:15, and the first character actually triggered by the key operation is "a", and its execution time is also 10:15, and other situations can be deduced by analogy, and examples are not given one by one here. In addition, in real scenarios, "fen" and the like can also be used as the precision unit of the time when the key operation is performed, which is not limited here. It should be noted that for different key operations, if the time when the key operation is performed is the same, it is very likely that there is a certain correlation between the characters that these key operations expect to trigger, such as the characters "j", "i", and "a" triggered respectively when the word "home" is input as mentioned above. Therefore, in the above method, the reference information is also set to include the fifth reference value, and the fifth reference value represents the moment when the key operation is executed, which can help to combine the character finally triggered by the case operation with the same fifth reference value in the subsequent false touch prediction process, which is conducive to further improving the accuracy of false touch prediction.

[0036] In one implementation scenario, the reference information also includes a sixth reference value, and the sixth reference value indicates the geographical location of the input device. It should be noted that the geographical location can be obtained through WIFI (wireless Fidelity), GPS (Global Positioning System), etc. Further, the geographical location may include but is not limited to: home, company, school, etc., and the geographical location coding method can refer to the relevant standards for classification and coding of geographical information points of interest (such as GBT 35648-2017), which will not be repeated here. Exemplarily, when the sixth reference value indicates that the geographical location of the input device is a school, if the character finally triggered by the user's last key operation is "f", and the first character actually triggered by this key operation is "r", it is possible that no mistaken touch occurs (such as wanting to enter English "France" in school), and it is also possible to make a mistake (such as when entering Chinese "fraction" in school, the key E may be mistakenly touched as the key R), and the probability of these two situations occurring in school is relatively high; similarly, if the sixth reference value indicates that the geographical location of the input device is a travel agency, the user is likely to expect to enter France, and the possibility of no mistaken touch is relatively high. In the above method, the reference information is also set to include a sixth reference value, and the sixth reference value represents the geographical location of the input device, so in the subsequent false touch prediction process, the geographical location can be further combined to assist the prediction, which is conducive to further improving the accuracy of false touch prediction.

[0037] In an implementation scenario, the reference information may also include a seventh reference value, and the seventh reference value represents the historical false touch rate of the first character. Exemplarily, for 26 English letters, the probability of false touch of each letter within a preset time (such as 1 minute, 1 quarter of an hour, 1 hour, etc.) before this key operation can be counted, and the historical false touch rate of 26 English letters can be obtained. It should be noted that the number of times each letter is actually triggered within a preset time (such as 1 minute, 1 quarter of an hour, 1 hour, etc.) before this key operation, and the number of times each letter is finally corrected, can be counted first, then the number of times each letter is corrected within the preset time divided by the number of times actually triggered, and the probability of false touch of each letter can be obtained. Of course, in order to improve the reference value of the historical false touch rate and reduce its update frequency to avoid waste of resources, the preset time can be set longer, and it is set to non-real-time update, such as the historical false touch rate can be counted once a week, and remain unchanged in the next week, when the last statistics reach one week, the historical false touch rate is counted again, and so on, and no more examples are given here. In addition, the higher the historical false touch rate, the higher the possibility that the first character is falsely touched. Conversely, the lower the historical false touch rate, the lower the possibility that the first character is falsely touched. On the one hand, this may be caused by the user's input habits. For example, when the user is used to typing with one hand, some characters may be falsely touched due to difficulty in touching. On the other hand, it may also be caused by the input device itself, such as some characters corresponding to the input device may have touch failures. The specific reasons are not limited here. In the above method, the reference information is set to also include the seventh reference value, and the seventh reference value represents the historical false touch rate of the first character, which can further provide the probability that the first character may be falsely touched in the subsequent false touch prediction process, so as to provide more abundant reference information for false touch prediction, which helps to further improve the accuracy of false touch prediction.

[0038] In an implementation scenario, the reference information may also include an eighth reference value, and the eighth reference value may represent the duration of the key operation. Specifically, the timing may be started from the moment the key operation is executed, and the timing may be ended when the key operation is finished, so as to obtain the duration of the key operation. Taking the soft keyboard as an example, the duration of the key operation is from the time when the user touches a key on the soft keyboard to the time when the user leaves the touch screen and the key operation ends. Other situations may be deduced by analogy, and examples are not given one by one here. It should be noted that the duration of the key operation reflects the user input speed to a certain extent. Generally speaking, the faster the input speed, the higher the possibility of false touch, and the slower the input speed, the lower the possibility of false touch. Therefore, in the above method, the reference information is set to also include the eighth reference value, and the eighth reference value may represent the duration of the key operation, which can be further combined with the input speed as a prediction aid in the subsequent false touch prediction process, which is conducive to improving the accuracy of false touch prediction.

[0039] In an implementation scenario, the reference information may also include a ninth reference value, and the ninth reference value represents the change value of the walking state sensor integrated in the input device within the second time length, and the walking state sensor may include but is not limited to an accelerometer, etc., which is not limited here. It should be noted that the user's motion state during input can be learned through the walking state sensor. Exemplarily, the more intense the change value within the second time length, the more intense the user's motion (such as running, etc.) can be considered while inputting, or the more stable the change value within the second time length, the more gentle the user's motion (such as walking, etc.) can be considered while inputting, and so on, and no more examples are given here. Further, when the user performs more intense motion during input, the possibility of the key being accidentally touched also increases accordingly, and conversely, when the user performs more gentle motion during input, the possibility of the key being accidentally touched is relatively low. Therefore, in the above manner, the reference information is set to also include the ninth reference value, and the ninth reference value represents the change value of the walking state sensor integrated in the input device within the second time length, which can be further combined with the user's motion state as a prediction aid in the subsequent false touch prediction process, which is conducive to improving the accuracy of false touch prediction.

[0040] Step S12: performing prediction based on the first character and the reference information to obtain a prediction result of the key operation.

[0041] In the embodiment of the present disclosure, the prediction result includes whether the first character is an accidental touch, and the second character that the key operation is expected to trigger if the first character is an accidental touch. Figure 2 , still taking the example that the first character actually triggered by the key operation is "j", by collecting reference information of this key operation and making predictions based on the first character "j" and the reference information, the predicted result of this key operation can be obtained, including that the first character "j" is an accidental touch, and the second character expected to be triggered by this key operation is "u". Other situations can be inferred by analogy and will not be given examples one by one here.

[0042] In an implementation scenario, in order to improve the efficiency of false touch prediction, a prediction model can be pre-trained so that a prediction result can be obtained based on the prediction model. Specifically, the first character actually triggered by the key operation and the reference information of the key operation can be input into the prediction model together to obtain the prediction result of the key operation. The prediction model can specifically adopt a logistic regression prediction function, etc., which is not limited here. On this basis, the probability value of the key operation predicted as a false touch and the probability value of not being falsely touched can be predicted. If the probability value predicted as a false touch is greater than a preset threshold (such as 0.5), it can be determined that the prediction result is that the first character actually triggered by the key operation is a false touch. On the contrary, if the probability value predicted as not being falsely touched is greater than a preset threshold (such as 0.5), it can be determined that the prediction result is that the first character actually falsely touched by the key operation is not falsely touched. Further, in the case of predicting a false touch, the prediction model can also predict the probability values ​​of each preset character (such as 26 English letters), and the preset character corresponding to the maximum probability value can be used as the second character expected to be triggered by the key operation.

[0043] In one implementation scenario, the prediction model can be trained using several groups of sample data, and each group of sample data can include: the first sample character actually triggered by the historical key operation, the reference information of the historical key operation, and the annotation information of the historical key operation, and the annotation information can further include whether the first sample character is an accidental touch, and the second sample character that the historical key operation is expected to trigger when the first sample character is an accidental touch. Specifically, the input data of the user in the input device in the previous period (such as the previous six months, the previous year, etc.) can be sampled to obtain several groups of sample data. For example, when a user inputs the word "home" at a certain time, historical key operation t is expected to trigger the character "j", but the historical key operation t actually triggers the character "u". After the user subsequently executes historical key operation t+1 and historical key operation t+2, and successfully triggers the characters "i" and "a" respectively, the user finds that the previous input is wrong, so he re-enters the characters "j", "i", and "a". At this time, the character "u" actually triggered by the historical key operation t, which is the only inconsistent character in the two inputs, can be used as the first sample character actually triggered by the historical key operation t in the sample data, and the character "j" can be used as the second sample character expected to be triggered by the historical key operation t. It can be confirmed that the first sample character actually triggered by the historical key operation t is an accidental touch, so the annotation information of the historical key operation t can be obtained. Other situations can be inferred by analogy, and no examples are given here one by one. In the above method, the prediction result is set to be obtained based on the prediction model, and the prediction model is trained using several groups of sample data, each group of sample data includes: the first sample character actually triggered by the historical key operation, reference information of the historical key operation and annotation information of the historical key operation, the annotation information includes whether the first sample character is a false touch, and the second sample character expected to be triggered by the historical key operation when the first sample character is a false touch. Therefore, the prediction model can be trained through historical key operations, so that the prediction model can learn feature information such as user input habits, thereby improving the accuracy and efficiency of false touch prediction.

[0044] In an implementation scenario, similar to the reference information of the aforementioned key operation, the reference information of the historical key operation may also include a first reference value, a second reference value, a third reference value, a fourth reference value, a fifth reference value, a sixth reference value, a seventh reference value, an eighth reference value, and a ninth reference value. The specific meanings can be found in the aforementioned related descriptions, which will not be repeated here. For example, please refer to Table 2, which is a schematic table of an embodiment of sample data 1.

[0045] Table 2 Schematic table of sample data of an embodiment

[0046]

[0047] It should be noted that Table 2 shows a set of sample data. In the actual training process, as much sample data as possible can be collected in the same form for training to improve the accuracy of the prediction model as much as possible.

[0048] In an implementation scenario, taking the prediction model using logistic regression as an example, the hypothesis function of logistic regression can be expressed as follows:

[0049]

[0050] In the above formula (1), x represents the input of the prediction model, θ represents the parameter of the prediction model, and h θ (x) represents the output of the prediction model with parameter θ after the input x is predicted. In addition, given the input x (e.g., given the sample data marked as false touch) and parameter θ, the model probability value of y=1 (i.e., the probability value predicted by the model as false touch) P(y=1|x;θ), and given the input x (e.g., given the sample data marked as not false touch) and parameter θ, the model probability value of y=0 (i.e., the probability value predicted by the model as not false touch) P(y=0|x;θ), can be expressed as:

[0051] P(y=1|x;θ)=h θ (x)……(2)

[0052] P(y=0|x;θ)=1-h θ (x)……(3)

[0053] On this basis, based on the real labeling of the input samples, the above probability values ​​can be processed through loss functions such as cross entropy to obtain the loss value J(θ). At this time, the optimization target is the parameter θ when the loss value J(θ) takes the minimum value. It should be noted that in this process, the specific calculation process of the above loss value, as well as the specific determination method of the gradient and learning rate, can refer to optimization methods such as gradient descent, which will not be repeated here.

[0054] In one implementation scenario, sample data can be collected when the user performs historical key operations. It should be noted that the user referred to here is the user of the input device. Therefore, by collecting the historical key operations of the user of the input device over a period of time to obtain sample data, and training the prediction model based on this, the prediction model can be made to be more in line with the input habits of the user of the input device, thereby further improving the personalization of key correction and meeting the personalized needs of different users for key correction.

[0055] Step S13: In response to the prediction result including that the first character is an incorrect touch, the first character is replaced with a second character.

[0056] Specifically, in the case that the prediction result includes that the first character actually triggered by the key operation is an accidental touch, the first character can be replaced by the second character expected to be triggered by the key operation obtained by further predicting the prediction result. That is, what is displayed on the screen at this time is not the first character but the second character, and there is no need to wait for all input to be completed before correcting the error. In other words, errors can be corrected while pressing the key, thereby improving the immediacy of key error correction.

[0057] In an implementation scenario, when the prediction result includes that the first character actually triggered by the key operation is not a false touch, the above-mentioned replacement operation may not be performed, and the first character may be directly displayed on the screen, and the next key operation by the user may be waited for.

[0058] In one implementation scenario, while waiting for a new key operation, for the new key operation, the above-mentioned steps of obtaining the first character actually triggered by the key operation and the reference information of the key operation and subsequent steps can be re-executed in response to the new key operation to predict false touches for the new key operation, thereby achieving immediate prediction and error correction after each key press during the input process, which is conducive to greatly improving the immediacy of key error correction.

[0059] The above scheme obtains the first character actually triggered by the key operation performed by the user and the reference information of the key operation, and then predicts based on the first character and the reference information to obtain the predicted result of the key operation, and the predicted result includes whether the first character is a false touch, and the second character that the key operation is expected to trigger when the first character is a false touch. Based on this, in response to the prediction result including that the first character is a false touch, the first character is replaced with the second character. On the one hand, in terms of experience, during the input error correction process, the key operation performed by the user is directly corrected by false touch prediction and direct replacement, that is, the key operation is corrected immediately during the input process. On the other hand, in terms of interaction, once the first character actually triggered by the key operation is predicted to be a false touch, it is replaced according to the predicted second character without the need for user selection, which greatly reduces the operating cost. Moreover, since the false touch prediction is combined with the reference information of the key operation, the reliability can also be improved. Therefore, the immediacy and reliability of input error correction can be improved, and the operating cost of input error correction can be reduced.

[0060] See also Figure 4 , Figure 4It is a schematic diagram of the framework of an embodiment of an input error correction device 40 of the present application. The input error correction device 40 includes: an acquisition module 41, a prediction module 42 and a replacement module 43, wherein the acquisition module 41 is used to acquire the first character actually triggered by the key operation performed by the user and the reference information of the key operation; the prediction module 42 is used to make a prediction based on the first character and the reference information to obtain the prediction result of the key operation; wherein the prediction result includes whether the first character is an accidental touch, and the second character that the key operation is expected to trigger if the first character is an accidental touch; the replacement module 43 is used to replace the first character with the second character in response to the prediction result including that the first character is an accidental touch.

[0061] The above scheme, on the one hand, improves the user experience by predicting false touches and directly replacing them during input error correction, that is, correcting the key operations performed by the user in real time during the input process. On the other hand, in terms of interaction, once the first character actually triggered by the predicted key operation is falsely touched, it is replaced according to the predicted second character without the need for user selection, which greatly reduces the operating cost. Moreover, since false touch prediction is performed in combination with the reference information of the key operation, the reliability can also be improved. Therefore, the immediacy and reliability of input error correction can be improved, and the operating cost of input error correction can be reduced.

[0062] In some disclosed embodiments, a key operation involves two reference areas, the two reference areas include: a key area of ​​a first character on an input device, and a contact area between the user and the input device when the user performs the key operation, the reference information includes a first reference value, and an overlapping area of ​​the two reference areas is related to the first reference value.

[0063] Therefore, the key operation involves two reference areas, the two reference areas include the key area of ​​the first character input device and the contact area between the user and the input device when the user performs the key operation. The reference information includes a first reference value, and the overlapping area of ​​the two reference areas is related to the first reference value. Therefore, in the subsequent false touch prediction process, the prediction can be made by combining the contact area of ​​the input device actually pressed by the user and the key area of ​​the first character actually triggered, which is conducive to improving the accuracy of false touch prediction.

[0064] In some disclosed embodiments, the first reference value is a ratio of an area between the overlap area and the contact area.

[0065] Therefore, by setting the first reference value as the ratio of the area between the overlapped area and the contact area, robust and accurate reference information can be provided for subsequent false touch prediction, which is conducive to improving the accuracy of subsequent false touch prediction.

[0066] In some disclosed embodiments, the input error correction device 40 includes a contact parameter acquisition module, which is used to obtain the contact center, the first contact axis length and the second contact axis length on the input device when the user performs a key operation; the input error correction device 40 includes a contact area determination module, which is used to obtain an elliptical area as the contact area based on the contact center, the first contact axis length and the second contact axis length.

[0067] Therefore, by obtaining the contact center, the first contact axis length and the second contact axis length on the input device when the user performs a key operation from the underlying system of the input device, and based on the contact center, the first contact axis length and the second contact axis length, obtaining an elliptical area as the contact area, it is helpful to improve the accuracy of the contact area.

[0068] In some disclosed embodiments, the input device is integrated with a gyroscope, and the reference information also includes a second reference value, the second reference value including at least one of the following: a state value of the gyroscope on the Y-axis, a state value of the gyroscope on the Z-axis, and an angular velocity of the gyroscope on the X-axis within a first time period before performing a key operation.

[0069] Therefore, combined with the relevant information of the gyroscope on the X-axis, Y-axis, and Z-axis, it is possible to learn the state of the input device when the user inputs through the input device (e.g., in a stable placement state, in a forward and backward swinging state, in a left and right swinging state, etc.), thereby assisting in the subsequent false touch prediction and improving the accuracy of the false touch prediction.

[0070] In some disclosed embodiments, the reference information further includes a third reference value, and the third reference value represents a time difference between an execution time of the key operation and an execution time of a previous key operation.

[0071] Therefore, the reference information is also set to include a third reference value, and the third reference value represents the time difference between the execution time of the key operation and the execution time of the previous key operation. Therefore, the key speed can further assist subsequent false touch prediction and improve the accuracy of false touch prediction.

[0072] In some disclosed embodiments, the reference information also includes a fourth reference value, which indicates the final character finally triggered by the previous key operation; and / or, the reference information also includes a fifth reference value, which indicates the moment when the key operation is performed; and / or, the reference information also includes a sixth reference value, which indicates the geographical location of the input device; and / or, the reference information also includes a seventh reference value, which indicates the historical false touch rate of the first character; and / or, the reference information also includes an eighth reference value, which indicates the duration of the key operation; and / or, the reference information also includes a ninth reference value, which indicates the change value of the walking state sensor integrated in the input device within the second time period.

[0073] Therefore, setting the reference information to also include a fourth reference value, and the fourth reference value represents the final character ultimately triggered by the previous key operation, can further assist in the subsequent false touch prediction, and not only helps to assist in predicting whether a false touch has occurred, but also helps to assist in predicting the character that the key operation expects to trigger, which is beneficial to improving the reliability of input error correction; and setting the reference information to also include a fifth reference value, and the fifth reference value represents the moment when the key operation is performed, which can help to combine the character ultimately triggered by the case operation with the same fifth reference value in the subsequent false touch prediction process, which is beneficial to further improve the accuracy of false touch prediction; and setting the reference information to also include a sixth reference value, and the sixth reference value represents the geographical location of the input device, so in the subsequent false touch prediction process, it can also be further combined with the geographical location to assist in the prediction, which is beneficial to further improve the accuracy of false touch prediction. accuracy; and the reference information is set to also include a seventh reference value, and the seventh reference value represents the historical false touch rate of the first character, which can further provide the probability of the first character being falsely touched in the subsequent false touch prediction process, so as to provide more abundant reference information for false touch prediction, and help to further improve the accuracy of false touch prediction; and the reference information is set to also include an eighth reference value, and the eighth reference value can represent the duration of the key operation, which can be further combined with the input speed as a prediction aid in the subsequent false touch prediction process, which is conducive to improving the accuracy of false touch prediction; and the reference information is set to also include a ninth reference value, and the ninth reference value represents the change value of the walking state sensor integrated in the input device within the second time length, which can be further combined with the user's motion state as a prediction aid in the subsequent false touch prediction process, which is conducive to improving the accuracy of false touch prediction.

[0074] In some disclosed embodiments, the prediction result is obtained based on a prediction model, and the prediction model is trained using several groups of sample data, each group of sample data including: a first sample character actually triggered by a historical key operation, reference information of the historical key operation, and annotation information of the historical key operation, the annotation information including whether the first sample character is a false touch, and a second sample character expected to be triggered by the historical key operation when the first sample character is a false touch.

[0075] Therefore, the prediction result is set to be obtained based on the prediction model, and the prediction model is trained using several groups of sample data, each group of sample data includes: the first sample character actually triggered by the historical key operation, reference information of the historical key operation and annotation information of the historical key operation, the annotation information includes whether the first sample character is a false touch, and the second sample character expected to be triggered by the historical key operation when the first sample character is a false touch. Therefore, the prediction model can be trained through historical key operations, so that the prediction model can learn feature information such as user input habits, thereby improving the accuracy and efficiency of false touch prediction.

[0076] In some disclosed embodiments, sample data is collected when a user performs historical key operations.

[0077] Therefore, by collecting the historical key operations of users of the input device over a period of time to obtain sample data, and training the prediction model based on this, the prediction model can be made more in line with the input habits of users of the input device, thereby further improving the personalization of key correction and meeting the personalized needs of different users for key correction.

[0078] In some disclosed embodiments, the input error correction device 40 includes a loop execution module for responding to a new key operation, combining the acquisition module 41, the prediction module 42 and the replacement module 43 to re-execute the step of acquiring the first character actually triggered by the key operation and the reference information of the key operation and subsequent steps.

[0079] Therefore, implementing prediction and error correction immediately after each key press during the input process can greatly improve the immediacy of key error correction.

[0080] See also Figure 5 , Figure 5 1 is a schematic diagram of a framework of an embodiment of an input device 50 of the present application. The input device 50 includes a memory 51 and a processor 52 coupled to each other, the memory 51 stores program instructions, and the processor 52 is used to execute the program instructions to implement the steps in any of the above-mentioned input error correction method embodiments. Specifically, the input device 50 may include but is not limited to: a mobile phone, a tablet computer, a car navigation, a learning machine, a translation machine, etc., which are not limited here.

[0081] Specifically, the processor 52 is used to control itself and the memory 51 to implement the steps in any of the above-mentioned input error correction method embodiments. The processor 52 can also be called a CPU (Central Processing Unit). The processor 52 may be an integrated circuit chip with signal processing capabilities. The processor 52 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 52 can be implemented by an integrated circuit chip.

[0082] In addition, the input device 50 may also include a touch screen (not shown), which may be coupled to the processor and used to provide a soft keyboard for the user to perform key operations. Specifically, the soft keyboard may be set to 26 keys by default, and the input method may be freely switched, such as Chinese pinyin input method, English input method, etc., which are not limited here.

[0083] The above scheme, on the one hand, improves the user experience by predicting false touches and directly replacing them during input error correction, that is, correcting the key operations performed by the user in real time during the input process. On the other hand, in terms of interaction, once the first character actually triggered by the predicted key operation is falsely touched, it is replaced according to the predicted second character without the need for user selection, which greatly reduces the operating cost. Moreover, since false touch prediction is performed in combination with the reference information of the key operation, the reliability can also be improved. Therefore, the immediacy and reliability of input error correction can be improved, and the operating cost of input error correction can be reduced.

[0084] See also Figure 6 , Figure 6 The schematic diagram is a schematic diagram of a computer-readable storage medium 60 of the present application. The computer-readable storage medium 60 stores program instructions 61 that can be executed by a processor, and the program instructions 61 are used to implement the steps in any of the above-mentioned input error correction method embodiments.

[0085] The above scheme, on the one hand, improves the user experience by predicting false touches and directly replacing them during input error correction, that is, correcting the key operations performed by the user in real time during the input process. On the other hand, in terms of interaction, once the first character actually triggered by the predicted key operation is falsely touched, it is replaced according to the predicted second character without the need for user selection, which greatly reduces the operating cost. Moreover, since false touch prediction is performed in combination with the reference information of the key operation, the reliability can also be improved. Therefore, the immediacy and reliability of input error correction can be improved, and the operating cost of input error correction can be reduced.

[0086] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0087] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0088] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

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

[0090] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0091] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

Claims

1. An input error correction method, characterized in that: include: Acquire a first character actually triggered by a key operation performed by a user and reference information of the key operation; wherein the key operation involves two reference areas, the two reference areas include: a key area of ​​the first character on an input device, and a contact area between the user and the input device when performing the key operation, the input device is also integrated with a gyroscope, the reference information includes at least a first reference value and a second reference value, an overlapping area of ​​the two reference areas is related to the first reference value, and the second reference value includes at least one of the following: a state value of the gyroscope on the Y axis, a state value of the gyroscope on the Z axis, and an angular velocity of the gyroscope on the X axis within a first time period before performing the key operation; Predicting based on the first character and the reference information to obtain a prediction result of the key operation; wherein the prediction result includes whether the first character is an accidental touch, and a second character that the key operation is expected to trigger if the first character is an accidental touch; In response to the prediction result including that the first character is an accidental touch, the first character is immediately replaced with the second character for display on the screen.

2. The method according to claim 1, characterized in that The first reference value is an area ratio between the overlap area and the contact area.

3. The method according to claim 1, characterized in that The step of obtaining the contact area comprises: Acquire the contact center, the first contact axis length and the second contact axis length on the input device when the user performs the key operation; Based on the contact center, the first contact axis length and the second contact axis length, an elliptical area is obtained as the contact area.

4. The method according to claim 1, characterized in that: The reference information further includes a third reference value, and the third reference value indicates a time difference between an execution time of the key operation and an execution time of a previous key operation.

5. The method according to claim 1, characterized in that The reference information further includes a fourth reference value, wherein the fourth reference value indicates a final character finally triggered by the previous key operation; And / or, the reference information further includes a fifth reference value, wherein the fifth reference value indicates a time when the key operation is performed; And / or, the reference information further includes a sixth reference value, wherein the sixth reference value indicates a geographical location of the input device; And / or, the reference information further includes a seventh reference value, wherein the seventh reference value represents a historical mistouch rate of the first character; And / or, the reference information further includes an eighth reference value, wherein the eighth reference value indicates the duration of the key operation; And / or, the reference information further includes a ninth reference value, wherein the ninth reference value represents a change value of a walking state sensor integrated in the input device within a second time period.

6. The method according to claim 1, characterized in that The prediction result is obtained based on a prediction model, and the prediction model is trained using several groups of sample data, each group of sample data including: a first sample character actually triggered by a historical key operation, reference information of the historical key operation and annotation information of the historical key operation, the annotation information including whether the first sample character is a false touch, and a second sample character expected to be triggered by the historical key operation if the first sample character is a false touch.

7. The method according to claim 6, characterized in that The sample data is collected when the user performs the historical key operations.

8. The method according to claim 1, characterized in that After the first character is immediately replaced with the second character for display on the screen in response to the prediction result including that the first character is an accidental touch, the method further includes: In response to a new key operation, the step of obtaining the first character actually triggered by the key operation and the reference information of the key operation and subsequent steps are re-executed.

9. An input error correction device, characterized in that: include: An acquisition module, used for acquiring a first character actually triggered by a key operation performed by a user and reference information of the key operation; wherein the key operation involves two reference areas, the two reference areas include: a key area of ​​the first character on an input device, and a contact area between the user and the input device when performing the key operation, the input device is also integrated with a gyroscope, the reference information includes at least a first reference value and a second reference value, an overlapping area of ​​the two reference areas is related to the first reference value, and the second reference value includes at least one of the following: a state value of the gyroscope on the Y axis, a state value of the gyroscope on the Z axis, and an angular velocity of the gyroscope on the X axis within a first time period before performing the key operation; A prediction module, configured to make a prediction based on the first character and the reference information to obtain a prediction result of the key operation; wherein the prediction result includes whether the first character is an accidental touch, and a second character that the key operation is expected to trigger if the first character is an accidental touch; A replacement module is used for, in response to the prediction result including that the first character is an accidental touch, immediately replacing the first character with the second character for upper screen display.

10. An input device, characterized in that: It comprises a memory and a processor coupled to each other, wherein the memory stores program instructions, and the processor is used to execute the program instructions to implement the input error correction method according to any one of claims 1 to 8.

11. The device according to claim 10, characterized in that The input device further includes a touch screen, which is coupled to the processor and is used to provide a soft keyboard for a user to perform key operations.

12. A computer-readable storage medium, characterized in that: Program instructions that can be executed by a processor are stored, and the program instructions are used to implement the input error correction method described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Target key determining method and device of touch screen

    CN104238947A

  • Input method, input device for virtual keyboard and electronic equipment

    CN105335079A

  • Input error correction method and device, and device for input error correction

    CN107229348A

  • Key mistaken touch error correction method and device

    CN112015279A

  • Method, system, and computer program for correcting erroneous typing of virtual keyboard

    JP2020013577A