A power ratio real-time self-adaptive control method, system, device and storage medium combining moment sensing and heart rate collection of a wearable device

By combining torque sensing and heart rate acquisition to achieve adaptive control of the assist ratio, the assist ratio is dynamically adjusted, solving the problem that electric bicycles cannot sense the user's physiological state. This improves safety and stability, and adapts to various scenarios and individual differences.

CN123169690APending Publication Date: 2026-11-27SHENZHEN YIWOKE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611654166.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-23
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing electric bicycle control systems cannot sense the user's physiological state in real time, resulting in a serious disconnect between the assist matching and the user's physical condition, posing a riding safety hazard.

Method used

By combining torque sensing and wearable device heart rate data collection, torque and heart rate information during cycling can be obtained in real time. By comparing the results with cycling risk level standards, the assist ratio can be dynamically adjusted to build a dynamic risk control closed loop, adapting to different cycling scenarios and individual user characteristics.

Benefits of technology

It improves the dynamic safety and stability of assisted cycling, avoiding unstable control and physical exhaustion under high-risk and high-fatigue conditions, and provides personalized safety protection and cycling experience.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The application discloses a power ratio real-time self-adaptive control method, system, device and storage medium combining torque sensing and heart rate collection of a wearable device, wherein the method comprises the following steps: acquiring a real-time torque mechanical signal and heart rate collection information, comparing the real-time torque mechanical signal and heart rate collection information with a cycling risk level standard to determine a current cycling risk level; if the current cycling risk level is higher than a warning risk level, adjusting a power ratio based on the current cycling risk level of a user; determining the cycling risk level again after a first preset time interval, and if the cycling risk level after the first preset time interval is still higher than the warning risk level, adjusting the power ratio again until the cycling risk level is lower than the warning risk level. The method can continuously track the physical changes and operation load changes of a user in a cycling process, dynamically match a safe and reasonable power output state, and improve the dynamic safety and cycling state stability of the cycling process of a power-assisted bicycle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electric bicycles, and more particularly to a method, system, device, and storage medium for real-time adaptive control of the assist ratio that combines torque sensing and heart rate acquisition from a wearable device. Background Technology

[0002] As a mainstream green short-distance travel mode, electric-assist bicycles are widely used in daily commuting and leisure riding. The intelligence and safety of the assist control system directly determine the user's riding experience and travel safety. Current mainstream electric-assist bicycle control solutions generally adopt a control logic of a single pedaling torque sensor combined with fixed-gear assist. They rely solely on collecting the user's mechanical pedaling force to determine the assist output demand, and can only passively follow and adjust to the user's external operating behavior, which has fundamental technical flaws. Existing technology completely ignores the real-time changes in the user's physiological state during riding, and cannot perceive the user's riding fatigue level, real-time physical load, and riding stress state. It outputs assist solely based on mechanical pedaling signals, resulting in a serious disconnect between assist matching and the user's actual physical condition.

[0003] Therefore, existing technologies still need improvement. Summary of the Invention

[0004] The purpose of this application is to adaptively adjust the assist ratio to improve the assist stability of the electric bicycle.

[0005] The above-mentioned technical objective of this application is achieved through the following technical solution: A real-time adaptive control method for assist ratio combining torque sensing and wearable device heart rate acquisition, comprising: Real-time torque mechanical signals and heart rate data are acquired and compared with cycling risk level standards to determine the current cycling risk level. If the current riding risk level is higher than the warning risk level, the assist ratio will be adjusted based on the user's current riding risk level. The riding risk level is determined again after a first preset time interval. If the riding risk level is still higher than the warning risk level after the first preset time interval, the assist ratio is adjusted again until the riding risk level is lower than the warning risk level.

[0006] The above-mentioned solution in this application simultaneously collects real-time torque mechanical signals during cycling and heart rate information collected by wearable devices. It compares the dual-dimensional sensor data with preset cycling risk level standards to intelligently determine the real-time cycling risk level corresponding to the user's current cycling state. When the current cycling risk level is determined to be higher than the system's preset warning risk level, the system matches the corresponding assist ratio adjustment strategy according to the user's real-time cycling risk level gradient to achieve dynamic correction of the assist parameters. At the same time, a fixed first preset time is set as the detection cycle, and the current cycling risk level is periodically re-detected and updated. If the cycling risk level is continuously detected to be higher than the warning threshold, the assist ratio parameters are continuously iterated and adjusted until the cycling risk level falls back to within the safe warning range. This overall closed-loop control technology solution changes the traditional single control mode of electric bicycles, which relies on fixed assist parameters and passive adjustment based solely on mechanical signals. It constructs a dynamic risk control closed loop based on the joint judgment of human physiological state and mechanical pedaling state. It can continuously track changes in the user's physical strength and operational load during the ride, dynamically match a safe and reasonable assist output state, and effectively avoid safety hazards such as unstable control, speed loss, and physical exhaustion caused by continuous high-intensity riding under high-risk and high-fatigue conditions. It achieves continuous suppression and dynamic elimination of riding risks, significantly improves the dynamic safety and riding stability of electric bicycles, and ensures that the assist output throughout the ride matches the user's real-time physical capacity.

[0007] Optionally, in the real-time adaptive control method for the assist ratio combining torque sensing and wearable device heart rate data acquisition, the step of determining the current cycling risk level includes: Obtain cycling condition information during the cycling process to determine the current cycling scenario; Based on the current cycling conditions, determine the cycling risk level standard for the current cycling scenario.

[0008] The proposed solution collects real-time riding condition information corresponding to vehicle operation during the riding risk level determination process. Based on different riding conditions, it differentiates and calls upon the riding risk level standards specific to each condition, achieving precise adaptation and dynamic matching between the risk determination standards and the real-time riding scenario. This solution overcomes the technical limitations of traditional power assist control systems that use a unified and fixed risk determination standard. It can adaptively match the corresponding risk assessment threshold system for various differentiated riding scenarios, such as steady riding, riding on bumpy roads, riding uphill, riding around corners, and low-speed riding with stops and starts. This ensures that the risk identification logic under different conditions aligns with actual riding safety needs, effectively solving the problem of misjudgment and missed judgment that easily occurs with a single determination standard in complex and changing riding scenarios. It significantly improves the scenario adaptability and accuracy of riding risk level identification, providing a precise and reliable scenario-based judgment basis for subsequent adaptive adjustment of the power assist ratio, and fundamentally improving the overall vehicle adaptive control accuracy and multi-scenario compatibility.

[0009] Optionally, in the real-time adaptive control method for the assist ratio combining torque sensing and wearable device heart rate data acquisition, the step of determining the current cycling risk level further includes: Obtain user identity information, retrieve historical cycling data corresponding to the user identity information, and update the cycling risk level standard.

[0010] The proposed solution, by simultaneously acquiring the user's identity information during the cycling risk level assessment process, retrieving stored historical cycling data, and combining this data with the user's long-term accumulated pedaling habits, heart rate variation patterns, physical endurance characteristics, and fatigue patterns, personalizes and dynamically updates the system's standardized cycling risk level criteria. This solution abandons the traditional fixed control mode of universally applicable parameters for power-assisted devices. It dynamically adjusts the risk assessment threshold based on different users' physical qualities, cycling proficiency, and fitness levels, effectively avoiding the bias of insufficient protection for users with weaker physical abilities and over-adjustment for high-level users by the universal standard. This significantly improves the individualized accuracy of cycling risk identification, ensuring that the risk assessment logic and assist adjustment strategy perfectly match the individual user's cycling characteristics and fitness level. It accurately identifies cycling safety hazards for different users while maximizing the matching of personalized cycling needs. While improving the accuracy of cycling safety protection, it significantly optimizes the personalized cycling experience for different users, achieving intelligent safety management based on individual user characteristics.

[0011] Optionally, the real-time adaptive control method for the assist ratio combining torque sensing and wearable device heart rate acquisition further includes: The system acquires user posture information and, based on this information and the torque mechanical signal, filters out invalid heart rate fluctuations.

[0012] The proposed solution collects real-time human posture information during cycling, combined with synchronously collected pedaling torque mechanical signals. Based on the user's posture changes and the characteristics of cycling machinery, it performs layered filtering and intelligent identification of the raw heart rate data collected by the wearable device. This accurately identifies and filters out invalid heart rate fluctuations caused by forward leaning, tense arm muscles, road vibrations, and limb swaying during cycling, retaining only valid heart rate signals that accurately reflect the user's exercise load and fatigue level for risk assessment and assist ratio adjustment. This solution specifically addresses the industry's technical pain points in cycling scenarios, such as wearable heart rate collection being susceptible to mechanical vibration and human posture interference, leading to data jitter and distortion. It effectively eliminates various false heart rate fluctuations that interfere with the control system, completely avoiding problems such as frequent incorrect assist ratio adjustments, fluctuating power output, and distorted cycling sensations caused by distorted heart rate data. This significantly improves the authenticity and reliability of the heart rate data, ensuring the stability and accuracy of adaptive assist control in all cycling scenarios. By optimizing the assist control logic at the signal preprocessing level, it comprehensively improves vehicle handling smoothness and cycling stability under complex cycling conditions.

[0013] Optionally, in the real-time adaptive control method for the assist ratio combining torque sensing and wearable device heart rate data acquisition, if the current riding risk level is higher than the warning risk level, the step of adjusting the assist ratio based on the user's current riding risk level includes: Acquire the user's initial heart rate information and initial torque mechanical signal, and calculate the torque increment and heart rate increase within the second preset time interval; If the torque increment and heart rate increase are not synchronized within the second preset time period, the assist ratio will not be adjusted.

[0014] The aforementioned solution in this application, upon triggering the assist ratio adjustment, pre-acquires the user's initial heart rate and initial torque mechanical signal. Using a second preset time as a fixed statistical period, it quantitatively calculates the increment of the user's pedaling torque and the rate of change of heart rate data within the statistical period. By comparing the degree of synchronization between the torque change trend and the heart rate change trend, it determines whether the user's mechanical operating load and physiological physical load are changing synchronously. If the torque increment change and the heart rate rate increase change are not synchronized, it determines that the current heart rate fluctuation is not caused by real exercise fatigue, locks it as an abnormal interference signal, and the control system blocks the assist ratio adjustment command, not executing the assist parameter adjustment action. This solution can accurately distinguish between real physical load increase and pseudo heart rate fluctuations caused by external interference, reduce blind assist adjustments based on abnormal data, significantly improve the rigor and accuracy of assist adjustment logic, avoid power sudden changes and riding jerks caused by ineffective assist adjustments, ensure that the assist ratio adjustment always matches the user's real riding load and physical change state, and continuously improve the stability of the vehicle's power output and riding comfort.

[0015] Optionally, the real-time adaptive control method for the assist ratio combining torque sensing and wearable device heart rate acquisition further includes the step of adjusting the assist ratio based on the user's current riding risk level if the current riding risk level is higher than the warning risk level: If the torque is interrupted momentarily, but the user's heart rate information does not increase momentarily, the pedaling action is deemed invalid, and the assist ratio is not adjusted accordingly.

[0016] The aforementioned solution in this application monitors the continuous changes in pedaling torque and the user's real-time heart rate in real time. When it detects momentary interruptions, brief periods of suspension, or intermittent fluctuations in pedaling torque, it simultaneously checks whether the user's heart rate data shows a synchronous increase in load. If the torque is momentarily interrupted and the heart rate does not show a corresponding increase in fatigue, it accurately determines that the current momentary torque fluctuation is an invalid pedaling action, locking in such actions as not requiring actual pedaling force. The control system then blocks the corresponding assist adjustment requests for invalid pedaling and does not perform assist ratio parameter adjustments. This solution effectively filters out erroneous assist output caused by invalid pedaling actions, reducing the unpleasant riding experience caused by invalid assist, such as vehicle swaying, abrupt power delivery, and vehicle instability. It also reduces the system computational losses and energy waste caused by frequent invalid adjustments, ensuring that the assist output only responds to the user's actual and effective pedaling force. This significantly improves the accuracy of assist control and riding stability under complex road conditions, continuously optimizing riding smoothness in all scenarios.

[0017] Optionally, the real-time adaptive control method for the assist ratio combining torque sensing and wearable device heart rate acquisition further includes: The system obtains the user's cumulative cycling time and, based on the user's cumulative cycling time and cumulative heart rate, identifies the user's fatigue state and adjusts the cycling risk level standard accordingly.

[0018] The proposed solution records the user's continuous cumulative riding time in real time and simultaneously collects heart rate changes during the ride. Combining these two parameters—cumulative riding time and cumulative heart rate load—it comprehensively identifies the user's gradually accumulating continuous fatigue during long-distance riding. Based on the user's real-time accumulated fatigue level, it dynamically adjusts and updates the riding risk level standard, achieving adaptive dynamic adjustment of the risk assessment threshold according to the user's fatigue state. This solution overcomes the limitations of traditional methods that rely solely on instantaneous heart rate to determine fatigue. It accurately identifies the slowly accumulating chronic fatigue and physical exhaustion during long-distance riding, solving the problems of delayed instantaneous heart rate recognition and untimely fatigue risk prediction. By dynamically adjusting the risk control standard corresponding to the fatigue state, it intervenes early to optimize assistance and ensure safety. It matches a more stable and gentle assistance output strategy based on the accumulated fatigue level, effectively reducing the user's physical exertion during long-distance riding and avoiding problems such as slowed control response, decreased riding stability, and increased safety risks caused by fatigue accumulation. This significantly improves safety and riding comfort during long-distance riding, and perfects a comprehensive, all-time, all-condition human-bike-driver collaborative safety protection system.

[0019] In another aspect, this application discloses a real-time adaptive control system for the assist ratio that combines torque sensing and wearable device heart rate acquisition, wherein: The cycling risk level determination module is used to acquire real-time torque mechanical signals and heart rate data, compare them with cycling risk level standards, and determine the current cycling risk level. The assist ratio adjustment module is used to adjust the assist ratio based on the user's current riding risk level if the current riding risk level is higher than the warning risk level. The assist ratio adjustment module is also used to re-determine the riding risk level after a first preset time interval. If the riding risk level after the first preset time interval is still higher than the warning risk level, the assist ratio is adjusted again until the riding risk level is lower than the warning risk level.

[0020] The above-mentioned solution in this application simultaneously collects real-time torque mechanical signals during cycling and heart rate information collected by wearable devices. It compares the dual-dimensional sensor data with preset cycling risk level standards to intelligently determine the real-time cycling risk level corresponding to the user's current cycling state. When the current cycling risk level is determined to be higher than the system's preset warning risk level, the system matches the corresponding assist ratio adjustment strategy according to the user's real-time cycling risk level gradient to achieve dynamic correction of the assist parameters. At the same time, a fixed first preset time is set as the detection cycle, and the current cycling risk level is periodically re-detected and updated. If the cycling risk level is continuously detected to be higher than the warning threshold, the assist ratio parameters are continuously iterated and adjusted until the cycling risk level falls back to within the safe warning range. This overall closed-loop control technology solution changes the traditional single control mode of electric bicycles, which relies on fixed assist parameters and passive adjustment based solely on mechanical signals. It constructs a dynamic risk control closed loop based on the joint judgment of human physiological state and mechanical pedaling state. It can continuously track changes in the user's physical strength and operational load during the ride, dynamically match a safe and reasonable assist output state, and effectively avoid safety hazards such as unstable control, speed loss, and physical exhaustion caused by continuous high-intensity riding under high-risk and high-fatigue conditions. It achieves continuous suppression and dynamic elimination of riding risks, significantly improves the dynamic safety and riding stability of electric bicycles, and ensures that the assist output throughout the ride matches the user's real-time physical capacity.

[0021] In another aspect, this application discloses an electronic device comprising a memory and a processor, the memory storing a computer program capable of being loaded by the processor and executing the real-time adaptive control method for the boost ratio combining torque sensing and wearable device heart rate acquisition as described above.

[0022] In another aspect, this application discloses a computer-readable storage medium storing a computer program capable of being loaded by a processor and executing the real-time adaptive control method for the assist ratio that combines torque sensing and wearable device heart rate acquisition as described above.

[0023] In summary, this application has at least one of the following beneficial effects: By simultaneously collecting real-time torque mechanical signals during cycling and heart rate information collected by wearable devices, the dual-dimensional sensor data is compared with preset cycling risk level standards to intelligently determine the real-time cycling risk level corresponding to the user's current cycling state. When the current cycling risk level is determined to be higher than the system's preset warning risk level, the system matches the corresponding assist ratio adjustment strategy according to the user's real-time cycling risk level gradient to achieve dynamic correction of the assist parameters. At the same time, a fixed first preset time is set as the detection cycle, and the current cycling risk level is periodically re-detected and updated. If the cycling risk level is continuously detected to be higher than the warning threshold, the assist ratio parameters are continuously iterated and adjusted until the cycling risk level falls back to within the safe warning range. This overall closed-loop control technology solution changes the traditional single control mode of electric bicycles, which relies on fixed assist parameters and passive adjustment based solely on mechanical signals. It constructs a dynamic risk control closed loop based on the joint judgment of human physiological state and mechanical pedaling state. It can continuously track changes in the user's physical strength and operational load during the ride, dynamically match a safe and reasonable assist output state, and effectively avoid safety hazards such as unstable control, speed loss, and physical exhaustion caused by continuous high-intensity riding under high-risk and high-fatigue conditions. It achieves continuous suppression and dynamic elimination of riding risks, greatly improves the dynamic safety and riding stability of electric bicycles, and ensures that the assist output throughout the ride is in line with the user's real-time physical endurance range. By collecting real-time riding condition information corresponding to vehicle operation during the riding risk level determination process, and differentially calling the riding risk level standard specific to each riding condition according to different riding conditions, this solution achieves accurate adaptation and dynamic matching between the risk determination standard and the real-time riding scenario. This solution breaks through the technical limitations of traditional power assist control systems that use a unified and fixed risk determination standard. It can adaptively match the corresponding risk assessment threshold system for various differentiated riding scenarios such as constant speed riding, riding on bumpy roads, riding uphill, riding around corners, and low-speed riding with start and stop. This ensures that the risk identification logic under different conditions aligns with actual riding safety needs, effectively solving the problem of risk misjudgment and omission that is prone to occur in complex and changing riding scenarios with a single determination standard. It significantly improves the scenario adaptability and determination accuracy of riding risk level identification, providing accurate and reliable scenario-based determination basis for subsequent adaptive adjustment of the power assist ratio, and fundamentally improving the overall vehicle adaptive control accuracy and multi-scenario compatibility. By synchronously acquiring the user's identity information during the cycling risk level assessment process, retrieving the corresponding user's historical cycling data, and combining this with the user's long-term accumulated pedaling habits, heart rate variation patterns, physical endurance characteristics, and fatigue patterns, the system's general standardized cycling risk level standards are personalized and dynamically updated. This solution abandons the traditional fixed control mode of universally applicable parameters for power-assisted devices. It can dynamically adjust the risk assessment threshold according to the different physical qualities, cycling proficiency, and physical fitness differences of different users, effectively avoiding the judgment bias of insufficient protection for users with weak physical fitness and over-adjustment for users with high physical fitness. It significantly improves the individual adaptation accuracy of cycling risk identification, making the risk assessment logic and power-assisted adjustment strategy perfectly match the individual user's cycling characteristics and physical fitness status. It can accurately identify cycling safety hazards for different users and maximize the matching of users' personalized cycling needs. While improving the accuracy of cycling safety protection, it significantly optimizes the personalized cycling experience for different users, realizing intelligent safety management based on individual user characteristics. Detailed Implementation

[0024] The following provides a further detailed description of this application.

[0025] This application discloses a real-time adaptive control method for assist ratio that combines torque sensing and wearable device heart rate acquisition, comprising: Real-time torque mechanical signals and heart rate data are acquired and compared with cycling risk level standards to determine the current cycling risk level. If the current riding risk level is higher than the warning risk level, the assist ratio will be adjusted based on the user's current riding risk level. The riding risk level is determined again after a first preset time interval. If the riding risk level is still higher than the warning risk level after the first preset time interval, the assist ratio is adjusted again until the riding risk level is lower than the warning risk level.

[0026] In this embodiment, the implementation process of real-time adaptive closed-loop control of the assist ratio is as follows: After the system is powered on, the torque sensing acquisition module and the wearable device heart rate acquisition module are started simultaneously. The system continuously collects mechanical data of the pedaling torque and physiological data of the human heart rate during the user's riding process at a fixed high-frequency sampling frequency, completing the real-time synchronous recording of the two basic data streams. The system internally stores multi-level riding risk level standards, covering gradient judgment standards such as normal safety level, first-level warning level, and second-level danger level. The real-time collected torque data and heart rate data are synchronously input into the risk judgment model. Through data feature comparison and analysis, the real-time riding risk level corresponding to the user's current riding state is comprehensively determined. The system presets a fixed warning risk level as a judgment threshold. When the current riding risk level is identified as higher than the preset warning risk level, the built-in assist ratio gradient adjustment rule is invoked. Based on the degree of risk, the corresponding assist ratio adjustment range is matched, automatically adjusting the vehicle's assist output ratio adaptively upward or downward to achieve dynamic correction of the assist parameters. The system sets a preset time as the periodic detection and iteration cycle. After each adjustment of the assist ratio, torque and heart rate data are collected and updated again at the corresponding preset interval to reassess the latest cycling risk level. If the updated risk level is still higher than the warning risk level, the assist ratio gradient adjustment operation is repeated to continuously optimize the assist output parameters, forming a closed-loop iterative control logic to continuously reduce the overall cycling risk. The detection and adjustment steps are repeated until the final determined cycling risk level falls back to or below the preset warning risk level, at which point the iterative adjustment stops, and the current stable assist state is maintained. Through continuous dynamic detection and closed-loop adjustment, real-time control of cycling risk and adaptive and precise matching of the assist ratio are achieved, stably ensuring cycling safety and riding experience.

[0027] In some possible embodiments of this application, the real-time adaptive control method for assist ratio combining torque sensing and wearable device heart rate acquisition includes the step of determining the current cycling risk level as follows: Obtain cycling condition information during the cycling process to determine the current cycling scenario; Based on the current cycling conditions, determine the cycling risk level standard for the current cycling scenario.

[0028] This implementation method describes the specific process for scenario-based differentiated risk level determination, designed to accurately adapt to the risk assessment needs of different riding conditions. The specific execution steps are as follows: Throughout the entire process of riding risk level determination, the system synchronously retrieves underlying vehicle operation data, collecting comprehensive riding condition information in real time, including vehicle speed, pedaling torque fluctuations, and changes in vehicle posture. It then accurately classifies and identifies riding scenarios using multi-dimensional condition feature parameters. Based on preset condition recognition logic, the system distinguishes and identifies the current riding scenario as a constant-speed, stable riding scenario, a bumpy road riding scenario, an uphill riding scenario, a cornering riding scenario, or a low-speed start-stop riding scenario. For each independent riding condition scenario, the system pre-stores a corresponding exclusive riding risk level standard. The risk threshold gradient and risk judgment weight for different conditions are set differently according to the scenario's safety characteristics, adapting to the risk occurrence patterns of various road conditions. After completing the identification of the current riding condition scenario, the system automatically retrieves the corresponding scenario-specific riding risk level standard, replacing the general risk judgment standard. Using the scenario-specific standard as a benchmark, combined with real-time torque data and heart rate data, it accurately determines the riding risk level. During the ride, the system continuously and dynamically monitors changes in operating conditions. When a change in riding scenario is detected, the corresponding risk level standard is updated in real time, achieving dynamic adaptation of the risk assessment benchmark. Throughout the process, a layered logic of first identifying the riding condition and then matching it with a dedicated assessment standard solves the problem that a single standard cannot adapt to complex riding scenarios. This ensures that the risk level assessment results are consistent with real-time road conditions and riding operation characteristics, providing accurate scenario-based data support for subsequent adaptive adjustment of the assist ratio, and guaranteeing the rationality and accuracy of assist control in multiple scenarios.

[0029] In some possible embodiments of this application, the real-time adaptive control method for assist ratio combining torque sensing and wearable device heart rate acquisition further includes the step of determining the current cycling risk level as follows: Obtain user identity information, retrieve historical cycling data corresponding to the user identity information, and update the cycling risk level standard.

[0030] This implementation method describes the specific process for updating the user's personalized risk level standard, used to achieve adaptive risk assessment. The specific execution steps are as follows: After the system activates the cycling control function, it first reads the user's identity information stored locally on the device or bound to the cloud, completing the identification and matching of the current cyclist. Based on the identified unique user identity, the system automatically retrieves all historical cycling data of the user stored in the database. The data includes personalized characteristic data such as the user's normal heart rate range, fatigue heart rate threshold, normal pedaling torque range, force exertion rhythm characteristics, physical endurance upper limit, and historical fatigue change patterns formed by long-term cycling. Combining the retrieved user's historical cycling data, for users with weak physical fitness and low endurance, the risk warning threshold is appropriately lowered to improve safety protection sensitivity. For users with good physical fitness and high cycling proficiency, the threshold range is appropriately optimized to avoid over-adjustment affecting the cycling experience. After completing the parameter correction, a personalized cycling risk level standard adapted to the current user's individual characteristics is generated, and the updated standard is used as the risk assessment benchmark for the entire cycling journey. During the ride, new riding data is continuously accumulated, the user's historical database is updated in real time, and personalized risk assessment standards are continuously optimized. This enables the risk level standards to be dynamically and adaptively optimized according to the user's riding habits and physical condition, breaking away from the limitations of fixed general parameters and improving the accuracy and adaptability of individual user riding risk assessment.

[0031] In some possible embodiments of this application, the real-time adaptive control method for the assist ratio combining torque sensing and wearable device heart rate acquisition further includes: The system acquires user posture information and, based on this information and the torque mechanical signal, filters out invalid heart rate fluctuations.

[0032] This implementation method describes the specific process of filtering and calibrating cycling heart rate signals to eliminate invalid heart rate fluctuations caused by cycling interference. The specific execution steps are as follows: While collecting heart rate data from the wearable device, the system simultaneously acquires the user's cycling posture information and pedaling torque mechanical information. Posture information includes parameters such as the user's forward lean angle, arm tension, limb sway amplitude, and vehicle vibration frequency and amplitude. Torque information includes operating condition parameters such as the stability, continuity, and fluctuation amplitude of pedaling torque. Combining posture change characteristics and torque operating condition characteristics, the raw heart rate data is subjected to layered filtering and intelligent identification. According to preset interference identification rules, effective and invalid heart rate fluctuations are accurately distinguished. High-frequency jittery heart rate fluctuations caused by body posture adjustments, arm muscle tension, road bumps and vibrations, and small limb swaying during cycling are marked as invalid data. Heart rate change data that accurately matches the user's pedaling load changes and reflects the degree of physical fatigue is marked as valid data. The system automatically filters out all invalid heart rate fluctuation information, retaining only the filtered valid heart rate data, which is then transmitted to the subsequent risk assessment module and assist ratio adjustment module for calculation. The system dynamically filters and calibrates heart rate data in real time throughout the entire process, and updates the filtering rules synchronously when cycling conditions change. It adapts to the signal filtering needs of various scenarios such as bumps, turns, starts and stops, and constant speed, reducing the problem of incorrect adjustment of assist caused by lost heart rate data and ensuring stable and accurate assist control throughout the entire process.

[0033] Optionally, in the real-time adaptive control method for the assist ratio combining torque sensing and wearable device heart rate data acquisition, if the current riding risk level is higher than the warning risk level, the step of adjusting the assist ratio based on the user's current riding risk level includes: Acquire the user's initial heart rate information and initial torque mechanical signal, and calculate the torque increment and heart rate increase within the second preset time interval; If the torque increment and heart rate increase are not synchronized within the second preset time period, the assist ratio will not be adjusted.

[0034] This implementation method describes the specific process for synchronously verifying torque and heart rate to prevent erroneous power assist adjustments. The specific execution steps are as follows: When the system detects that the current cycling risk level has reached the warning threshold and is about to trigger a power assist adjustment, it first locks the current moment as the initial data acquisition node, collecting and recording the user's current initial heart rate information and initial torque mechanical signal as benchmark reference data. The system starts a second preset time period for statistical timing, continuously collecting torque and heart rate data at high frequency within the complete preset time period, and recording the dynamic changes of the two types of data in real time. After the statistical period ends, the system quantitatively calculates the overall change increment of the user's pedaling torque during that time period through differential calculation, and simultaneously calculates the real-time change rate of the corresponding heart rate data, accurately quantifying the magnitude and rate of change of mechanical operating load and physiological physical load. The system has built-in synchronization judgment rules, comparing the consistency of the torque increment change trend and the heart rate increase change trend to determine whether the change states of the two types of data are synchronously matched. If the calculation results show that the torque increment is stable without significant increase, and only the heart rate data fluctuates abnormally, or if the torque change and heart rate change trends are completely contradictory, then the current heart rate fluctuation is determined to be an abnormal signal caused by external interference, not genuine user fatigue. The system immediately locks the current adjustment command as invalid, actively blocks the current assist ratio adjustment operation, and does not perform any assist parameter adjustments. Only when the torque increment and heart rate increase increase synchronously and the load change is perfectly matched will the normal assist ratio adaptive adjustment process be triggered. Through a dual-signal synchronous verification mechanism, blind assist adjustment caused by false heart rate fluctuations is reduced, ensuring the effectiveness and rationality of assist adjustment.

[0035] Optionally, the real-time adaptive control method for the assist ratio combining torque sensing and wearable device heart rate acquisition further includes the step of adjusting the assist ratio based on the user's current riding risk level if the current riding risk level is higher than the warning risk level: If the torque is interrupted momentarily, but the user's heart rate information does not increase momentarily, the pedaling action is deemed invalid, and the assist ratio is not adjusted accordingly.

[0036] This implementation method describes the specific process for identifying and blocking pedaling ineffective actions, with the following steps: During cycling, the system continuously monitors the temporal changes in pedaling torque in real time, while simultaneously collecting real-time heart rate data from the user, continuously performing dual-data linkage verification and judgment. The system relies on torque sensor data to identify the pedal's operating status, accurately capturing special working condition characteristics such as momentary interruptions in torque, brief pedal suspension, and intermittent fluctuations in pedaling action, thus identifying suspected ineffective pedaling action scenarios. When a momentary interruption in pedaling torque is detected, the system immediately verifies the user's heart rate data for the same period, determining whether there is a corresponding instantaneous increase in heart rate due to load. If, at the same time as the momentary interruption in torque, the user's heart rate data remains stable without any fatigue-related increase, it indicates that the torque fluctuation did not generate actual cycling load, and the user did not perform effective force exertion. The system accurately determines that this action is an ineffective pedaling action caused by road bumps, crossing obstacles, or posture adjustments. After the determination is completed, the system actively blocks the assist adjustment request corresponding to this ineffective pedaling action, locking the assist parameters unchanged and not performing any assist ratio adjustment operation. If the torque output remains stable and the heart rate changes synchronously and reasonably, it is considered a valid pedaling action, and the assist adjustment logic responds normally. Throughout the process, through dual verification of torque continuity and heart rate load, various invalid pedaling conditions are accurately filtered out, reducing vehicle lurching and riding instability caused by invalid assist output, and ensuring that the assist output only matches the user's actual force application needs.

[0037] Optionally, the real-time adaptive control method for the assist ratio combining torque sensing and wearable device heart rate acquisition further includes: The system obtains the user's cumulative cycling time and, based on the user's cumulative cycling time and cumulative heart rate, identifies the user's fatigue state and adjusts the cycling risk level standard accordingly.

[0038] This implementation method describes the specific process for dynamically correcting the risk level standard based on cumulative fatigue. The specific steps are as follows: After the system starts cycling, it continuously times and records the user's cumulative cycling time in real time, while simultaneously accumulating and recording heart rate data throughout the journey, constructing a dual fatigue assessment system based on both duration and heart rate load. The system has a built-in heart rate load accumulation algorithm that performs weighted accumulation calculations on the heart rate data throughout the journey. Combining parameters such as real-time cycling time, average heart rate value, and duration of heart rate exceeding the standard, it comprehensively calculates the user's current cumulative heart rate load value, accurately quantifying the degree of continuous fatigue gradually generated during the long-distance cycling process. The system presets multiple levels of cumulative fatigue judgment thresholds, classifying into three levels: mild cumulative fatigue, moderate cumulative fatigue, and severe cumulative fatigue based on the real-time updated cumulative cycling time and cumulative heart rate load values. Based on the user's real-time corresponding cumulative fatigue level, the system dynamically corrects and updates the built-in cycling risk level standard, progressively lowering the risk warning threshold under fatigue conditions, improving the sensitivity of risk judgment under fatigue cycling conditions, and achieving adaptive adjustment of the risk assessment standard according to the user's fatigue state. The longer the ride, the higher the cumulative heart rate load, and the stricter the risk level control standards. The system identifies hidden fatigue risks in advance and simultaneously matches corresponding assistance adjustment strategies, gradually optimizing the assistance output state to reduce the user's pedaling load. Throughout the ride, cumulative fatigue data and corresponding risk standards are continuously iterated and updated to compensate for the lag in instantaneous heart rate assessment, enabling early prediction and proactive protection against fatigue risks during long-distance riding, and continuously ensuring the safety and comfort of long-duration rides.

[0039] In its implementation, this application addresses the pain points of traditional electric bicycles / e-bikes, such as fixed assist on slopes, sudden increases in heart rate uphill, strenuous pedaling, lack of assist return on downhill, and a bumpy, jerky ride. It adapts to specific riding conditions by establishing a linkage control logic between heart rate fatigue and changes in pedaling torque. During uphill riding, it monitors the user's continuous pedaling torque and heart rate rise rate in real time. If the heart rate rises rapidly and physical load surges, it automatically amplifies the assist ratio in a gradient manner to prevent user fatigue from high-intensity pedaling. During steady riding on flat roads, it matches a low-noise, gentle assist based on a stable heart rate. During downhill riding or gliding without pedaling torque, it actively and quickly reduces assist and minimizes excess power output. This completely solves the problems of fatigue, abrupt power delivery, and harsh riding feel associated with traditional e-bikes on slopes, comprehensively optimizing the riding experience across all scenarios: climbing, flat roads, and downhill.

[0040] In its implementation, this application's solution breaks away from the traditional single-mode approach of relying solely on speed and posture detection for cycling safety, introducing wearable heart rate physiological signals as a basis for hazard prediction. During cycling, if the system detects that the user's pedaling torque is stable and there are no operational errors, but the heart rate experiences a sudden surge or abnormal fluctuation, distinct from the normal increase in heart rate due to exercise fatigue, it determines that the user has encountered a sudden road condition, such as a sudden obstacle, oncoming traffic from the side, road bumps, or sudden fright, triggering the safety protection logic: actively and slightly reducing the assist power, limiting instantaneous acceleration output, and optimizing the smoothness of power output to avoid the risk of the user accidentally twisting the throttle or pressing the pedals in a panic, leading to the risk of running away or losing control. This proactively avoids cycling safety accidents from the perspective of human physiological reactions.

[0041] In some possible embodiments of this application, a dedicated start-stop buffer control strategy can be designed to address the industry problem of electric bicycles where a slight triggering of the torque sensor during start-up, parking, and low-speed maneuvering results in instantaneous full-force output, causing the bicycle to lurch forward, making it difficult for novice and female users to control, and increasing the risk of falls. The system combines the increase in pedaling torque during the starting phase with the initial resting heart rate to identify three scenarios: low-speed maneuvering, starting from a standstill, and normal riding start. In low-speed, low-heart-rate conditions, the system forcibly limits the upper limit of assist and the rate of power increase; only when the heart rate and pedaling torque increase steadily and synchronously, indicating a need for the user to accelerate, does the assist power gradually release. This completely solves the problem of lurching during low-speed start-stop, significantly improving the riding safety and comfort experience for novice, elderly, and female users.

[0042] In some possible embodiments of this application, traditional electric bicycles only have fixed speed limits, which cannot adapt to the user's real-time physical condition. When riding while fatigued, dangerous situations such as slowed reaction, unstable control, and speeding are very likely to occur. In specific implementations, this invention can also classify fatigue into three levels—mild, moderate, and severe—based on the user's real-time heart rate, and establish a safety control model that links physical condition with vehicle speed: when the user has sufficient physical condition and a stable heart rate, the normal speed range is allowed; when the heart rate rises and the user enters a fatigue state, the system is not forced to stop, but rather automatically reduces the maximum speed limit and weakens acceleration sensitivity in stages to prevent speeding and accidents caused by delayed reaction when the user is fatigued; at the same time, a gentle assist output is maintained to reduce the burden on pedaling.

[0043] In some possible embodiments of this application, traditional systems may incorrectly output assist when encountering issues such as pedal slippage and discontinuous torque misidentification during riding on bumpy roads, when adjusting foot position, or when traversing over bumps. This results in vehicle swaying, instability, and wasted energy. This invention combines the continuous motion state of the wearable heart rate with the continuous torque characteristics to accurately distinguish between effective pedaling assist and ineffective pedaling action: when intermittent pedaling torque is detected, momentarily disappearing and then resuming, and the heart rate shows no corresponding increase in load, it is determined to be a bumpy road surface or ineffective pedaling action, immediately blocking the momentary false assist output and smoothly filtering out unnecessary power impact; only continuous, effective pedaling action is identified for assist output, significantly improving riding smoothness and stability on bumpy roads and complex road conditions, and reducing the risk of unexplained vehicle lurching.

[0044] In some possible embodiments of this application, to address the issues of increased heart rate, muscle fatigue, cycling soreness, and poor battery life caused by continuous effort during long-distance cycling, the system differs from instantaneous heart rate regulation mode. It continuously calculates cycling time and cumulative heart rate, identifies the user's continuous fatigue state, and dynamically fine-tunes the assist ratio without affecting cycling speed, gradually reducing the user's pedaling force load. At the same time, it intelligently intersperses short-term assist relief zones to prevent the user from experiencing muscle stiffness and physical exhaustion caused by prolonged constant effort, effectively alleviating fatigue during long-distance cycling, significantly improving the comfort of long-distance commuting and leisure cycling, and solving the shortcomings of traditional electric bicycles that only supplement force but do not relieve fatigue.

[0045] In some possible embodiments of this application, to address the problem of wearable heart rate data fluctuations and distortions caused by gripping the handlebars, tense arms, leaning forward, and bumps during cycling, which can lead to incorrect assist adjustments, a cycling-specific interference elimination model is established by combining the torque characteristics of different cycling conditions such as constant speed riding, bumpy riding, starting and stopping, and turning. This model filters out false heart rate fluctuations caused by swaying riding posture, tense limbs, and road vibrations, retaining only effective heart rate signals from actual exercise fatigue and changes in physical load. This ensures accurate and error-free assist ratio adjustment, avoids problems such as inconsistent assist levels and distorted sensations, and guarantees the stability of assist in all cycling scenarios.

[0046] In some possible embodiments of this application, in emergency riding scenarios such as sudden overtaking, rapid acceleration uphill, and obstacle avoidance, users will quickly and forcefully pedal. Traditional power assist systems often have a delayed response and cannot provide timely power support, easily leading to dangers such as delayed avoidance, failed overtaking, and rolling back on slopes. This invention identifies the user's emergency riding condition by recognizing a sudden increase in torque and pedaling frequency, combined with the instantaneous increase in heart rate stress. It immediately triggers an emergency power assist enhancement mode, providing short-term over-output power to quickly increase speed, complete emergency avoidance and acceleration operations, and improve riding safety and maneuverability in complex road conditions.

[0047] In some possible embodiments of this application, given the significant differences in riding habits, physical fitness, and commuting scenarios among different users, traditional electric bicycles with fixed assist parameters cannot adapt to personalized riding needs, resulting in poor experience and low adaptability. This invention can autonomously memorize the heart rate adaptation threshold, optimal assist ratio, and pedaling force habits of users in different scenarios such as daily flat road commuting, uphill riding, slow night riding, and leisurely cruising, automatically generating a riding control model exclusive to the user. When the corresponding riding scenario is identified again, the matching parameters are automatically retrieved, eliminating the need for manual adjustment of gears, achieving personalized intelligent assist tailored to each individual. Simultaneously, for low-safety scenarios such as nighttime and rainy days, a smoother, lower-speed, and gentler assist logic is automatically matched, balancing an ultimate riding experience with scenario-specific riding safety.

[0048] Another embodiment of this application discloses a real-time adaptive assist ratio control system that combines torque sensing and wearable device heart rate acquisition, wherein: The cycling risk level determination module is used to acquire real-time torque mechanical signals and heart rate data, compare them with cycling risk level standards, and determine the current cycling risk level. The assist ratio adjustment module is used to adjust the assist ratio based on the user's current riding risk level if the current riding risk level is higher than the warning risk level. The assist ratio adjustment module is also used to re-determine the riding risk level after a first preset time interval. If the riding risk level after the first preset time interval is still higher than the warning risk level, the assist ratio is adjusted again until the riding risk level is lower than the warning risk level.

[0049] The specific implementation of each module of the system described in this application has been described in detail in the corresponding method steps, so it will not be repeated here.

[0050] Another embodiment of this application discloses an electronic device, comprising a memory and a processor. The memory stores a computer program that can be loaded by the processor and execute the real-time adaptive control method for the assist ratio combining torque sensing and wearable device heart rate acquisition as described above. When loaded, the computer program executes the following method steps: Real-time torque mechanical signals and heart rate data are acquired and compared with cycling risk level standards to determine the current cycling risk level. If the current riding risk level is higher than the warning risk level, the assist ratio will be adjusted based on the user's current riding risk level. The riding risk level is determined again after a first preset time interval. If the riding risk level is still higher than the warning risk level after the first preset time interval, the assist ratio is adjusted again until the riding risk level is lower than the warning risk level.

[0051] Obtain cycling condition information during the cycling process to determine the current cycling scenario; Based on the current cycling conditions, determine the cycling risk level standard for the current cycling scenario.

[0052] Obtain user identity information, retrieve historical cycling data corresponding to the user identity information, and update the cycling risk level standard.

[0053] The system acquires user posture information and, based on this information and the torque mechanical signal, filters out invalid heart rate fluctuations.

[0054] Acquire the user's initial heart rate information and initial torque mechanical signal, and calculate the torque increment and heart rate increase within the second preset time interval; If the torque increment and heart rate increase are not synchronized within the second preset time period, the assist ratio will not be adjusted.

[0055] If the torque is interrupted momentarily, but the user's heart rate information does not increase momentarily, the pedaling action is deemed invalid, and the assist ratio is not adjusted accordingly.

[0056] The system obtains the user's cumulative cycling time and, based on the user's cumulative cycling time and cumulative heart rate, identifies the user's fatigue state and adjusts the cycling risk level standard accordingly.

[0057] Another embodiment of this application discloses a computer-readable storage medium, wherein a computer program is stored that can be loaded by a processor and execute the real-time adaptive control method for assist ratio combining torque sensing and wearable device heart rate acquisition as described above. When the computer program is loaded, it executes the following method steps: acquiring real-time torque mechanical signals and heart rate acquisition information, comparing them with cycling risk level standards, and determining the current cycling risk level. If the current riding risk level is higher than the warning risk level, the assist ratio will be adjusted based on the user's current riding risk level. The riding risk level is determined again after a first preset time interval. If the riding risk level is still higher than the warning risk level after the first preset time interval, the assist ratio is adjusted again until the riding risk level is lower than the warning risk level.

[0058] Obtain cycling condition information during the cycling process to determine the current cycling scenario; Based on the current cycling conditions, determine the cycling risk level standard for the current cycling scenario.

[0059] Obtain user identity information, retrieve historical cycling data corresponding to the user identity information, and update the cycling risk level standard.

[0060] The system acquires user posture information and, based on this information and the torque mechanical signal, filters out invalid heart rate fluctuations.

[0061] Acquire the user's initial heart rate information and initial torque mechanical signal, and calculate the torque increment and heart rate increase within the second preset time interval; If the torque increment and heart rate increase are not synchronized within the second preset time period, the assist ratio will not be adjusted.

[0062] If the torque is interrupted momentarily, but the user's heart rate information does not increase momentarily, the pedaling action is deemed invalid, and the assist ratio is not adjusted accordingly.

[0063] The system obtains the user's cumulative cycling time and, based on the user's cumulative cycling time and cumulative heart rate, identifies the user's fatigue state and adjusts the cycling risk level standard accordingly.

[0064] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0065] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0066] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0067] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of the invention pertain.

[0068] This embodiment provides a computer-readable storage medium. Since the computer program stored therein can implement the various steps of the aforementioned embodiments after running on a processor, it can achieve the same technical effect as the aforementioned embodiments. The principle analysis can be referred to the relevant steps described above, and will not be repeated here.

[0069] The embodiments described in this specific implementation are preferred embodiments of this application and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the structure and principles of this application should be covered within the scope of protection of this application.

Claims

1. A real-time adaptive control method for assist ratio combining torque sensing and wearable device heart rate acquisition, characterized in that, include: Real-time torque mechanical signals and heart rate data are acquired and compared with cycling risk level standards to determine the current cycling risk level. If the current riding risk level is higher than the warning risk level, the assist ratio will be adjusted based on the user's current riding risk level. The riding risk level is determined again after a first preset time interval. If the riding risk level is still higher than the warning risk level after the first preset time interval, the assist ratio is adjusted again until the riding risk level is lower than the warning risk level.

2. The real-time adaptive control method for assist ratio combining torque sensing and wearable device heart rate acquisition according to claim 1, characterized in that, The steps to determine the current risk level of cycling include: Obtain cycling condition information during the cycling process to determine the current cycling scenario; Based on the current cycling conditions, determine the cycling risk level standard for the current cycling scenario.

3. The real-time adaptive control method for assist ratio combining torque sensing and wearable device heart rate acquisition according to claim 1 or 2, characterized in that, The steps to determine the current risk level of cycling also include: Obtain user identity information, retrieve historical cycling data corresponding to the user identity information, and update the cycling risk level standard.

4. The real-time adaptive control method for assist ratio combining torque sensing and wearable device heart rate acquisition according to claim 1, characterized in that, The method further includes: The system acquires user posture information and, based on this information and the torque mechanical signal, filters out invalid heart rate fluctuations.

5. The real-time adaptive control method for assist ratio combining torque sensing and wearable device heart rate acquisition according to claim 1, characterized in that, If the current riding risk level is higher than the warning risk level, the steps to adjust the assist ratio based on the user's current riding risk level include: Acquire the user's initial heart rate information and initial torque mechanical signal, and calculate the torque increment and heart rate increase within the second preset time interval; If the torque increment and heart rate increase are not synchronized within the second preset time period, the assist ratio will not be adjusted.

6. The real-time adaptive control method for assist ratio combining torque sensing and wearable device heart rate acquisition according to claim 1, characterized in that, If the current riding risk level is higher than the warning risk level, the steps to adjust the assist ratio based on the user's current riding risk level also include: If the torque is interrupted momentarily, but the user's heart rate information does not increase momentarily, the pedaling action is deemed invalid, and the assist ratio is not adjusted accordingly.

7. The real-time adaptive control method for assist ratio combining torque sensing and wearable device heart rate acquisition according to claim 2, characterized in that, The method further includes: The system obtains the user's cumulative cycling time and identifies the user's fatigue state based on the cumulative cycling time and cumulative heart rate value, and adjusts the cycling risk level standard accordingly.

8. A real-time adaptive control system for assist ratio combining torque sensing and wearable device heart rate acquisition, characterized in that, include: The cycling risk level determination module is used to acquire real-time torque mechanical signals and heart rate data, compare them with cycling risk level standards, and determine the current cycling risk level. The assist ratio adjustment module is used to adjust the assist ratio based on the user's current riding risk level if the current riding risk level is higher than the warning risk level. The assist ratio adjustment module is also used to re-determine the riding risk level after a first preset time interval. If the riding risk level after the first preset time interval is still higher than the warning risk level, the assist ratio is adjusted again until the riding risk level is lower than the warning risk level.

9. An electronic device, characterized in that, It includes a memory and a processor, the memory storing a computer program that can be loaded by the processor and executed as described in any one of claims 1-7, which combines torque sensing and wearable device heart rate acquisition for real-time adaptive control of the assist ratio.

10. A computer-readable storage medium, characterized in that, The computer program contains a method for real-time adaptive control of the assist ratio that combines torque sensing and wearable device heart rate acquisition, as described in any one of claims 1-7, and can be loaded by a processor and executed.