Method and device for determining invalid signal, electronic equipment, medium and product
By collecting and grouping the RSSI value of the Bluetooth signal in motion and performing standard variance calculation, the problem of inaccurate identification of invalid Bluetooth signals in dynamic movement is solved, and higher signal data accuracy and reliability are achieved.
Patent Information
- Application Number
- CN202411684864.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2025-03-04
AI Technical Summary
The prior art is unable to accurately determine invalid Bluetooth signals during dynamic movement, resulting in insufficient signal interference identification, poor environmental adaptability and lack of systematic analysis.
By collecting the number of motion steps of the user in the mobile state and its corresponding Bluetooth signal RSSI value, performing grouping processing and standard variance calculation, the invalid Bluetooth signal RSSI value in the signal array is determined.
Accurately identify and remove invalid Bluetooth signals in dynamic movement, improve the accuracy and reliability of signal data, and solve the problems of insufficient signal interference recognition and poor environmental adaptability.
Smart Images

Figure CN119561629A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of signal processing technology, and in particular, to a method, device, electronic device, medium and product for determining an invalid signal. Background Art
[0002] The Bluetooth signal is affected by many factors during the transmission process, such as distance, environment, and battery power, which may result in invalid signal values in the received Bluetooth signal. Therefore, how to determine the invalid Bluetooth signal value is a technical problem that needs to be solved urgently.
[0003] The prior art is to collect a set of Bluetooth signal RSSI values at two different distances respectively, compare the two sets of Bluetooth signal RSSI values, and regard the Bluetooth signal RSSI value that obviously deviates from the normal value as an invalid Bluetooth signal value.
[0004] The above-mentioned prior art uses the RSSI values of Bluetooth signals collected at different distances for comparison. However, different distances have a greater impact on the RSSI values of Bluetooth signals, resulting in low accuracy of the collected RSSI values of Bluetooth signals. In addition, the prior art uses a fixed array of Bluetooth signal RSSI values for comparison, and is unable to accurately determine invalid Bluetooth signals during dynamic movement. Summary of the invention
[0005] The present invention provides a method, device, electronic device, medium and product for determining an invalid signal, so as to solve the problem that the prior art cannot accurately determine an invalid Bluetooth signal in dynamic movement.
[0006] According to one aspect of the present invention, there is provided a method for determining an invalid signal, comprising:
[0007] Collect the number of steps taken by the user in motion and the RSSI values of the Bluetooth signal corresponding to different number of steps, where one number of steps corresponds to multiple RSSI values of the Bluetooth signal;
[0008] The multiple Bluetooth signal RSSI values corresponding to different movement steps are grouped and processed according to a preset strategy to obtain at least one signal array;
[0009] For each signal array, the standard deviation of the Bluetooth signal RSSI values in the signal array is calculated, and the invalid Bluetooth signal RSSI values in the signal array are determined according to the calculation results.
[0010] According to another aspect of the present invention, there is provided an invalid signal determination device, comprising:
[0011] The collection module is used to collect the number of steps taken by the user in a moving state, and the RSSI values of the Bluetooth signal corresponding to different number of steps, wherein one number of steps corresponds to multiple RSSI values of the Bluetooth signal;
[0012] A grouping module, used for grouping multiple Bluetooth signal RSSI values corresponding to different numbers of motion steps according to a preset strategy to obtain at least one signal array;
[0013] The calculation module is used to calculate the standard deviation of the Bluetooth signal RSSI values in the signal array for each signal array, and determine the invalid Bluetooth signal RSSI values in the signal array according to the calculation results.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] at least one processor; and a memory communicatively coupled to the at least one processor;
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the invalid signal determination method described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the invalid signal determination method described in any embodiment of the present invention when executed.
[0018] The technical solution of the embodiment of the present invention collects the number of steps of the user in motion and the RSSI values of the Bluetooth signal corresponding to different numbers of steps; groups and processes the multiple Bluetooth signal RSSI values corresponding to different numbers of steps according to a preset strategy to obtain at least one signal array; for each signal array, calculates the standard deviation of the Bluetooth signal RSSI values in the signal array, and determines the invalid Bluetooth signal RSSI values in the signal array according to the calculation results, thereby solving the problems of insufficient signal interference recognition, poor environmental adaptability and lack of systematic analysis in the prior art, and achieving the beneficial effect of accurately identifying invalid Bluetooth signals in dynamic movement.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 A schematic diagram of a flow chart of an invalid signal determination method provided in Embodiment 1 of the present invention;
[0022] Figure 2 A schematic diagram of a flow chart of an invalid signal determination method provided in Embodiment 2 of the present invention;
[0023] Figure 3 A schematic diagram of a flow chart of an invalid signal determination method provided in Embodiment 3 of the present invention;
[0024] Figure 4 A schematic diagram of the structure of an invalid signal determination device provided in Embodiment 4 of the present invention;
[0025] Figure 5 The present invention is a schematic structural diagram of an electronic device for an invalid signal determination method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only an embodiment of a part of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work should belong to the scope of protection of the present invention. It should be understood that the various steps recorded in the method implementation of the present invention can be performed in different orders and / or in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0027] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0030] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.
[0031] Embodiment 1
[0032] Figure 1 The present invention provides a flowchart of an invalid signal determination method provided in the first embodiment of the present invention. The method can be applied to the case of removing invalid signals from collected signals, and is particularly applicable to the case of judging the validity of Bluetooth signals and removing invalid signals in mobile devices. The method can be executed by an invalid signal determination device, wherein the device can be implemented by software and / or hardware and is generally integrated in an electronic device. In this embodiment, the electronic device includes but is not limited to: a computer device.
[0033] like Figure 1 As shown, a method for determining an invalid signal provided by Embodiment 1 of the present invention includes the following steps:
[0034] S110, collecting the number of steps taken by the user in a moving state, and the RSSI values of the Bluetooth signal corresponding to different number of steps.
[0035] Among them, one exercise step corresponds to multiple Bluetooth signal RSSI values.
[0036] In this embodiment, the user can collect the number of steps when moving through the terminal device carried by the user, and the terminal device can be a mobile phone, a sports watch, a tablet, etc. For example, the user can obtain the exercise data on the mobile phone APP, for example, after logging into WeChat, obtain the number of steps from the WeChat step count, and the number of steps will also be recorded on the sports APP.
[0037] The Bluetooth signal values corresponding to different exercise steps can be understood as the Bluetooth signal RSSI values collected at different step numbers. Multiple Bluetooth signal RSSI values can be collected at the current step number. For example, the Bluetooth signal RSSI values collected at 1000 steps are [10, 11, 11, 10, 9, 20, 10].
[0038] The Bluetooth signal RSSI value may be collected through the Bluetooth function on the terminal device.
[0039] S120, grouping multiple Bluetooth signal RSSI values corresponding to different numbers of motion steps according to a preset strategy to obtain at least one signal array.
[0040] In this embodiment, the average value of multiple Bluetooth signal RSSI values corresponding to different numbers of motion steps can be calculated, and the multiple Bluetooth signal RSSI values corresponding to different numbers of motion steps can be grouped according to the average value corresponding to each number of motion steps, and the Bluetooth signal RSSI values with higher similarity can be grouped into one group.
[0041] Through the above method, multiple Bluetooth signal RSSI values corresponding to different synchronization numbers can be divided into at least one signal array, that is, the Bluetooth signal RSSI values can be divided into a reasonable range.
[0042] S130 . For each signal array, perform standard deviation calculation on the RSSI values of the Bluetooth signals in the signal array, and determine the invalid RSSI values of the Bluetooth signals in the signal array according to the calculation result.
[0043] The standard deviation is calculated for each signal group, and the RSSI value of the invalid Bluetooth signal in the corresponding signal group can be determined according to the standard deviation calculated for each signal group.
[0044] The following is an example of a signal group to calculate the standard deviation of the Bluetooth signal RSSI values in the signal array; the Bluetooth signal RSSI values in the signal array that exceed the standard deviation are regarded as invalid Bluetooth signal RSSI values.
[0045] In this embodiment, after determining the invalid Bluetooth signal RSSI value in each signal array, the invalid Bluetooth signal RSSI value in the signal array may be removed to ensure the accuracy of the Bluetooth signal RSSI value in the signal array.
[0046] A method for determining an invalid signal provided in a first embodiment of the present invention first collects the number of steps taken by a user in a moving state, as well as the RSSI values of Bluetooth signals corresponding to different number of steps; then, multiple RSSI values of Bluetooth signals corresponding to different number of steps are grouped and processed according to a preset strategy to obtain at least one signal array; finally, for each signal array, the standard deviation of the RSSI values of the Bluetooth signals in the signal array is calculated, and the RSSI values of invalid Bluetooth signals in the signal array are determined according to the calculation results. The above method uses the number of steps as a new data dimension, combined with the grouping processing of RSSI signal values, to more accurately identify and remove invalid Bluetooth signals in dynamic movement, thereby improving the accuracy and reliability of Bluetooth signal data.
[0047] It should be noted that since the distance, time and direction of movement of the user during movement cannot be controlled, the RSSI value of the received signal strength indicator of the Bluetooth signal may fluctuate significantly, especially when the user moves around the device, the distance between the user and the device remains unchanged but the RSSI value of the received Bluetooth signal fluctuates significantly. In the process of the user moving around the device, although the distance does not change, the number of steps of the user will increase. By collecting the RSSI values of the Bluetooth signal corresponding to different numbers of steps of the user and grouping the RSSI values of the Bluetooth signal corresponding to different numbers of steps, the present application can ensure that the data in a group are within a reasonable range, so as to more accurately determine the invalid Bluetooth signals in each group.
[0048] Embodiment 2
[0049] Figure 2 This is a flow chart of an invalid signal determination method provided by Embodiment 2 of the present invention. Embodiment 2 is optimized on the basis of the above embodiments. For details not yet detailed in this embodiment, please refer to Embodiment 1.
[0050] like Figure 2 As shown, a method for determining an invalid signal provided by Embodiment 2 of the present invention includes the following steps:
[0051] S210: Collect the number of steps taken by the user in a moving state, and the RSSI values of the Bluetooth signal corresponding to different number of steps.
[0052] Among them, one exercise step corresponds to multiple Bluetooth signal RSSI values
[0053] S220: For each movement step, calculate the average of multiple Bluetooth signal RSSI values corresponding to one step to obtain an average signal value.
[0054] S230 , grouping multiple Bluetooth signal RSSI values corresponding to different numbers of motion steps according to average signal values corresponding to different step numbers to obtain at least one signal array.
[0055] Furthermore, multiple Bluetooth signal RSSI values corresponding to different numbers of motion steps are grouped according to the average signal values corresponding to different step numbers to obtain at least one signal array, including: calculating the difference in the average signal values corresponding to different step numbers; and dividing the multiple Bluetooth signal RSSI values corresponding to the number of steps whose corresponding differences are less than a preset value into one signal array.
[0056] The preset value may be obtained based on experiments, or may be an empirical value.
[0057] Exemplarily, the average signal value corresponding to 1000 steps is calculated and recorded as the first average signal value, the average signal value corresponding to 1001 steps is recorded as the second average signal value, and the average signal value corresponding to 1002 steps is recorded as the third average signal value; the difference between the first average signal value and the second average signal value is calculated to obtain the first difference, the difference between the first average signal value and the third average signal value is calculated to obtain the second difference, or the difference between the second average signal value and the third average signal value is calculated to obtain the third difference; if the first difference and the second difference or the third difference are all smaller than the preset value, the Bluetooth signal RSSI values corresponding to 1000 steps, 1001 steps and 1002 steps can be divided into a signal array.
[0058] S240: For each signal array, perform standard deviation calculation on the RSSI values of the Bluetooth signals in the signal array, and determine the invalid RSSI values of the Bluetooth signals in the signal array according to the calculation result.
[0059] The second embodiment of the present invention provides an invalid signal determination method, which embodies the process of grouping multiple Bluetooth signal RSSI values corresponding to different movement steps according to a preset strategy to obtain at least one signal array. Using this method, the Bluetooth signal RSSI values can be reasonably grouped.
[0060] Embodiment 3
[0061] Figure 3 This is a flow chart of an invalid signal determination method provided by Embodiment 3 of the present invention. Embodiment 3 is optimized on the basis of the above embodiments. For details not yet detailed in this embodiment, please refer to Embodiments 1 and 2.
[0062] like Figure 3 As shown, a method for determining an invalid signal provided by Embodiment 3 of the present invention includes the following steps:
[0063] S310: Collect the number of steps taken by the user in a moving state, and the RSSI values of the Bluetooth signal corresponding to different number of steps.
[0064] Among them, one exercise step corresponds to multiple Bluetooth signal RSSI values.
[0065] S320, grouping multiple Bluetooth signal RSSI values corresponding to different numbers of motion steps according to a preset strategy to obtain at least one signal array.
[0066] S330, for each signal array, calculating the average of RSSI values of all Bluetooth signals in the signal array to obtain an average value;
[0067] S340, calculating the standard deviation of the signal array according to the average value and the RSSI values of all Bluetooth signals in the signal array;
[0068] S350: Determine a valid numerical range according to the standard deviation and the average value.
[0069] Further, determining a valid numerical range according to the standard deviation and the average value includes: calculating a valid boundary value according to the standard deviation and the average value; and determining a valid numerical range according to the valid boundary value.
[0070] Specifically, calculating the effective boundary value according to the standard deviation and the mean value includes: calculating the difference between the mean value and the standard deviation as the minimum effective boundary value; and calculating the sum of the mean value and the standard deviation as the maximum effective boundary value.
[0071] S360: Determine the Bluetooth signal RSSI value outside the valid value range as an invalid Bluetooth signal RSSI value.
[0072] The third embodiment of the present invention provides an invalid signal determination method, which embodies the process of determining the RSSI value of the invalid Bluetooth signal in the signal array. By using this method, the invalid Bluetooth signal in each signal array can be effectively identified.
[0073] The embodiment of the present invention provides a specific implementation method based on the technical solutions of the above embodiments.
[0074] As a specific implementation method of this implementation, the following steps are included:
[0075] Step 1: Use the sports watch carried by the user to record the number of steps of the user, collect the current number of steps while collecting the RSSI value of the Bluetooth signal, and make a data table as shown in Table 1.
[0076] Steps Bluetooth signal RSSI value 1000 [10,11,11,10,9,20,10] 1001 [11,12,12,11,10,25,10] 1002 [9,10,12,11,10,25,12] 1003 [25,24,23,25,25,19,19] … 1009 [25,24,23,10,11,19,19] 1010 [24,24,25,25,25,0,19]
[0077] Table 1
[0078] Step 2: Calculate the average value of the Bluetooth signal RSSI value.
[0079] 1. Calculate the average value of the Bluetooth signal RSSI value corresponding to 1000 steps:
[0080] Avg1=(10+11+11+10+9+20+10) / 7=11.57
[0081] 2. Calculate the average value of the Bluetooth signal RSSI value corresponding to the step number 1001:
[0082] Avg2=(11+12+12+11+10+25+10) / 7=13
[0083] 3. Calculate the average value of the Bluetooth signal RSSI value corresponding to the step number 1002:
[0084] Avg3=(9+10+12+11+10+25+12) / 7=12.71
[0085] Step 3: Calculate the mean difference.
[0086] 1. Avg2-Avg1=1.43
[0087] 2. Avg2-Avg3=0.29
[0088] 3. Avg3-Avg1=1.14
[0089] Step 4: Dataset division.
[0090] Since the above three values are all less than 3, the multiple Bluetooth signal RSSI values corresponding to the step number 1000, the multiple Bluetooth signal RSSI values corresponding to the step number 1001, and the multiple Bluetooth signal RSSI values corresponding to the step number 1002 can be divided into a data set [1000, 1001, 1002].
[0091] Step 5: Use Z-score to calculate the variance of the Bluetooth signal RSSI values in the data set [1000, 1001, 1002].
[0092] 1. Calculate the average value Avg of the RSSI values of all Bluetooth signals in the data set;
[0093] 2. Calculate the standard deviation;
[0094]
[0095] Wherein, rss[n] represents the RSSI value of the nth Bluetooth signal in the data set, and n represents the number of RSSI values of all Bluetooth signals in the data set.
[0096] Step 6: Determine the RSSI value of the invalid Bluetooth signal in the signal array.
[0097] 1. Calculate the valid value range;
[0098] Minimum effective boundary value = Avg - standard deviation
[0099] Maximum effective boundary value = Avg + standard deviation
[0100] The valid value range is [Avg-standard deviation, Avg+standard deviation]
[0101] 2. The Bluetooth signal RSSI values in the signal array that are not within the valid array range are regarded as invalid Bluetooth signal RSSI values.
[0102] Embodiment 4
[0103] Figure 4 A structural schematic diagram of an invalid signal determination device provided in Embodiment 4 of the present invention, the device can be used for eliminating invalid signals from collected signals, and is particularly suitable for judging the validity of Bluetooth signals and removing invalid signals in mobile devices, wherein the device can be implemented by software and / or hardware and is generally integrated on an electronic device.
[0104] like Figure 4 As shown, the device includes: a collection module 110 , a grouping module 120 and a calculation module 130 .
[0105] The collection module 110 is used to collect the number of steps taken by the user in a moving state, and the RSSI values of the Bluetooth signal corresponding to different number of steps, wherein one number of steps corresponds to multiple RSSI values of the Bluetooth signal;
[0106] A grouping module 120, configured to group multiple Bluetooth signal RSSI values corresponding to different numbers of motion steps according to a preset strategy to obtain at least one signal array;
[0107] The calculation module 130 is used to calculate the standard deviation of the RSSI values of the Bluetooth signals in the signal array for each signal array, and determine the RSSI values of the invalid Bluetooth signals in the signal array according to the calculation results.
[0108] In this embodiment, the device first collects the number of steps of the user in a moving state and the Bluetooth signal RSSI values corresponding to different number of steps through the collection module 110, wherein one number of steps corresponds to multiple Bluetooth signal RSSI values; then the grouping module 120 groups the multiple Bluetooth signal RSSI values corresponding to different number of steps according to a preset strategy to obtain at least one signal array; finally, the calculation module 130 calculates the standard deviation of the Bluetooth signal RSSI values in the signal array for each signal array, and determines the invalid Bluetooth signal RSSI values in the signal array according to the calculation results.
[0109] This embodiment provides an invalid signal determination device, which can more accurately identify invalid Bluetooth signals in a dynamic moving state.
[0110] Furthermore, the grouping module 120 includes:
[0111] A calculation unit, used for calculating, for each movement step, an average of multiple Bluetooth signal RSSI values corresponding to one step to obtain an average signal value;
[0112] The grouping unit is used to group multiple Bluetooth signal RSSI values corresponding to different movement step numbers according to the average signal values corresponding to different step numbers to obtain at least one signal array.
[0113] Based on the above optimization, the grouping unit is specifically used to: calculate the difference in average signal values corresponding to different step numbers; and divide multiple Bluetooth signal RSSI values corresponding to the number of steps whose corresponding differences are less than a preset value into a signal array.
[0114] Furthermore, the calculation module 130 includes:
[0115] A first calculation unit, configured to calculate, for each signal array, an average of RSSI values of all Bluetooth signals in the signal array to obtain an average value;
[0116] A second calculation unit, used for calculating the standard deviation of the signal array according to the average value and the RSSI values of all Bluetooth signals in the signal array;
[0117] A third calculation unit, used to determine a valid value range according to the standard deviation and the average value;
[0118] The fourth calculation unit is used to determine the Bluetooth signal RSSI value outside the valid value range as an invalid Bluetooth signal RSSI value.
[0119] Based on the above technical solution, the third calculation unit includes:
[0120] A calculation component, used for calculating an effective boundary value according to the standard deviation and the mean value;
[0121] A determination component is used to determine a valid numerical range according to the valid boundary value.
[0122] Based on the above technical solution, the calculation component is specifically used to: calculate the difference between the average value and the standard deviation as the minimum effective boundary value; calculate the sum of the average value and the standard deviation as the maximum effective boundary value.
[0123] The above-mentioned invalid signal determination device can execute the invalid signal determination method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0124] Embodiment 5
[0125] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0126] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0127] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0128] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as an invalid signal determination method.
[0129] In some embodiments, the invalid signal determination method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps in the invalid signal determination method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the invalid signal determination method in any other appropriate manner (e.g., by means of firmware).
[0130] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0131] In some embodiments, the invalid signal determination method can be implemented as a computer program, which is invisibly included in a computer program product. The computer program implements the invalid signal determination method of the present invention when executed by a processor. The computer program product can be understood as a software product that mainly implements its solution through a computer program. The computer program for implementing the method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the computer program, when executed by the processor, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The computer program can be executed entirely on the machine, partially on the machine, partially on the machine as an independent software package, and partially on a remote machine, or completely on a remote machine or server.
[0132] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0133] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0134] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0135] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0136] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0137] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for determining an invalid signal, characterized in that: The method comprises: Collect the number of steps taken by the user in motion and the RSSI values of the Bluetooth signal corresponding to different number of steps, where one number of steps corresponds to multiple RSSI values of the Bluetooth signal; The multiple Bluetooth signal RSSI values corresponding to different movement steps are grouped and processed according to a preset strategy to obtain at least one signal array; For each signal array, the standard deviation of the Bluetooth signal RSSI values in the signal array is calculated, and the invalid Bluetooth signal RSSI values in the signal array are determined according to the calculation results.
2. The method according to claim 1, characterized in that: The RSSI values of multiple Bluetooth signals corresponding to different numbers of motion steps are grouped and processed according to a preset strategy to obtain at least one signal array, including: For each exercise step, the average of multiple Bluetooth signal RSSI values corresponding to one step is calculated to obtain an average signal value; A plurality of Bluetooth signal RSSI values corresponding to different numbers of motion steps are grouped according to average signal values corresponding to different numbers of steps to obtain at least one signal array.
3. The method according to claim 2, characterized in that The method of grouping multiple Bluetooth signal RSSI values corresponding to different numbers of motion steps according to the average signal values corresponding to different numbers of steps to obtain at least one signal array includes: Calculate the difference in average signal values corresponding to different step numbers; The multiple Bluetooth signal RSSI values corresponding to the number of steps whose corresponding differences are less than a preset value are divided into a signal array.
4. The method according to claim 1, characterized in that: For each signal array, performing standard deviation calculation on the RSSI values of the Bluetooth signals in the signal array, and determining the invalid RSSI values of the Bluetooth signals in the signal array according to the calculation results, includes: For each signal array, calculate the average of the RSSI values of all Bluetooth signals in the signal array to obtain the average value; Calculate the standard deviation of the signal array according to the average value and the RSSI values of all Bluetooth signals in the signal array; Determine a valid value range according to the standard deviation and the mean value; The Bluetooth signal RSSI value outside the valid value range is determined as an invalid Bluetooth signal RSSI value.
5. The method according to claim 4, characterized in that Determining a valid value range according to the standard deviation and the average value includes: Calculate the effective boundary value according to the standard deviation and the mean value; The valid numerical value range is determined according to the valid boundary value.
6. The method according to claim 5, characterized in that The calculating the effective boundary value according to the standard deviation and the mean value comprises: Calculate the difference between the mean value and the standard deviation as the minimum effective boundary value; The sum of the mean value and the standard deviation is calculated as the maximum effective boundary value.
7. An invalid signal determination device, characterized in that: The device comprises: The collection module is used to collect the number of steps taken by the user in a moving state, and the RSSI values of the Bluetooth signal corresponding to different number of steps, wherein one number of steps corresponds to multiple RSSI values of the Bluetooth signal; A grouping module, used for grouping multiple Bluetooth signal RSSI values corresponding to different numbers of motion steps according to a preset strategy to obtain at least one signal array; The calculation module is used to calculate the standard deviation of the Bluetooth signal RSSI values in the signal array for each signal array, and determine the invalid Bluetooth signal RSSI values in the signal array according to the calculation results.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the invalid signal determination method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the invalid signal determination method according to any one of claims 1 to 6 when executed.
10. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed by a processor, implements the invalid signal determination method according to any one of claims 1 to 6.