A data processing method and a related electronic device
By implementing a dynamic noise mechanism between the active pen and the smart terminal, coordinate and pressure parameters are collected and noise-added to generate irreversible feature values. The noise parameters are then collaboratively calibrated, which solves the privacy leakage risk in the active pen interaction process and achieves safe, efficient interaction smoothness and privacy protection.
Patent Information
- Application Number
- CN202611115479.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-24
- Publication Date
- 2026-11-27
AI Technical Summary
During the interaction between the active pen and the smart terminal, there is a risk that malicious programs may steal handwriting trajectory and pen pressure data, leading to the possibility of forging user handwriting and illegal input.
By implementing a dynamic noise mechanism between the active pen and the smart terminal, coordinate and pressure parameters are collected and noise-added, and irreversible feature values are generated using a hash algorithm. The noise parameters are then collaboratively calibrated to achieve privacy protection and secure interaction.
It effectively obscures real trajectory information, prevents content leakage, ensures smooth interaction and privacy security, and adapts to noise parameter adjustments for different usage scenarios, thereby improving security and real-time performance.
Smart Images

Figure CN123179442A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to a data processing method and related electronic equipment. Background Technology
[0002] Currently, smart terminals equipped with active pens are widely used to improve user handwriting and interaction efficiency. Active pens and smart terminals can exchange data, such as the active pen collecting sampled data, which is then transmitted to the terminal for processing using a large model. However, during use, both the active pen and the terminal, as well as during data transmission, are vulnerable to malicious programs stealing raw sampled data such as handwriting trajectories and pen pressure. There is also a risk of forging user handwriting to initiate illegal input. Summary of the Invention
[0003] This disclosure provides a data processing method and related electronic equipment to at least solve the above-mentioned technical problems existing in the prior art.
[0004] According to a first aspect of this disclosure, a data processing method is provided, the method comprising: The first output parameter of the first device is collected. The first output parameter includes a first coordinate parameter and a first pressure parameter. The first pressure parameter represents at least one pressure value generated when the first device comes into contact with the second device. Determine a first noise parameter, which represents the degree of noise addition during the noise addition process; Based on the first noise parameter, the first coordinate parameter is subjected to noise addition processing to obtain the first noise addition processing result; Based on the first pressure parameter, the first calculation result is obtained; The first calculation result is sent to the second device, and the first calculation result is used to trigger the second device to update the first noise parameter.
[0005] According to a second aspect of this disclosure, a data processing method is provided, the method comprising: Receive the first calculation result sent by the first device; The second input parameters of the second device are collected. The second input parameters include a second coordinate parameter and a second pressure parameter. The second pressure parameter represents at least one pressure value generated by the contact between the first device and the second device. Based on the second pressure parameter, the second calculation result is obtained; The first calculation result and the second calculation result are similar to each other to obtain a verification result; if the verification result meets the conditions, the second noise parameter is determined according to the second coordinate parameter and the application scenario information corresponding to the second coordinate parameter; the second noise coefficient represents the degree of noise addition in the noise addition process. The second coordinate parameters are denoised according to the second noise parameters to obtain the second denoising result. The second noise parameter is sent to the first device.
[0006] According to a third aspect of this disclosure, a first electronic device is provided, comprising: A contact unit is used to collect a first output parameter of a first electronic device. The first output parameter includes a first coordinate parameter and a first pressure parameter. The first pressure parameter represents at least one pressure value generated when the first electronic device contacts the second electronic device. A processor and a memory communicatively connected to the processor, the memory storing instructions executable by the processor, the instructions being executed by the processor to enable the processor to perform: Determine a first noise parameter, which represents the degree of noise addition during the noise addition process; Based on the first noise parameter, the first coordinate parameter is subjected to noise addition processing to obtain the first noise addition processing result; Based on the first pressure parameter, the first calculation result is obtained; The contact unit sends the first calculation result to the second electronic device, and the first calculation result is used to trigger the second electronic device to update the first noise parameter.
[0007] According to a fourth aspect of this disclosure, a second electronic device is provided, comprising: A touch screen is used to collect second input parameters of a second electronic device. The second input parameters include second coordinate parameters and second pressure parameters. The second pressure parameter represents at least one pressure value generated by the contact between the first electronic device and the second electronic device. A processor and a memory communicatively connected to the processor, the memory storing instructions executable by the processor, the instructions being executed by the processor to enable the processor to perform: Receive the first calculation result sent by the first electronic device; Based on the second pressure parameter, the second calculation result is obtained; The first calculation result and the second calculation result are similar to each other to obtain a verification result; if the verification result meets the conditions, the second noise parameter is determined according to the second coordinate parameter and the application scenario information corresponding to the second coordinate parameter; the second noise coefficient represents the degree of noise addition in the noise addition process. The second coordinate parameters are denoised according to the second noise parameters to obtain the second denoising result. The touchscreen sends the second noise parameter to the first electronic device.
[0008] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0009] The above and other objects, features, and advantages of this disclosure will become readily apparent from the following detailed description of exemplary embodiments, taken in conjunction with the accompanying drawings. Several embodiments of this disclosure are illustrated in the drawings by way of example and not limitation, in which: In the accompanying drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
[0010] Figure 1 A flowchart illustrating a data processing method provided in an embodiment of this disclosure; Figure 2 A flowchart illustrating another data processing method provided in an embodiment of this disclosure; Figure 3 A schematic diagram illustrating the interaction between a first device and a second device, provided as an application embodiment of this disclosure; Figure 4 This is a schematic diagram of the structure of a first electronic device provided in an embodiment of the present disclosure; Figure 5 This is a schematic diagram of the structure of a second electronic device provided in an embodiment of the present disclosure; Figure 6 This is a schematic diagram of a device having a first device and a second device, provided as an embodiment of the present disclosure. Detailed Implementation
[0011] To make the objectives, features, and advantages of this disclosure more apparent and understandable, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0012] Figure 1 This is a flowchart illustrating a data processing method provided in an embodiment of the present disclosure, as shown below. Figure 1 As shown, the method includes: Step 101: Collect the first output parameters of the first device. The first output parameters include the first coordinate parameters and the first pressure parameters. The first pressure parameters represent at least one pressure value generated when the first device comes into contact with the second device. Step 102: Determine the first noise parameter, which represents the degree of noise addition during the noise addition process; Step 103: Add noise to the first coordinate parameters based on the first noise parameters to obtain the first noise addition result; Step 104: Based on the first pressure parameter, obtain the first calculation result; Step 105: Send the first calculation result to the second device. The first calculation result is used to trigger the second device to update the first noise parameter.
[0013] Here, the method can be applied to a first device, which can be a stylus with sensors and electromagnetic technology, which can be used to perform operations such as writing and clicking on a touch screen. For example, the first device can be an active pen.
[0014] The second device can be a device that interacts with the first device, such as a tablet computer, a mobile phone, or an interactive conference screen.
[0015] The first coordinate parameter can be the position information when the pen tip of the first device touches the screen of the second device. It generally includes at least two-dimensional planar coordinates, namely X and Y. Based on the performance conditions of the first device, the first coordinate parameter can also include extended coordinates such as pen body tilt angle, so as to fully record the user's handwriting trajectory and writing or drawing actions.
[0016] The first pressure parameter can be the pressure value sensed when the pen tip of the first device comes into contact with the second device. It can be used to reflect the pressure applied when pressing the pen tip from the first device to the second device. Different pressures can achieve different effects such as varying pen thickness and pressure-sensitive writing.
[0017] The first pressure parameter and the first coordinate parameter can be acquired within the same acquisition time series. That is, within the acquisition time series, the first pressure parameter and the first coordinate parameter can be acquired simultaneously when the pen tip of the first device comes into contact with the second device. The first coordinate parameter may only include the coordinates of a single point, such as when the user's operation is a light touch or a click. Correspondingly, the first pressure parameter may include the pressure value of a single contact.
[0018] The first coordinate parameter can also include the coordinates of multiple consecutive points. For example, if the user's operation is writing or drawing, the first coordinate parameter can reflect the trajectory of the writing or drawing. Similarly, the first pressure parameter can also include pressure values at multiple time points during continuous writing or drawing operations.
[0019] Here, the first noise parameter can at least represent the degree of noise addition to the first coordinate parameter. Different degrees of noise addition will result in different first noise addition results.
[0020] For example, if the first coordinate parameter is a single coordinate point, you can directly add random disturbance values that conform to the noise parameter settings to the X and Y axis values of that coordinate point. For example, if the original coordinates are (120, 358), after adding noise, they may become (120.2, 357.8), and the deviation is within the set noise intensity range.
[0021] For example, the first coordinate parameter can be multiple consecutive coordinate points, meaning it corresponds to a continuous trajectory. This trajectory can contain text, signatures, drawings, etc. Adding noise can refer to adding noise to the specific content. The trajectory after adding noise cannot completely reproduce the true content corresponding to the trajectory. If the trajectory reflects numerical values, the values can be blurred; if the trajectory reflects textual content, sensitive words can be replaced or parts of the text can be deleted.
[0022] Here, obtaining the first calculation result based on the first pressure parameter can refer to converting the first pressure parameter into some irreversible feature value for subsequent privacy-preserving calculations. For example, the first pressure parameter can be hashed based on a hash algorithm (such as SHA-256) to obtain the hash calculation result as the first calculation result. After obtaining the first calculation result, the first device sends the first calculation result to the second device to trigger the second device to update the first noise parameter according to the first calculation result.
[0023] Thus, by adding noise to the first coordinate parameter, the information of the real coordinate point is blurred, and the content reflected by the original trajectory is prevented from being leaked. After the first calculation result is obtained by calculating the first pressure parameter, the second device is triggered to update the first noise parameter, so that the second device can adjust the noise level of the first device according to the parameters of the interaction, and complete the collaborative calibration of the noise parameters at both ends. This method takes into account the smoothness of interaction, privacy security and the efficiency of adaptive adjustment of noise parameters.
[0024] In some embodiments, determining the first noise parameter includes: Collect capacitance parameters and / or first pressure sensitivity parameters; In response to the condition being met by the capacitance parameter and / or the first pressure sensitivity parameter, the first noise parameter is determined based on the capacitance parameter and / or the first pressure sensitivity parameter; Wherein, the magnitude of the first noise parameter is positively correlated with the magnitude of the capacitance parameter and / or the first pressure sensitivity parameter; The conditions that the capacitance parameter and / or the first pressure-sensitive parameter meet include: the capacitance parameter being greater than a first threshold, and / or the first pressure-sensitive parameter being greater than a second threshold. or, A second noise parameter is obtained from a second device, the second noise parameter being derived based on the first calculation result; The first noise parameter is updated based on the second noise parameter.
[0025] Here, the first device may have a device that collects capacitance parameters and first pressure sensitivity parameters.
[0026] The first device can have a built-in capacitive contact sensor. When the pen tip of the first device comes into contact with the screen of the second device, it can collect the capacitance value (denoted as Ct) as a capacitance parameter.
[0027] The first device may also have a built-in pressure sensor. When the pen tip of the first device comes into contact with the screen of the second device, it can detect the pressure value (denoted as Pt) as the first pressure parameter. If the first device does not have a pressure sensor (i.e., it does not have a built-in pressure sensor), the first device can also receive the pressure value collected by the second device. There are no restrictions on the devices in the first device.
[0028] The capacitance parameter and the first pressure sensitivity parameter can be the capacitance value and pressure value initially collected by the first device and the second device during this use. For example, after the first device and the second device enter the use state, the initial contact time between the pen tip of the first device and the second device is t1. Then the capacitance value collected at time t1 can be recorded as the capacitance parameter, and the pressure value collected at time t1 can be recorded as the first pressure sensitivity parameter.
[0029] Here, the first threshold is a judgment condition set for the capacitance value, and the second threshold is a judgment condition set for the pressure value. The values can be set based on experience, user operating habits, etc., and are not limited in their specific values. For example, the first threshold can be denoted as C0, assuming a value of 200pF; the second threshold can be denoted as P0, assuming a value of 50g. Then, if the capacitance parameter and / or the first pressure-sensitive parameter meet the conditions, it includes: the capacitance parameter being greater than 200pF, and / or the first pressure-sensitive parameter being greater than 50g.
[0030] When the conditions are met, the first device can determine the first noise parameter based on either the capacitance parameter or the first pressure sensitivity parameter, or it can determine the first noise parameter based on both the capacitance parameter and the first pressure sensitivity parameter.
[0031] In one example, the first noise parameter is determined based on the capacitance parameter (i.e., the collected capacitance value). For instance, the first device may have a relationship table between the capacitance parameter and the first noise parameter. The larger the capacitance parameter, the larger the first noise parameter (denoted as a). The value of the first noise parameter corresponding to the collected capacitance parameter is determined by consulting the relationship table based on the actual collected capacitance parameter (such as a capacitance value greater than a first threshold).
[0032] In one example, a method is provided to determine a first noise parameter based on a capacitance value, specifically based on the rule that the larger the capacitance value (i.e., capacitance parameter), the larger the first noise parameter (denoted as a).
[0033] In the initial state, the user can be prompted with the rule that the larger the capacitance value (i.e., capacitance parameter), the larger the first noise parameter (denoted as a). The user can press the button according to their desired noise level, so that the first device can collect the capacitance parameter and set the first noise coefficient based on the user's press.
[0034] The above setting rules are based on the actual scenario where users tend to press the pen tip firmly and maintain stable contact for a relatively long time when signing, entering passwords, or filling out sensitive forms. In this case, the capacitive coupling area is large and the capacitance value is relatively high. On the other hand, low-sensitivity operations such as lightly touching to turn pages, scribbling, or accidental touches often involve only tapping or sliding, resulting in a smaller capacitance value. In this way, users can, without performing additional operations (such as setting a separate noise parameter setting key or other complex operations), allow the first device to sense the capacitance parameter and determine the current required initial noise figure through normal use.
[0035] In another example, the first noise parameter is determined based on the first pressure-sensitive parameter (i.e., the collected pressure value). For example, the first device may have a relationship table between the first pressure-sensitive parameter and the first noise parameter. The larger the first pressure-sensitive parameter, the larger the first noise parameter (denoted as a). The value of the first noise parameter corresponding to the collected first pressure-sensitive parameter is determined by querying the relationship table based on the actual collected first pressure-sensitive parameter (such as a voltage value greater than the second threshold).
[0036] In one example, a method is provided to determine a first noise parameter based on a pressure value, specifically based on the rule that the larger the pressure value (i.e., the first pressure sensitivity parameter), the larger the first noise parameter (denoted as a).
[0037] In the initial state, the user can be prompted with the rule that the larger the pressure value (i.e. the first pressure sensitivity parameter) is, the larger the first noise parameter (denoted as a). The user can press the button according to their desired level of noise, so that the first device can set the first noise coefficient based on the pressure value pressed by the user.
[0038] The above setting rules are based on the fact that users often unconsciously increase pen pressure in real-world scenarios such as handwriting, signing, and password input. For example, when signing or filling out important forms, the hand naturally applies more pressure to ensure clear handwriting or reliable key presses, while the pen tip tends to make very light contact during ordinary screen scrolling, browsing, and casual note-taking. Therefore, without additional operations (such as setting a separate noise parameter setting key), users can have the first device sense the pressure sensitivity parameters and determine the desired initial noise level through normal use.
[0039] In another example, the first noise parameter can be determined based on the capacitance parameter and the first pressure-sensing parameter. In this case, both the capacitance parameter and the first pressure-sensing parameter can be considered simultaneously. For example, the first device can have a table showing the relationship between the combination of the capacitance parameter and the first pressure-sensing parameter and the first noise parameter, and the first pressure-sensing parameter can be determined by querying the table. Alternatively, a calculation method can be set, such as first normalizing the capacitance parameter and the first pressure-sensing parameter, then performing a weighted calculation to obtain a weighted result, and determining the corresponding first noise parameter based on the weighted calculation result. No specific method is limited.
[0040] Here, the first device and the second device can establish a connection relationship in advance, such as by establishing a contact status synchronization channel through NFC (Near Field Communication) or Bluetooth technology, which can meet the requirement of latency ≤10ms, ensuring real-time linkage of contact status and data transmission.
[0041] After sending the first calculation result to the second device, the first device can receive the second noise parameter determined by the second device and update its own first noise parameter based on the second noise parameter, so as to achieve collaborative calibration of the noise parameters at both ends of the first device and the second device.
[0042] Thus, the dynamic noise mechanism triggered by the contact state between the first and second devices allows privacy noise parameters to be determined based on the capacitance and / or pressure sensitivity parameters of the contact upon first use. For example, the greater the contact pressure, the higher the privacy protection level. This solves the imbalance between fixed and usability of traditional noise privacy parameters (e.g., parameters that are too small cannot block channel attacks, while parameters that are too large may cause lag in operations such as typing, drawing, and swiping). Furthermore, noise parameters cannot be extracted in insecure environments such as the Android system and can generally only be collected based on screen sensor drivers in controllable secure environments such as TEE (Trusted Execution Environment).
[0043] In addition, the first device triggers the second device to update the first noise parameter, so that the second device can adjust its own and the first device's noise level according to the parameters of the interaction. The coordinated calibration of the noise parameters at both ends forms a complete side-channel protection.
[0044] In some embodiments, the first coordinate parameters are subjected to noise processing based on the first noise parameters to obtain a first noise processing result, including: The first model is used to perform trajectory recognition on the first coordinate parameters to obtain the recognition result; Determine the desensitization level corresponding to the recognition result, and perform noise processing on the first coordinate parameter according to the desensitization level and the first noise parameter to obtain the first noise processing result; The first model is trained based on at least one sample coordinate parameter and a label corresponding to each sample coordinate parameter. The label represents the interactive content corresponding to the sample coordinate parameter, and each sample coordinate parameter includes at least one coordinate value.
[0045] Here, the first coordinate parameter can be a single coordinate point, and the recognition result can be a key command. The first coordinate parameter can also include multiple coordinate points, such as [(x0,y0),(x1,y1),...]. The first coordinate parameter formed by multiple coordinate points (such as (x0,y0), (x1,y1)) can reflect the handwriting trajectory of the user interacting with the second device through the first device. This handwriting trajectory can correspond to different interactive content, such as specific text, graphics, etc.
[0046] The first model is used to identify the interactive content corresponding to the first coordinate parameters. During the training phase, sample coordinate parameters of various texts and graphics are collected, and each sample coordinate parameter has a corresponding label that represents the specific meaning of the text or image. A suitable model is selected, such as Bidirectional Long Short-Term Memory (BiLSTM) or LSTM (Long Short-Term Memory), and the model is trained based on the sample coordinate parameters and their corresponding labels until the loss converges, resulting in the first model. In practical applications, the first model is deployed on a first device, which uses the first model to perform trajectory recognition on the collected first coordinate parameters and obtain the recognition result.
[0047] Here, different anonymization levels can be set for different types of identification results. For example, the identification result can be the amount, transfer recipient, business purpose, or contact number. By querying the anonymization level table in the first device based on the identification result, the identification result can be mapped to the corresponding anonymization level. For example, there are three anonymization levels: Level 1 represents high risk, Level 2 represents sensitive, and Level 3 represents suspected sensitive.
[0048] Different desensitization levels and first noise-adding parameters correspond to different noise-adding processing methods. Several examples are provided below.
[0049] In one example, the identification result is the amount, and the desensitization level is Level 1 (high risk). The noise addition method determined by the first noise addition parameter can be: using Laplace noise to add noise to the numerical field to obtain an ambiguous value; if the first noise parameter is also very large (such as exceeding a certain threshold), semantic mapping of the amount can also be performed, such as the transfer amount of "50 million" can be changed to "a lot", "huge amount", etc.
[0050] In another example, if the identification result is a transfer object and the desensitization level is level two (sensitive), then the sensitive word library can be queried, and the matching token can be selected for placeholder replacement; if the first noise parameter is also very large (such as exceeding a certain threshold), the field can also be directly replaced or deleted.
[0051] In another example, if the identification result is a communication number and the desensitization level is level three (suspected sensitive), then desensitization can be achieved by adding random text data to generate random sentence paragraphs and splicing them into the original text.
[0052] The above are just a few examples. In actual applications, other noise-adding methods can be used, such as random offset, differential privacy noise addition, etc., which are not limited here.
[0053] After the noise-adding process is completed to obtain the first noise-adding result (i.e., the desensitized data), it can be stored locally on the first device.
[0054] Thus, in dual-device interaction scenarios, the first device can autonomously collect and desensitize user input features such as touch and handwriting without calling the computing resources of the second device. This avoids the extra power consumption caused by cross-device computing power scheduling and also meets the low-power operation requirements of the first device.
[0055] In some embodiments, the method further includes: Collect the first unlocking information and the second pressure-sensitive parameter, and send the first unlocking information and the second pressure-sensitive parameter to the second device; Receive the key generated and sent by the second device based on the first unlocking information and the second pressure-sensitive parameters; The second model generates weight parameters based on the first coordinate parameters; the second model employs an autoencoder, and the weight parameters represent the accuracy of interactive content recognition based on the coordinate parameters. The weight parameter, the first coordinate parameter, the first pressure parameter, and the first timestamp sequence are encoded to obtain a first processing result; the first timestamp sequence represents the timestamp sequence of the first output parameter acquisition. The weight parameter and the first processing result are encrypted using the key, and the encrypted weight parameter and the first processing result are sent to the second device.
[0056] Here, the first device can have a biometric sensor, such as a fingerprint sensor, where the user can pre-register their fingerprint. When using the first device later, the first device collects the user's fingerprint as the initial unlocking information. The first device can also have a built-in pressure sensor. When the pen tip of the first device contacts the screen of the second device, it can detect the pressure value (denoted as Pt) as a second pressure-sensitive parameter. If the first device does not have a pressure-sensitive sensor (i.e., no built-in pressure sensor), it can still receive the pressure value collected by the second device. There are no limitations on the components in the first device. The second pressure-sensitive parameter can be one or more pressure values collected after successful unlocking. For example, after the first and second devices successfully unlock and enter the usage state, if the initial contact time between the pen tip of the first device and the second device is t1, then the pressure value collected at time t1 can be recorded as the second pressure-sensitive parameter. Alternatively, the pressure value collected over a period including time t1 can be recorded as the pressure-sensitive parameter. Assuming that t1 is the start time and tx is the end time within this period, and the collected pressure values include Pt1, Pt2, ..., Ptx, then the second pressure-sensitive parameter includes Pt1, Pt2, ..., Ptx.
[0057] After acquiring the first unlocking information and the second pressure-sensitive parameter, the first device sends the first unlocking information and the second pressure-sensitive parameter to the second device to negotiate and determine a key. For example, the negotiation process may include: the second device simultaneously acquiring the second unlocking information and the third pressure-sensitive parameter, and receiving the first unlocking information and the second pressure-sensitive parameter from the first device; if it is determined that the second unlocking information matches the first unlocking information, and the second pressure-sensitive parameter matches the third pressure-sensitive parameter, then a key is generated based on the second unlocking information and the third pressure-sensitive parameter, and the key is sent to the first device; correspondingly, the first device receives the key generated and sent by the second device.
[0058] After receiving the two parameters from the first device, the second device can first verify the unlock information to confirm whether the first device is a legitimate device that has been paired with it. Then, it generates a key based on the dynamic pressure-sensitive parameters and sends it back to the first device. This key can be a temporary session key used only for this interaction. In this way, even if it is intercepted, it cannot be reused in other scenarios, making it more secure than using a fixed key.
[0059] Here, the second model uses an autoencoder, which can be a small, lightweight artificial intelligence model that is pre-trained and deployed on the first device side. It can use an unsupervised feature detection model, such as the AE Tiny autoencoder decoder.
[0060] The second model can determine whether the coordinate trajectory corresponding to the currently collected first coordinate parameter conforms to the characteristics of normal interaction, and output a score weight parameter (such as a score between 0 and 1). This weight parameter can represent the credibility of the interaction content corresponding to the coordinate trajectory of the current first coordinate parameter. For example, if it is a normal writing or drawing trajectory, the autoencoder has a small reconstruction error, so the weight can be relatively high; if it is considered to be fake scribbles or abnormal input, the weight is relatively low.
[0061] The first timestamp sequence can be a millisecond-level timestamp sequence corresponding to the acquisition of the first output parameter to record the temporal characteristics of the interaction. For example, if the first coordinate parameter and the first pressure parameter have only one value, the first timestamp sequence can include only one acquisition time; if the first coordinate parameter and the first pressure parameter have multiple values, the first timestamp sequence can include multiple corresponding acquisition times.
[0062] After obtaining the weight parameter (denoted as W), the first device encodes the weight parameter, the first coordinate parameter, the first pressure parameter, and the first timestamp sequence to obtain the first processing result. Assuming the autoencoder uses AE Tiny autoencoder / decoder, the encoding process can be represented as: Input (first device end) = AE-Tiny{weight parameter W + first coordinate parameter + b{Pt1,Pt2,...,Ptn} + first timestamp sequence}; where {Pt1,Pt2,...,Ptn} represents the first pressure parameter, and each Pt represents a pressure value; b represents the offset between the first and second devices, which can be detected in advance.
[0063] After obtaining the first processing result, the weight parameter and the first processing result are encrypted using the key, and the encrypted weight parameter and the first processing result are sent to the second device. Encrypting the weight parameter and the first processing result separately can improve security and prevent them from being stolen or tampered with.
[0064] Thus, the key K, negotiated based on the unlocking information and pressure-sensitive features of the first and second devices, has a time limit, preventing attacks by third parties. The first and second devices are also bound to the biometric features (i.e., unlocking information) of their respective users, ensuring consistency between their inputs. Furthermore, the pressure-sensitive parameters collected by the first and second devices and the corresponding prompt word encoding / decoding processes provide another layer of verification, ensuring the integrity and legitimacy of parameters such as weights, without requiring complex cryptographic calculations, thus increasing real-time performance.
[0065] In some embodiments, the method further includes: Collect the third coordinate parameters, and use the first model to perform trajectory recognition on the third coordinate parameters to obtain the recognition result; The interaction content matched by the recognition result is determined from at least one saved first noise-adding processing result; If the similarity between the recognition result and the trajectory of the matched interactive content is lower than a threshold, a prompt instruction is generated. The prompt instruction is used to instruct the first device to disconnect from the second device, or to be sent to the second device to indicate that the trajectory similarity is lower than the threshold.
[0066] Here, the third coordinate parameter can be a single coordinate point, and the recognition result can be a key command. The third coordinate parameter can also include multiple coordinate points, such as [(x0,y0),(x1,y1),...]. The third coordinate parameter formed by multiple coordinate points (such as (x0,y0), (x1,y1)) can reflect the handwriting trajectory of the user interacting with the second device through the first device. This handwriting trajectory can correspond to different interactive content, such as specific text, graphics, etc.
[0067] The first device locally stores the first noise-adding processing result, which may contain historical results of the previous noise-adding processing of the first coordinate parameters. From the first noise-adding processing result, some handwritten trajectories corresponding to the stored first coordinate parameters can be obtained. The handwritten trajectories may correspond to different interactive content, such as specific text, graphics, etc.
[0068] By combining some stored handwritten trajectories of text, graphics, etc., the trajectory can be compared with the corresponding handwritten trajectory of the third coordinate parameter. If the trajectory similarity of the handwritten trajectory is lower than the threshold for the same interactive content, for example, for the same text or number, the trajectory similarity is lower than the threshold, then it is considered that the current operation may be risky, and a prompt instruction can be issued to realize the safety warning.
[0069] Of course, different thresholds can be set for different interactive content. For example, for ordinary handwriting input (such as non-sensitive words), the threshold can be set relatively loosely (such as setting the threshold to 50%) to avoid frequent prompts to disturb users when there are slight deviations during normal writing; while for digital types such as signatures and payments, the threshold can be set relatively strictly (such as setting the threshold to 80%) to avoid missing the detection of fake interactions.
[0070] Here, the prompt instruction can instruct the first device to disconnect from the second device. This prompt instruction can be executed by either the first device or the second device, disconnecting the connection so that the current interaction between the first device and the second device cannot continue. Of course, the prompt message can also be an alert message, such as being sent to the second device to inform the user that the trajectory similarity is below a threshold via a prompt message or sound.
[0071] In this way, by comparing the similarity between real-time handwritten trajectories and historical trajectories, the system can determine whether the interaction is compliant, thereby improving the security of the interaction. Furthermore, by setting different thresholds and prompts, it can provide users with a good interactive experience.
[0072] Figure 2 This is a flowchart illustrating a data processing method provided in an embodiment of the present disclosure, as shown below. Figure 2 As shown, the method includes: Step 201: Receive the first calculation result sent by the first device; Step 202: Collect the second input parameters of the second device. The second input parameters include the second coordinate parameters and the second pressure parameters. The second pressure parameters represent at least one pressure value generated by the contact between the first device and the second device. Step 203: Based on the second pressure parameter, obtain the second calculation result; Step 204: Perform similarity verification on the first calculation result and the second calculation result to obtain the verification result; if the verification result meets the conditions, determine the second noise parameter based on the second coordinate parameter and the application scenario information corresponding to the second coordinate parameter; the second noise coefficient represents the degree of noise addition in the noise addition process; Step 205: Add noise to the second coordinate parameters according to the second noise parameters to obtain the second noise-adding result; Step 206: Send the second noise parameter to the first device.
[0073] Here, the method can be applied to a second device, which can be a device that interacts with the first device, such as a tablet computer, mobile phone, or interactive conference screen. The second device may have a built-in pressure sensor, trajectory acquisition module, etc., which can collect pressure values, coordinate values, etc., after contact with the first device.
[0074] The second coordinate parameter can be the position information of the pen tip of the first device when it touches the screen of the second device. It generally includes at least two planar coordinates, X and Y. Based on the screen design of the second device, the second coordinate parameter can include the coordinate value of each point on the screen during the interaction. Specifically, if it is a click operation, the second coordinate parameter may include only one coordinate point. If it is a writing or drawing operation, the second coordinate parameter may include multiple coordinate points. Multiple coordinate points reflect the trajectory of writing or drawing, and different trajectories can reflect different interactive content (i.e., text, patterns, etc. entered by the user).
[0075] The second pressure parameter can be the pressure value sensed when the pen tip of the first device comes into contact with the second device. It can be used to reflect the pressure applied when pressing the pen tip from the first device to the second device. Different pressures can achieve different effects such as varying pen thickness and pressure-sensitive writing on the second device.
[0076] The second pressure parameter and the second coordinate parameter can be acquired within the same acquisition time series. That is, when the pen tip of the first device and the second device come into contact within the acquisition time series, the second device can acquire the second pressure parameter and the second coordinate parameter simultaneously.
[0077] Correspondingly, if the second coordinate parameter only includes the coordinates of a single point, such as when the user's operation is a tap or click, then the second pressure parameter can include the pressure value of a single contact.
[0078] If the second coordinate parameter includes the coordinates of multiple consecutive points, such as when the user's operation is writing or drawing, the second coordinate parameter reflects the trajectory of writing or drawing; then the second pressure parameter can include the pressure values at multiple time points of continuous writing or drawing operations.
[0079] The first device can be a stylus with sensors and electromagnetic technology, which can be used to perform operations such as writing and clicking on a touch screen. For example, the first device can be an active pen.
[0080] Here, based on the second pressure parameter, the second calculation result is obtained. This can refer to converting the second pressure parameter into some irreversible feature value for subsequent privacy-preserving calculations. For example, the second pressure parameter can be hashed using a hash algorithm (such as SHA-256), and the hash result can be used as the second calculation result. After obtaining the second calculation result, its similarity is compared with the first calculation result sent by the first device. If the similarity meets the condition, the second noise parameter can be further determined based on the second coordinate parameter and the application scenario information corresponding to the second coordinate parameter.
[0081] The similarity condition can be that the similarity exceeds a set threshold. When the similarity exceeds the set threshold, it is considered that the data sent by the first device and the data collected locally by the second device are synchronized, and that the data has not been tampered with or forged, and the data is reliable. If the similarity is below the threshold, it indicates that the data is abnormal (such as the first device or the second device being forged or the data being hijacked), and no further operations will be performed.
[0082] Here, the second noise parameter can at least represent the degree of noise addition to the second coordinate parameter. Different degrees of noise addition will result in different second noise addition results.
[0083] Application scenario information refers to the program and specific function currently used by the second device, such as the payment function in a payment software or the chat interface of a chat software. The noise parameters used in different application scenarios can be different. The second noise parameter is determined based on the second coordinate parameter and the corresponding application scenario information. This can mean combining the interaction content reflected by the second coordinate parameter with the application scenario information to determine the second noise parameter. For example, if the interaction content reflected by the second coordinate parameter is numbers, and the application scenario information is payment, finance, or similar scenarios, then the noise parameter can be set relatively high to avoid information leakage; if the interaction content reflected by the second coordinate parameter is text, and the application scenario information is calligraphy practice or chatting, then the noise parameter can be set relatively low.
[0084] After obtaining the second noise parameter, the second device can send the second noise parameter to the first device so that the noise parameters of the two ends can be synchronized.
[0085] In this way, the second device avoids the leakage of the content reflected by the original trajectory by adding noise to the second coordinate parameters; the second calculation result obtained by the second pressure parameter is compared with the first calculation result of the first device to ensure the security of communication between the two ends; and the second device can adjust the noise level of the first device according to the parameters of the interaction to complete the collaborative calibration of the noise parameters of the two ends; the method simultaneously takes into account the smoothness of interaction, privacy security and the efficiency of adaptive adjustment of noise parameters.
[0086] In some embodiments, determining the second noise parameter based on the second coordinate parameter and the application scenario information corresponding to the second coordinate parameter includes: Analyze the applications currently used by the second device and the functions used by those applications to determine application scenario information; The third model is used to perform content recognition on the second coordinate parameters to obtain the content recognition result; based on the content recognition result and the application scenario information, the privacy protection level is determined. The second noise parameter is determined based on the privacy protection level. The third model is trained based on at least one sample coordinate parameter and a label corresponding to each sample coordinate parameter. The label represents the interactive content corresponding to the sample coordinate parameter, and each sample coordinate parameter includes at least one coordinate value.
[0087] Here, the second device can obtain system-level permissions to access the functions of its currently opened and running applications in order to determine the current application scenario information.
[0088] The third model is used to identify the interactive content corresponding to the second coordinate parameters. During the training phase, sample coordinate parameters of various texts and graphics from the mobile phone are collected, and each sample coordinate parameter has a corresponding label that can represent the specific meaning of the text or image. A suitable model (such as BiLSTM, LSTM, etc.) is selected, and the model is trained based on the sample coordinate parameters and their corresponding labels until the loss converges, resulting in the third model. In practical applications, the third model is deployed on a second device, which can use the third model to perform trajectory recognition on the collected second coordinate parameters and obtain the recognition result.
[0089] Here, after determining the current content recognition result and application scenario information, the second device determines the privacy protection level based on the content recognition result and application scenario information. Different privacy protection levels correspond to different second noise parameters.
[0090] For example, if the opened bank app, the application scenario information can at least indicate a high-risk financial payment scenario. Combined with the content recognition results, it is determined to be a transfer signature, amount input, etc., so the privacy protection level can be selected to be higher. Assuming it is level one, the corresponding second noise parameter is 0.8. If the chat app is opened, the application scenario information can at least indicate a risk scenario in instant messaging. Combined with the content recognition result, it is determined to be a handwritten message. Then the privacy protection level can be selected as the general level, assuming it is level two, and the corresponding second noise parameter is 0.5. If the memo is open, the application scenario information can at least indicate a low-risk local scenario. Combined with the content recognition result, it is determined that ordinary notes are being taken. In this case, the privacy protection level can be selected as the ordinary level, assuming it is level three, and the corresponding second noise parameter is 0.2.
[0091] It should be noted that the naming and description of the above-mentioned scenarios and privacy protection levels are only examples, and are only used to illustrate that different applications and different content recognition results can correspond to different privacy protection levels.
[0092] In this way, by analyzing the applications currently running on the second device and the functions they use, the current interaction scenario (such as password input, payment confirmation, daily notes, etc.) can be accurately perceived. Then, the third model is used to perform content recognition on the second coordinate parameters. Based on the recognized content and the current application scenario, the privacy protection level is comprehensively judged, thereby dynamically generating matching second noise parameters. Through an adaptive noise strategy based on scenario and content, the noise intensity can be automatically increased to completely mask side-channel characteristics during high-risk operations, while the noise can be reduced to a minimum during low-sensitivity or daily interactions, maximizing the smoothness of handwriting and device battery life. This achieves precise protection and adds noise as needed, significantly improving the balance between the targeting and usability of privacy protection.
[0093] In some embodiments, the method further includes: Collect second unlock information and third pressure sensitivity parameters, and receive first unlock information and second pressure sensitivity parameters from the first device; If the second unlock information matches the first unlock information, and the second pressure-sensitive parameter matches the third pressure-sensitive parameter, then a key is generated based on the second unlock information and the third pressure-sensitive parameter, and the key is sent to the first device; Receive the encrypted weight parameters and the first processing result sent by the first device; The encrypted weight parameters and the encrypted first processing result are decrypted using the key to obtain the weight parameters and the first processing result, respectively. The weight parameters, the second coordinate parameters, the second pressure parameters, and the second timestamp sequence are encoded using a fourth model to obtain a second processing result; the second timestamp sequence represents the timestamp sequence of the second input parameters; the fourth model uses an autoencoder, and the weight parameters represent the accuracy of the interactive content identified based on the coordinate parameters; The first processing result and the second processing result are similar to each other to obtain a verification result. If the verification result meets the conditions, the communication security between the first device and the second device is determined. If the verification result does not meet the conditions, a communication security warning message is generated and displayed.
[0094] Here, the second device can have a biometric sensor, such as a fingerprint sensor, which allows the user to pre-register their fingerprint. When using the second device later, the second device collects the user's fingerprint as the second unlocking information.
[0095] The second device can also have a built-in pressure sensor. When the pen tip of the first device comes into contact with the screen of the second device, it can detect the pressure value (denoted as Pt) as a third pressure parameter. The third pressure parameter can be one or more pressure values collected by the second device after successful unlocking. For example, after the first and second devices are successfully unlocked and enter the usage state, if the initial contact time between the pen tip of the first device and the second device is t1, then the second device can record the pressure value collected at time t1 as the second pressure parameter. Alternatively, it can record the pressure value collected within a period including time t1 as the pressure parameter. Assuming that within this period, t1 is the start time and tx is the end time, and the collected pressure values include: Pt1, Pt2...Ptx, then the second pressure parameter includes Pt1, Pt2...Ptx.
[0096] After acquiring the first unlocking information and the second pressure-sensitive parameter, the first device sends the first unlocking information and the second pressure-sensitive parameter to the second device to negotiate and determine a key. For example, the negotiation process may include: the second device acquiring the second unlocking information and the third pressure-sensitive parameter, and receiving the first unlocking information and the second pressure-sensitive parameter from the first device; if it is determined that the second unlocking information matches the first unlocking information (identity or similarity exceeding a certain threshold), and the second pressure-sensitive parameter matches the third pressure-sensitive parameter (identity or similarity exceeding a certain threshold), then a key is generated based on the second unlocking information and the third pressure-sensitive parameter, and the key is sent to the first device; correspondingly, the first device receives the key generated and sent by the second device.
[0097] After receiving the two parameters from the first device, the second device can first verify the unlock information to confirm whether the first device is a legitimate device that has been paired with it. Then, it generates a key based on the dynamic pressure-sensitive parameters and sends it back to the first device. This key can be a temporary session key used only for this interaction. In this way, even if it is intercepted, it cannot be reused in other scenarios, making it more secure than using a fixed key.
[0098] Here, the first device can use a key to encrypt the data to be sent to the second device, such as encrypting the weight parameters and the first processing result. Correspondingly, after receiving the encrypted data, the second device can use the key to decrypt the encrypted weight parameters and the encrypted first processing result respectively to obtain the weight parameters and the first processing result.
[0099] Here, the fourth model uses an autoencoder, which can be a small, lightweight artificial intelligence model that is pre-trained and deployed on the first device side. It can use an unsupervised feature detection model, such as the AE Tiny autoencoder decoder.
[0100] The second timestamp sequence can be a millisecond-level timestamp sequence corresponding to the acquisition of the second output parameter to record the temporal characteristics of the interaction. For example, if the second coordinate parameter and the second pressure parameter have only one value, the second timestamp sequence can include only one acquisition time; if the second coordinate parameter and the second pressure parameter have multiple values, the second timestamp sequence can include multiple corresponding acquisition times.
[0101] After obtaining the weight parameter (denoted as W), the second device encodes the weight parameter, the second coordinate parameter, the second pressure parameter, and the second timestamp sequence to obtain the second processing result. Assuming the autoencoder uses AE Tiny autoencoder / decoder, the encoding process can be represented as: Input (Second Device End) = AE-Tiny{weight parameter W + second coordinate parameter + b{Pt1,Pt2,...,Ptn} + second timestamp sequence}; where {Pt1,Pt2,...,Ptn} represents the second pressure parameter, and each Pt represents a pressure value; b represents the offset between the first and second devices.
[0102] The second device can determine whether the first and second devices have been intruded upon or their data has been tampered with by comparing the similarity between the first and second processing results. If the verification result meets the conditions (such as using cosine or Euclidean similarity for calculation, and the similarity between the two exceeds the similarity threshold), then the communication between the first and second devices is determined to be secure; otherwise, it is considered that the current communication is dangerous, and a communication security warning message is generated and prompted.
[0103] Considering that there may be some error between the second coordinate parameters and the second pressure parameters received and parsed by the screen and system of the second device and the first coordinate parameters and the first pressure parameters recorded by the first device, although the two use the same autoencoder, the same weight parameters, and the pressure parameters are offset corrected, the processing results obtained by the two may not be exactly the same. Therefore, the similarity threshold can be set to a large value but not 100%, such as any value between 90% and 95%.
[0104] Thus, the key K, negotiated based on the unlocking information and pressure-sensitive features of the first and second devices, has a time limit, preventing attacks by third parties. The first and second devices are also bound to the biometric features (i.e., unlocking information) of their respective users, ensuring consistency between their inputs. Furthermore, the pressure-sensitive parameters collected by the first and second devices and the corresponding prompt word encoding / decoding processes provide another layer of verification, ensuring the integrity and legitimacy of parameters such as weights, without requiring complex cryptographic calculations, thus increasing real-time performance.
[0105] Figure 3 A schematic diagram illustrating the interaction between a first device and a second device is provided as an application embodiment of this disclosure; such as Figure 3 As shown, the method may include: Step 301: The active pen (equivalent to a first device) and the terminal (equivalent to a second device) respectively collect unlocking information and pressure sensitivity parameters; Step 302: The active pen and the terminal negotiate and derive the key K at both ends based on the unlocking information and pressure sensitivity parameters.
[0106] Here, the active pen and the terminal can establish a connection in advance, such as by establishing a contact status synchronization channel through NFC (Near Field Communication) or Bluetooth technology, which can meet the requirement of latency ≤10ms, ensuring real-time linkage of contact status and data transmission.
[0107] Both the active pen and the terminal can be equipped with biometric sensors, such as fingerprint sensors, pre-registered with the user's fingerprint. The active pen sends the collected unlock information and pressure-sensitive parameters to the terminal. The terminal performs a consistency check based on the unlock information and pressure-sensitive parameters collected by both ends. If the unlock information and pressure-sensitive parameters collected by both ends are consistent, a key K is derived for both ends (e.g., a shared key K is generated based on fingerprint features and pressure-sensitive parameters through a one-way key derivation function (KDF)) and sent to the active pen.
[0108] Here, the active pen can also have an inertial measurement unit (IMU, including an accelerometer and a gyroscope), which can independently calculate the pen's own three-axis motion velocity, such as the X-axis (writing speed in the horizontal left-right direction), the Y-axis (writing speed in the vertical up-down direction), and the Z-axis (press / lift speed in the vertical direction of the screen). The terminal can also calculate the pen's three-axis motion velocity vector relative to the terminal screen, i.e., the values of the X, Y, and Z axes, through touch screen sampling and pressure-sensitive data.
[0109] In the derivation of K, the three-axis velocity vectors of the active pen tip and the terminal can be used as additional inputs. Only when the Pearson correlation coefficient between the two is higher than a threshold (e.g., above 0.95, indicating that the movements of the two are almost completely identical) will a valid K be generated. The Pearson correlation coefficient is an indicator that measures the linear correlation between two sets of data, with a value ranging from -1 to 1. The closer it is to 1, the more consistent the changing trends of the two sets of data are.
[0110] Step 3031: Active pen acquires first output parameters; and determines first noise parameters; Here, the first noise parameter represents the degree of noise addition in the noise addition process; the first output parameter includes the first coordinate parameter and the first pressure parameter; the first coordinate parameter is a single coordinate point, or multiple consecutive coordinate points, that is, the first coordinate parameter can correspond to a continuous trajectory, which can carry text, signature, drawing patterns and other content.
[0111] Here, the active pen can also collect capacitance parameters and / or first pressure-sensitive parameters, and determine a first noise parameter based on the capacitance parameters and / or first pressure-sensitive parameters. The magnitude of the first noise parameter is positively correlated with the magnitude of the capacitance parameters and / or first pressure-sensitive parameters. When the capacitance parameters and / or first pressure-sensitive parameters meet the conditions (the capacitance parameter is greater than a first threshold, and / or the first pressure-sensitive parameter is greater than a second threshold), the first noise parameter is determined according to the capacitance parameters and / or first pressure-sensitive parameters.
[0112] Step 3041: The active pen adds noise to the first coordinate parameters based on the first noise parameter to obtain the first noise-adding result; Step 3051: The active pen obtains the first calculation result based on the first pressure parameter; For example, the first pressure parameter can be hashed based on a certain hash algorithm (such as SHA-256) to obtain the first calculation result.
[0113] Step 3061: The active pen sends the first calculation result to the terminal.
[0114] It should be noted that the active pen is equivalent to a first device, and its relevant first output parameters and first noise parameters can be referred to... Figure 1 The relevant explanations of the methods shown will not be repeated here.
[0115] Step 3032: The terminal collects the second input parameter; based on the second pressure parameter, the second calculation result is obtained; Here, the second input parameters include a second coordinate parameter and a second pressure parameter, wherein the second pressure parameter represents at least one pressure value generated by the contact between the first device and the second device.
[0116] If it is a click operation, the second coordinate parameter can include only one coordinate point. If it is a writing or drawing operation, the second coordinate parameter can include multiple coordinate points. Multiple coordinate points reflect the trajectory of writing or drawing, and different trajectories can reflect different interactive content (i.e., text, patterns, etc. entered by the user).
[0117] Here, the terminal can perform a hash calculation on the second pressure parameter based on a certain hash algorithm (such as SHA-256) and obtain the hash calculation result as the second calculation result.
[0118] Step 3042: The terminal receives the first calculation result sent by the active pen; performs similarity verification on the first calculation result and the second calculation result, and determines the second noise parameter based on the verification result; Here, if the verification result meets the conditions, the second noise parameter is determined based on the second coordinate parameter and the application scenario information corresponding to the second coordinate parameter. The application scenario information refers to the program and specific function used by the current terminal, such as the payment function in a payment software or the chat interface of a chat software. The noise parameter used in different application scenarios can be different. Determining the second noise parameter based on the second coordinate parameter and the application scenario information corresponding to the second coordinate parameter can mean combining the interaction content reflected by the second coordinate parameter and the application scenario information. For example, if the interaction content reflected by the second coordinate parameter is numbers, and the application scenario information is payment, finance, or similar scenarios, the noise parameter can be set relatively high to avoid information leakage; if the interaction content reflected by the second coordinate parameter is text, and the application scenario information is calligraphy practice or chatting, the noise parameter can be set relatively low.
[0119] Step 3052: The terminal adds noise to the second coordinate parameters based on the second noise parameters to obtain the second noise-added result; Step 3062: The terminal sends the second noise parameter to the active pen.
[0120] Step 307: After receiving the second noise parameter, the active pen updates the first noise parameter based on the second noise parameter.
[0121] It should be noted that the terminal is equivalent to a second device, and its relevant second output parameters and second noise parameters can be referenced. Figure 2 The relevant explanations of the methods shown will not be repeated here.
[0122] Figure 4 This is a schematic diagram of the structure of a first electronic device provided in an embodiment of the present disclosure; as shown below. Figure 4 As shown, the first electronic device 40 includes: Contact unit 405 is used to collect first output parameters of the first electronic device. The first output parameters include first coordinate parameters and first pressure parameters. The first pressure parameters represent at least one pressure value generated by the contact between the first electronic device and the second electronic device. A processor 401 and a memory 402 for storing computer programs capable of running on the processor; when the processor 401 runs the computer program, it performs the following: Determine a first noise parameter, which represents the degree of noise addition during the noise addition process; Based on the first noise parameter, the first coordinate parameter is subjected to noise addition processing to obtain the first noise addition processing result; Based on the first pressure parameter, the first calculation result is obtained; The contact unit 405 is further configured to send the first calculation result to the second electronic device, and the first calculation result is used to trigger the second electronic device to update the first noise parameter.
[0123] In practical applications, the first electronic device 40 may further include at least one network interface 403. The various components in the first electronic device 40 are coupled together via a bus system 404. It is understood that the bus system 404 is used to implement communication between these components. In addition to a data bus, the bus system 404 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 4 All buses are labeled as bus system 404. The number of processors 401 can be at least one. Network interface 403 is used for wired or wireless communication between the first electronic device 40 and other devices.
[0124] The memory 402 in this embodiment is used to store various types of data to support the operation of the first electronic device 40.
[0125] The methods disclosed in the above embodiments of this disclosure can be applied to processor 401, or implemented by processor 401. Processor 401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 401 or by instructions in the form of software. The processor 401 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 401 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this disclosure. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this disclosure can be directly manifested as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in memory 402. Processor 401 reads the information in memory 402 and combines its hardware to complete the steps of the aforementioned method.
[0126] In some embodiments, the first electronic device 40 may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.
[0127] Figure 5 This is a schematic diagram of the structure of a second electronic device provided in an embodiment of this disclosure; as shown below. Figure 5 As shown, the second electronic device 50 includes: Touch screen 505 is used to collect second input parameters of the second electronic device. The second input parameters include second coordinate parameters and second pressure parameters. The second pressure parameter represents at least one pressure value generated by the contact between the second electronic device and the second electronic device. A processor 501 and a memory 502 for storing computer programs capable of running on the processor; when the processor 501 runs the computer program, it performs the following: Receive the first calculation result sent by the second electronic device; Based on the second pressure parameter, the second calculation result is obtained; The first calculation result and the second calculation result are similar to each other to obtain a verification result; if the verification result meets the conditions, the second noise parameter is determined according to the second coordinate parameter and the application scenario information corresponding to the second coordinate parameter; the second noise coefficient represents the degree of noise addition in the noise addition process. The second coordinate parameters are denoised according to the second noise parameters to obtain the second denoising result. The touch screen 505 is also used to send the second noise parameter to the second electronic device.
[0128] In practical applications, the second electronic device 50 may further include at least one network interface 503. The various components in the second electronic device 50 are coupled together via a bus system 504. It is understood that the bus system 504 is used to implement communication between these components. In addition to a data bus, the bus system 504 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 5 All buses are labeled as bus system 504. The number of processors 501 can be at least one. Network interface 503 is used for wired or wireless communication between the second electronic device 50 and other devices.
[0129] The memory 502 in this embodiment is used to store various types of data to support the operation of the second electronic device 50.
[0130] The methods disclosed in the above embodiments of this disclosure can be applied to processor 501, or implemented by processor 501. Processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 501 or by instructions in the form of software. The processor 501 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 501 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this disclosure. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this disclosure can be directly manifested as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in memory 502. Processor 501 reads the information in memory 502 and, in conjunction with its hardware, completes the steps of the aforementioned method.
[0131] In some embodiments, the second electronic device 50 may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.
[0132] Figure 6 This is a schematic diagram of a device having a first device and a second device provided in an embodiment of the present disclosure; the first device and the second device can be two sub-devices of the same device, such as... Figure 6 As shown, the device can be a mobile terminal with an active pen, where the active pen is equivalent to the first device and the mobile phone itself is equivalent to the second device. The active pen and the mobile phone constitute a mobile terminal with both the first and second devices. Of course, the device can also be a tablet computer or other devices with an active pen, which will not be listed here.
[0133] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0134] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means two or more, unless otherwise explicitly specified.
[0135] The above description is merely a specific embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.
Claims
1. A data processing method, the method comprising: The first output parameter of the first device is collected. The first output parameter includes a first coordinate parameter and a first pressure parameter. The first pressure parameter represents at least one pressure value generated when the first device comes into contact with the second device. Determine a first noise parameter, which represents the degree of noise addition during the noise addition process; Based on the first noise parameter, the first coordinate parameter is subjected to noise addition processing to obtain the first noise addition processing result; Based on the first pressure parameter, the first calculation result is obtained; The first calculation result is sent to the second device, and the first calculation result is used to trigger the second device to update the first noise parameter.
2. The method according to claim 1, wherein determining the first noise parameter includes: Collect capacitance parameters and / or first pressure sensitivity parameters; In response to the condition being met by the capacitance parameter and / or the first pressure sensitivity parameter, the first noise parameter is determined based on the capacitance parameter and / or the first pressure sensitivity parameter; Wherein, the magnitude of the first noise parameter is positively correlated with the magnitude of the capacitance parameter and / or the first pressure sensitivity parameter; The conditions that the capacitance parameter and / or the first pressure-sensitive parameter meet include: the capacitance parameter being greater than a first threshold, and / or the first pressure-sensitive parameter being greater than a second threshold. or, A second noise parameter is obtained from a second device, the second noise parameter being derived based on the first calculation result; The first noise parameter is updated based on the second noise parameter.
3. The method according to claim 1, wherein the first coordinate parameters are subjected to noise processing based on the first noise parameters to obtain a first noise processing result, comprising: The first model is used to perform trajectory recognition on the first coordinate parameters to obtain the recognition result; Determine the desensitization level corresponding to the recognition result, and perform noise processing on the first coordinate parameter according to the desensitization level and the first noise parameter to obtain the first noise processing result; The first model is trained based on at least one sample coordinate parameter and a label corresponding to each sample coordinate parameter. The label represents the interactive content corresponding to the sample coordinate parameter, and each sample coordinate parameter includes at least one coordinate value.
4. The method according to claim 1, further comprising: Collect the first unlocking information and the second pressure-sensitive parameter, and send the first unlocking information and the second pressure-sensitive parameter to the second device; Receive the key generated and sent by the second device based on the first unlocking information and the second pressure-sensitive parameters; The second model is used to generate weight parameters based on the first coordinate parameters; The second model employs an autoencoder, and the weight parameters represent the accuracy of interactive content recognition based on coordinate parameters. The weight parameter, the first coordinate parameter, the first pressure parameter, and the first timestamp sequence are encoded to obtain the first processing result; The first timestamp sequence represents the timestamp sequence of the first output parameter being collected; The weight parameter and the first processing result are encrypted using the key, and the encrypted weight parameter and the first processing result are sent to the second device.
5. The method according to claim 1, further comprising: Collect the third coordinate parameters, and use the first model to perform trajectory recognition on the third coordinate parameters to obtain the recognition result; The interaction content matched by the recognition result is determined from at least one saved first noise-adding processing result; If the similarity between the recognition result and the trajectory of the matched interactive content is lower than a threshold, a prompt instruction is generated. The prompt instruction is used to instruct the first device to disconnect from the second device, or to be sent to the second device to indicate that the trajectory similarity is lower than the threshold.
6. A data processing method, the method comprising: Receive the first calculation result sent by the first device; The second input parameters of the second device are collected. The second input parameters include a second coordinate parameter and a second pressure parameter. The second pressure parameter represents at least one pressure value generated by the contact between the first device and the second device. Based on the second pressure parameter, the second calculation result is obtained; The first calculation result and the second calculation result are similarly verified to obtain the verification result. If the verification result meets the conditions, then the second noise parameter is determined based on the second coordinate parameter and the application scenario information corresponding to the second coordinate parameter; The second noise figure represents the degree of noise addition during the noise reduction process; The second coordinate parameters are denoised according to the second noise parameters to obtain the second denoising result. The second noise parameter is sent to the first device.
7. The method according to claim 6, wherein determining the second noise parameter based on the second coordinate parameter and the application scenario information corresponding to the second coordinate parameter includes: Analyze the applications currently used by the second device and the functions used by those applications to determine application scenario information; The third model is used to perform content recognition on the second coordinate parameters to obtain the content recognition result; The privacy protection level is determined based on the content recognition results and the application scenario information. The second noise parameter is determined based on the privacy protection level. The third model is trained based on at least one sample coordinate parameter and a label corresponding to each sample coordinate parameter. The label represents the interactive content corresponding to the sample coordinate parameter, and each sample coordinate parameter includes at least one coordinate value.
8. The method according to claim 6, further comprising: Collect second unlock information and third pressure sensitivity parameters, and receive first unlock information and second pressure sensitivity parameters from the first device; If the second unlock information matches the first unlock information, and the second pressure-sensitive parameter matches the third pressure-sensitive parameter, then a key is generated based on the second unlock information and the third pressure-sensitive parameter, and the key is sent to the first device; Receive the encrypted weight parameters and the first processing result sent by the first device; The encrypted weight parameters and the encrypted first processing result are decrypted using the key to obtain the weight parameters and the first processing result, respectively. The weight parameters, the second coordinate parameters, the second pressure parameters, and the second timestamp sequence are encoded using the fourth model to obtain the second processing result; The second timestamp sequence represents the timestamp sequence of the second input parameter; the fourth model uses an autoencoder, and the weight parameter represents the accuracy of the interactive content recognition based on the coordinate parameters; The first processing result and the second processing result are subjected to similarity verification to obtain a verification result; if the verification result meets the conditions, the communication between the first device and the second device is determined to be secure. If the verification result does not meet the conditions, a communication security warning message will be generated and displayed.
9. A first electronic device, comprising: A contact unit is used to collect a first output parameter of a first electronic device. The first output parameter includes a first coordinate parameter and a first pressure parameter. The first pressure parameter represents at least one pressure value generated when the first electronic device contacts the second electronic device. A processor and a memory communicatively connected to the processor, the memory storing instructions executable by the processor, the instructions being executed by the processor to enable the processor to perform: Determine a first noise parameter, which represents the degree of noise addition during the noise addition process; Based on the first noise parameter, the first coordinate parameter is subjected to noise addition processing to obtain the first noise addition processing result; Based on the first pressure parameter, the first calculation result is obtained; The contact unit sends the first calculation result to the second electronic device, and the first calculation result is used to trigger the second electronic device to update the first noise parameter.
10. A second electronic device, comprising: A touch screen is used to collect second input parameters of a second electronic device. The second input parameters include second coordinate parameters and second pressure parameters. The second pressure parameter represents at least one pressure value generated by the contact between the first electronic device and the second electronic device. A processor and a memory communicatively connected to the processor, the memory storing instructions executable by the processor, the instructions being executed by the processor to enable the processor to perform: Receive the first calculation result sent by the first electronic device; Based on the second pressure parameter, the second calculation result is obtained; The first calculation result and the second calculation result are similarly verified to obtain the verification result. If the verification result meets the conditions, then the second noise parameter is determined based on the second coordinate parameter and the application scenario information corresponding to the second coordinate parameter; The second noise figure represents the degree of noise addition during the noise reduction process; The second coordinate parameters are denoised according to the second noise parameters to obtain the second denoising result. The touchscreen sends the second noise parameter to the first electronic device.
