Machine learning helps make motion sensors energy efficient


Inertial measurement units comprising an acceleration sensor and gyroscope have gained widespread acceptance in applications for capturing movements, determining spatial orientation and stabilizing images and objects. To reduce power consumption and to improve the quality of data capture, ST has integrated machine-learning technologies into its latest sensor.

Up to now, reducing the power consumption of inertial measurement units (IMUs) has been an unsolved dilemma. That is because it involves either sending vast quantities of captured raw data. An energy-intensive process or preprocessing this data in the host microcontroller, an operation that is not less power hungry.

With the new MEMS sensor LSM6DSOX from the iNEMO family, ST has provided an elegant solution to this Gordian knot: Here, a machine-learning core works with Finite State Machines (FSMs) and classifies motion data based on known patterns along a decision tree. As a result, the main processor no longer needs to perform this first level of activity tracking. The result? Power consumption is reduced while at the same time detection is improved, which increases the processing speed of apps such as fitness trackers, apps for wellness monitoring, navigation or the fall detection function in smartphones, wearables or game controllers.

Decision-tree logic for quick and efficient processing

A decision tree is a tool that supports mathematical differentiations. It consists of multiple configurable nodes. At each node, a statistical parameter is compared with a threshold value and the next node is selected based on the result. If this ultimately reaches a leaf, one of the last nodes of a tree, the decision tree generates a result that can be read by a specific device register.

With the help of the decision tree, the sensor processes an inductive algorithm with a fraction of the normal power consumption. The system can not only detect movements such as walking, running, jogging and cycling or immobility, but can even count bicep curls, squats, push-ups and other movements during a workout, for example – all on the basis of learned patterns.

The choice of data is critical in order to achieve a highly accurate result: data that characterizes the required class of a movement must be collected. Since it is highly complex to describe these classes manually in software, machine learning tools are used here, which greatly simplify the programming. ST uses the publicly available machine-learning tool Weka and a dedicated development environment that converts the acquired parameters into register settings of the sensor. This means that the developer can simply concentrate on the functionality without first having to evaluate the collected data.

The LSM6DSOX can be configured to process up to eight decision trees simultaneously and independently of one another.

Programmable interrupts

In addition, the LSM6DSOX can issue an interrupt for specific user-defined movements. For this purpose, the Finite State Machines can be independently programmed for specific motion detection types, such as a glance at a display, a turn of the wrist, a shake, double shake or picking up the device. Each of the 16 Finite State Machines has its own memory area and is executed independently from the others. The interrupt is triggered once the final movement state has been reached. Other configurable functions are predefined to trigger interrupts for free falls, motion detection, 6D/4D orientation as well as clicks and double clicks.

The LSM6DSOX can also be used for closed-loop control applications, for example, for stabilizing moving industrial controllers. Special cases of this application are optical and electronic image stabilization (OIS and EIS) in camera systems.

Always-on user experience with low power consumption

The LSM6DSOX is a System-in-Package (SiP) with a combined mechanical 3D acceleration sensor and 3D gyroscope together with a low-power CMOS-ASIC for evaluation in a small plastic land-grid array enclosure (LGA-14L). Its acceleration range of ±2/4/8/16g and the angular rate range of ±125/250/500/1000/2000dps are dynamically selectable. The high performance mode ensures high performance at a power consumption of just 0.55mA. With its extremely low-noise acceleration sensor and gyroscope, the sensor combines an always-on user experience with low energy consumption and outstanding measuring accuracy.

With all of these features, the LSM6DSOX opens up a vast spectrum of applications – not only for motion detection but also for man-aging user interfaces, protecting laptops, detecting motion patterns and vibration for robots, machine controllers and forklift trucks all the way to the detection of aircraft movements such as takeoffs and landings.


Additional products to consider...