Inside the AI Toothbrush: How 6-Axis IMU Hardware Tracks Every Brush Stroke
The Sensory Foundation of Smart Brushing
Behind the polished plastic shell of every AI-powered electric toothbrush lies a component most consumers never see: a miniature inertial measurement unit (IMU) measuring just 3×3×1 mm. This tiny chip—costing less than $1 in volume—is the sensory foundation upon which the entire edifice of smart brushing is built. Without it, the toothbrush cannot know where it is, how it is oriented, or how it is being moved. Understanding how this hardware works illuminates the engineering sophistication behind a device that most of us use twice daily without a second thought.

An IMU in a modern smart toothbrush typically integrates two fundamental sensor types on a single microelectromechanical systems (MEMS) die: a 3-axis accelerometer and a 3-axis gyroscope. Together, these constitute a 6-axis inertial measurement system. Some premium toothbrush models also include a 3-axis magnetometer (compass), creating a 9-axis system capable of absolute heading determination relative to Earth's magnetic field.
Accelerometer: Measuring Linear Acceleration and Gravity
The 3-axis MEMS accelerometer measures linear acceleration along three orthogonal axes (X, Y, and Z, typically defined relative to the toothbrush handle: X-forward along the brush head, Y-lateral, Z-vertical through the handle). At rest, the accelerometer measures the static acceleration due to gravity—a 1 g (9.81 m/s²) vector pointing toward the center of the Earth. By comparing the proportion of this gravitational vector distributed across the X, Y, and Z axes, the IMU can compute the toothbrush's tilt angles (pitch and roll) relative to the horizontal plane.
During brushing, the accelerometer captures dynamic linear accelerations superimposed on the gravitational signal. A typical brushing stroke generates accelerations of 0.5–3.0 g. The accelerometer's sampling rate in toothbrush-grade IMUs (such as the Bosch BMI160, InvenSense ICM-20602, or STMicroelectronics LSM6DSO) ranges from 100 Hz to 1.6 kHz. Higher sampling rates enable finer temporal resolution of brushing motion but consume more power and generate more data requiring processing.
The accelerometer alone provides sufficient information to detect basic brushing patterns—up-down, side-to-side, circular—based on the characteristic acceleration signatures of each motion type. It can also detect when the brush is stationary (a near-constant gravity vector with minimal high-frequency content), enabling automatic power-saving and session timing.
Gyroscope: Capturing Rotational Motion
The 3-axis MEMS gyroscope measures angular velocity (rate of rotation) around each axis, expressed in degrees per second (°/s) or radians per second (rad/s). Unlike accelerometers, gyroscopes are insensitive to linear acceleration and gravity—they measure pure rotation. This makes them indispensable for tracking rapid orientation changes during brushing strokes.
MEMS gyroscopes operate on the Coriolis effect: a vibrating proof mass experiences a force perpendicular to both its vibration axis and the axis of rotation when the sensor rotates. By measuring this Coriolis-induced displacement capacitively, the gyroscope determines angular velocity with typical noise densities of 0.005–0.015 dps/√Hz and full-scale ranges of ±250 to ±2000 dps for toothbrush applications.
The gyroscope's key advantage is in detecting wrist rotation and brush head orientation changes—critical for determining which tooth surface (buccal/outer, lingual/inner, occlusal/biting) the brush is contacting. An accelerometer alone cannot distinguish between a brush oriented upward pressing against upper lingual surfaces and a brush oriented downward against lower buccal surfaces if the user's head position is unknown. Gyroscope integration over time provides the missing rotational information.
Sensor Fusion: From Raw Data to Orientation
Raw accelerometer and gyroscope data, while rich in information, cannot directly answer the clinically relevant question: "which tooth surface is being brushed right now?" This requires sensor fusion—combining data from multiple sensors to estimate a higher-level state variable, in this case the toothbrush's 3D orientation.
Orientation is typically represented as either Euler angles (roll, pitch, yaw), a rotation matrix, or—most commonly in toothbrush firmware—a quaternion (a four-element hypercomplex number that avoids the gimbal lock problem inherent in Euler angles). The sensor fusion algorithm continuously estimates the quaternion orientation of the toothbrush handle relative to an Earth-fixed reference frame.
Two fusion algorithm families dominate embedded toothbrush implementations:
Complementary filters offer computational simplicity. The filter combines the accelerometer's long-term stable-but-noisy gravity estimate with the gyroscope's short-term precise-but-drifting angular velocity integration. The accelerometer data passes through a low-pass filter (attenuating high-frequency vibration noise), while the gyroscope data passes through a high-pass filter (removing DC bias drift). The filtered signals are summed with complementary weighting, typically allocating 95–98% weight to the gyroscope at high frequencies and a slowly increasing weight to the accelerometer below 0.1 Hz.
Kalman filters represent a more sophisticated Bayesian approach. An extended Kalman filter (EKF) or unscented Kalman filter (UKF) maintains a probabilistic estimate of orientation and its uncertainty, updating the estimate in two steps: prediction (using the gyroscope's angular velocity to forward-integrate the orientation) and correction (using the accelerometer's gravity vector to correct accumulated integration error). Kalman filters achieve higher accuracy than complementary filters—orientation error typically below 1° versus 2–3°—at the cost of higher computational complexity and memory requirements.
From Orientation to Zone Detection
Once the toothbrush's 3D orientation is known, the final step is mapping orientation to intraoral zone. This is the domain of heuristic rule-based classifiers or machine learning models deployed on the toothbrush's microcontroller or companion smartphone app. The basic approach exploits anatomical constraints: during brushing, the toothbrush handle occupies a relatively small set of identifiable orientations corresponding to the 16 standard intraoral zones (buccal/labial, lingual, and occlusal surfaces of upper right posterior, upper anterior, upper left posterior, lower left posterior, lower anterior, and lower right posterior segments).
Practical implementations use a combination of orientation angle thresholds and temporal continuity. For example, if the brush handle's Z-axis (pointing upward from the handle) has a pitch angle between +20° and +80° and yaw angle corresponding to the left side, the algorithm classifies the brush as contacting upper left buccal surfaces. Additional features—including accelerometer magnitude (higher during active brushing), frequency content (2–5 Hz dominant frequency during normal brushing), and historical zone transition probabilities (you cannot jump from upper right to lower left in 0.1 seconds)—improve classification accuracy to approximately 90–95% in controlled laboratory studies.
The seamless real-time brushing guidance that users experience—zone coverage indicators, missed area alerts, pressure warnings—is the culmination of these hardware and algorithmic layers working together at sampling rates of 100+ Hz, processing thousands of data points per second to answer the deceptively simple question: where is the brush right now?










