2023-08-01 10:26 PM
Hi,
I am implementing the pedometer function using LSM6DSOX.
According to the driver file provided by ST, there are three different modes to configure. I want to know the difference between them. I cannot find any information in the datasheet.
Appreciate your help!
Solved! Go to Solution.
2023-08-02 06:23 AM - edited 2023-08-02 06:24 AM
Check if the AN5259 document has this information.
AN5259:
The kind of algorithms suitable for the machine learning core are those which can be implemented by following
an inductive approach, which involves searching patterns from observations. Some examples of algorithms which follows this approach are: activity recognition, fitness activity recognition, motion intensity detection, vibration intensity detection, carrying position recognition, context awareness, false-positive rejection, and so on.
AN5272:
STMicroelectronics provides the tools to generate specific pedometer configurations starting from a set of data-
logs with a reference number of steps (Unico GUI on st.com)
AN5273:
Decision tree number 0 (the first one) implements an activity recognition algorithm able to detect three user
activities (classes): still, walking and running;
2023-08-01 10:57 PM
@Jiabin wrote:Hi,
I am implementing the pedometer function using LSM6DSOX.
According to the driver file provided by ST, there are three different modes to configure. I want to know the difference between them. I cannot find any information in the datasheet.
Appreciate your help!
Maybe it's related to table 406. PEDO_CMD_REG register description - From DS12814.
From AN5272:
(Files in the "Documentation" tab)
2023-08-02 01:20 AM
Hi @RhSilicon
Thanks a lot for the detailed reply, very helpful.
I found that if I set the pedometer to false_positive_rejection mode, after I run/jogged, the number of steps counted was very small. So want to know more detail information how the differences are.
Since the statistical data are used for the algorithm, do you know if the running is also counted as steps in false_positive_rejection mode?
2023-08-02 06:23 AM - edited 2023-08-02 06:24 AM
Check if the AN5259 document has this information.
AN5259:
The kind of algorithms suitable for the machine learning core are those which can be implemented by following
an inductive approach, which involves searching patterns from observations. Some examples of algorithms which follows this approach are: activity recognition, fitness activity recognition, motion intensity detection, vibration intensity detection, carrying position recognition, context awareness, false-positive rejection, and so on.
AN5272:
STMicroelectronics provides the tools to generate specific pedometer configurations starting from a set of data-
logs with a reference number of steps (Unico GUI on st.com)
AN5273:
Decision tree number 0 (the first one) implements an activity recognition algorithm able to detect three user
activities (classes): still, walking and running;
2023-08-03 05:36 AM
Hi @Jiabin ,
running should be counted as steps even with false positive rejection, but maybe the type of running is slightly different from the one expected by the algorithm.
the algorithm can also be tuned by the user, if needed =)
If this answers your question, please, mark this as "best answer", by clicking on the "accept as solution" to help the other users of the community
Niccolò
2023-08-03 05:51 AM
Thanks a lot for your kind reply. I have performed an experiment today and got the below results. The dev boards were grasped in my hand, and the smartphone was placed in my pocket. The data are just for your reference.
I was running for 1 hour the experiment (and there are some walks for temporary rest), seems the default configuration of fp_reject algorithm does not accept fierce activity such as running.
Best,
Jiabin
2023-08-03 06:45 AM
Hi @Jiabin ,
probably the position of the sensor is also involved in the low accuracy, maybe you can try again the test with the board in the pocket to be sure =)
anyway, remember that you can also tune the algorithm or even try to develop a Machine Learning Core network that is tuned to your running/walking logs to further increase accuracy =)
also,I think that you can "accept as solution" the answer from @RhSilicon , as he explained well the differences between the different modes =)
Niccolò
2023-08-03 05:48 PM
Hi, @niccolò @RhSilicon
Sure, thanks a lot. For the future version datasheet, it would be very helpful if more detailed information can be disclosed.
Jiabin
2023-08-03 11:05 PM - edited 2023-08-03 11:07 PM
Many years ago, I had posted on a forum that Atmel Datasheets were too difficult for novice users. And I also commented that the Datasheet of the Microchip MCU PIC was easier (But Atmel MCUs were pretty good compared to basic PICs). A while later Microchip bought Atmel.
Perhaps Microchip can give lectures on the didactics used in its product documents :grinning_face_with_sweat:.