Mistaken touch prevention detection method and device, electronic equipment and storage medium
By detecting the grip status of the electronic device and configuring the target touch suppression area, the problem of false touching at the edge of the full-screen device is solved, and the error touch detection accuracy and user experience are improved.
Patent Information
- Application Number
- CN202311405671.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-26
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2043-10-26
AI Technical Summary
In full-screen electronic devices, error touching is prone to occur at edge locations, and the existing anti-fault touch algorithm has a high false recognition rate, which leads to user touching operations and affects the touch performance of the device.
By detecting the grip state of the electronic device, a variety of touch suppression areas are arranged, and the target touch suppression area is determined based on the grip state, and false touch recognition is performed based on the touch operation signal in the target area.
It improves the accuracy of anti-touch detection, reduces the risk of users' normal touch operations being misjudged as mistouch, and improves user touch experience.
Smart Images

Figure CN119902639A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic devices, and in particular to an anti-mistouch detection method, device, electronic device and storage medium. Background Art
[0002] With the popularization of the full-screen concept, the screen-to-body ratio of electronic devices such as mobile phones is getting higher and higher, the borders are getting narrower and narrower, and at the same time, the screens of devices are getting larger and larger. It is easy to accidentally touch the edges of the devices during use.
[0003] In the related art, a touch suppression zone is generally added to the edge of the electronic device, and a corresponding anti-mistouch algorithm is combined to reduce the occurrence of false touches on the edge. However, the anti-mistouch algorithm in the related art is prone to misidentification, causing users to miss touch points on the edge, affecting the touch performance of the device. Summary of the invention
[0004] In order to improve the accuracy of false touch detection of electronic devices, the embodiments of the present disclosure provide a false touch detection method, device, electronic device and storage medium.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for detecting false touches, comprising:
[0006] Detect the current holding state of the electronic device;
[0007] Determining a target touch inhibition area corresponding to the holding state from a plurality of pre-configured touch inhibition areas based on the holding state; wherein different touch inhibition areas occupy different positions on the screen of the electronic device, and the touch inhibition area is used to perform false touch recognition on the touch signal generated therein;
[0008] Based on the touch signal of the touch operation in the target touch inhibition area, a false touch recognition result of the touch operation is determined.
[0009] In some implementations, detecting the current holding state of the electronic device includes:
[0010] Acquiring current posture data and touch mutual capacitance data of the electronic device;
[0011] The posture data and the touch mutual capacitance data are input into a pre-trained holding detection model to obtain a current holding state of the electronic device output by the holding detection model.
[0012] In some embodiments, the holding state includes a left-hand holding state and a right-hand holding state; the multiple touch inhibition areas include a first touch inhibition area corresponding to the left-hand holding state, and a second touch inhibition area corresponding to the right-hand holding state;
[0013] The first touch inhibition zone includes a first area located at the left edge of the electronic device and a second area located at the right edge of the electronic device, and the length of the first area is greater than the second area; the first touch inhibition zone also includes a third area located at the lower left corner edge of the electronic device and a fourth area located at the lower right corner edge of the electronic device, and the area of the third area is greater than the fourth area;
[0014] The second touch inhibition zone includes a fifth area located at the left edge of the electronic device and a sixth area located at the right edge of the electronic device, and the length of the fifth area is smaller than the sixth area; the second touch inhibition zone also includes a seventh area located at the lower left corner edge of the electronic device and an eighth area located at the lower right corner edge of the electronic device, and the area of the seventh area is smaller than the eighth area.
[0015] In some embodiments, determining the false touch recognition result of the touch operation corresponding to the touch signal based on the touch signal generated in the target touch inhibition area includes:
[0016] Acquire control channel data generated in the target touch inhibition area, wherein the control channel data includes response data when the control channel in the target touch inhibition area is touched;
[0017] Determine, according to the control channel data, a touch signal of each touch operation generated in the target touch inhibition area;
[0018] The false touch recognition result corresponding to each touch operation is determined according to the touch control signal corresponding to each touch operation.
[0019] In some implementations, determining the false touch recognition result corresponding to the touch operation according to the touch signal corresponding to each touch operation includes:
[0020] Determine a first quantity of response data of an edge channel and a second quantity of response data of a sub-edge channel based on the touch signal, and determine a ratio of the first quantity to the second quantity;
[0021] In response to the ratio being greater than a preset ratio threshold, it is determined that the false touch recognition result of the touch operation corresponding to the touch signal is a false touch.
[0022] In some implementations, determining the false touch recognition result corresponding to the touch operation according to the touch signal corresponding to each touch operation includes:
[0023] In response to the number of response data included in the touch signal being greater than or equal to a preset number threshold, it is determined that the false touch recognition result of the touch operation corresponding to the touch signal is a false touch.
[0024] In some embodiments, the training process of the grip detection model includes:
[0025] Acquire a training data set, wherein the training data set includes a plurality of sample data, each sample data includes posture data, touch mutual capacitance data, and holding state label data;
[0026] Inputting the sample data into a grip detection model to be trained to obtain an output result of the grip detection model;
[0027] Based on the difference between the output result and the holding state label data, the model parameters of the holding detection model are adjusted until a convergence condition is met, thereby obtaining a trained holding detection model.
[0028] In a second aspect, the present disclosure provides an anti-mistouch detection device, including:
[0029] A state detection module is configured to detect a current holding state of the electronic device;
[0030] an inhibition zone determination module, configured to determine a target touch inhibition zone corresponding to the holding state from a plurality of pre-configured touch inhibition zones based on the holding state; wherein different touch inhibition zones occupy different positions on the screen of the electronic device, and the touch inhibition zones are used to perform false touch recognition on touch signals generated therein;
[0031] The false touch recognition module is configured to determine a false touch recognition result of the touch operation based on a touch signal of the touch operation in the target touch inhibition area.
[0032] In some embodiments, the state detection module is configured to:
[0033] Acquiring current posture data and touch mutual capacitance data of the electronic device;
[0034] The posture data and the touch mutual capacitance data are input into a pre-trained holding detection model to obtain a current holding state of the electronic device output by the holding detection model.
[0035] In some embodiments, the holding state includes a left-hand holding state and a right-hand holding state; the multiple touch inhibition areas include a first touch inhibition area corresponding to the left-hand holding state, and a second touch inhibition area corresponding to the right-hand holding state;
[0036] The first touch inhibition zone includes a first area located at the left edge of the electronic device and a second area located at the right edge of the electronic device, and the length of the first area is greater than the second area; the first touch inhibition zone also includes a third area located at the lower left corner edge of the electronic device and a fourth area located at the lower right corner edge of the electronic device, and the area of the third area is greater than the fourth area;
[0037] The second touch inhibition zone includes a fifth area located at the left edge of the electronic device and a sixth area located at the right edge of the electronic device, and the length of the fifth area is smaller than the sixth area; the second touch inhibition zone also includes a seventh area located at the lower left corner edge of the electronic device and an eighth area located at the lower right corner edge of the electronic device, and the area of the seventh area is smaller than the eighth area.
[0038] In some embodiments, the false touch identification module is configured to:
[0039] Acquire control channel data generated in the target touch inhibition area, wherein the control channel data includes response data when the control channel in the target touch inhibition area is touched;
[0040] Determine, according to the control channel data, a touch signal of each touch operation generated in the target touch inhibition area;
[0041] The false touch recognition result corresponding to the touch operation is determined according to the touch control signal corresponding to each touch operation.
[0042] In some embodiments, the false touch identification module is configured to:
[0043] Determine a first quantity of response data of an edge channel and a second quantity of response data of a sub-edge channel based on the touch signal, and determine a ratio of the first quantity to the second quantity;
[0044] In response to the ratio being greater than a preset ratio threshold, it is determined that the false touch recognition result of the touch operation corresponding to the touch signal is a false touch.
[0045] In some embodiments, the false touch identification module is configured to:
[0046] In response to the number of response data included in the touch signal being greater than or equal to a preset number threshold, it is determined that the false touch recognition result of the touch operation corresponding to the touch signal is a false touch.
[0047] In some implementations, the state detection module is configured to:
[0048] Acquire a training data set, wherein the training data set includes a plurality of sample data, each sample data includes posture data, touch mutual capacitance data, and holding state label data;
[0049] Inputting the sample data into a grip detection model to be trained to obtain an output result of the grip detection model;
[0050] Based on the difference between the output result and the holding state label data, the model parameters of the holding detection model are adjusted until a convergence condition is met, thereby obtaining a trained holding detection model.
[0051] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
[0052] Processor; and
[0053] A memory storing computer instructions, wherein the computer instructions are used to enable a processor to execute the method according to any embodiment of the first aspect.
[0054] In a fourth aspect, an embodiment of the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method according to any embodiment of the first aspect.
[0055] The anti-false touch detection method of the disclosed embodiment includes detecting the current holding state of the electronic device, and determining a target touch inhibition zone from a plurality of pre-configured touch inhibition zones based on the holding state, and determining a false touch recognition result of the touch operation based on a touch signal of the touch operation in the target touch inhibition zone. In the disclosed embodiment, different touch inhibition zones are configured for different holding states of the electronic device, so that the touch inhibition zone can be effectively adapted to the actual use scenario, reducing the risk of the user's normal touch operation being misjudged as a false touch operation, resulting in the user losing the touch operation, and improving the false touch detection accuracy and the user's touch experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0057] Figure 1 Schematic diagram of a touch suppression area in the related art.
[0058] Figure 2 It is a schematic diagram of a holding state of an electronic device according to some embodiments of the present disclosure.
[0059] Figure 3 It is a schematic diagram of touch inhibition areas corresponding to different holding states in some embodiments of the present disclosure.
[0060] Figure 4 It is a flowchart of a method for preventing accidental touch detection according to some embodiments of the present disclosure.
[0061] Figure 5 It is a schematic diagram of a method for preventing accidental touches in some embodiments of the present disclosure.
[0062] Figure 6 It is a flowchart of a method for preventing accidental touch detection according to some embodiments of the present disclosure.
[0063] Figure 7 It is a schematic diagram of a method for preventing accidental touches in some embodiments of the present disclosure.
[0064] Figure 8 It is a flowchart of a method for preventing accidental touch detection according to some embodiments of the present disclosure.
[0065] Fig. 9 It is a flowchart of a method for preventing accidental touch detection according to some embodiments of the present disclosure.
[0066] Fig.10 It is a schematic diagram of a method for preventing accidental touches in some embodiments of the present disclosure.
[0067] Fig.11 It is a structural block diagram of an anti-mistouch detection device according to some embodiments of the present disclosure.
[0068] Fig.12 It is a structural block diagram of an electronic device according to some implementations of the present disclosure. DETAILED DESCRIPTION
[0069] The technical solution of the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described implementation is a part of the implementation of the present disclosure, rather than all the implementations. Based on the implementation in the present disclosure, all other implementations obtained by ordinary technicians in the field without creative work are within the scope of protection of the present disclosure. In addition, the technical features involved in the different implementations of the present disclosure described below can be combined with each other as long as they do not conflict with each other.
[0070] With the popularization of the full-screen concept, the screen-to-body ratio of electronic devices such as mobile phones is getting higher and higher, the borders are getting narrower and narrower, and the screens of devices are getting larger and larger. It is easy to accidentally touch the edges of the devices during use. Taking smartphones as an example, when users operate the phone with one hand, it is easy to accidentally touch the edge of the screen where the palm is held, affecting the user experience.
[0071] In the related art, in order to reduce the risk of accidental touches, one solution is to add a dead zone at the edge of the screen to invalidate the screen touch within the dead zone, thereby avoiding accidental touches at the edge of the screen. However, this method causes clicks at the edge of the screen to miss the point, affecting the screen touch performance.
[0072] Another solution is to add an inhibition zone at the edge of the screen. For touch operations generated in the inhibition zone, an algorithm is used to identify the touch operation characteristics to confirm whether the touch operation is a false touch. However, the false touch detection accuracy in related technologies is not high, and it is easy to misidentify, resulting in missed touch operations, touch failure, false touch and other problems, affecting the user experience.
[0073] Based on the defects of the above-mentioned related technologies, the embodiments of the present disclosure provide a method, device, electronic device and storage medium for preventing accidental touches, aiming to improve the accuracy of accidental touch detection in electronic devices and reduce the risk of accidental touches in devices.
[0074] In the disclosed embodiments, the electronic device needs to detect the current holding state in real time. The holding state refers to the way the user currently holds the electronic device. For example, the holding state may include the left hand holding state, the right hand holding state, etc. Different touch inhibition areas need to be pre-configured for different holding states. The touch inhibition area refers to the area on the edge of the screen where accidental touches are likely to occur.
[0075] It is worth noting that the inventors have found through research on different holding states that when the electronic device is in different holding states, the area on the edge of the electronic device screen that is prone to accidental touches is also different. Therefore, if a fixed touch inhibition area is used, it will not be able to adapt to different holding states, resulting in poor accuracy of the accidental touch detection algorithm. Therefore, in the embodiments of the present disclosure, different touch inhibition areas are set for different holding states, and each touch inhibition area occupies a different position on the electronic device screen.
[0076] For example Figure 1 FIG. 4 shows a schematic diagram of the touch suppression area structure in the related art false touch detection algorithm, such as Figure 1 As shown, the touch inhibition area in the related art mainly includes inhibition areas a and b located at the left and right edges of the screen, and inhibition areas c and d located at the lower left and right edges of the screen, and the touch inhibition area is a bilaterally symmetrical structure. However, when the electronic device is in different holding states, the areas prone to accidental touch are also different, so the corresponding touch inhibition area positions and sizes should also be different.
[0077] For example Figure 2 In the example scenario, Figure 2 (a) shows the electronic device being held in the left hand. Figure 2 Middle (b) shows the electronic device being held in the right hand.
[0078] See also Figure 2 As shown in (a), when the user holds the electronic device with his left hand, the left side of the screen contacts the base of the user's left palm and thumb, and the right side of the screen contacts the user's four fingers, so that the left side of the screen is more prone to accidental touches than the right side of the screen. Figure 2 As shown in (b), when the user holds the electronic device in his right hand, the left side of the screen contacts the user's four fingers, and the right side of the screen contacts the user's palm and thumb, so that the right side of the screen is more prone to accidental touches than the left side of the screen.
[0079] Therefore, in some embodiments of the present disclosure, corresponding touch inhibition areas are configured in advance for different holding states of the electronic device, for example Figure 3 , respectively show a first touch inhibition zone corresponding to a left-hand holding state of the electronic device, and a second touch inhibition zone corresponding to a right-hand holding state.
[0080] See also Figure 3 As shown in (a), combined with Figure 2 As shown in (a), the first touch inhibition zone corresponding to the left-hand holding state includes a first area 101 located on the left side of the screen and a second area 102 located on the right side of the screen. Since the left side of the screen is more susceptible to accidental touches than the right side of the screen in the left-hand holding state, the length of the first area 101 is greater than that of the second area 102.
[0081] In addition, the first touch inhibition zone also includes a third area 103 located at the lower left corner of the screen and a fourth area 104 located at the lower right corner of the screen. Since the base of the user's palm is located in the lower left corner area when holding the device with the left hand, the area of the third area 103 is larger than that of the fourth area 104.
[0082] See also Figure 3 As shown in (b), combined with Figure 2 As shown in (b), the second touch inhibition zone corresponding to the right-hand holding state includes the fifth area 105 located on the left side of the screen and the sixth area 106 located on the right side of the screen. Since the right side of the screen is more susceptible to touch than the left side of the screen in the right-hand holding state, the length of the fifth area 105 is smaller than that of the sixth area 106.
[0083] In addition, the second touch inhibition zone also includes a seventh area 107 located at the lower left corner of the screen and an eighth area 108 located at the lower right corner of the screen. Since the base of the user's palm is located in the lower right corner area when holding the device with the right hand, the area of the seventh area 107 is smaller than that of the eighth area 108.
[0084] It can be understood that in the embodiments of the present disclosure, different touch inhibition areas are configured for different holding states, so that the edge area of the touch detection can be more in line with the actual usage scenario, thereby reducing the risk of the user's normal touch operation being misjudged as a false touch operation, causing the user to lose the touch operation, and improving the touch detection accuracy.
[0085] For example, Figure 2 Take the left-hand holding state shown in (a) as an example. In this scenario, the upper half of the right edge of the electronic device is not prone to accidental touches, so the touch inhibition zone is no longer set for the upper half of the right edge. Similarly, the lower right corner of the screen is not prone to accidental touches, so the touch inhibition zone area for the lower right corner is reduced.
[0086] contrast Figure 1 The touch inhibition area range in the related art shown in the figure, when the user operates the upper right edge, Figure 1 In the example, since this area is a touch inhibition area, it is easy to misjudge the user's touch operation as a false touch, thereby filtering out the user's normal touch operation, resulting in no response to the user's touch and a problem of lost touch operation. In the embodiment of the present disclosure, when the user also operates the upper right edge, since this area is not a touch inhibition area, the user's normal touch operation will not be judged as false touch, and the touch operation can be responded to normally, avoiding the situation of lost touch operation.
[0087] Therefore, it can be seen from the above that in the embodiments of the present disclosure, different touch inhibition areas are configured for different holding states of the electronic device, so that the touch inhibition areas can be effectively adapted to actual usage scenarios, reducing the risk of users' normal touch operations being misjudged as false touch operations, resulting in users losing touch operations, and improving the accuracy of false touch detection.
[0088] After the touch inhibition area is configured for different holding states, the pre-configured touch inhibition area can be used to implement the anti-mistouch detection method described below in the present disclosure. Figure 4 Provide explanation.
[0089] like Figure 4 As shown, in some embodiments, the anti-mistouch detection method of the present disclosure example includes:
[0090] S410: Detect the current holding state of the electronic device.
[0091] In the embodiments of the present disclosure, the holding state of the electronic device refers to the way the user currently holds the electronic device. For example, in some embodiments, the holding state includes the left hand holding state and the right hand holding state. It is understandable that the user may hold the electronic device with the left hand or the right hand during the use of the electronic device. In the embodiments of the present disclosure, the current holding state of the electronic device can be detected in real time.
[0092] In some embodiments, the electronic device may periodically detect the current holding state of the electronic device according to a preset time period. The value of the preset time period may be selected according to specific scenario requirements. For example, in one example, the preset time period may be 10 ms, that is, the electronic device detects the current holding state every 10 ms. Of course, those skilled in the art will appreciate that the value of the preset time period is not limited to this example.
[0093] In some embodiments of the present disclosure, the posture data and touch mutual capacitance data of the electronic device can be used to detect the holding state of the electronic device. The posture data refers to the data detected by the inertial sensor (IMU, Inertial Measurement Unit) of the electronic device itself. The inertial sensor may include an accelerometer and a gyroscope, for example. The electronic device can use the inertial sensor to detect the current posture of the electronic device in real time, thereby obtaining the posture data. The touch mutual capacitance data refers to the touch signal detected by the touch screen of the electronic device through the control channel of the touch screen.
[0094] After obtaining the electronic device posture data and touch mutual capacitance data, the current holding state of the electronic device can be determined based on the posture data and touch mutual capacitance data. In some embodiments, the posture data and touch mutual capacitance data can be input into a pre-trained holding detection model through a holding detection model based on a deep neural network (DNN) to obtain the current holding state of the electronic device predicted and output by the holding detection model. This is explained in the following embodiments of the present disclosure and will not be described in detail here.
[0095] S420: Determine a target touch inhibition area corresponding to the holding state from a plurality of pre-configured touch inhibition areas based on the holding state.
[0096] In the disclosed embodiment, after the current holding state of the electronic device is determined, a touch inhibition area corresponding to the current holding state, ie, a target touch inhibition area, can be determined from the aforementioned pre-configured multiple touch inhibition areas.
[0097] For example, in some implementations, the holding state of the electronic device includes a left-hand holding state and a right-hand holding state, and the pre-configured touch inhibition area includes, for example Figure 3 The first touch inhibition zone and the second touch inhibition zone are shown.
[0098] For example, when it is determined that the electronic device is held by the left hand, the following options may be selected: Figure 3 The second touch inhibition area shown in (a) is used as the target touch inhibition area; when it is determined that the holding state of the electronic device is the right hand holding state, you can select, for example Figure 3 The first touch inhibition area shown in (b) is used as the target touch inhibition area.
[0099] S430: Determine a false touch recognition result of the touch operation based on a touch signal of the touch operation in the target touch inhibition area.
[0100] It can be understood that the target touch inhibition area refers to the screen area that is prone to accidental touches in the current holding state. Therefore, after determining the target touch inhibition area, it is necessary to judge the touch operation generated in the target touch inhibition area to determine whether the touch operation is a user click operation or an accidental touch operation.
[0101] In some implementations, response data of all control channels in the target touch inhibition area may be detected, and a touch signal of the touch operation may be determined based on the response data of the control channels.
[0102] Based on the working principle of the touch screen, it can be understood that the touch screen detects touch operations by forming a self-capacitance through two layers of horizontal and vertical electrodes. Each electrode includes multiple capacitor plates, and each capacitor plate is a control channel.
[0103] For example Figure 5 A schematic diagram of the structure of an electrode layer of a touch screen is shown. Figure 5 In the example, the electrode layer of the touch screen consists of M rows of horizontal electrodes and N rows of vertical electrodes, so the electrode layer of the touch screen includes M*N control channels in total. When the user touches a certain area of the touch screen with his finger, the control channel in the area can sense the change in capacitance and generate response data.
[0104] It can be seen that when a touch operation occurs in the target touch inhibition area, the control channel in the touched area can detect response data, while the control channel in the untouched area does not generate response data. Therefore, based on the response data of the control channel in the target touch inhibition area, the area where the touch operation occurs can be determined, and the response data of the control channel triggered by the touch operation is the touch signal of the touch operation described in the present disclosure.
[0105] In the embodiment of the present disclosure, after the touch signal of the touch operation is determined, it can be determined through the touch signal whether the triggering operation is a false touch.
[0106] In some implementations, corresponding detection conditions may be set in combination with the characteristics of false touches, and whether the touch operation is a false touch may be determined by judging whether the touch signal of the touch operation meets the detection conditions.
[0107] For example, in one example, considering that when the user's palm touches the screen accidentally, the area where the palm touches the outermost edge of the screen is larger, while the area where the palm touches the secondary edge is smaller, the ratio of the number of edge channels to the number of secondary edge channels can be determined based on the touch signal, and this ratio can be used to determine whether it is an accidental touch by the palm.
[0108] For example, in another example, considering that the contact area between the fingertip and the screen is small when the user actually clicks, the number of triggered control channels is also small. Therefore, the number of triggered control channels can be determined based on the touch signal, and whether it is a false touch operation can be judged based on the number of triggered control channels.
[0109] The process of determining the false touch recognition result is described in the following implementation manner of the present disclosure and will not be described in detail here.
[0110] In the embodiments of the present disclosure, the false touch recognition results may include false touch and non-false touch. For example, if the false touch recognition result of a certain touch operation is determined to be a false touch, the touch operation can be filtered, that is, the event corresponding to the touch operation is not responded to, so as to achieve the effect of preventing false touch. If the false touch recognition result of a certain touch operation is not a false touch, the event corresponding to the touch operation can be responded to normally, without affecting the normal touch operation of the user.
[0111] From the above, it can be seen that in the embodiments of the present disclosure, different touch inhibition areas are configured for different holding states of the electronic device, so that the touch inhibition areas can be effectively adapted to actual usage scenarios, reducing the risk of users' normal touch operations being misjudged as false touch operations, resulting in users losing touch operations, and improving false touch detection accuracy and user touch experience.
[0112] In some implementations, the current holding state of the electronic device can be detected by a holding detection model based on a deep neural network. Figure 6 The implementation method is described.
[0113] like Figure 6 As shown, in some embodiments, the process of detecting the holding state of the electronic device in the anti-mistouch detection method of the example of the present disclosure includes:
[0114] S610: Acquire current posture data and touch mutual capacitance data of the electronic device.
[0115] S620: Input the posture data and the touch mutual capacitance data into a pre-trained holding detection model to obtain the current holding state of the electronic device output by the holding detection model.
[0116] See also Figure 7As shown, in the embodiment of the present disclosure, a grip detection model can be pre-built and trained, and the model structure of the grip detection model can adopt a classifier network structure. Those skilled in the art can understand and fully implement it by referring to the relevant technology, and the present disclosure will not elaborate on this. The input of the grip detection model includes the current posture data of the electronic device and the touch mutual capacitance data, and the output is the grip state of the electronic device.
[0117] Posture data refers to data used to represent the posture of an electronic device detected by an IMU sensor. For example, posture data may include accelerometer data and gyroscope data. It is understandable that when a user holds an electronic device with different hands, the posture of the electronic device will also be different. For example, when a user operates a mobile phone with his left hand, the posture of the mobile phone tends to tilt to the left. Conversely, when a user operates the mobile phone with his right hand, the posture of the mobile phone tends to tilt to the right. Therefore, the current holding state of the electronic device can be reflected to a certain extent through posture data.
[0118] Touch mutual capacitance data refers to the contact between the user's palm and the control channel on the screen, which includes the contact between the user's palm and the control channel on the touch screen. Figure 2 and Figure 5 It can be seen that when the user holds the electronic device with different hands, the control channels on the touch screen are triggered differently. Therefore, the touch mutual capacitance data can also reflect the current holding state of the electronic device to a certain extent.
[0119] Therefore, in the embodiments of the present disclosure, the current posture data of the electronic device can be obtained through the IMU sensor of the electronic device, and the current touch mutual capacitance data of the electronic device can be obtained through touch screen detection. The posture data and touch mutual capacitance data can be used as input data of the holding detection model.
[0120] Then, the posture data and touch mutual capacitance data are input into the pre-trained grip detection model to obtain the grip state predicted and output by the grip detection model, for example: Figure 7 In the example, the holding detection model is a binary classification classifier model, and the holding detection model can be used to output whether the current holding state of the electronic device is the left-hand holding state or the right-hand holding state.
[0121] Figure 8 The method process of model training for the grip detection model is shown below. Figure 8 Provide explanation.
[0122] like Figure 8 As shown, in some embodiments, in the anti-mistouch detection method of the present disclosure example, the training process of the aforementioned holding detection model includes:
[0123] S810: Obtain a training data set.
[0124] S820: Input the sample data into the grip detection model to be trained to obtain an output result of the grip detection model.
[0125] S830: Based on the difference between the output result and the holding state label data, adjust the model parameters of the holding detection model until the convergence condition is met, thereby obtaining a trained holding detection model.
[0126] In the disclosed embodiment, a training data set refers to a sample data set used to train a holding detection model. The training data set includes a plurality of sample data. Each sample data includes posture data of the electronic device, touch mutual capacitance data, and corresponding holding state label data. For example, a sample data can be represented as {posture data, touch mutual capacitance data|holding state label data}.
[0127] For the iterative training process of the grip detection model, taking a sample data as an example, the posture data and touch mutual capacitance data included in the sample data can be input into the grip detection model to be trained to obtain the output result of the grip detection model.
[0128] It can be understood that the output result of the grip detection model represents the predicted value of the grip detection model, while the grip state label data included in the sample data represents the true value (GT, Groundtruth). Therefore, the difference between the output result of the grip detection model and the grip state label data represents the loss value (Loss) in the grip detection model training process. Based on the loss value, the model parameters of the grip detection model are adjusted by back propagation to complete one iteration of training.
[0129] The above only takes one of the sample data as an example to illustrate an iterative training process of the grip detection model. For multiple sample data included in the training data set, the above process can be repeated to continuously iteratively tune the model parameters of the grip detection model until the model meets the convergence conditions. The model training process can be stopped to obtain the trained grip detection model.
[0130] After completing the model training of the holding detection model, the trained holding detection model can be used to implement the holding state detection process for the electronic device. Those skilled in the art may refer to the foregoing, and the present disclosure will not elaborate on it.
[0131] like Fig. 9 As shown, in some embodiments, the method for preventing accidental touch detection of the example disclosed herein, the process of determining the accidental touch recognition result includes:
[0132] S910: Acquire control channel data generated in the target touch inhibition area.
[0133] Combined with the above Figure 5 It can be seen from the touch screen principle shown that when a touch operation occurs in the target touch inhibition area, the control channel in the touched area can detect response data, while the control channel in the untouched area does not generate response data. Therefore, the control channel data generated in the target touch inhibition area can be obtained, and the control channel data includes the response data when the control channel in the target touch inhibition area is triggered.
[0134] S920: Determine a touch signal of each touch operation generated in the target touch inhibition area according to the control channel data.
[0135] It is worth noting that the control channel data generated in the target touch inhibition area obtained in S910 does not necessarily include only a touch signal generated by one touch operation, and may include touch signals generated by one or more touch operations.
[0136] For example Fig.10 In the example, when the electronic device is held in the left hand, the response data of all control channels in the target touch inhibition area are collected, and the control channel data obtained includes touch signals of three touch operations, namely touch operation A, touch operation B and touch operation C. That is, Fig.10 The response data of the control channel are detected in the three black areas shown in FIG.
[0137] Therefore, in the embodiments of the present disclosure, the touch signal of each touch operation needs to be divided according to the control channel data. For example, in some embodiments, the response data of adjacent control channels can be clustered according to the control channel data, so that the clustering result is the touch signal of multiple touch operations after division. Fig.10 In this example, by clustering the control channel data, we can obtain the following Fig.10 The touch signals corresponding to the three touch operations shown are shown in the black area in the figure.
[0138] S930: Determine a false touch recognition result corresponding to each touch operation according to a touch control signal corresponding to each touch operation.
[0139] In the disclosed embodiments, for each touch operation, false touch identification may be performed according to a touch control signal of the touch operation, thereby obtaining a corresponding false touch identification result.
[0140] For example, in some implementations, taking the example of an accidental touch on the edge of the user's palm, in this scenario, generally a large number of planar edge channels are triggered, while a small number of secondary edge channels are triggered. Therefore, whether it is an accidental touch can be determined based on the ratio of edge channels to secondary edge channels.
[0141] For example, Fig.10Taking the touch operation A shown in the figure as an example, the first number of response data of the edge channel, that is, the first number S1 of the most edge control channel triggered, and the second number of response data of the sub-edge channel, that is, the second number S2 of the sub-edge control channel triggered can be determined according to the touch signal of the touch operation A.
[0142] Then, the ratio S1 / S2 of the first quantity S1 to the second quantity S2 is calculated to obtain a ratio S1 / S2 of the first quantity S1 to the second quantity S2, and then the ratio S1 / S2 can be compared with a preset ratio threshold.
[0143] If the ratio is greater than the preset ratio threshold, it means that the number of edge channels triggered is much greater than the number of secondary edge channels triggered, which means that it meets the scenario characteristics of the user's palm accidentally touching the edge of the screen. Therefore, the false touch recognition result of the touch operation corresponding to the touch signal can be determined as a false touch.
[0144] On the contrary, if the ratio is less than or equal to the preset ratio threshold, it means that the ratio of the number of edge channels triggered to the number of sub-edge channels triggered is within the preset range, which does not meet the scenario characteristics of the user's palm accidentally touching the edge of the screen. Therefore, it can be determined that the false touch recognition result of the touch operation corresponding to the touch signal is not a false touch, that is, a normal touch operation of the user.
[0145] In this implementation, the specific area of the preset ratio threshold can be selected according to the scene requirements. For example, in an exemplary implementation, the preset ratio threshold can be set to 200, and the present disclosure does not limit this.
[0146] For instance, in some other implementations, taking a user click operation as an example, when the user clicks the touch screen, the contact area between the fingertip and the touch screen is small, and therefore the number of control channels triggered is also small. Thus, it is possible to determine whether there is an incorrect touch operation based on the number of response data of the control channels included in the touch signal of the touch operation.
[0147] For example, Fig.10 Taking the touch operation B in the example, first, the number of response data included in the touch signal corresponding to the touch operation B, that is, the number T of control channels triggered by the touch operation B, can be obtained.
[0148] The number T can then be compared with a preset number threshold. If the number T is greater than or equal to the preset number threshold, it means that the contact area between the touch operation and the touch screen exceeds the maximum contact area of the user's fingertip click, and the touch operation is likely not a normal click operation of the user, but a false touch operation. Therefore, the false touch recognition result of the touch operation corresponding to the touch signal can be determined as a false touch.
[0149] On the contrary, if the number T is less than the preset number threshold, it means that the contact area between the touch operation and the touch screen does not exceed the maximum contact area of the user's fingertip click, so the touch operation is likely to be a normal motor operation of the user. Therefore, the false touch recognition result of the touch operation corresponding to the touch signal can be determined as a normal click operation rather than a false touch operation.
[0150] In this implementation, the specific area of the preset quantity threshold can be selected according to the scene requirements. For example, in an exemplary implementation, the preset quantity threshold can be set to 100, and the present disclosure does not limit this.
[0151] In the disclosed embodiments, when the false touch recognition result of a certain touch operation is determined to be a false touch, the touch operation can be filtered, that is, the event corresponding to the touch operation is not responded to, thereby achieving an anti-false touch effect.
[0152] From the above, it can be seen that in the disclosed embodiment, different touch inhibition areas are configured for different holding states of the electronic device, so that the touch inhibition area can be effectively adapted to the actual use scenario, reducing the risk of the user's normal touch operation being misjudged as an accidental touch operation, resulting in the user's touch operation losing points, and improving the accuracy of the false touch detection and the user's touch experience. In addition, by combining the aforementioned software algorithm to determine whether the touch operation is an accidental touch operation, it is more in line with the actual characteristics of the accidental touch operation, and the accuracy of the anti-accidental touch detection is improved.
[0153] like Fig.11 As shown, in some embodiments, the present disclosure provides an anti-mistouch detection device, including:
[0154] The state detection module 10 is configured to detect the current holding state of the electronic device;
[0155] The inhibition zone determination module 20 is configured to determine a target touch inhibition zone corresponding to the holding state from a plurality of pre-configured touch inhibition zones based on the holding state; different touch inhibition zones occupy different positions on the screen of the electronic device;
[0156] The false touch identification module 30 is configured to determine a false touch identification result of the touch operation based on the touch signal of the touch operation in the target touch inhibition area.
[0157] In some implementations, the state detection module 10 is configured to:
[0158] Acquiring current posture data and touch mutual capacitance data of the electronic device;
[0159] The posture data and the touch mutual capacitance data are input into a pre-trained holding detection model to obtain a current holding state of the electronic device output by the holding detection model.
[0160] In some embodiments, the holding state includes a left-hand holding state and a right-hand holding state; the multiple touch inhibition areas include a first touch inhibition area corresponding to the left-hand holding state, and a second touch inhibition area corresponding to the right-hand holding state;
[0161] The first touch inhibition zone includes a first area located at the left edge of the electronic device and a second area located at the right edge of the electronic device, and the length of the first area is greater than the second area; the first touch inhibition zone also includes a third area located at the lower left corner edge of the electronic device and a fourth area located at the lower right corner edge of the electronic device, and the area of the third area is greater than the fourth area;
[0162] The second touch inhibition zone includes a fifth area located at the left edge of the electronic device and a sixth area located at the right edge of the electronic device, and the length of the fifth area is smaller than the sixth area; the second touch inhibition zone also includes a seventh area located at the lower left corner edge of the electronic device and an eighth area located at the lower right corner edge of the electronic device, and the area of the seventh area is smaller than the eighth area.
[0163] In some embodiments, the false touch identification module 30 is configured to:
[0164] Acquire control channel data generated in the target touch inhibition area, wherein the control channel data includes response data when the control channel in the target touch inhibition area is touched;
[0165] Determine, according to the control channel data, a touch signal of each touch operation generated in the target touch inhibition area;
[0166] The false touch recognition result corresponding to each touch operation is determined according to the touch control signal corresponding to each touch operation.
[0167] In some embodiments, the false touch identification module 30 is configured to:
[0168] Determine a first quantity of response data of an edge channel and a second quantity of response data of a sub-edge channel based on the touch signal, and determine a ratio of the first quantity to the second quantity;
[0169] In response to the ratio being greater than a preset ratio threshold, it is determined that the false touch recognition result of the touch operation corresponding to the touch signal is a false touch.
[0170] In some embodiments, the false touch identification module 30 is configured to:
[0171] In response to the number of response data included in the touch signal being greater than or equal to a preset number threshold, it is determined that the false touch recognition result of the touch operation corresponding to the touch signal is a false touch.
[0172] In some implementations, the state detection module 10 is configured to:
[0173] Acquire a training data set, wherein the training data set includes a plurality of sample data, each sample data includes posture data, touch mutual capacitance data, and holding state label data;
[0174] Inputting the sample data into a grip detection model to be trained to obtain an output result of the grip detection model;
[0175] Based on the difference between the output result and the holding state label data, the model parameters of the holding detection model are adjusted until a convergence condition is met, thereby obtaining a trained holding detection model.
[0176] From the above, it can be seen that in the disclosed embodiment, different touch inhibition areas are configured for different holding states of the electronic device, so that the touch inhibition area can be effectively adapted to the actual use scenario, reducing the risk of the user's normal touch operation being misjudged as an accidental touch operation, resulting in the user's touch operation losing points, and improving the accuracy of the false touch detection and the user's touch experience. In addition, by combining the aforementioned software algorithm to determine whether the touch operation is an accidental touch operation, it is more in line with the actual characteristics of the accidental touch operation, and the accuracy of the anti-accidental touch detection is improved.
[0177] In some embodiments, the present disclosure provides an electronic device, including:
[0178] Processor; and
[0179] A memory stores computer instructions, wherein the computer instructions are used to enable a processor to execute the method described in any of the above embodiments.
[0180] In some embodiments, the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in any of the above embodiments.
[0181] Fig.12 The electronic device structure in some embodiments of the present disclosure is shown in FIG. Fig.12 Electronic devices according to some embodiments of the present disclosure are described.
[0182] Reference Fig.12, the electronic device 1800 may include one or more of the following components: a processing component 1802 , a memory 1804 , a power component 1806 , a multimedia component 1808 , an audio component 1810 , an input / output (I / O) interface 1812 , a sensor component 1816 , and a communication component 1818 .
[0183] The processing component 1802 generally controls the overall operation of the electronic device 1800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1802 may include one or more processors 1820 to execute instructions. In addition, the processing component 1802 may include one or more modules to facilitate interaction between the processing component 1802 and other components. For example, the processing component 1802 may include a multimedia module to facilitate interaction between the multimedia component 1808 and the processing component 1802. For another example, the processing component 1802 may read executable instructions from a memory to implement electronic device related functions.
[0184] The memory 1804 is configured to store various types of data to support operations on the electronic device 1800. Examples of such data include instructions for any application or method operating on the electronic device 1800, contact data, phone book data, messages, pictures, videos, etc. The memory 1804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0185] The power supply component 1806 provides power to the various components of the electronic device 1800. The power supply component 1806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1800.
[0186] The multimedia component 1808 includes a display screen that provides an output interface between the electronic device 1800 and the user. In some embodiments, the multimedia component 1808 includes a front camera and / or a rear camera. When the electronic device 1800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0187] The audio component 1810 is configured to output and / or input audio signals. For example, the audio component 1810 includes a microphone (MIC), and when the electronic device 1800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1804 or sent via the communication component 1818. In some embodiments, the audio component 1810 also includes a speaker for outputting audio signals.
[0188] I / O interface 1812 provides an interface between processing component 1802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0189] The sensor assembly 1816 includes one or more sensors for providing various aspects of status assessment for the electronic device 1800. For example, the sensor assembly 1816 can detect the open / closed state of the electronic device 1800, the relative positioning of components, such as the display and keypad of the electronic device 1800, and the sensor assembly 1816 can also detect the position change of the electronic device 1800 or a component of the electronic device 1800, the presence or absence of user contact with the electronic device 1800, the orientation or acceleration / deceleration of the electronic device 1800, and the temperature change of the electronic device 1800. The sensor assembly 1816 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1816 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1816 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0190] The communication component 1818 is configured to facilitate wired or wireless communication between the electronic device 1800 and other devices. The electronic device 1800 can access a wireless network based on a communication standard, such as Wi-Fi, 2G, 3G, 4G, 5G or 6G, or a combination thereof. In an exemplary embodiment, the communication component 1818 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1818 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0191] In an exemplary embodiment, the electronic device 1800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.
[0192] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the embodiments. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.
Claims
1. A method for preventing accidental touch detection, characterized in that: include: Detect the current holding state of the electronic device; Determining a target touch inhibition area corresponding to the holding state from a plurality of pre-configured touch inhibition areas based on the holding state; wherein different touch inhibition areas occupy different positions on the screen of the electronic device, and the touch inhibition area is used to perform false touch recognition on the touch signal generated therein; Based on the touch signal of the touch operation in the target touch inhibition area, a false touch recognition result of the touch operation is determined.
2. The method according to claim 1, characterized in that The detecting the current holding state of the electronic device includes: Acquiring current posture data and touch mutual capacitance data of the electronic device; The posture data and the touch mutual capacitance data are input into a pre-trained holding detection model to obtain a current holding state of the electronic device output by the holding detection model.
3. The method according to claim 1, characterized in that The holding state includes a left-hand holding state and a right-hand holding state; the multiple touch inhibition areas include a first touch inhibition area corresponding to the left-hand holding state, and a second touch inhibition area corresponding to the right-hand holding state; The first touch inhibition zone includes a first area located at the left edge of the electronic device and a second area located at the right edge of the electronic device, and the length of the first area is greater than the second area; the first touch inhibition zone also includes a third area located at the lower left corner edge of the electronic device and a fourth area located at the lower right corner edge of the electronic device, and the area of the third area is greater than the fourth area; The second touch inhibition zone includes a fifth area located at the left edge of the electronic device and a sixth area located at the right edge of the electronic device, and the length of the fifth area is smaller than the sixth area; the second touch inhibition zone also includes a seventh area located at the lower left corner edge of the electronic device and an eighth area located at the lower right corner edge of the electronic device, and the area of the seventh area is smaller than the eighth area.
4. The method according to claim 1, characterized in that The determining, based on the touch signal generated in the target touch inhibition area, a false touch recognition result of the touch operation corresponding to the touch signal includes: Acquire control channel data generated in the target touch inhibition area, wherein the control channel data includes response data when the control channel in the target touch inhibition area is touched; Determine, according to the control channel data, a touch signal of each touch operation generated in the target touch inhibition area; The false touch recognition result corresponding to the touch operation is determined according to the touch control signal corresponding to each touch operation.
5. The method according to claim 4, characterized in that The determining, according to the touch control signal corresponding to each touch operation, the false touch recognition result corresponding to the touch operation includes: Determine a first quantity of response data of an edge channel and a second quantity of response data of a sub-edge channel based on the touch signal, and determine a ratio of the first quantity to the second quantity; In response to the ratio being greater than a preset ratio threshold, it is determined that the false touch recognition result of the touch operation corresponding to the touch signal is a false touch.
6. The method according to claim 4, characterized in that The determining, according to the touch control signal corresponding to each touch operation, the false touch recognition result corresponding to the touch operation includes: In response to the number of response data included in the touch signal being greater than or equal to a preset number threshold, it is determined that the false touch recognition result of the touch operation corresponding to the touch signal is a false touch.
7. The method according to claim 2, characterized in that The training process of the grip detection model includes: Acquire a training data set, wherein the training data set includes a plurality of sample data, each sample data includes posture data, touch mutual capacitance data, and holding state label data; Inputting the sample data into a grip detection model to be trained to obtain an output result of the grip detection model; Based on the difference between the output result and the holding state label data, the model parameters of the holding detection model are adjusted until a convergence condition is met, thereby obtaining a trained holding detection model.
8. A device for preventing accidental touch, characterized in that: include: A state detection module is configured to detect a current holding state of the electronic device; an inhibition zone determination module, configured to determine a target touch inhibition zone corresponding to the holding state from a plurality of pre-configured touch inhibition zones based on the holding state; wherein different touch inhibition zones occupy different positions on the screen of the electronic device, and the touch inhibition zones are used to perform false touch recognition on touch signals generated therein; The false touch recognition module is configured to determine a false touch recognition result of the touch operation based on a touch signal of the touch operation in the target touch inhibition area.
9. An electronic device, characterized in that: include: processor; and A memory storing computer instructions, wherein the computer instructions are used to enable a processor to execute the method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: Computer instructions are stored, and the computer instructions are used to make a computer execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Mistaken-touch preventing method and apparatus for touch screen of mobile terminal and mobile terminal
CN106775405A
Touch display device and mistaken touch prevention method of touch display device
CN113110762A
Touch screen mistaken touch prevention processing method and device, equipment and medium
CN113282191A
Mobile terminal mistaken touch prevention method and device, computer equipment and storage medium
CN113552995A
False touch prevention method and device, electronic equipment and readable storage medium
CN116520973A