Bathroom mirror control system based on somatosensory interaction

By collecting the user's somatosensory movements and mirror angle offsets, combining the ambient light intensity and power supply system power, the functional adjustment of the smart bathroom mirror is optimized, and the existing system's shortcomings in somatosensory interaction and functional integration are solved, achieving an efficient and comfortable user experience.

CN120276286AInactive Publication Date: 2025-07-08杭州西奈电子科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510482415.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-17
Publication Date
2025-07-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing intelligent bathroom mirror control system has room for improvement in somatosensory interaction functions, scene adaptability and functional integration, and has failed to meet users' needs for efficiency, comfort and personalization.

Method used

By collecting the user's somatosensory movement frequency and mirror angle offset, combining the ambient light intensity to calculate the operating coefficient and adaptation coefficient, the power margin of the power supply system is monitored in real time, determine whether it enters the functional adjustment mechanism, and adjust the leveling according to the display status and brightness gear settings to optimize the functional adjustment rate.

Benefits of technology

It improves the convenience and comfort of users to use bathroom mirrors, and optimizes the user experience through real-time analysis and adjustment to meet the needs of modern smart homes for efficiency, comfort and personalization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120276286A_ABST
    Figure CN120276286A_ABST
Patent Text Reader

Abstract

The invention discloses a bathroom mirror control system based on somatosensory interaction, which relates to the technical field of smart home, is used for solving the problems, and comprises a data acquisition module, an adaptation analysis module, an adjustment judgment module and a function adjustment module. The system calculates an operation coefficient and an adaptation coefficient by collecting a user somatosensory action frequency, a mirror angle offset and an environment illumination intensity, judges whether to enter a function adjustment mechanism or not in combination with the residual electric quantity of a power supply system, sets an adjustment increasing level according to a display state and a brightness gear, and finally calculates a function adjustment rate. According to the application, the function adjustment efficiency of the bathroom mirror can be optimized, the use convenience and comfort of a user are improved, the analysis cost is reduced, and technical support is provided for intelligent bathroom equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart home, and more specifically, to a bathroom mirror control system based on somatosensory interaction. Background Art

[0002] The rapid development of smart home technology has promoted the innovation of intelligent control of bathroom equipment and become an important direction for improving user experience. The bathroom mirror control system based on somatosensory interaction can significantly improve the user experience with its convenience, intuitiveness and non-contact operation characteristics. However, existing smart bathroom mirrors or similar devices still have certain limitations in terms of interaction methods, function integration and user experience optimization, and have not fully met the expectations of users for efficient, comfortable and personalized needs.

[0003] The existing technology has the following deficiencies: At present, there is still room for improvement in the somatosensory interaction function, scene adaptability and function integration degree of existing intelligent control systems. Therefore, the present invention aims to provide a bathroom mirror control system based on somatosensory interaction. By introducing somatosensory interaction technology, combining mirror display, lighting adjustment and other bathroom equipment linkage functions, the operation experience and convenience of users are optimized, so as to meet the needs of modern smart home for efficient, comfortable and personalized bathroom equipment. Therefore, a bathroom mirror control system based on somatosensory interaction is proposed.

[0004] The above information disclosed in the background art section is only used to strengthen the understanding of the background of the present disclosure, and therefore it may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention

[0005] In order to overcome the above-mentioned defects of the prior art, the embodiments of the present invention provide a bathroom mirror control system based on somatosensory interaction, which solves the problems raised in the above background art by analyzing user somatosensory action data and environmental parameters and calculating operation weights in combination with the function requirements of the bathroom mirror.

[0006] To achieve the above object, the present invention provides the following technical solution, a bathroom mirror control system based on somatosensory interaction, including the following steps: When the user uses the bathroom mirror, collect the somatosensory action frequency of the user and the mirror angle offset, and calculate the operation weight of the user according to the somatosensory action frequency and the mirror angle offset; Obtain the current environmental light intensity, calculate the operation coefficient of the current bathroom mirror by integrating the environmental light intensity and the operation weight, and analyze the environmental adaptability and calculate the adaptation coefficient by detecting the angle deviation between the mirror and the default position and combining the operation coefficient of the current bathroom mirror; The remaining power of the power supply system is monitored in real time to determine the real-time adjustment ability of the bathroom mirror voltage. Whether to enter the function adjustment mechanism is judged based on the comprehensive environmental adaptability and the real-time adjustment ability of the bathroom mirror voltage; after entering the function adjustment mechanism, the display status and brightness level of the current bathroom mirror are detected; According to the display status and brightness level of the current bathroom mirror, the adjustment increment is set. The adjustment ability coefficient of the current bathroom mirror is calculated by synthesizing the real-time voltage, remaining power, and adjustment increment of the current bathroom mirror. The function adjustment rate is calculated by synthesizing the environmental adaptability coefficient and the adjustment ability coefficient.

[0007] In a preferred embodiment, the user's status is evaluated through a preset timestamp. The time interval between adjacent timestamps is used as the analysis time. The number of somatic motion times and the mirror angle offset amount of the user are collected within the analysis time through the built-in motion sensor and angle sensor of the bathroom mirror; When the user uses the bathroom mirror, the number of somatic motion times at each analysis time is recorded. At the end timestamp of each analysis time, the somatic motion frequency is calculated using the collected number of somatic motion times; When collecting the mirror angle offset amount, N detection points are set within the analysis time. The mirror angle is detected at each detection point, and the distance between the current mirror angle and the default mirror angle is calculated and recorded.

[0008] In a preferred embodiment, the average value of the collected number of somatic motion times within the recorded analysis time is used as the somatic standard. When the end timestamp of an analysis time is reached, the ratio of the number of somatic motion times collected between the current timestamp and the adjacent previous timestamp to the somatic standard is used as the somatic motion frequency within the analysis time corresponding to the current timestamp; The average value of the distances recorded at each detection point is used as the mirror angle offset amount of the bathroom mirror within the analysis time; The somatic motion frequency and the mirror angle offset amount within the analysis time between the current timestamp and the adjacent previous timestamp are summed to obtain the operation weight of the bathroom mirror at the current timestamp.

[0009] In a preferred embodiment, the environmental light intensity within the analysis time is detected according to the preset N detection points, and the average light intensity is calculated as the light intensity between the current timestamp and the adjacent previous timestamp; The environmental light intensity of each timestamp is recorded and combined into a light dataset. After normalizing the light intensity of the current timestamp according to the light dataset, the light value of the current timestamp is obtained. The product of the light value of the current timestamp and the operation weight is used as the operation coefficient; The angular deviation between the mirror surface and the default position, i.e., the distance difference between the actual angle of the mirror surface and the default angle, is detected for the mirror surface and the default position during the analysis time. Whenever there is a deviation between the mirror surface and the default position, the maximum distance difference between the mirror surface and the default position is recorded as an alternative angle. During the analysis time, the maximum alternative angle is selected as the angular deviation between the mirror surface of the bathroom mirror and the default position. After normalizing the angular deviation, the angular value at the current timestamp is obtained; Using the linear regression algorithm, the operation coefficient and the angular value at the current timestamp are comprehensively analyzed to calculate the adaptation coefficient for the environmental adaptability.

[0010] In a preferred embodiment, the adaptation coefficient is calculated using the linear regression algorithm formula by integrating the operation coefficient and the angular value at the current timestamp: A = e^(-z), where A is the calculated adaptation coefficient, e is the natural base, and z is the linear regression parameter and is the sum of the operation coefficient and the opposite of the angular value.

[0011] The larger the operation coefficient or the angular value calculated at the current timestamp, the smaller the linear regression parameter, and the smaller the adaptation coefficient calculated through the linear regression algorithm formula; If the adaptation coefficient calculated at the current timestamp is lower than the preset adaptation threshold, it is determined that the environmental adaptability of the bathroom mirror at the current timestamp is high; if the adaptation coefficient calculated at the current timestamp exceeds the preset adaptation threshold, it is determined that the environmental adaptability of the bathroom mirror at the current timestamp is low.

[0012] In a preferred embodiment, the remaining power of the power supply system is monitored in real time, and the ratio of the remaining power at the current timestamp to the total power is calculated as the remaining power coefficient, and the ratio of the remaining power to the total power is compared with the preset power threshold; At the current timestamp, if the remaining power coefficient of the power supply system exceeds the preset power threshold, it is determined that the real-time voltage regulation ability of the bathroom mirror is strong; otherwise, it is determined that the real-time voltage regulation ability of the bathroom mirror is weak; The rule for determining whether to enter the function adjustment mechanism is: at the current timestamp, if the environmental adaptability of the bathroom mirror is low and the real-time voltage regulation ability of the bathroom mirror is strong, the function adjustment mechanism is performed.

[0013] In a preferred embodiment, the brightness levels are divided into low level and high level, and the adjustment increment is set according to the current display state of the bathroom mirror and the brightness level. The specific rules are as follows: Rule 1: When the current display state of the bathroom mirror is the off state and the brightness level is the high level, the adjustment increment of the bathroom mirror at the current timestamp is A; Rule 2: When the current display state of the bathroom mirror is the off state and the brightness level is the low level, the adjustment increment of the bathroom mirror at the current timestamp is B; Rule 3: If the current display state of the bathroom mirror is the on state and the brightness level is the high level, then the adjustment increment of the bathroom mirror at the current timestamp is C; Rule 4: If the current display state of the bathroom mirror is the on state and the brightness level is the low level, then the adjustment increment of the bathroom mirror at the current timestamp is D; Among them, A, B, C, and D are respectively the values of four preset adjustment increments of different sizes, and the numerical sizes are sorted from large to small in alphabetical order.

[0014] In a preferred embodiment, the maximum value of the working voltage of the bathroom mirror is recorded within the analysis time, and the working voltage of the bathroom mirror detected at the current timestamp is divided by the maximum value of the working voltage recorded within the analysis time to obtain the voltage coefficient of the bathroom mirror at the current timestamp; Calculate the adjustment ability coefficient of the bathroom mirror by integrating the voltage coefficient, remaining power coefficient, and adjustment increment of the bathroom mirror at the current timestamp: T = Ya - Vt, where T is the adjustment ability coefficient of the bathroom mirror at the current timestamp, Y is the remaining power coefficient, V is the voltage coefficient of the bathroom mirror at the current timestamp, t is the adjustment increment, and a is a preset adjustment parameter for the remaining power coefficient, which is used to adjust the remaining power coefficient so that the calculated adjustment ability coefficient is positive and greater than the adaptation coefficient of the bathroom mirror at the current timestamp; Calculate the function adjustment rate at the current timestamp according to the adaptation coefficient and adjustment ability coefficient of the bathroom mirror. The formula is: S = T / A, where S is the function adjustment rate, T is the adjustment ability coefficient of the bathroom mirror at the current timestamp, and A is the adaptation coefficient of the bathroom mirror at the current timestamp.

[0015] The bathroom mirror control system based on somatosensory interaction includes a data acquisition module 1, an adaptation analysis module 2, an adjustment judgment module 3, and a function adjustment module 4; The data acquisition module 1 is used to collect the somatosensory action frequency of the user, the mirror angle offset, the ambient light intensity, the display state, and the brightness level of the mirror, and to detect the remaining power and the real-time voltage of the power supply system in real time; The adaptation analysis module 2 calculates the operation coefficient of the current bathroom mirror by integrating the ambient light intensity, somatosensory action frequency, and mirror angle offset of the bathroom mirror, and analyzes the environmental adaptability according to the operation coefficient; The adjustment judgment module 3 judges whether to perform a function adjustment mechanism according to the environmental adaptability and the remaining power of the power supply system; The function adjustment module 4 is used to set the adjustment increment, calculate the adjustment ability of the current bathroom mirror, and calculate the function adjustment rate by integrating the environmental adaptability and the adjustment ability to speed up the function adjustment.

[0016] The technical effects and advantages of the present invention: 1. The present invention detects the state of a user when using a bathroom mirror, collects the frequency of the user's body motion and the deviation of the mirror surface angle, calculates the operation coefficient of the bathroom mirror in combination with the current ambient light intensity, determines the angle deviation between the mirror surface and the default position when the mirror surface angle deviates, analyzes the environmental adaptability according to the operation coefficient and the angle deviation of the bathroom mirror and calculates the adaptation coefficient; the adaptation coefficient can reflect the current environmental adaptability of the bathroom mirror, provides an analysis direction for function adjustment, reduces the analysis cost, and determines the real-time adjustment ability of the bathroom mirror voltage by monitoring the remaining power of the power supply system in real time. Whether to enter the function adjustment mechanism is judged based on the environmental adaptability and the real-time adjustment ability of the bathroom mirror. After entering the function adjustment mechanism, the display state and brightness level of the current bathroom mirror are detected and the adjustment increment is set. The adjustment ability coefficient of the bathroom mirror is calculated through the adjustment increment, and the function adjustment rate of the current state is determined in combination with the environmental adaptation coefficient. The function adjustment rate is optimized by analyzing the adaptability and the adjustable amount, improving the convenience and comfort of user use. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a schematic diagram of the module of the bathroom mirror control system based on somatosensory interaction of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0018] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention. Embodiment

[0019] Please refer to Figure 1 , a bathroom mirror control system based on somatosensory interaction, the module structure of which is as Figure 1 shown, including a data acquisition module 1, an adaptation analysis module 2, an adjustment judgment module 3 and a function adjustment module 4, and the signals of each module are connected; The data acquisition module 1 is used to collect the user's somatosensory motion frequency, mirror angle offset, ambient light intensity, display status, and brightness level, and to detect the remaining battery level and real-time voltage of the power supply system in real time. The data acquisition module 1 realizes the detection of the user's somatosensory motion times and mirror angle through the built-in motion sensor and angle sensor, and at the same time obtains the ambient light intensity of the current environment through the photosensitive sensor. In addition, the data acquisition module 1 is also connected to the power supply system to monitor the remaining battery level and operating voltage. The data acquisition module 1 transmits the collected data to the adaptation analysis module 2 for processing. The adaptation analysis module 2 receives the data from the data acquisition module 1 and calculates and analyzes it. The adaptation analysis module 2 calculates the operation weight according to the somatosensory motion frequency and mirror angle offset, and at the same time calculates the operation coefficient in combination with the ambient light intensity, and calculates the adaptation coefficient corresponding to the environmental adaptability by comprehensively calculating the operation coefficient and angle deviation through the linear regression algorithm. The adaptation analysis module 2 transmits the calculation result to the adjustment judgment module 3, and the adjustment judgment module 3 judges whether to enter the function adjustment mechanism according to the adaptation coefficient and the remaining battery coefficient. If the conditions are met, the adjustment judgment module 3 triggers the function adjustment module 4 to start the function adjustment process. After receiving the adjustment instruction, the function adjustment module 4 sets the adjustment increment according to the current display status and brightness level of the bathroom mirror, and combines the adjustment increment, the remaining battery coefficient, and the voltage coefficient to calculate the adjustment ability coefficient, and finally determines the function adjustment rate to complete the adjustment task.

[0020] In practical applications, when the user stands in front of the bathroom mirror, the data acquisition module 1 starts to work. The motion sensor and the angle sensor respectively record the user's somatosensory motion times and the mirror angle offset. For example, within a specific analysis time period, the motion sensor records the user's somatosensory motion times every 0.5 seconds, and the angle sensor records the actual angle of the mirror at each detection point and compares it with the default angle to obtain the mirror angle offset. These data are transmitted to the adaptation analysis module 2 for processing. The adaptation analysis module 2 first calculates the somatosensory motion frequency by taking the average of the somatosensory motion times between adjacent timestamps as the somatosensory standard, and then taking the ratio of the somatosensory motion times within the current timestamp to the somatosensory standard as the somatosensory motion frequency. For the mirror angle offset, the adaptation analysis module 2 takes the average of the distances recorded at all detection points as the mirror angle offset within the analysis time. Subsequently, the adaptation analysis module 2 sums up the somatosensory motion frequency and the mirror angle offset to obtain the operation weight.

[0021] Meanwhile, the photosensitive sensor collects the light intensity of the current environment and transmits the data to the adaptation analysis module 2. The adaptation analysis module 2 calculates the average light intensity as the light intensity at the current timestamp according to the preset N detection points, and obtains the light value after standardization. The adaptation analysis module 2 multiplies the light value by the operation weight to obtain the operation coefficient. For the mirror angle deviation, the adaptation analysis module 2 records the maximum distance difference between the mirror and the default position during the analysis time as the alternative angle, and selects the maximum value as the mirror angle deviation. Subsequently, the angle deviation is standardized to obtain the angle value. The adaptation analysis module 2 uses the linear regression algorithm formula A = e^(-z) to calculate the adaptation coefficient, where e is the natural logarithm base and z is the sum of the operation coefficient and the opposite of the angle value. If the adaptation coefficient at the current timestamp is lower than the preset threshold, it is determined that the environmental adaptability of the bathroom mirror is high; otherwise, the environmental adaptability is low.

[0022] The adjustment judgment module 3 receives the adaptation coefficient from the adaptation analysis module 2 and makes a judgment in combination with the remaining battery information provided by the data acquisition module 1. The adjustment judgment module 3 first calculates the remaining battery coefficient, that is, the ratio of the remaining battery at the current timestamp to the total battery, and compares it with the preset battery threshold. If the remaining battery coefficient exceeds the preset threshold, it is determined that the real-time adjustment ability of the bathroom mirror voltage is strong; otherwise, the real-time adjustment ability is weak. The adjustment judgment module 3 determines whether to enter the function adjustment mechanism according to the environmental adaptability and the real-time adjustment ability. If the environmental adaptability is low and the real-time adjustment ability is strong at the current timestamp, the adjustment judgment module 3 triggers the function adjustment module 4 to start the function adjustment process.

[0023] After receiving the adjustment instruction, the function adjustment module 4 sets the adjustment upgrade according to the current display state and brightness level of the bathroom mirror. For example, if the current display state is off and the brightness level is high, the adjustment upgrade is set to A; if the display state is off and the brightness level is low, the adjustment upgrade is set to B; if the display state is on and the brightness level is high, the adjustment upgrade is set to C; if the display state is on and the brightness level is low, the adjustment upgrade is set to D. The function adjustment module 4 then calculates the adjustment ability coefficient, and the formula is T = Ya - Vt, where Y is the remaining battery coefficient, V is the voltage coefficient at the current timestamp, t is the adjustment upgrade, and a is the preset adjustment parameter. The function adjustment module 4 combines the adjustment ability coefficient with the adaptation coefficient and calculates the function adjustment rate through the formula S = T / A, where S is the function adjustment rate, T is the adjustment ability coefficient, and A is the adaptation coefficient. The function adjustment module 4 adjusts the functions of the bathroom mirror according to the calculated function adjustment rate, so as to optimize the user experience.

[0024] Throughout the process, the data acquisition module 1, the adaptation analysis module 2, the adjustment judgment module 3, and the function adjustment module 4 cooperate with each other to jointly complete the task of controlling the bathroom mirror based on somatosensory interaction. The data acquisition module 1 is responsible for collecting basic data, the adaptation analysis module 2 processes and analyzes the data, the adjustment judgment module 3 determines whether adjustment is needed according to the analysis results, and the function adjustment module 4 executes the specific adjustment tasks. Information sharing and collaborative work are achieved through data transmission between the modules to ensure the efficient operation of the entire system.

[0025] In an actual application scenario, assume that when a user uses the bathroom mirror in the morning, the ambient light is weak and the mirror angle is offset. At this time, the data acquisition module 1 collects a high frequency of the user's somatosensory actions, a large mirror angle offset, and a low ambient light intensity. The adaptation analysis module 2 calculates a high operation weight and a low operation coefficient based on this data. At the same time, the large mirror angle deviation results in a low adaptation coefficient. The adjustment judgment module 3 determines that the current environmental adaptability is low and the power remaining coefficient of the power supply system is high, so it triggers the function adjustment mechanism. The function adjustment module 4 adjusts the upgrade according to the current display state and brightness level settings, calculates the adjustment ability coefficient and the function adjustment rate, and finally increases the brightness of the bathroom mirror and adjusts the mirror angle to meet the user's needs. Through the above process, the present invention realizes the control of the bathroom mirror based on somatosensory interaction, improving the convenience and comfort of user use.

[0026] To better enable relevant personnel in the technical field to fully understand and implement the present invention, the following supplements the specific implementation principles of this example in combination with specific application scenarios.

[0027] In actual use, when a user enters the bathroom in the morning, the ambient light is weak and the mirror angle is offset. At this time, the data acquisition module 1 starts to work, and the motion sensor and the angle sensor respectively record the number of the user's somatosensory actions and the actual angle offset of the mirror. For example, the motion sensor records the number of the user's somatosensory actions every 0.5 seconds, and the angle sensor records the deviation of the mirror from the default angle at each detection point and transmits this data to the adaptation analysis module 2. The photosensitive sensor simultaneously collects the ambient light intensity and transmits the data to the adaptation analysis module 2 for processing.

[0028] The adaptation analysis module 2 first calculates the frequency of somatosensory actions. Specifically, the adaptation analysis module 2 takes the average number of somatosensory actions between adjacent timestamps as the somatosensory standard, and then takes the ratio of the number of somatosensory actions within the current timestamp to the somatosensory standard as the somatosensory action frequency. For the mirror angle offset, the adaptation analysis module 2 takes the average of the distances recorded at all detection points as the mirror angle offset within the analysis time. Subsequently, the adaptation analysis module 2 sums the somatosensory action frequency and the mirror angle offset to obtain the operation weight. At the same time, the light intensity data collected by the photosensitive sensor is normalized as the light value, and the adaptation analysis module 2 multiplies the light value by the operation weight to obtain the operation coefficient. For the mirror angle deviation, the adaptation analysis module 2 records the maximum distance difference between the mirror and the default position within the analysis time as the alternative angle, and selects the maximum value as the mirror angle deviation. Subsequently, the angle deviation is normalized to obtain the angle value. The adaptation analysis module 2 uses the linear regression algorithm formula A = e^(-z) to calculate the adaptation coefficient, where e is the natural logarithm base and z is the sum of the operation coefficient and the opposite of the angle value. If the adaptation coefficient at the current timestamp is lower than the preset threshold, it is determined that the environmental adaptability of the bathroom mirror is high; otherwise, it is determined that the environmental adaptability is low.

[0029] The adjustment judgment module 3 receives the adaptation coefficient from the adaptation analysis module 2 and makes a judgment in combination with the remaining battery information provided by the data acquisition module 1. The adjustment judgment module 3 first calculates the remaining battery coefficient, that is, the ratio of the remaining battery at the current timestamp to the total battery, and compares it with the preset battery threshold. If the remaining battery coefficient exceeds the preset threshold, it is determined that the real-time adjustment ability of the bathroom mirror voltage is strong; otherwise, it is determined that the real-time adjustment ability is weak. The adjustment judgment module 3 determines whether to enter the function adjustment mechanism according to the environmental adaptability and the real-time adjustment ability. If the environmental adaptability at the current timestamp is low and the real-time adjustment ability is strong, the adjustment judgment module 3 triggers the function adjustment module 4 to start the function adjustment process.

[0030] After receiving the adjustment instruction, the function adjustment module 4 sets the adjustment increment according to the current display state and brightness level of the bathroom mirror. For example, if the current display state is off and the brightness level is high, the adjustment increment is set to A; if the display state is off and the brightness level is low, the adjustment increment is set to B; if the display state is on and the brightness level is high, the adjustment increment is set to C; if the display state is on and the brightness level is low, the adjustment increment is set to D. The function adjustment module 4 then calculates the adjustment ability coefficient, and the formula is T = Ya - Vt, where Y is the remaining power coefficient, V is the voltage coefficient of the current timestamp, t is the adjustment increment, and a is the preset adjustment parameter. The function adjustment module 4 combines the adjustment ability coefficient with the adaptation coefficient and calculates the function adjustment rate through the formula S = T / A, where S is the function adjustment rate, T is the adjustment ability coefficient, and A is the adaptation coefficient. The function adjustment module 4 adjusts the functions of the bathroom mirror according to the calculated function adjustment rate, thereby optimizing the user experience.

[0031] Throughout the process, the data acquisition module 1, the adaptation analysis module 2, the adjustment judgment module 3, and the function adjustment module 4 cooperate with each other to jointly complete the control task of the bathroom mirror based on somatosensory interaction. The data acquisition module 1 is responsible for collecting basic data, the adaptation analysis module 2 processes and analyzes the data, the adjustment judgment module 3 determines whether adjustment is needed according to the analysis results, and the function adjustment module 4 executes specific adjustment tasks. Information sharing and collaborative work are achieved through data transmission between modules, ensuring the efficient operation of the entire system.

[0032] In an actual application scenario, assume that when the user uses the bathroom mirror in the morning, the ambient light is weak and the mirror angle is offset. At this time, the data acquisition module 1 collects a high frequency of the user's somatosensory actions, a large mirror angle offset, and a low ambient light intensity. The adaptation analysis module 2 calculates a high operation weight and a low operation coefficient based on these data, and at the same time, the large mirror angle deviation results in a low adaptation coefficient. The adjustment judgment module 3 determines that the current environmental adaptability is low and the remaining power coefficient of the power supply system is high, so it triggers the function adjustment mechanism. The function adjustment module 4 sets the adjustment increment according to the current display state and brightness level, calculates the adjustment ability coefficient and the function adjustment rate, and finally increases the brightness of the bathroom mirror and adjusts the mirror angle to meet the user's needs. Through the above process, the present invention realizes the control of the bathroom mirror based on somatosensory interaction, improving the convenience and comfort of user use.

[0033] To enable relevant personnel in the technical field to fully understand and implement the present invention better, the following supplements the specific implementation principle of this example in combination with specific application scenarios.

[0034] In actual use, when the user enters the bathroom in the morning, the ambient light is weak and the mirror angle is offset. At this time, the data acquisition module 1 starts to work, and the motion sensor and the angle sensor respectively record the number of the user's body motion times and the actual angle offset of the mirror. For example, the motion sensor records the number of the user's body motion times every 0.5 seconds, and the angle sensor records the deviation of the mirror from the default angle at each detection point and transmits this data to the adaptation analysis module 2. The photosensitive sensor simultaneously collects the ambient light intensity and transmits the data to the adaptation analysis module 2 for processing.

[0035] The adaptation analysis module 2 first calculates the body motion frequency. Specifically, the adaptation analysis module 2 takes the average of the number of body motion times between adjacent timestamps as the body motion standard, and then takes the ratio of the number of body motion times within the current timestamp to the body motion standard as the body motion frequency. For the mirror angle offset, the adaptation analysis module 2 takes the average of the distances recorded at all detection points as the mirror angle offset within the analysis time. Subsequently, the adaptation analysis module 2 sums the body motion frequency and the mirror angle offset to obtain the operation weight. At the same time, the light intensity data collected by the photosensitive sensor is normalized as the light value, and the adaptation analysis module 2 multiplies the light value by the operation weight to obtain the operation coefficient. For the mirror angle deviation, the adaptation analysis module 2 records the maximum distance difference between the mirror and the default position within the analysis time as the alternative angle, and selects the maximum value as the mirror angle deviation, and then normalizes the angle deviation to obtain the angle value. The adaptation analysis module 2 uses the linear regression algorithm formula A = e^(-z) to calculate the adaptation coefficient, where e is the natural logarithm base and z is the sum of the operation coefficient and the opposite of the angle value. If the adaptation coefficient at the current timestamp is lower than the preset threshold, it is judged that the environmental adaptability of the bathroom mirror is high; otherwise, it is judged that the environmental adaptability is low.

[0036] The adjustment judgment module 3 receives the adaptation coefficient from the adaptation analysis module 2 and makes a judgment in combination with the remaining power information provided by the data acquisition module 1. The adjustment judgment module 3 first calculates the remaining power coefficient, that is, the ratio of the remaining power at the current timestamp to the total power, and compares it with the preset power threshold. If the remaining power coefficient exceeds the preset threshold, it is judged that the real-time adjustment ability of the bathroom mirror voltage is strong; otherwise, it is judged that the real-time adjustment ability is weak. The adjustment judgment module 3 judges whether to enter the function adjustment mechanism according to the environmental adaptability and the real-time adjustment ability. If the environmental adaptability is low and the real-time adjustment ability is strong at the current timestamp, the adjustment judgment module 3 triggers the function adjustment module 4 to start the function adjustment process.

[0037] After receiving the adjustment instruction, the function adjustment module 4 sets the adjustment increment according to the current display state and brightness level of the bathroom mirror. For example, if the current display state is off and the brightness level is high, the adjustment increment is set to A; if the display state is off and the brightness level is low, the adjustment increment is set to B; if the display state is on and the brightness level is high, the adjustment increment is set to C; if the display state is on and the brightness level is low, the adjustment increment is set to D. The function adjustment module 4 then calculates the adjustment ability coefficient, with the formula T = Ya - Vt, where Y is the remaining power coefficient, V is the voltage coefficient of the current timestamp, t is the adjustment increment, and a is a preset adjustment parameter. The function adjustment module 4 combines the adjustment ability coefficient with the adaptation coefficient and calculates the function adjustment rate through the formula S = T / A, where S is the function adjustment rate, T is the adjustment ability coefficient, and A is the adaptation coefficient. The function adjustment module 4 adjusts the functions of the bathroom mirror according to the calculated function adjustment rate, thereby optimizing the user experience.

[0038] Throughout the process, the data acquisition module 1 is responsible for acquiring basic data, the adaptation analysis module 2 processes and analyzes the data, the adjustment judgment module 3 determines whether adjustment is needed based on the analysis results, and the function adjustment module 4 performs specific adjustment tasks. Information sharing and collaborative work are achieved through data transmission between modules, ensuring the efficient operation of the entire system.

[0039] Taking the user's morning use of the bathroom mirror as an example, assume that the ambient light is weak and the mirror angle is offset. At this time, the data acquisition module 1 acquires a high frequency of the user's body movement sensations, a large mirror angle offset, and a low ambient light intensity. The adaptation analysis module 2 calculates a high operation weight and a low operation coefficient based on this data. At the same time, the large mirror angle deviation results in a low adaptation coefficient. The adjustment judgment module 3 determines that the current environmental adaptability is low and the remaining power coefficient of the power supply system is high, so it triggers the function adjustment mechanism. The function adjustment module 4 sets the adjustment increment according to the current display state and brightness level, calculates the adjustment ability coefficient and the function adjustment rate, and finally increases the brightness of the bathroom mirror and adjusts the mirror angle to meet the user's needs. Through the above steps, the present invention realizes the control of the bathroom mirror based on body sensation interaction, improving the convenience and comfort of user use.

[0040] The above formulas are all calculated by taking the numerical values after dimensionless. The formula is obtained by collecting a large amount of data for software simulation to get a formula closest to the real situation. The preset parameters in the formula are set by those skilled in the art according to the actual situation.

[0041] The above-described embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, the above-described embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more collections of available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media. The semiconductor media can be a solid-state drive.

[0042] It should be understood that in various embodiments of the present application, the magnitudes of the serial numbers of the above processes do not imply the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

[0043] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0044] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be described herein again.

[0045] In several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.

[0046] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0047] In addition, in each embodiment of the present application, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.

[0048] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.

[0049] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present application can easily think of changes or substitutions, which should all be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A bathroom mirror control system based on somatosensory interaction, characterized in that: It includes the following steps: When the user uses the bathroom mirror, collect the user's somatosensory action frequency and the mirror angle offset, and calculate the user's operation weight according to the somatosensory action frequency and the mirror angle offset; Obtain the current ambient light intensity, calculate the operation coefficient of the current bathroom mirror by integrating the ambient light intensity and the operation weight, analyze the environmental adaptability by detecting the angle deviation between the mirror and the default position and combine with the operation coefficient of the current bathroom mirror, and calculate the adaptability coefficient; Real-time monitor the remaining power of the power supply system to determine the real-time adjustment ability of the bathroom mirror voltage, and judge whether to enter the function adjustment mechanism by integrating the environmental adaptability and the real-time adjustment ability of the bathroom mirror voltage; after entering the function adjustment mechanism, detect the display status and brightness level of the current bathroom mirror; Set the adjustment increment according to the display status and brightness level of the current bathroom mirror, calculate the adjustment ability coefficient of the current bathroom mirror by integrating the real-time voltage, remaining power and adjustment increment of the current bathroom mirror, and calculate the function adjustment rate by integrating the environmental adaptability coefficient and the adjustment ability coefficient.

2. The bathroom mirror control system based on somatosensory interaction according to claim 1, wherein: Evaluate the user's state through a preset timestamp, use the time interval between adjacent timestamps as the analysis time, and collect the user's somatosensory action times and mirror angle offset within the analysis time through the built-in motion sensor and angle sensor of the bathroom mirror; When the user uses the bathroom mirror, record the somatosensory action times of each analysis time. At the end of each analysis time timestamp, calculate the somatosensory action frequency using the collected somatosensory action times; When collecting the mirror angle offset, set N detection points within the analysis time, detect the mirror angle at each detection point and record the distance between the current mirror angle and the default mirror angle.

3. The bathroom mirror control system based on somatosensory interaction according to claim 2, characterized in that: Calculate the average value of the collected somatosensory action times within the analysis time as the somatosensory standard. When the end timestamp of an analysis time passes, use the ratio of the somatosensory action times collected between the current timestamp and the adjacent previous timestamp to the somatosensory standard as the somatosensory action frequency within the analysis time corresponding to the current timestamp; Take the average value of the distances recorded at each detection point as the mirror angle offset of the bathroom mirror within the analysis time; Sum up the somatosensory action frequency and the mirror angle offset within the analysis time between the current timestamp and the adjacent previous timestamp to obtain the operation weight of the bathroom mirror at the current timestamp.

4. The bathroom mirror control system based on somatosensory interaction according to claim 1, characterized in that: Detect the ambient light intensity within the analysis time according to the preset N detection points and calculate the average light intensity as the light intensity between the current timestamp and the adjacent previous timestamp; Record the ambient light intensity of each timestamp and combine them into a light dataset, standardize the light intensity of the current timestamp according to the light dataset to obtain the light value of the current timestamp, and take the product of the light value of the current timestamp and the operation weight as the operation coefficient; The angular deviation of the mirror surface from the default position, i.e., the distance difference between the actual angle of the mirror surface and the default angle, is detected for the mirror surface and the default position within the analysis time. Whenever the mirror surface deviates from the default position, the maximum distance difference between the mirror surface and the default position is recorded as an alternative angle. The maximum alternative angle is selected within the analysis time as the angular deviation of the mirror surface of the bathroom mirror from the default position. After normalizing the angular deviation, the angular value at the current timestamp is obtained; The linear regression algorithm is used to comprehensively analyze the environmental adaptability and calculate the adaptation coefficient based on the operation coefficient and the angular value at the current timestamp.

5. The bathroom mirror control system based on somatosensory interaction according to claim 4, wherein: The adaptation coefficient is calculated using the linear regression algorithm formula based on the operation coefficient and the angular value at the current timestamp: A = e^(-z), where A is the calculated adaptation coefficient, e is the natural base, and z is the linear regression parameter and the summation result of the operation coefficient and the opposite of the angular value; If the adaptation coefficient calculated at the current timestamp is lower than the preset adaptation threshold, it is determined that the environmental adaptability of the bathroom mirror meets the requirements at the current timestamp; if the adaptation coefficient calculated at the current timestamp exceeds the preset adaptation threshold, it is determined that the environmental adaptability of the bathroom mirror does not meet the requirements at the current timestamp.

6. The somatosensory interaction-based bathroom mirror control system according to claim 5, characterized in that: The remaining power of the power supply system is monitored in real time, and the ratio of the remaining power at the current timestamp to the total power is calculated as the remaining power coefficient, and the ratio of the remaining power to the total power is compared with the preset power threshold; At the current timestamp, if the remaining power coefficient of the power supply system exceeds the preset power threshold, it is determined that the real-time adjustment ability of the bathroom mirror voltage meets the requirements; otherwise, it is determined that the real-time adjustment ability of the bathroom mirror voltage does not meet the requirements; The rule for determining whether to enter the function adjustment mechanism is: at the current timestamp, if the environmental adaptability of the bathroom mirror does not meet the requirements and the real-time adjustment ability of the bathroom mirror voltage meets the requirements, the function adjustment mechanism is performed.

7. The bathroom mirror control system based on somatosensory interaction according to claim 1, wherein: The brightness levels are divided into a low level and a high level. Then, the adjustment increment is set according to the current display state of the bathroom mirror and the brightness level. The specific rules are as follows: Rule 1: If the current display state of the bathroom mirror is the off state and the brightness level is the high level, the adjustment increment of the bathroom mirror at the current timestamp is A; Rule 2: If the current display state of the bathroom mirror is the off state and the brightness level is the low level, the adjustment increment of the bathroom mirror at the current timestamp is B; Rule 3: If the current display state of the bathroom mirror is the on state and the brightness level is the high level, the adjustment increment of the bathroom mirror at the current timestamp is C; Rule 4: If the current display state of the bathroom mirror is the on state and the brightness level is the low level, the adjustment increment of the bathroom mirror at the current timestamp is D; Among them, A, B, C, and D are the numerical values of four preset different adjustment increments, and the numerical values are sorted from large to small in alphabetical order.

8. The bathroom mirror control system based on somatosensory interaction according to claim 7, characterized in that: The maximum working voltage of the bathroom mirror is recorded within the analysis time, and the working voltage of the bathroom mirror detected at the current timestamp is divided by the maximum working voltage recorded within the analysis time to obtain the voltage coefficient of the bathroom mirror at the current timestamp; Calculate the adjustment ability coefficient of the bathroom mirror by integrating the voltage coefficient, remaining power coefficient, and adjustment increment of the bathroom mirror at the current timestamp: T = Ya - Vt, where T is the adjustment ability coefficient of the bathroom mirror at the current timestamp, Y is the remaining power coefficient, V is the voltage coefficient of the bathroom mirror at the current timestamp, t is the adjustment increment, and a is the preset adjustment parameter for the remaining power coefficient; Calculate the function adjustment rate at the current timestamp based on the adaptation coefficient and adjustment ability coefficient of the bathroom mirror. The formula is: S = T / A, where S is the function adjustment rate, T is the adjustment ability coefficient of the bathroom mirror at the current timestamp, and A is the adaptation coefficient of the bathroom mirror at the current timestamp.

9. The bathroom mirror control system based on somatosensory interaction according to claim 1, characterized in that: It includes a data acquisition module 1, an adaptation analysis module 2, an adjustment judgment module 3, and a function adjustment module 4; The data acquisition module 1 is used to collect the user's body sensation action frequency, mirror angle offset, ambient light intensity, display status, and brightness level, and to detect the remaining power and real-time voltage of the power supply system in real time; The adaptation analysis module 2 calculates the operation coefficient of the current bathroom mirror by integrating the ambient light intensity, body sensation action frequency, and mirror angle offset of the bathroom mirror, and analyzes the environmental adaptability based on the operation coefficient; The adjustment judgment module 3 determines whether to perform a function adjustment mechanism based on the environmental adaptability and the remaining power of the power supply system; The function adjustment module 4 is used to set the adjustment increment to calculate the adjustment ability of the current bathroom mirror, and to calculate the function adjustment rate by integrating the environmental adaptability and adjustment ability to speed up the function adjustment.