A structural dynamic load identification method and virtual keyboard
By constructing a Bayesian model and automatically solving load parameters, the problem of difficult load identification in the existing technology is solved, high-precision and fast load identification is achieved, and it is suitable for load identification at multiple locations and has a wide range of applications.
Patent Information
- Application Number
- CN202210087500.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-25
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-01-25
AI Technical Summary
Existing structural dynamic load identification methods require multiple sensors to cover possible load action locations and require manual selection of parameters, resulting in load identification difficulty and low efficiency.
Obtain the structural dynamic response vector through the sensor, add the noise vector to form the observation vector, build a Bayesian model, automatically solve the load and accuracy parameters, use iterative methods to calculate the posterior distribution and accuracy parameters of the load, and realize the positioning and identification of the load.
It achieves high-precision and fast load identification under low signal-to-noise ratio, is suitable for load identification at multiple locations, does not require manual parameter selection, has a wide range of applications, and has good robustness.
Smart Images

Figure CN114610224B
Abstract
Description
Technical Field
[0001] This paper relates to the inverse problem technology of structural dynamics, especially a structural dynamic load identification method and a virtual keyboard. Background Art
[0002] In recent years, virtual keyboard technology is gaining more and more attention. Compared with traditional mechanical keyboards, virtual keyboards have the advantages of saving cost and space, having fewer restrictions on materials and size, and being able to customize key display, keyboard layout, and programmable input mode according to user habits and preferences, so they are widely used.
[0003] Essentially, the realization of the virtual keyboard function is mechanically equivalent to locating and reconstructing the external load acting on the structure. Given such known structural information and the dynamic response of the structure under load, the problem of solving the load information is called the structural dynamic load identification problem. Existing structural dynamic load identification methods all require that the number of sensors is not less than the number of possible load action positions, and that the parameters need to be manually selected, which brings great difficulties to the load identification problem. Summary of the invention
[0004] In view of this, the embodiments of the present invention provide the following solutions.
[0005] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0006] An embodiment of the present invention provides a method for identifying structural dynamic loads, comprising:
[0007] Obtain the structural dynamic response vector under load through sensors;
[0008] Adding a noise vector to the structural dynamic response vector to obtain an observation vector;
[0009] Constructing a Bayesian model according to the obtained observation vector;
[0010] According to the Bayesian model, solving the load and precision parameters acting on the structure;
[0011] The accuracy parameter is used to indicate the positioning of the load.
[0012] In an exemplary embodiment, the noise vector is a Gaussian white noise vector.
[0013] In an exemplary embodiment, constructing a Bayesian model according to the obtained observation vector includes:
[0014] constructing a conditional probability distribution of the load using a process parameter based on the noise vector, wherein the conditional probability distribution of the load represents the probability that the observation vector is X when the load is F;
[0015] constructing a priori probability distribution of the load using the precision parameter, wherein the priori probability distribution of the load represents prior knowledge of the load;
[0016] The posterior distribution of the load is proportional to the product of the conditional probability distribution and the prior probability distribution, wherein the posterior distribution of the load represents the probability that the load is F when the observation vector is X.
[0017] In an exemplary embodiment, solving the load and accuracy parameters acting on the structure according to the Bayesian model includes:
[0018] The following steps are performed iteratively until the relative error is less than the preset tolerance value:
[0019] Calculating the posterior distribution of the load using maximum likelihood estimation to obtain the maximum posterior probability distribution of the load;
[0020] Calculating the joint posterior distribution of the process parameter and the precision parameter by maximizing the hyperparameter marginal probability function to obtain the mode value of the precision parameter;
[0021] The maximum a posteriori probability distribution of the load that meets the preset tolerance value is used as the load identification result.
[0022] In an exemplary embodiment, the structural dynamic load identification method further includes:
[0023] A preset load identification accuracy index is used to determine the accuracy of the load identification;
[0024] The load identification accuracy indicators include:
[0025] The reconstruction error is used to indicate the reconstruction accuracy, as shown in the following formula:
[0026] RE=||F true -F reconstructed ||2
[0027] Among them, RE is the reconstruction error, F true is the real load, F reconstructed is the load identification result;
[0028] The load position index is used to indicate the positioning accuracy, as shown in the following formula:
[0029]
[0030] Among them, β i is the load action position index, and the subscript i represents the i-th position among all possible load action positions. is the load at position i.
[0031] In an exemplary embodiment, the structural dynamic load identification method further includes:
[0032] The preset load action time length indicator is used to indicate the length of the load action time, as shown in the following formula:
[0033]
[0034] Among them, λ is the load action time length index, F reconstructed Load identification result.
[0035] An embodiment of the present invention further provides a computer storage medium, wherein a computer program is stored in the computer storage medium, and when the computer program is executed by a processor, the above-mentioned structural dynamic load identification method is implemented.
[0036] The method and device of the above embodiment of the present invention can simultaneously identify loads at multiple positions, can be applied to different scenarios, and have a wide range of applications. In addition, there is no need to manually select parameters, the calculation speed is fast, and real-time load identification can be achieved. Moreover, it shows good robustness and high identification accuracy under low signal-to-noise ratio.
[0037] The embodiment of the present invention further provides a virtual keyboard, comprising:
[0038] A sensor is disposed on the surface of the elastic body and is used to obtain the dynamic response of the structure under the load;
[0039] The number of sensors is set to be greater than the number of actual load action positions but less than the number of possible load action positions;
[0040] The processing module is configured to use the above-mentioned structural dynamic load identification method to identify the load acting on the elastic body.
[0041] In an exemplary embodiment, the sensor may be one of an acceleration sensor, a displacement sensor, and a velocity sensor.
[0042] In an exemplary embodiment, the virtual keyboard further includes a fixed support structure for supporting and fixing the elastic body.
[0043] The virtual keyboard of the above embodiment of the present invention can realize the keyboard function by only installing sensors, has a simple structure, and the number of sensors required is less than the number of virtual keyboard keys, saving economic costs. In addition, the above virtual keyboard can be applied to different elastic body surfaces, has a wide range of applications, and can meet the keystroke habits of various users.
[0044] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.
[0046] Figure 1 is a flow chart of a method for identifying structural dynamic loads according to an embodiment of the present invention;
[0047] Figure 2 is a flow chart of an embodiment of the present invention for constructing a Bayesian model based on an observation vector;
[0048] Figure 3 is a flow chart of solving load and precision parameters according to an embodiment of the present invention;
[0049] Figure 4 is a schematic diagram of a virtual keyboard according to an embodiment of the present invention;
[0050] Figure 5 is a schematic diagram of key distribution of a virtual keyboard in a gaming mode according to an embodiment of the present invention;
[0051] Figure 6 is a schematic diagram of a working method of setting a virtual keyboard in a game mode according to an embodiment of the present invention;
[0052] Figure 7 is a schematic diagram of key distribution of a virtual keyboard in a digital mode according to an embodiment of the present invention;
[0053] Figure 8 is a schematic diagram of key distribution of a virtual keyboard in an embodiment of the present invention when the virtual keyboard is set to letter mode;
[0054] Fig. 9 It is a schematic diagram of a working method of setting a virtual keyboard in numeric and letter modes according to an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The present invention describes multiple embodiments, but the description is exemplary rather than restrictive, and it is obvious to those skilled in the art that there may be more embodiments and implementations within the scope of the embodiments described in the present invention. Although many possible feature combinations are shown in the drawings and discussed in the specific embodiments, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with any other feature or element in any other embodiment, or may replace any other feature or element in any other embodiment.
[0056] The present invention includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The disclosed embodiments, features and elements of the present invention may also be combined with any conventional features or elements to form a unique invention scheme defined by the claims. Any features or elements of any embodiment may also be combined with features or elements from other invention schemes to form another unique invention scheme defined by the claims. Therefore, it should be understood that any feature shown and / or discussed in the present invention may be implemented individually or in any appropriate combination. Therefore, except for the limitations made according to the attached claims and their equivalents, the embodiments are not subject to other limitations. In addition, various modifications and changes may be made within the scope of protection of the attached claims.
[0057] In addition, when describing representative embodiments, the specification may have presented the method and / or process as a specific sequence of steps. However, to the extent that the method or process does not rely on the specific order of the steps described herein, the method or process should not be limited to the steps in the specific order described. As will be appreciated by those of ordinary skill in the art, other sequences of steps are also possible. Therefore, the specific sequence of steps set forth in the specification should not be interpreted as a limitation to the claims. In addition, the claims for the method and / or process should not be limited to the steps of performing them in the order written, and those skilled in the art can easily understand that these sequences can be changed and still remain within the spirit and scope of the embodiments of the present invention.
[0058] The embodiment of the present invention provides a method for identifying structural dynamic loads. Figure 1 As shown, including:
[0059] Step 110, obtaining a structural dynamic response vector under load through a sensor.
[0060] The relationship between the structural dynamic response vector and the load acting on the structure is shown in formula (1):
[0061] W=HF (1)
[0062] in, is the structural dynamic response vector at the measurement location, is the load acting on the structure, is the system matrix, n s is the number of sensors, n t is the length of time the load to be identified acts, and r is the number of possible positions where the load may act.
[0063] In the dynamic load identification problem, the loads acting on the structure can be divided into several groups based on their inherent properties or structural characteristics.
[0064] In an exemplary embodiment, the loads are grouped according to their positions, and the load F acting on the structure is as shown in formula (2):
[0065]
[0066] in, is the load vector at position i.
[0067] In an exemplary embodiment, for a virtual keyboard, the keys in different keyboard modes are all possible load action positions. However, the number of sensors is limited, which is less than the number of possible load action positions. Assume that the number of single keystrokes is less than the number of sensors, which is less than the number of possible action positions, that is, Only one or several groups are non-zero vectors, and the rest are zero vectors. The position corresponding to the non-zero vector group is the real load action position. These assumptions are consistent with the situation that only one or several keys are hit at the same time during actual keyboard input. Therefore, the problem of locating the keyboard hitting position is transformed into the problem of identifying the non-zero vector group in F.
[0068] According to different application scenarios, different sensors are selected to obtain the dynamic response vector of the structure under load. The sensor can be an acceleration sensor, a displacement sensor, or a velocity sensor.
[0069] In an exemplary embodiment, a dynamic response vector of a structure under load is obtained by an acceleration sensor.
[0070] Step 120: Add the noise vector to the structural dynamic response vector to obtain an observation vector.
[0071] In an exemplary embodiment, considering the influence of observation noise, a zero-mean Gaussian white noise vector is added to the structural dynamic response vector (i.e., acceleration vector) at the measurement position to obtain the observed acceleration vector, as shown in formula (3):
[0072] X=W+N=HF+N (3)
[0073] in, is a Gaussian white noise vector.
[0074] The signal-to-noise ratio (SNR) is shown in formula (4):
[0075]
[0076] Step 130: construct a Bayesian model based on the obtained observation vector.
[0077] The observed acceleration vector X containing noise has been obtained, so the load acting on the structure and its corresponding uncertainty are represented by its posterior probability distribution, that is, the Bayesian formula, as shown in formula (5):
[0078] p(F|X)∝p(X|F)p(F) (5)
[0079] Among them, p(F|X) is the posterior probability distribution of the load, which indicates the probability that the load is F when the observed acceleration vector is X; p(X|F) is the conditional probability distribution, which indicates the probability that the observed acceleration vector is X when the load is F, that is, the likelihood function; p(F) is the prior probability distribution of the load.
[0080] In an exemplary embodiment, a Bayesian model is constructed based on the obtained observation vector, such as Figure 2 As shown, including:
[0081] Step 210: construct a conditional probability distribution of the load using process parameters based on the noise vector, wherein the conditional probability distribution of the load represents the probability that the observation vector is X when the load is F.
[0082] The conditional probability distribution p(X|F) is determined by the prior probability distribution of the noise p(N). Assuming N is a zero-mean Gaussian white noise, the prior probability distribution of the noise is shown in formula (6):
[0083]
[0084] Among them, τ n is the process parameter. Here we assume that each component of N is independent and identically distributed.
[0085] Step 220, constructing a priori probability distribution of the load using the precision parameter, wherein the priori probability distribution of the load represents the priori knowledge of the load.
[0086] Assuming that the loads at different positions are unrelated, each can be regarded as an independent vector, and the prior probability distribution of the load F is equal to the load vector at each position The product of the prior probabilities of . Usually, the prior probability distribution of the load vector can be considered to obey the precision matrix A i The zero-mean multivariate normal distribution is as shown in formula (7):
[0087]
[0088] Where A is the precision matrix A i Composed of A i =α i I, a set of load vectors Corresponding to a precision parameter α i , which reflects the sparsity of the group level. If the precision parameter is finite, it means that the load is actually applied to the corresponding possible load position, otherwise the precision parameter will tend to infinity.
[0089] In step 230, the posterior distribution of the load is proportional to the product of the conditional probability distribution and the prior probability distribution, wherein the posterior distribution of the load represents the probability that the load is F when the observation vector is X.
[0090] Since the process parameter τ n and precision parameter α i The selection of plays a major role in the reconstruction of the load. To avoid erroneous results caused by artificially selecting parameters, the present invention uses a data-driven approach to automatically select precision parameters.
[0091] The process parameter τ n and precision parameter α i Assuming it is a random variable, the posterior distribution of load F is shown in formula (8):
[0092]
[0093] Among them, the co-correlation matrix Σ is shown in formula (9):
[0094] Σ=(2τ n H T H+A) -1 (9)
[0095] The mean μ is shown in formula (10):
[0096] μ=2τ n ΣH T X (10)
[0097] Step 140, solving the load and precision parameters according to the Bayesian model.
[0098] In an exemplary embodiment, the following steps are performed in an iterative manner, such as Figure 3 As shown, until the relative error obtained is less than the preset tolerance value.
[0099] Step 310, using maximum likelihood estimation to calculate the posterior distribution of the load, to obtain the maximum posterior probability distribution of the load.
[0100] Using the maximum likelihood estimation to process formula (8), the maximum a posteriori probability distribution of the load F is obtained, as shown in formula (11):
[0101]
[0102] Among them, F MAP is the maximum a posteriori probability distribution of the load F.
[0103] Step 320, calculating the joint posterior distribution of the process parameter and the precision parameter by maximizing the hyperparameter marginal probability function to obtain the mode value of the precision parameter.
[0104] In one exemplary embodiment, according to the Bayesian model, the process parameter τ n and precision parameter α i The joint posterior distribution of is shown in formula (12):
[0105] p(F,τ n ,α|X)=p(F|X,α,τ n )p(α,τ n |X) (12)
[0106] Process parameter τ n , precision parameter α i The mode value of MP , τ n MP (α MP and τ n MP Denotes α and τ n The point with the largest probability) can be obtained by maximizing the marginal probability function of the hyperparameter, as shown in formulas (13) and (14):
[0107]
[0108] Formulas (13), (14) and formulas (9) and (10) together constitute a closed-loop iterative process. The detailed process is as follows:
[0109]
[0110]
[0111] In an exemplary embodiment, the maximum a posteriori probability distribution of the load that meets the preset tolerance value is used as the load identification result.
[0112] As shown in the above group relevance vector machine (GRVM) algorithm, the system matrix H and the observed acceleration vector X are input and the initial vector is set α(0) , preset tolerance value tol (the present invention takes the relative error to be less than the preset tolerance value tol = 1e -3 ). When the load F converges, F, Σ, α i , τ n The corresponding value is its estimated value, and the maximum posterior probability distribution of load F is used as the load identification result. i →∞(The present invention considers that it is greater than 10 10 ), according to formula (11, then F→0, it is considered that there is no external excitation at the corresponding load position. If the accuracy parameter α i is a finite value, it is considered that the corresponding position is actually acted on by external excitation. Therefore, the accuracy parameter α i The value of reflects the positioning of the load.
[0113] In an exemplary embodiment, the structural dynamic load identification method further includes:
[0114] Preset load identification accuracy index to judge the accuracy of load identification;
[0115] The load identification accuracy index includes: a reconstruction error, which is used to indicate the reconstruction accuracy; and a load action position index, which is used to indicate the positioning accuracy.
[0116] The load identification result is judged by two indicators: the reconstruction error (RE) between the load identification result and the real load, and the load position indicator β, as shown in formulas (15) and (16):
[0117] RE=||F true -F reconstructed ||2 (15)
[0118]
[0119] Among them, RE represents the reconstruction error, which reflects the reconstruction accuracy of the group relevance vector machine (GRVM) algorithm, and F true represents the true load vector, F reconstructed Indicates the load identification result. i Indicates the concentration of load at position i, reflecting the positioning accuracy of the algorithm. The subscript i represents the i-th position among all possible load action positions. When there is no load at position i, β i The theoretical value is 0. If the structure is subjected to only one real load at the same time, then β i The theoretical value is 1; when the keyboard is subjected to two real loads, such as a combination key function, β needs to indicate two positions, which occupy a corresponding proportion according to the square of the norm of the load identification result.
[0120] When the reconstruction error RE is less than 10 and β at the actual load action position is greater than 90%, the load identification requirements are met and it is considered that the load is well identified.
[0121] In an exemplary embodiment, the structural dynamic load identification method further includes:
[0122] The preset load action time length indicator is used to indicate the length of the load action time.
[0123] The load action time length index λ is shown in formula (17):
[0124]
[0125] λ is the square of the norm of the load identification result, which reflects the length of the load action time. Set a threshold for λ. In the case of a combination of keys, if it is greater than the threshold, it is considered to be a long key in the combination of keys, otherwise it is considered to be a short key.
[0126] The structural dynamic load identification method based on the group relevance vector machine (GRVM) algorithm can identify loads at multiple positions at the same time, can be applied to different scenarios, and has a wide range of applications. In addition, there is no need to manually select parameters, the calculation speed is fast, and real-time load identification can be achieved. Moreover, it has good robustness and high identification accuracy under low signal-to-noise ratio.
[0127] On the other hand, an embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned structural dynamic load identification method is implemented.
[0128] On the other hand, an embodiment of the present invention further provides a virtual keyboard, including:
[0129] A sensor is disposed on the surface of the elastic body and is used to obtain the dynamic response of the structure under the load;
[0130] The number of sensors is set to be greater than the number of actual load action positions but less than the number of possible load action positions;
[0131] The processing module is configured to use the above-mentioned structural dynamic load identification method to identify the load acting on the elastic body.
[0132] According to different application scenarios, the elastomer surface may be a steel plate surface, a desktop, a device surface, a wall surface, or other elastomer surface that needs to realize a keyboard function.
[0133] The sensor can be an accelerometer, a displacement sensor, or a velocity sensor. Accelerometers are the most widely used, while displacement sensors are used on elastic bodies with fixed support structures. Velocity sensors have a larger volume and mass than accelerometers and displacement sensors, and are used on large elastic surfaces, such as large equipment surfaces.
[0134] Compared with traditional keyboards, virtual keyboards have the advantages of programmable key layout and switchable key modes. Therefore, multiple key modes can be designed for virtual keyboards, corresponding to different key layouts and key numbers. The number of keys is the number of possible load action positions. Assume that there are only one or two real loads at the same time, that is, the user can only press one or two keys at the same time, corresponding to the single key and combination key (such as Ctrl+C). Configure the virtual keyboard with more sensors than the actual load action positions but less than the possible load action positions.
[0135] In an exemplary embodiment, Figure 4 As shown, the virtual keyboard includes a steel plate 1 of a certain size, a sensor 3 arranged on the steel plate, and a fixed support structure 4 supporting an elastic body. A plurality of separated boxes are virtual key areas 2.
[0136] In an exemplary embodiment, the virtual keyboard is set to game mode, and the key distribution and definition of the game mode are as follows: Figure 5 shown.
[0137] This mode can achieve the following functions, as shown in Table 1:
[0138]
[0139] Table 1 Game Mode Button Description The key input method is classified as shown in Table 2:
[0140]
[0141] Table 2 Classification by key input method
[0142] How the virtual keyboard works when it is set to gaming mode, such as Figure 6 shown.
[0143] Add two lanes: user and background. When the user turns on the computer and selects the game mode, he presses a button. The background calls the GRVM algorithm to calculate RE. If RE>10, it means that the user pressed a non-key area, the program does not respond, and the user can press the button again; if RE<10, continue. The subsequent steps assume that the user has pressed a button that meets the function settings, that is, RE<10.
[0144] Determine how many key positions have β>0.1. If there is only one, it is considered a single key. Since only a single response is set in the game mode, there is no need to determine the duration of the external load. For example, if the user presses Key1 alone, the character moves forward one grid, a short press moves forward one grid, and a long press also moves forward one grid.
[0145] If there are two key positions with β>0.1, determine how many key positions with β>0.4 are there. If there are two, it is considered that the user has long pressed the primary and secondary function keys at the same time to switch modes. If there is only one position with β>0.4, it is considered that a combination of keys (such as Key9+Key5-Key8 or Key10+Key1-Key4) is pressed. The one with a large β value is considered to be a long key press, and the output is in the front, and the one with a small β value is considered to be a short key press, and the output is in the back. For example, the user first presses key9 without releasing it, and then presses key7 (the pressing method is the same as ctrl+c, ctrl+v, etc.), then there are two key positions with β>0.1, and there is only one position with β>0.4, and the key9 is large and the key7 is small, triggering the corresponding combination skill.
[0146] In an exemplary embodiment, the virtual keyboard is set to a numeric mode, and the key distribution and definition of the numeric mode are as follows: Figure 7 shown.
[0147] This mode can achieve the following functions, as shown in Table 3:
[0148]
[0149] Table 3 Digital Mode Button Description
[0150] According to the function settings, Key1-Key10 are numeric keys, which can be pressed short, long, or in combination (press the first key without releasing it and press the second key at the same time); Key11 is the delete key, which can delete the content typed last time by pressing short (the combination key is considered as the content typed once); Key12 is the confirmation key, which can be confirmed by pressing short and switched by pressing long.
[0151] Compared with traditional keyboards, the significant advantage of the password keyboard based on the load recognition method is that it can not only recognize numbers (that is, the actual load position), but also recognize the user's keystroke habits (short press, long press, combination press), increase differentiation, and improve security performance. Taking a four-digit password as an example, a traditional keyboard only has 10 4 There are several combinations of password keyboards based on load identification methods. There are 10 combinations (10 short presses, 10 long presses, and 90 key combinations), and the security performance is improved by 14641 times. This advantage is more obvious when the number of digits in the password sequence increases.
[0152] In an exemplary embodiment, the virtual keyboard is set to letter mode, and the key distribution and definition of the letter mode are as follows: Figure 8 shown.
[0153] This mode can realize the following functions, as shown in Table 4:
[0154]
[0155] Table 4 Alphabetical Mode Button Description
[0156] How the virtual keyboard works when it is set to numeric and alphabetic mode, such as Fig. 9 shown.
[0157] Add two lanes: user and background. When the user turns on the computer and selects a mode, he presses a key. The background calls the GRVM algorithm to calculate RE. If RE>10, it means that the user pressed a non-key area, the program does not respond, and the user can press the key again; if RE<10, continue. The subsequent steps assume that the user pressed a key that meets the function settings, that is, RE<10.
[0158] The user has already selected the mode when starting up. If it is letter mode, the length is directly determined by the parameter. For example, if the user presses key1 short, λ<300, and outputs "A". If the user presses key1 long, λ>300, and outputs "B". After the single program runs, the user can press the key again. If you want to switch modes, press key18 long to switch to digital mode.
[0159] If the user selects digital mode when starting up, β needs to be calculated to determine how many key positions β>0.1 are. If there is only one, it is considered a single key, and it is determined whether it is a long key or a short key. For example, if the user short presses key7, there is only one key position β>0.1, and <300, and output "7"; if the user long presses key7, there is only one key position β>0.1, and >300, and output "7*".
[0160] If there are two places where β>0.1, it is considered a combination key, the one with a large β value is considered a long key, and the output is in the front, and the one with a small β value is considered a short key, and the output is in the back. For example, the user first presses key1 and does not release it, and then presses key3 (the pressing method is the same as ctrl+c, ctrl+v, etc.), then there are two key positions with β>0.1, and key1 is large and key3 is small, and the output is "1+3".
[0161] If you want to switch modes in digital mode, long press key12 to switch to alphabetic mode.
[0162] The virtual keyboard has a simple structure and can realize keyboard functions by installing sensors. The number of sensors required is less than the number of keys on the virtual keyboard, which saves economic costs. In addition, the virtual keyboard can be applied to different elastic surfaces and has a wide range of applications, which can meet the keystroke habits of various users.
[0163] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
Claims
1. A method for identifying structural dynamic loads, comprising: Obtain the structural dynamic response vector under load through sensors; Adding a noise vector to the structural dynamic response vector to obtain an observation vector; Constructing a Bayesian model according to the obtained observation vector; According to the Bayesian model, solving the load and precision parameters acting on the structure; Wherein, the precision parameter is used to indicate the positioning of the load; the load and precision parameter acting on the structure are solved according to the Bayesian model, including: performing the following steps in an iterative manner until the relative error obtained is less than a preset tolerance value: calculating the posterior distribution of the load by maximum likelihood estimation to obtain the maximum posterior probability distribution of the load; calculating the joint posterior distribution of the process parameter based on the noise vector and the precision parameter by maximizing the hyperparameter marginal probability function to obtain the mode value of the precision parameter; and taking the maximum posterior probability distribution of the load that meets the preset tolerance value as the load identification result.
2. The structural dynamic load identification method according to claim 1, wherein: The noise vector is a Gaussian white noise vector.
3. The structural dynamic load identification method according to claim 2, wherein: The step of constructing a Bayesian model according to the obtained observation vector comprises: constructing a conditional probability distribution of the load using a process parameter based on the noise vector, wherein the conditional probability distribution of the load represents the probability that the observation vector is X when the load is F; constructing a priori probability distribution of the load using the precision parameter, wherein the priori probability distribution of the load represents prior knowledge of the load; The posterior distribution of the load is proportional to the product of the conditional probability distribution and the prior probability distribution, wherein the posterior distribution of the load represents the probability that the load is F when the observation vector is X.
4. The structural dynamic load identification method according to any one of claims 1 to 3, further comprising: A preset load identification accuracy index is used to determine the accuracy of the load identification; The load identification accuracy indicators include: The reconstruction error is used to indicate the reconstruction accuracy, as shown in the following formula: RE=||F true -F reconstructed ||2 Among them, RE is the reconstruction error, F true is the real load, F reconstructed is the load identification result; The load position index is used to indicate the positioning accuracy, as shown in the following formula: Among them, β i is the load action position index, and the subscript i represents the i-th position among all possible load action positions. is the load at position i.
5. The structural dynamic load identification method according to claim 4, further comprising: The preset load action time length indicator is used to indicate the length of the load action time, as shown in the following formula: Among them, λ is the load action time length index, F reconstructed Load identification result.
6. A computer storage medium, wherein a computer program is stored in the computer storage medium, and when the computer program is executed by a processor, the structural dynamic load identification method according to any one of claims 1 to 5 is implemented.
7. A virtual keyboard, comprising: A sensor is disposed on the surface of the elastic body and is used to obtain the dynamic response of the structure under the load; The number of sensors is set to be greater than the number of actual load action positions but less than the number of possible load action positions; A processing module is configured to identify the load acting on the elastic body using the method described in any one of claims 1-5.
8. The virtual keyboard according to claim 7, wherein: The sensor may be one of an acceleration sensor, a displacement sensor, and a velocity sensor.
9. The virtual keyboard according to claim 8, wherein: The virtual keyboard also includes a fixed support structure for supporting and fixing the elastic body.
Citation Information
Patent Citations
Structure state / parameter / load combined identification method based on unscented transformation
CN113836621A
Prediction device, prediction system, prediction method, and program
JP2020194535A
Haptic tactile feedback with buckling mechanism
US20190033971A1
