Deployment and iteration method of electric toothbrush, cloud server and electric toothbrush terminal

By performing lightweight processing of the model and terminal inference calculations on the cloud server, combined with data feedback and incremental fine-tuning, the problem of existing electric toothbrush algorithm deployment being unable to adapt to low-power, low-computing-power terminals has been solved, enabling continuous optimization and full lifecycle upgrades of personalized cleaning capabilities.

CN123178976APending Publication Date: 2026-11-27RISUN TECH (SHENZHEN) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611505041.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-24
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

The motion algorithms of existing smart electric toothbrushes are deployed in a static mode of cloud training and factory fixation. As a result, the models are not adapted to the edge and cannot run on low-power, low-computing-power main control chips. They lack remote update and data feedback mechanisms, cannot be dynamically adjusted according to users' personalized needs, have low intelligence, and insufficient personalized cleaning capabilities.

Method used

By performing structured pruning and INT8 quantization on the model parameters through a cloud server, a lightweight model parameter package is generated and remotely sent to the electric toothbrush terminal for inference calculation. User brushing behavior data is collected in real time and sent back to the cloud for incremental fine-tuning, forming a closed-loop iterative system to achieve personalized optimization of the model.

Benefits of technology

It enables stable operation of high-precision models on low-power, low-computing-power terminals, dynamically adjusts brushing motion trajectories, enhances personalized cleaning capabilities, and supports algorithm iteration and optimization throughout the entire lifecycle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178976A_ABST
    Figure CN123178976A_ABST
Patent Text Reader

Abstract

The application discloses a deployment and iteration method of an electric toothbrush, a cloud server and an electric toothbrush terminal, relates to the technical field of Internet of Things, and comprises the following steps: acquiring terminal information of a toothbrush terminal to generate a lightweight model parameter package suitable for the electric toothbrush terminal; the lightweight model parameter package is sent to the electric toothbrush terminal to control a driving unit of the electric toothbrush to execute motion output and output operation data generated in a tooth brushing process; the operation data is returned to the cloud server through a communication link; and the motion output of the electric toothbrush terminal is continuously optimized along with the accumulation of user use data. The application generates motion control instructions through real-time collection of tooth brushing behavior data and inference operation; the operation data is returned to the cloud server, is fine-tuned by increment, is sent again, forms a closed loop of deployment, use, return, iteration and redeployment, and realizes personalized cleaning control of algorithm continuous evolution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Internet of Things (IoT) technology, and in particular to a method for deploying and iterating electric toothbrushes, a cloud server, and an electric toothbrush terminal. Background Technology

[0002] The motion algorithms deployed in current smart electric toothbrushes generally adopt a static mode of cloud training and one-time factory-fixed implementation. After the algorithm is trained in the laboratory, it is directly burned into the main control chip of the electric toothbrush as a floating-point model. The algorithm parameters are permanently fixed after the product leaves the factory and cannot be adaptively adjusted according to the user's actual usage habits. This deployment mode has the following prominent problems: First, the model parameters obtained from training are large floating-point models with high computational complexity and large storage consumption. They have not been adapted to low-power, low-computing-power main control chips, and direct deployment results in problems such as inference lag, insufficient computing power, and excessive power consumption. Second, there is a lack of a standardized deployment system for unified model storage, version management, and remote distribution. Algorithm updates rely on after-sales disassembly or wired burning, resulting in extremely low industrialization efficiency. Third, product operation data cannot be fed back to the computing center, and model iteration lacks real user data sources. Fourth, the algorithm is permanently fixed once it leaves the factory and cannot adapt to the personalized differences of different users in terms of brushing force, trajectory, speed, etc. Fifth, the terminal can only execute preset fixed vibration levels and cannot load motion algorithm models to achieve dynamic motion output that adapts to the user. The root cause of the above defects lies in the fact that the existing deployment technology is an open-loop static deployment, which does not have the complete closed-loop capabilities of lightweight adaptation, remote updates, terminal inference operation, and data feedback iteration. This results in low intelligence level of smart electric toothbrushes, insufficient personalized cleaning capabilities, and a lack of full life cycle upgrade capabilities. Summary of the Invention

[0003] The main objective of this invention is to provide a deployment and iteration method for electric toothbrushes, a cloud server, and an electric toothbrush terminal. This aims to solve the technical problems of existing electric toothbrush motion algorithms, which employ a static mode of cloud-based training and factory-fixed execution. The resulting floating-point models are not adapted to the device side, making them difficult to run on low-power, low-computing-power mainframes. Furthermore, the lack of remote distribution, data feedback, and iterative update mechanisms means the algorithms are permanently fixed once manufactured, preventing dynamic adjustment and continuous optimization based on actual brushing behavior, thus resulting in insufficient personalized cleaning capabilities.

[0004] To achieve the above objectives, this invention proposes a deployment and iteration method for electric toothbrushes, the method being based on a cloud server and an electric toothbrush terminal; the method includes the following steps: The terminal information of the toothbrush terminal is obtained, and the model parameters of the corresponding motion algorithm are obtained based on the terminal information of the toothbrush terminal. The model parameters are then processed to generate a lightweight model parameter package adapted to the electric toothbrush terminal. The lightweight model parameter package is sent to the electric toothbrush terminal so that the electric toothbrush terminal loads the lightweight model parameter package, collects user brushing behavior data during brushing, and generates corresponding motion control commands based on the lightweight model parameter package to control the drive unit of the electric toothbrush to perform motion output and output the running data generated during brushing. Receive the operating data transmitted back by the electric toothbrush terminal through the communication link; The cloud server incrementally fine-tunes the deployed motion algorithm model based on the returned running data, generates an updated model parameter package, and sends it back to the electric toothbrush terminal, so that the motion output of the electric toothbrush terminal is continuously optimized as user usage data accumulates.

[0005] Furthermore, the cloud server performs lightweight processing on the model parameters, including: The original model parameters are pruned in a structured manner to remove redundant convolutional kernels and invalid weights; The pruned model parameters are quantized using INT8 to convert floating-point weights into fixed-point integer weights. If the accuracy loss exceeds a preset threshold when the fixed-point integer weights are used for inference verification, the pruning ratio is adjusted and the process is repeated. The overall compression rate of the model parameter package after lightweight processing is no less than 70%.

[0006] Furthermore, the structured pruning is based on the importance score of the convolutional kernel, and convolutional kernels with scores below the threshold are removed first; the INT8 quantization adopts a layer-by-layer quantization method, and a quantization scale factor is determined for the weights and activation values ​​of each layer.

[0007] Furthermore, the cloud server sends the lightweight model parameter package to the electric toothbrush terminal via a communication link, including: The electric toothbrush terminal establishes an encrypted connection with the cloud server via a BLE Bluetooth communication link. The cloud server sends the version information and verification value of the model parameter package to be deployed to the electric toothbrush terminal; After comparing the electric toothbrush terminal with the local current version, it requests the lightweight model parameter package from the cloud server based on the comparison result. After the electric toothbrush terminal downloads the data, it verifies the data integrity, writes the lightweight model parameter package into the Flash storage area, and completes the algorithm replacement and upgrade. The distribution is accomplished via over-the-air (OTA) updates.

[0008] Furthermore, the cloud server performs incremental fine-tuning of the deployed motion algorithm model based on the returned runtime data, including: The cloud server cleans and labels the returned running data to construct an incremental training dataset; Load the deployed model weights as initial weights; The model's lower-level network layers are frozen, and parameters are updated only for some higher-level network layers. After fine-tuning the training, the effect is evaluated, and an updated model parameter package is generated and stored in the algorithm model version library.

[0009] This invention also proposes a deployment and iteration method for an electric toothbrush, the method being executed by an electric toothbrush terminal, comprising: Obtain a lightweight model parameter package sent from the cloud; the lightweight model parameter package is generated by the cloud server obtaining the terminal information of the toothbrush terminal, obtaining the model parameters of the corresponding motion algorithm based on the terminal information of the toothbrush terminal, and performing lightweight processing on the model parameters. The lightweight model parameter package is loaded, user brushing behavior data is collected during brushing, and corresponding motion control commands are generated based on the lightweight model parameter package to control the drive unit of the electric toothbrush to perform motion output, and the running data generated during brushing is sent to the cloud server so that the cloud server can incrementally fine-tune the deployed motion algorithm model based on the returned running data and generate an updated model parameter package. Based on the updated model parameter package, the electric toothbrush terminal performs the following steps during brushing: the main control chip of the electric toothbrush terminal collects six-axis IMU data and pressure sensor data at a fixed sampling rate; The collected raw data is preprocessed by sliding window segmentation and normalization; The preprocessed time series data is input into the motion algorithm model loaded with the updated model parameter package, and the vibration frequency, amplitude and motion trajectory parameters are output. The main control chip generates a PWM control signal based on the output parameters, which drives the motor to perform dynamic motion output.

[0010] Furthermore, the electric toothbrush terminal transmits the operational data generated during brushing to the cloud server via a communication link, including: The electric toothbrush terminal caches the operation data generated during brushing to local storage. The operation data includes the user's brushing trajectory, brushing force, movement speed, area distribution, and model inference bias data. When the electric toothbrush terminal establishes a connection with the cloud server and is in a charging state, the cached data is aggregated, compressed, encrypted, and then uploaded to the cloud server according to the time window.

[0011] The present invention also proposes a cloud server, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement steps of a deployment and iteration method for an electric toothbrush.

[0012] The present invention also proposes an electric toothbrush terminal, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured with steps of a deployment and iteration method for an electric toothbrush.

[0013] This invention generates a lightweight model parameter package with a compression rate of no less than 70% by performing structured pruning and INT8 quantization on the model parameters, making it suitable for low-power, low-computing-power terminals. After the lightweight model parameter package is remotely sent to the terminal via a communication link, the terminal loads the model and collects user brushing behavior data in real time during brushing to perform inference calculations, dynamically generating vibration frequency, amplitude, and motion trajectory control commands to drive the output unit. The terminal sends the running data back to the cloud server, and the cloud performs incremental fine-tuning of the deployed model based on the returned data to generate an updated model parameter package and send it down again, forming a closed loop of deployment, use, feedback, iteration, and redeployment. This allows the motion output to be continuously optimized as user data accumulates, achieving personalized cleaning control with unchanged hardware and continuously evolving algorithms. Attached Figure Description

[0014] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0016] Figure 1 This is a flowchart illustrating the deployment and iteration method of the electric toothbrush of the present invention; Figure 2 This is a schematic diagram of the module structure of the cloud server of the present invention; Figure 3 This is a schematic diagram of the module structure of the electric toothbrush terminal of the present invention.

[0017] The objectives, features, and advantages of this invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0018] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of the present invention and are not intended to limit the present invention.

[0019] To better understand the technical solution of the present invention, a detailed description will be provided below in conjunction with the accompanying drawings and specific embodiments.

[0020] like Figure 1 As shown, Figure 1 This is a flowchart illustrating the deployment and iteration method of the electric toothbrush of the present invention.

[0021] A method for deploying and iterating an electric toothbrush, the method being based on a cloud server and an electric toothbrush terminal; the method includes the following steps: S10, obtain the terminal information of the toothbrush terminal, obtain the model parameters of the corresponding motion algorithm according to the terminal information of the toothbrush terminal, and perform lightweight processing on the model parameters to generate a lightweight model parameter package adapted to the electric toothbrush terminal. S20, the lightweight model parameter package is sent to the electric toothbrush terminal so that the electric toothbrush terminal loads the lightweight model parameter package, collects user brushing behavior data during brushing, and generates corresponding motion control commands based on the lightweight model parameter package to control the drive unit of the electric toothbrush to perform motion output and output the running data generated during brushing. S30, Receive the operating data transmitted back by the electric toothbrush terminal through the communication link; S40, the cloud server incrementally fine-tunes the deployed motion algorithm model based on the returned running data, generates an updated model parameter package, and sends it back to the electric toothbrush terminal, so that the motion output of the electric toothbrush terminal is continuously optimized as user usage data accumulates.

[0022] This invention relates to a deployment and iteration method for an electric toothbrush, belonging to the fields of intelligent hardware algorithm deployment, embedded edge artificial intelligence, and low-power model iterative upgrade technology. Specifically, it relates to a method for deploying an electric toothbrush motion algorithm throughout its entire lifecycle, based on trained motion algorithm parameters, enabling lightweight distribution, real-time terminal operation, data feedback, and cloud-based fine-tuning and iteration.

[0023] In existing technologies, the development process of motion algorithms for smart electric toothbrushes generally adopts a cloud-based training and one-time solidification technical model. After the algorithm is trained in the laboratory, it is burned into the main control chip of the electric toothbrush. The algorithm parameters are permanently fixed after the product leaves the factory and cannot be adaptively adjusted according to the user's actual usage habits. Under this deployment mode, the model parameters obtained by training are mostly large floating-point models, without lightweight adaptation for low-computing-power main control chips. Direct deployment results in problems such as lag, insufficient computing power, and high power consumption. At the same time, there is a lack of a complete deployment system for unified model storage, version management, and remote distribution. Product operation data cannot be fed back to the computing center, and the model does not have an iterative data source. The algorithm remains unchanged after leaving the factory and cannot adapt to the personalized differences in brushing force, trajectory, and speed of different users, so the long-term user experience cannot be upgraded. Traditional electric toothbrushes can only execute fixed vibration levels and cannot load artificial intelligence motion models to achieve dynamic trajectory output that adapts to the user. The root cause of the above defects lies in the fact that the existing deployment technology is an open-loop static deployment, which only realizes the model burning and landing, and does not have the complete closed-loop capabilities of lightweight adaptation, remote update, terminal inference operation, and data feedback iteration. This results in low intelligence level, poor personalization, and no product life cycle upgrade capability for smart electric toothbrushes.

[0024] To address the aforementioned technical problems, this invention proposes a deployment and iteration method for electric toothbrushes. This method aims to solve the problems of existing electric toothbrush motion algorithms, which employ a static mode of cloud-based training and factory-fixed execution. The resulting floating-point models are not adapted to the device side, making them difficult to run on low-power, low-computing-power mainframes. Furthermore, the lack of remote deployment, data feedback, and iterative update mechanisms means the algorithms are permanently fixed once manufactured, preventing dynamic adjustment and continuous optimization based on actual user brushing behavior, thus resulting in insufficient personalized cleaning capabilities.

[0025] To achieve the above objectives, the technical solution proposed in this invention relies on the optimal model weight parameters output from the preceding closed-loop training to realize a full-link closed-loop deployment system encompassing model lightweighting, cloud storage management, remote deployment, real-time inference operation on the device side, data feedback, and cloud-based fine-tuning iteration. This enables lifelong dynamic upgrades of the electric toothbrush motion algorithm and personalized motion control tailored to each user. The overall technical logic is as follows: the optimal motion algorithm parameters output during the training phase are lightweighted and compressed before being stored in a data center; they are remotely distributed to the electric toothbrush terminal's main control chip via an onboard communication system; the terminal loads the model for real-time inference and dynamically outputs brushing motion trajectories adapted to user habits; simultaneously, the terminal continuously feeds back real-world usage data to the computing center, driving secondary fine-tuning iterations of the model, forming a closed-loop deployment system for the industrialization of training results and lifelong product iteration.

[0026] The method is implemented based on a cloud server, an electric toothbrush terminal, and a communication link connecting the cloud server and the electric toothbrush terminal. The cloud server, as the computing center for model management and iteration, is responsible for receiving model parameters, lightweight processing, version storage management, remote distribution, and incremental fine-tuning based on returned data. The electric toothbrush terminal, as the on-device inference and execution carrier, is responsible for loading model parameter packages, real-time acquisition of brushing behavior data, inference calculations, generation of motion control commands, and return of runtime data. The communication link is a bidirectional data transmission channel between the cloud server and the electric toothbrush terminal. In this implementation, a BLE Bluetooth communication link is used to support low-power data return and model distribution, ensuring long-term stable connection capability of the terminal under battery power conditions. The method includes the following steps.

[0027] S10, the cloud server obtains the terminal information of the toothbrush terminal, obtains the model parameters of the corresponding motion algorithm based on the terminal information of the toothbrush terminal, and performs lightweight processing on the model parameters to generate a lightweight model parameter package adapted to the electric toothbrush terminal.

[0028] The terminal information includes identifying information such as the toothbrush terminal's hardware model, the computing power level of the main control chip, storage capacity, sensor configuration, and communication protocol version. Based on the hardware capability parameters in the terminal information, the cloud server matches motion algorithm model parameters from the algorithm model version library that are compatible with the terminal's hardware resource constraints. In specific implementation, the terminal proactively reports its hardware capability description information upon initial activation or each time it establishes a connection with the cloud. This description information is encapsulated in a structured data format and includes fields such as the main control chip's operating frequency, available random access memory capacity, Flash storage space size, sensor type and sampling accuracy, and the communication module's protocol version and transmission rate. After parsing this description information, the cloud server retrieves a matching model version from the algorithm model version library based on the hardware capability parameters, ensuring that the selected model parameters achieve a balance between computational complexity, storage usage, and inference accuracy that matches the terminal's hardware capabilities. For example, for terminal models with lower main control chip computing power and smaller storage space, the cloud server matches a lightweight model version with a higher compression ratio; for terminal models with relatively abundant hardware resources, it matches a model version with a moderate compression ratio and higher inference accuracy.

[0029] The motion algorithm model is a pre-trained temporal convolutional neural network model used to generate motion control parameters for the electric toothbrush based on user brushing behavior data. This model undergoes multiple rounds of trajectory matching correction, possessing the ability to fit standard trajectories. Its input is the temporal behavioral feature data of the user's brushing process, and its output is the vibration frequency, amplitude, and motion trajectory parameters of the electric toothbrush. The core advantage of the temporal convolutional neural network model lies in its dilated convolution structure, which effectively captures long-range temporal dependencies in brushing behavior data while maintaining low computational complexity, making it suitable for deployment and operation on resource-constrained embedded terminals. The model's training phase is completed in the computing center, using training data derived from standard brushing behavior samples collected in the laboratory and anonymized data collected with early user authorization. The training process employs a trajectory matching loss function for optimization, ensuring that the model output fits the standard brushing motion trajectory parameters as closely as possible.

[0030] After acquiring the model parameters, the cloud server performs structured pruning on the original model parameters. Structured pruning is based on convolutional kernel importance scores, prioritizing the removal of convolutional kernels with scores below a threshold and invalid weights. Importance scores can be calculated using the L1 norm, L2 norm, or gradient-based sensitivity metrics of the convolutional kernel weights; a higher score indicates a greater contribution of the convolutional kernel to the model's output accuracy. The pruning operation treats the entire convolutional kernel as the smallest deletion unit, rather than removing individual weights. This effectively reduces computational cost during inference while maintaining the regularity of the model parameter tensor structure and facilitates accelerated optimization within embedded inference frameworks. After pruning, redundant convolutional nodes and invalid weights in the model network structure are removed, resulting in the first round of compression of the model parameter size and computational cost.

[0031] The pruned model parameters were then subjected to INT8 quantization. INT8 quantization employs a layer-by-layer quantization approach, determining the quantization scale factor for each layer's weights and activation values. The core principle of quantization is to map the original 32-bit floating-point weights to 8-bit fixed-point integer weights. The quantization scale factor is determined based on the numerical distribution range of each layer's weights, establishing a linear mapping between floating-point values ​​and fixed-point integers. The advantage of layer-by-layer quantization over global quantization lies in the fact that the weight numerical distributions differ significantly across different network layers; determining the scale factor layer by layer minimizes the accuracy loss introduced during quantization. After quantization, the model's storage footprint is reduced to approximately one-quarter of the original floating-point model, and multiplication operations during inference can be converted from floating-point operations to fixed-point integer operations, significantly reducing the computational load and power consumption of the main control chip.

[0032] After quantization, inference verification is performed on the test dataset using the fixed-point integer weights. The purpose of inference verification is to evaluate the impact of lightweight processing on the model's output accuracy. The cloud server inputs the test dataset into the quantized fixed-point model, compares its output with the original floating-point model output, and calculates the accuracy loss index. If the accuracy loss exceeds a preset threshold, it indicates that the current pruning ratio and quantization strategy have caused unacceptable damage to the model's expressive power. In this case, the pruning ratio is adjusted, and pruning and quantization are re-executed. The direction of adjusting the pruning ratio is to appropriately reduce the pruning intensity and retain more highly important convolutional kernels, sacrificing some compression ratio to control the accuracy loss. This iterative process of pruning, quantization, and verification can continue for multiple rounds until the accuracy loss meets the preset threshold requirement, obtaining the optimal balance between compression ratio and accuracy.

[0033] After the aforementioned lightweighting process, the overall compression rate of the model parameter package is no less than 70%. The original 32-bit floating-point model is reduced to less than 28% of its original size after compression, and the inference computation is significantly reduced accordingly. Taking a typical temporal convolutional neural network model as an example, if the original model has 1 million floating-point parameters, the storage occupation is about 4 megabytes. After structured pruning to remove 30% of redundant convolutional kernels, the number of parameters is reduced to 700,000. Then, INT8 quantization compresses each parameter from 4 bytes to 1 byte, and the final model parameter package size is about 0.7 megabytes, with a compression rate of 82.5%. This compression effect enables high-precision temporal models that could not originally run on low-power, low-computing-power mainframes to be stably loaded and executed by the terminal mainframe chip. The compressed lightweight model parameter package is assigned a unique version number, and the model structure information, compression rate, and training data version information are stored as version metadata in the algorithm model version library, forming a standard algorithm package that can be deployed in batches and supports canary releases and version rollbacks. The establishment of the algorithm model version library provides a foundation for subsequent batch deployment management. Model versions corresponding to different iteration stages and different terminal hardware models can be effectively tracked and managed, avoiding deployment accidents caused by version confusion. This lightweight processing directly solves the technical defect of the separation between training and deployment, enabling high-precision models trained in the cloud to be losslessly deployed to resource-constrained embedded terminals, laying the model foundation for subsequent remote deployment and edge inference.

[0034] S20, the cloud server sends the lightweight model parameter package to the electric toothbrush terminal through a communication link, so that the electric toothbrush terminal loads the lightweight model parameter package, collects user brushing behavior data during brushing, and generates corresponding motion control commands based on the lightweight model parameter package to control the drive unit of the electric toothbrush to perform motion output, and sends the running data generated during brushing to the cloud server.

[0035] During the deployment process, the electric toothbrush terminal establishes an encrypted connection with the cloud server via a BLE Bluetooth communication link. The encrypted connection employs a combination of symmetric and asymmetric encryption. During the connection establishment phase, an asymmetric encryption algorithm is used to negotiate the session key; subsequent data transmission uses the session key for symmetric encryption, balancing transmission security with the power consumption of encryption operations. After the connection is established, the cloud server sends the version information and verification value of the model parameter package to be deployed to the electric toothbrush terminal. The version information includes metadata such as version number, model structure summary, parameter package size, and release time; the verification value is a hash digest of the model parameter package, used for subsequent integrity verification. The electric toothbrush terminal compares the received version information with the currently deployed version locally. If the versions are the same, it means the terminal is already running the latest algorithm and does not need to download again; the cloud server terminates the deployment process. If the versions are different, the terminal requests the download of the lightweight model parameter package from the cloud server based on the comparison result. After the terminal downloads the data, data integrity is verified by calculating the hash value of the downloaded parameter package and comparing it with the verification value sent by the cloud server. If they match, it proves that no data corruption or tampering occurred during transmission. After successful verification, the lightweight model parameter package is written to the Flash storage area, completing the algorithm replacement and upgrade. The Flash writing process adopts an atomic write strategy, that is, it first writes to a temporary area, and after the write is completed and verified, it atomically switches the pointer to point to the new version model. This ensures that no abnormality such as power failure at any time during the upgrade process will cause the terminal to fall into an intermediate state where it cannot start. After the upgrade is completed, the terminal automatically loads the new version model and executes inference. The entire upgrade process is imperceptible to the user and does not interrupt the normal use of the brushing function. This distribution process is completed through over-the-air (OTA) upgrade, without the need for disassembly or wired flashing. It solves the technical problems of traditional deployment methods that rely on after-sales factory returns and cannot be remotely upgraded, allowing algorithm updates to be carried out continuously throughout the product lifecycle without any physical intervention.

[0036] After the terminal loads the lightweight model parameter package, it collects user brushing behavior data in real time during brushing and performs inference calculations based on the lightweight model parameter package to generate corresponding motion control commands to control the drive unit of the electric toothbrush to execute motion output. During the terminal-side inference execution, the main control chip of the electric toothbrush terminal collects six-axis IMU data and pressure sensor data at a fixed sampling rate. The six-axis IMU includes a three-axis accelerometer and a three-axis gyroscope. The accelerometer measures the linear acceleration change of the toothbrush in space, and the gyroscope measures the angular velocity change of the toothbrush around each axis. The fusion of the two can completely reflect the user's handheld toothbrush motion posture and spatial trajectory changes. The pressure sensor is installed at the connection between the brush head and the handle to sense the pressure change of the contact surface between the brush head and the teeth, reflecting the distribution of the user's brushing force. The main control chip synchronously samples the above sensors at a fixed sampling rate. The sampling rate is determined according to the frequency characteristics of the brushing action and is usually set between 50 Hz and 200 Hz, which can not only completely capture the dynamic changes of the brushing action, but also avoid the power consumption waste and storage burden caused by excessively high sampling rates. The main control chip performs sliding window segmentation and normalization preprocessing on the acquired raw data. Sliding window segmentation divides the continuously acquired time-series data into a fixed-length time window sequence. The window length is usually set to the number of sampling points that match the model input dimension. Adjacent windows can partially overlap to preserve temporal continuity. Normalization preprocessing maps the raw output values ​​of different sensors to a unified numerical range, eliminating the influence of differences in dimensions and ranges between accelerometers, gyroscopes, and pressure sensors on model inference. This ensures that the distribution of input data is consistent with the data distribution during the model training phase, guaranteeing the model's inference accuracy.

[0037] The preprocessed time-series data is input into a motion algorithm model loaded with the updated model parameter package for inference operations. The model runs in the fixed-point inference engine of the main control chip, using INT8 fixed-point weights and fixed-point activation values ​​to perform convolution operations and time-series feature extraction, ultimately outputting vibration frequency, amplitude, and motion trajectory parameters. The vibration frequency parameter determines the basic vibration period of the motor, the amplitude parameter determines the vibration intensity, and the motion trajectory parameter describes the desired motion path of the brush head in space. The main control chip generates a PWM control signal based on the above output parameters. The duty cycle of the PWM control signal corresponds to the amplitude parameter, and the frequency corresponds to the vibration frequency parameter. By changing the PWM output mode, the motor is driven to perform corresponding dynamic motion output according to the motion trajectory parameters output by the model. Because the model is quantized using INT8 fixed-point quantization, the inference process uses integer operations throughout. The single-frame trajectory inference time on the edge is less than 10ms, fully meeting the real-time requirements of oral motion control. Users cannot perceive any inference delay during brushing. At the same time, the power consumption of fixed-point inference is much lower than that of floating-point inference, and the power consumption increment is controlled at an extremely low level, not significantly affecting the battery life of the terminal. The terminal no longer executes a fixed vibration level, but instead dynamically matches the optimal motion parameters based on the user's real-time brushing motion characteristics, achieving a technological leap from fixed output to personalized dynamic control that adapts to the individual. For example, when the user brushes lightly, the model outputs a reduced amplitude to avoid excessive wear on tooth enamel; when the user brushes quickly, the model adjusts the motion trajectory parameters to maintain cleaning coverage; and when the user moves the brush head to different tooth areas, the model dynamically switches vibration modes based on changes in the spatial trajectory to adapt to the optimal cleaning needs of that area.

[0038] S30, the cloud server receives the operating data transmitted back by the electric toothbrush terminal through the communication link.

[0039] The electric toothbrush terminal caches operational data generated during brushing to local storage. This operational data includes user brushing trajectory, brushing force, movement speed, area distribution, and model inference bias data. User brushing trajectory data is derived from the attitude calculation results of a six-axis IMU, recording the brush head's movement path and dwell time in different areas of the oral cavity. Brushing force data is derived from the time-series sampling sequence of a pressure sensor, reflecting the pressure change curve applied by the user to the tooth surface. Movement speed data is calculated by differential analysis of the trajectory data, describing the speed of the brush head's movement at different stages. Area distribution data is obtained by statistically dividing the trajectory data into oral cavity regions, reflecting the user's allocation of cleaning time to each dental area. Model inference bias data records the difference between the model's inference output and the actual execution effect, used to evaluate the model's adaptability to real-world usage scenarios. This data is continuously written to the terminal's local storage buffer, which employs a cyclic overwrite strategy. When storage space is insufficient, the oldest data is overwritten first, ensuring that the latest data is always retained.

[0040] Data collection is not performed in real-time. Instead, the cached data is aggregated, compressed, and encrypted according to time windows and uploaded to the cloud server while the electric toothbrush terminal is connected to the cloud server and charging. The advantage of using charging status as the trigger condition for data upload is that the terminal obtains external power from the charging dock during charging, eliminating battery power constraints and allowing for safe data upload operations with higher power consumption. Furthermore, charging typically occurs during off-peak hours, so the upload operation does not consume system resources required for normal brushing, thus not affecting user experience. Data aggregation integrates data from multiple time windows in batches, reducing the number of upload requests and protocol overhead. Compression employs a compression algorithm suitable for time-series data, significantly reducing the amount of data transmitted while maintaining data fidelity. Encryption protects the privacy and security of user behavior data, preventing theft or tampering during transmission. This data upload strategy keeps the daily power consumption increase during data upload below 1%, having virtually no impact on the terminal's daily battery life. The runtime data feedback mechanism provides a real-world data source for model iteration, solving the fundamental flaw of traditional solutions where there is no data to iterate on. This allows model optimization to shift from relying on static laboratory data to relying on real user behavior data, making the iteration direction more aligned with actual usage needs.

[0041] S40, the cloud server incrementally fine-tunes the deployed motion algorithm model based on the returned running data, generates an updated model parameter package, and sends it back to the electric toothbrush terminal, so that the motion output of the electric toothbrush terminal is continuously optimized as user usage data accumulates.

[0042] The cloud server cleans and labels the returned operational data. The data cleaning stage removes abnormal samples and incomplete data, including missing data segments due to sensor malfunctions, invalid records accidentally triggered when the user is not brushing their teeth, and data packets damaged during transmission. The labeling stage categorizes samples based on data characteristics, such as classifying them into light-force, medium-force, and heavy-force users based on brushing force, and classifying them into different cleaning habit types based on brushing trajectory characteristics. After cleaning and labeling, an incremental training dataset is constructed. This dataset covers the real brushing behavior characteristics distribution of different user groups, and its size continuously grows as the data returned from the terminal accumulates, providing rich and diverse training materials for model fine-tuning.

[0043] During fine-tuning training, the cloud server loads the weights of the deployed model as initial weights, avoiding retraining from scratch. Instead, it makes local adjustments to the parameters based on the existing model. Some lower-level network layers are frozen, and only some higher-level network layers are updated. The lower-level network layers are responsible for extracting basic temporal features of brushing behavior, such as the basic shape of the motion pattern and the overall trend of force. These features are universal across users, and different users' brushing behaviors show high consistency in these lower-level features. Freezing the lower-level network layers preserves the ability to extract basic features and avoids the model forgetting learned universal features due to incremental data distribution bias. The higher-level network layers are responsible for mapping basic features to specific motion control parameters. This part is highly correlated with individual user habits; differences among different users in brushing force preferences, trajectory habits, speed rhythms, etc., are mainly reflected in the mapping relationship of higher-level features. By updating the parameters of the higher-level network layers in a targeted manner, the model gradually adapts to the behavioral characteristics of specific user groups and even individual users while maintaining its universality, achieving a continuous improvement in the model's personalization.

[0044] After fine-tuning the training, an effectiveness evaluation is conducted. Evaluation metrics include trajectory fitting accuracy, the degree of matching between motion output and actual brushing behavior, and the model's generalization performance on the validation set. Only when the fine-tuned model meets the preset standards in all evaluation metrics is it considered a valid update. After passing the evaluation, an updated model parameter package is generated. This updated model parameter package is also lightweighted to ensure it meets the hardware constraints of the terminal, assigned a new version number, and stored in the algorithm model version library. The updated model parameter package is then redeployed to the electric toothbrush terminal through the aforementioned OTA (Over-The-Air) delivery process. Upon receiving it, the terminal replaces the deployed model and continues to execute inference control during the brushing process. This forms a closed-loop lifecycle of deployment, use, feedback, iteration, and redeployment, allowing the motion output of the electric toothbrush terminal to continuously optimize with the accumulation of user data, with the hardware remaining unchanged while the algorithm continuously evolves. With each closed-loop cycle, the model's adaptation accuracy to individual user behavior characteristics improves. After multiple iterations, the motion algorithm running on the same model of terminal will exhibit different personalized characteristics due to the differences in their feedback data, achieving a truly personalized cleaning experience for each user.

[0045] This invention also proposes a deployment and iteration method for an electric toothbrush, which is executed by the electric toothbrush terminal. The electric toothbrush terminal acquires a lightweight model parameter package sent from the cloud. This lightweight model parameter package is generated by the cloud server obtaining the terminal information of the toothbrush terminal to obtain the model parameters of the corresponding motion algorithm based on the terminal information, and then performing lightweight processing on the model parameters. After loading the lightweight model parameter package, the terminal collects user brushing behavior data during brushing and generates corresponding motion control commands based on the lightweight model parameter package to control the drive unit of the electric toothbrush to perform motion output. Simultaneously, the operating data generated during brushing is sent to the cloud server, so that the cloud server can incrementally fine-tune the deployed motion algorithm model based on the returned operating data, generating an updated model parameter package. After receiving the updated model parameter package, the electric toothbrush terminal continues to execute motion control during brushing based on the updated model parameter package. During terminal-side execution, the main control chip collects six-axis IMU data and pressure sensor data at a fixed sampling rate. The collected raw data undergoes sliding window segmentation and normalization preprocessing. The preprocessed time-series data is then input into a motion algorithm model loaded with updated model parameter packages for inference calculations. The model outputs vibration frequency, amplitude, and motion trajectory parameters. The main control chip generates a PWM control signal based on these output parameters to drive the motor to perform dynamic motion output. The above terminal-side execution process coordinates with the corresponding terminal-side steps in the cloud-side method, forming a complete closed-loop deployment and iteration system. The electric toothbrush terminal transmits the operational data generated during brushing back to the cloud server as follows: the terminal caches the operational data generated during brushing to local storage. When the electric toothbrush terminal establishes a connection with the cloud server and is charging, the cached data is aggregated, compressed, and encrypted according to a time window before being uploaded to the cloud server. This transmission method concentrates the power consumption of data upload during the charging period, minimizing the impact on the terminal's battery life while ensuring the security and privacy protection of user data transmission.

[0046] Figure 2 This is a schematic diagram of the module structure of the cloud server of the present invention; This invention also proposes a cloud server, including a memory, a processor, and a computer program stored in the memory and executable on the processor. The computer program is configured to implement the steps performed by the cloud server in the above-described deployment and iteration method for the electric toothbrush. The cloud server, as a computing center, undertakes functions such as acquiring and lightweighting model parameters, managing model parameter package versions, remote distribution control, receiving and cleaning returned data, incremental fine-tuning training, and generating and redistributing updated model parameter packages. Its hardware configuration meets the computing power and storage requirements for parallel access and batch deployment of large-scale terminal devices, supports differentiated model version management for multiple terminal models, and the execution of canary release strategies, ensuring the controllability and rollback capability of the deployment process.

[0047] Figure 3 This is a schematic diagram of the module structure of the electric toothbrush terminal of the present invention.

[0048] This invention also proposes an electric toothbrush terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor. The computer program is configured to implement the steps performed by the electric toothbrush terminal in the aforementioned deployment and iteration method of the electric toothbrush. The electric toothbrush terminal's memory includes a Flash storage area for storing lightweight model parameter packages and cached runtime data. The processor is a low-power main control chip that supports fixed-point inference operations and has sufficient computing power to complete model inference of a single frame of time-series data within 10ms. The terminal establishes a bidirectional data transmission connection with a cloud server via a BLE Bluetooth communication module to receive model parameter packages and upload runtime data. The sensor module includes a six-axis IMU and a pressure sensor for real-time acquisition of user brushing behavior data. The drive unit is connected to the processor, receives PWM control signals generated by the processor, and drives the motor to perform corresponding motion outputs.

[0049] This invention generates a lightweight model parameter package with a compression rate of no less than 70% by performing structured pruning and INT8 quantization on model parameters, making it suitable for low-power, low-computing-power terminals. After the lightweight model parameter package is remotely sent to the terminal via a communication link, the terminal loads the model and collects user brushing behavior data in real time during brushing for inference calculations, dynamically generating vibration frequency, amplitude, and motion trajectory control commands to drive the output unit. The terminal sends the running data back to the cloud server, which incrementally fine-tunes the deployed model based on the returned data, generates an updated model parameter package, and sends it down again, forming a closed loop of deployment, use, feedback, iteration, and redeployment. This allows the motion output to be continuously optimized as user data accumulates, achieving personalized cleaning control with unchanged hardware and continuously evolving algorithms. This invention establishes for the first time a standardized pipeline from closed-loop training in the laboratory to lightweight deployment on the edge, directly transforming the high-precision algorithm obtained from training into intelligent control capabilities usable in the product. A unique INT8 quantization and pruning compression solution for electric toothbrush terminals adapts to ultra-low computing power embedded terminals with almost no loss of trajectory fitting accuracy, solving the industry pain point that artificial intelligence models cannot be implemented in small home appliances. The OTA remote dynamic algorithm upgrade system breaks the traditional fixed firmware mode of electric toothbrushes, supporting wireless iterative upgrades of motion algorithms, allowing the hardware to remain unchanged while the algorithm continuously evolves. A closed-loop deployment and iteration mechanism driven by real user data uses massive amounts of real user behavior to back-optimize the model, making the algorithm more accurate and user-friendly with use. Real-time AI dynamic motion output on the device side means the terminal no longer executes fixed speeds, but dynamically matches the optimal brushing motion parameters based on real-time model inference of user actions, achieving a personalized cleaning experience for each individual. The same hardware can be adapted to different user habits through different deployment algorithms, greatly reducing hardware mold and R&D costs. Fully automated cloud deployment and wireless upgrades require no after-sales intervention, resulting in extremely low industrialization costs.

[0050] The above description is only a part of the embodiments of the present invention and does not limit the patent scope of the present invention. All equivalent structural transformations made under the technical concept of the present invention using the contents of the present invention specification and drawings, or direct / indirect applications in other related technical fields, are included within the patent protection scope of the present invention.

Claims

1. A method for deploying and iterating an electric toothbrush, characterized in that, The method is based on a cloud server and an electric toothbrush terminal; the method includes the following steps: The terminal information of the toothbrush terminal is obtained, and the model parameters of the corresponding motion algorithm are obtained based on the terminal information of the toothbrush terminal. The model parameters are then processed to generate a lightweight model parameter package adapted to the electric toothbrush terminal. The lightweight model parameter package is sent to the electric toothbrush terminal so that the electric toothbrush terminal loads the lightweight model parameter package, collects user brushing behavior data during brushing, and generates corresponding motion control commands based on the lightweight model parameter package to control the drive unit of the electric toothbrush to perform motion output and output the running data generated during brushing. Receive the operating data transmitted back by the electric toothbrush terminal through the communication link; The cloud server incrementally fine-tunes the deployed motion algorithm model based on the returned running data, generates an updated model parameter package, and sends it back to the electric toothbrush terminal so that the motion output of the electric toothbrush terminal is continuously optimized as user usage data accumulates.

2. The method according to claim 1, characterized in that, The cloud server performs lightweight processing on the model parameters, including: The original model parameters are pruned in a structured manner to remove redundant convolutional kernels and invalid weights; The pruned model parameters are quantized using INT8 to convert floating-point weights into fixed-point integer weights. If the accuracy loss exceeds a preset threshold when the fixed-point integer weights are used for inference verification, the pruning ratio is adjusted and the process is repeated. The overall compression rate of the model parameter package after lightweight processing is no less than 70%.

3. The method according to claim 2, characterized in that, The structured pruning is based on the importance score of the convolution kernel, and the convolution kernels with scores below the threshold are removed first; the INT8 quantization adopts a layer-by-layer quantization method, and the quantization scale factor is determined for the weights and activation values ​​of each layer.

4. The method according to claim 1, characterized in that, The cloud server sends the lightweight model parameter package to the electric toothbrush terminal via a communication link, including: The electric toothbrush terminal establishes an encrypted connection with the cloud server via a BLE Bluetooth communication link. The cloud server sends the version information and verification value of the model parameter package to be deployed to the electric toothbrush terminal; After comparing the electric toothbrush terminal with the local current version, it requests the lightweight model parameter package from the cloud server based on the comparison result. After the electric toothbrush terminal downloads the data, it verifies the data integrity, writes the lightweight model parameter package into the Flash storage area, and completes the algorithm replacement and upgrade. The distribution is accomplished via over-the-air (OTA) updates.

5. The method according to claim 1, characterized in that, The cloud server performs incremental fine-tuning of the deployed motion algorithm model based on the returned runtime data, including: The cloud server cleans and labels the returned running data to construct an incremental training dataset; Load the deployed model weights as initial weights; The model's lower-level network layers are frozen, and parameters are updated only for some higher-level network layers. After fine-tuning the training, the effect is evaluated, and an updated model parameter package is generated and stored in the algorithm model version library.

6. A method for deploying and iterating an electric toothbrush, characterized in that, The method is executed by an electric toothbrush terminal and includes: Obtain a lightweight model parameter package sent from the cloud; the lightweight model parameter package is generated by the cloud server obtaining the terminal information of the toothbrush terminal, obtaining the model parameters of the corresponding motion algorithm based on the terminal information of the toothbrush terminal, and performing lightweight processing on the model parameters. The lightweight model parameter package is loaded, user brushing behavior data is collected during brushing, and corresponding motion control commands are generated based on the lightweight model parameter package to control the drive unit of the electric toothbrush to perform motion output, and the running data generated during brushing is sent to the cloud server so that the cloud server can incrementally fine-tune the deployed motion algorithm model based on the returned running data and generate an updated model parameter package.

7. The method according to claim 6, characterized in that, Based on the updated model parameter package, the electric toothbrush terminal performs the following steps during brushing: the main control chip of the electric toothbrush terminal collects six-axis IMU data and pressure sensor data at a fixed sampling rate; The collected raw data is preprocessed by sliding window segmentation and normalization; The preprocessed time series data is input into the motion algorithm model loaded with the updated model parameter package, and the vibration frequency, amplitude and motion trajectory parameters are output. The main control chip generates a PWM control signal based on the output parameters, which drives the motor to perform dynamic motion output.

8. The method according to claim 7, characterized in that, The electric toothbrush terminal transmits operational data generated during brushing to the cloud server via a communication link, including: The electric toothbrush terminal caches the operation data generated during brushing to local storage. The operation data includes the user's brushing trajectory, brushing force, movement speed, area distribution, and model inference bias data. When the electric toothbrush terminal establishes a connection with the cloud server and is in a charging state, the cached data is aggregated, compressed, encrypted, and then uploaded to the cloud server according to the time window.

9. A cloud server, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the deployment and iteration method of the electric toothbrush as claimed in any one of claims 1 to 5.

10. An electric toothbrush terminal, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the deployment and iteration method of the electric toothbrush as claimed in any one of claims 6 to 8.