A light therapy shower control method, control system and apparatus
Patent Information
- Application Number
- CN202610937873.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-26
- Publication Date
- 2026-09-25
AI Technical Summary
[0006]本发明的目的在于提供一种光疗淋浴控制方法、控制系统及装置,以解决现有技术中光疗设备使用不便、无法个性化适配以及淋浴场景下水流导致光强衰减的技术问题
本方案能够将红蓝光理疗功能嵌入日常必做的淋浴行为中,用户无需专门规划时间和空间,在洗澡的同时即可完成理疗。
Smart Images

Figure CN122825282A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent bathroom and phototherapy technology, and in particular to a phototherapy shower control method, control system and device. Background Technology
[0002] Red and blue light therapy is a non-invasive treatment method that uses specific wavelengths of light to act on the human body. Red light (wavelength approximately 630nm) can promote collagen synthesis, accelerate blood circulation, and repair damaged tissue; blue light (wavelength approximately 465nm) has the effect of rapidly inhibiting inflammation and killing Propionibacterium acnes, and is widely used in acne treatment, skin repair, muscle relaxation, and other fields. Existing red and blue light therapy equipment mainly has the following drawbacks: Inconvenient to use and requires dedicated time: Mainstream red light products on the market, such as standing physiotherapy devices, beauty helmets, and lumbar physiotherapy belts, require users to plan their usage time and space separately, maintain a fixed posture during use, and cannot be used in parallel with other daily activities.
[0003] The parameters are complex to adjust and the professional threshold is high: conventional red and blue light therapy equipment requires users to manually adjust the power parameters and irradiation distance. Different skin types and different parts of the body have different tolerance and needs for light therapy. Ordinary users find it difficult to master the appropriate parameter settings, and there is a risk of poor effect or skin damage due to improper use.
[0004] Limited irradiation area, unable to cover multiple areas: Traditional red light products are mostly designed for localized use. For example, waist therapy belts only cover a single area, and facial beauty devices only target the face. They cannot simultaneously irradiate multiple areas such as the top of the head, face, chest, and back, resulting in low therapeutic efficiency.
[0005] Lack of personalized adaptation: Existing devices cannot adjust treatment parameters according to each user's skin characteristics. All users use the same power settings. Sensitive skin users may experience discomfort such as redness, swelling and itching, while tolerant skin users may not get good results due to insufficient power. Summary of the Invention
[0006] The purpose of this invention is to provide a phototherapy shower control method, control system and device to solve the technical problems of inconvenient use of phototherapy equipment, inability to be personalized and adaptable, and light intensity attenuation caused by water flow in shower scenarios in the prior art.
[0007] To achieve the above objectives, the solution of the present invention is: a phototherapy shower control method, comprising the following steps: The system acquires the diffuse reflectance spectral characteristics of the user's skin; based on these characteristics, it outputs the skin type category using a pre-trained support vector machine classification model and maps it to obtain a skin type coefficient; it maps the region power coefficient according to the user's selected treatment area and determines the target light intensity based on the treatment mode. The target light intensity is defined as the effective light intensity reaching the human skin surface after penetrating the water flow, and the target light intensity is 20–50 mW / cm²; it detects the distance between the human body and the illumination unit in real time; based on the distance, the target light intensity, and the pre-calibrated hardware light efficiency coefficient including the water flow attenuation effect, it calculates the target duty cycle according to the inverse square relationship; it corrects the target duty cycle based on the skin type coefficient and the region power coefficient to obtain the final duty cycle; and it drives the illumination unit to emit light after limiting the final duty cycle.
[0008] A phototherapy shower control system includes a spectrum acquisition module, a skin texture detection and classification module, a body part selection module, a target setting module, a distance detection module, a duty cycle calculation module, a duty cycle correction module, and a limiting protection module; it also includes a distance sensor, a spectrum sensor, and a PWM drive module electrically connected to the control unit.
[0009] A phototherapy shower device includes a top spray, a shower rod, a distance sensor, a spectral sensor, and a control box. The control box integrates a control unit and a drive circuit for executing the aforementioned control method.
[0010] After adopting the above solution, the beneficial effects of the present invention are as follows: This solution integrates red and blue light therapy into the daily routine of showering, allowing users to complete therapy while showering without having to plan their time and space.
[0011] This solution utilizes diffuse reflectance spectroscopy to collect skin characteristics, identifies skin type through a support vector machine (SVM) classification model, and automatically adjusts the irradiation power. Sensitive skin users can reduce the power to avoid irritation, while tolerant skin users can appropriately increase the power to enhance the therapeutic effect, achieving precise care tailored to each individual.
[0012] Using diffuse reflectance spectroscopy technology instead of a camera for skin texture recognition completely avoids the privacy risks that cameras may pose, allowing users to use it with peace of mind in a private shower environment.
[0013] This solution also allows for zoned and differentiated care of different areas such as the face, scalp, shoulders and neck, back, waist and abdomen, and joints by pre-setting different regional power coefficients. The same device can be used to provide zoned and differentiated care for different areas. The face is given a lower power to protect sensitive skin, while the joints are given a higher power to ensure deep penetration.
[0014] This solution establishes a light intensity attenuation model that incorporates the water flow attenuation effect, and combines it with real-time distance detection to dynamically compensate for light intensity attenuation caused by distance changes and water flow obstruction, ensuring that the effective light intensity reaching the skin surface after penetrating the water flow remains stable at 20~50mW / cm².
[0015] Intelligent closed-loop control: Distance data is refreshed in real time with a period of 50ms and the PWM (pulse width modulation) duty cycle is dynamically adjusted to form a closed-loop control system. Even if the user moves during the shower, the irradiation intensity can be automatically adjusted to keep it constant.
[0016] In addition, this solution also includes multiple safety mechanisms such as duty cycle limiting protection, overheat protection, and anomaly detection and handling to ensure safe use. Attached Figure Description
[0017] Figure 1 This is a schematic diagram of the structure of the phototherapy shower device of the present invention; Figure 2 This is a schematic diagram of the top spray structure of the present invention; Figure 3 This is a schematic diagram of the shower rod structure of the present invention; Figure 4 This is a block diagram of the phototherapy shower control system of the present invention; Figure 5 This is a flowchart of the phototherapy shower control method of the present invention.
[0018] Label Explanation: 1. Top spray; 11. Cover plate; 12. Water inlet; 13. Detection window; 2. Shower rod; 3. Illumination unit; 31. Light panel; 32. LED beads; 4. Distance sensor; 5. Spectrum sensor; 6. Control box. Detailed Implementation
[0019] The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
[0020] This invention provides a phototherapy shower device, such as... Figures 1 to 3 As shown, it includes a top spray 1, a shower rod 2, a lighting unit 3, a distance sensor 4, a spectrum sensor 5, and a control box 6.
[0021] The illumination unit 3 includes a lamp board 31 and a plurality of red LED beads 32 and blue LED beads 32 disposed on the lamp board 31. The wavelength of the red LED beads 32 is 630nm ± 10nm, and the wavelength of the blue LED beads 32 is 465nm ± 10nm.
[0022] The overhead shower 1 is installed at the top of the shower rod 2, and it contains a lighting unit 3. For example... Figure 2As shown, the light panel 31 of the illumination unit 3 is circular, and the LED beads 32 are arranged in a ring on the circular light panel 31, that is, evenly distributed along the circumference of the top spray 1. The light panel 31 and the transparent cover plate 11 of the top spray 1 are provided with corresponding water passage holes 12, and a detection window 13 for the distance sensor 4 to pass through is also provided.
[0023] Shower rod 2 is a vertically installed rod with an internal lighting unit 3 for illuminating the user's back, waist, legs, and other areas. Figure 3 As shown, the light panel 31 of the lighting unit 3 is a long strip shape adapted to the rod body, and red LED beads 32 and blue LED beads 32 are arranged alternately on the long strip light panel 31. The light panel 31 and the shower rod 2 have corresponding water passage holes 12.
[0024] The red and blue light therapy in light unit 3 uses specific wavelengths of light to act on the human body. Red light can promote collagen synthesis and accelerate blood circulation, while blue light has the effect of quickly inhibiting inflammation. The use of a shower head provides a relatively stable opportunity for red and blue light irradiation to come into close contact with human skin.
[0025] Distance sensor 4 is installed at the center of the overhead shower 1 to detect the distance between the user and the overhead shower 1 in real time. In this embodiment, distance sensor 4 is a millimeter-wave radar sensor with a ranging range of 10cm to 200cm, a ranging accuracy of ±1cm, and a sampling frequency of 20Hz.
[0026] A spectral sensor 5 is mounted on the shower rod 2 to collect the diffuse reflectance spectral characteristics of the user's skin. In this embodiment, the spectral sensor 5 collects reflectance data at three wavelengths: 520nm, 660nm, and 880nm, with a sampling frequency of 100Hz.
[0027] The control box 6 is installed at the lower part of the shower rod 2, and integrates an MCU control unit, a PWM (pulse width modulation) drive circuit, a power supply, and a temperature sensor. The control box 6 is electrically connected to the distance sensor 4, the spectrum sensor 5, the red LED bead 32, and the blue LED bead 32.
[0028] The present invention also provides a phototherapy shower control system, which includes at least the following modules (see reference). Figure 4 ): The spectral acquisition module, a spectral sensor, is used to acquire the diffuse reflectance spectral characteristics of the user's skin; The skin texture detection and classification module has a built-in pre-trained support vector machine classification model, which is used to output the skin texture category based on the diffuse reflectance spectral features and map it to obtain the skin texture coefficient; The site selection module is used to obtain the physiotherapy site selected by the user and map it to obtain the regional power coefficient; The target setting module is used to determine the target light intensity based on the physiotherapy mode selected by the user. The distance detection module is a distance sensor used to detect the distance between the human body and the illumination unit in real time; The duty cycle calculation module is used to calculate the target duty cycle according to the inverse square relationship based on the distance, target light intensity, and pre-calibrated hardware light efficiency coefficient including water flow attenuation effect. The duty cycle correction module is used to correct the target duty cycle based on the skin texture coefficient and the area power coefficient to obtain the final duty cycle; Amplitude limiting protection module: used to limit the final duty cycle to obtain the output duty cycle; Among them, the skin texture detection and classification module, the part selection module, the target setting module, the duty cycle calculation module, the duty cycle correction module, and the amplitude limiting protection module are sub-modules of the MCU control unit.
[0029] The PWM drive module is electrically connected to the MCU control unit and is used to generate a corresponding PWM square wave signal based on the duty cycle value output by the MCU control unit, thereby driving the illumination unit to emit light.
[0030] A phototherapy shower control method based on the aforementioned control system is applied to the aforementioned phototherapy shower equipment. Primarily based on diffuse reflectance spectral data, combined with algorithms such as support vector machine classification models, it can achieve accurate skin color detection, with a model calibration accuracy rate reaching 93.5%.
[0031] Furthermore, different skin types have varying tolerances and needs for red and blue light. This method calculates the skin type based on diffuse reflectance spectral data and dynamically adjusts the power of red and blue light to improve irradiation efficiency while avoiding discomfort such as redness, swelling, and itching caused by excessively high irradiation intensity.
[0032] Low brightness (20%~30%): Suitable for daily care of sensitive skin and scalp care; Medium brightness (50%~70%): Suitable for moderate acne treatment and acne scar repair; High brightness (80%~100%): Suitable for severe acne and deep muscle soreness relief.
[0033] This phototherapy shower control method mainly includes the following steps (see reference). Figure 5 ): Obtain the diffuse reflectance spectral characteristics of the user's skin features; Based on diffuse reflectance spectral features, a pre-trained support vector machine classification model is used to output skin texture categories and map them to obtain skin texture coefficients. ; The regional power coefficient is obtained by mapping the treatment area selected by the user. ; Determine the target light intensity based on the user's selected therapy mode. , ∈[20, 50]mW / cm 2 ; Real-time acquisition of the distance d between the human body and the illumination unit; Based on real-time distance d and target light intensity Calculate the target duty cycle using the pre-calibrated hardware luminous efficiency coefficient K. : ; Based on skin type index and regional power coefficient For the target duty cycle After adjustments, the final duty cycle is obtained after skin texture correction and zone correction. : ; To ensure the safety of the LED and driver circuit, the final duty cycle is... To perform amplitude limiting protection, the output duty cycle is obtained. And according to the output duty cycle Drive the illumination unit to emit light.
[0034] The formula for limiting protection is:
[0035] Regarding the calculation of light intensity attenuation: During a shower, the water flow significantly absorbs and scatters the red and blue light emitted by the LED, resulting in a substantial decrease in the actual effective light intensity reaching the skin surface. Without compensation, insufficient illumination when the user is at a distance will render the therapy ineffective, while excessive intensity when the user is close may pose a risk of burns.
[0036] In a shower setting, the actual light intensity I after the water comes out is... out The following relationship exists between the LED driver duty cycle D and the distance d:
[0037] in: I out This represents the actual light intensity (mW / cm²) that reaches the surface of human skin after penetrating the water flow. K represents the hardware luminous efficacy coefficient, a pre-calibrated constant that comprehensively characterizes the luminous efficiency of LED beads, lens transmittance, and the absorption and scattering attenuation of light energy by water flow. Calibration of hardware luminous efficacy coefficient K: In a shower scenario, with fixed distance, fixed water pressure, and a standard shower head as test conditions, the actual light intensity after penetrating the water flow is measured using a light power meter, and the K value is calculated by reverse calculation. D represents the LED driver duty cycle (0~1); d represents the distance (cm) between the human skin and the overhead spray. To ensure that the effective light intensity after penetrating the water flow remains stable within the treatment window of 20~50mW / cm², i.e., to achieve the target light intensity The required target duty cycle for: ; When the user is standing further away, d is larger. Increases; when users stand closer, d is smaller. This dynamic adjustment mechanism ensures that, regardless of the user's location, the actual light intensity reaching the skin after penetrating the water flow remains stable near the target value.
[0038] Regarding skin type testing and classification: This invention uses diffuse reflectance spectroscopy combined with a support vector machine (SVM) classification model to achieve skin texture recognition, which not only effectively avoids privacy issues related to cameras, but also achieves an accuracy rate of up to 93.52%.
[0039] (1) Spectral acquisition: The spectral sensor collects reflectance at three key wavelength points: 520nm (green light): reflects the hemoglobin content in the skin; 660nm (red light): reflects the melanin content of the skin; 880nm (near-infrared light): reflects the skin's moisture and collagen status; The sampling frequency is 100Hz, and the average value is calculated after 10 consecutive samplings. The reflectance at three wavelength points constitutes a three-dimensional feature vector: x=[R 520 R 660 R 880 ].
[0040] (2) Data preprocessing: The collected reflectance data were normalized using Min-Max:
[0041] Where X represents the reflectance value of a certain wavelength in the original spectrum; Xmin represents the minimum value of all wavelengths in the current spectrum; and Xmax represents the maximum value of all wavelengths in the current spectrum.
[0042] Example of normalized feature vectors: =[0.57, 0, 1].
[0043] (3) SVM skin type classification: Radial basis function (RBF) is used:
[0044] Decision function:
[0045] Where SV is the set of support vectors; For Lagrange multipliers; For feature vectors; Skin type category (+1 indicates sensitive skin, -1 indicates non-sensitive skin). Let be the feature vector of the i-th support vector; is the skin type category label of the i-th support vector; b is the bias term.
[0046] The training parameters of the support vector machine classification model are: penalty factor C = 10, kernel parameters... =1.0. By collecting a large amount of spectral data from people with different skin types to train the model, the classification accuracy of the model can reach 93.5%.
[0047] (4) Skin quality coefficient mapping Based on the skin type categories output by the SVM, skin type coefficients are obtained through mapping. The mapping relationship is as follows: For sensitive skin, use a power level of 0.6-0.8 to reduce the intensity and avoid irritation. Neutral muscle corresponds to 0.9~1.1, standard power; The tolerance level corresponds to 1.0~1.2, which can be appropriately increased.
[0048] In this embodiment, the default setting is 0.7 for sensitive skin, 1.0 for neutral skin, and 1.1 for tolerant skin. Users can also manually adjust the settings within the preset range according to their own preferences.
[0049] (5) Zonal care In this embodiment, a regional power coefficient is preset to address the skin characteristics and therapeutic needs of different body parts. See Table 1:
[0050] Users can select the area requiring treatment via voice commands or a mobile app, and the system will automatically look up the corresponding treatment area. value.
[0051] Meanwhile, the system can automatically identify and schedule the corresponding lighting units according to the treatment area selected by the user: when the face or scalp mode is selected, the control unit only drives the lighting unit on the overhead shower to emit light, while the lighting unit on the shower rod remains in standby mode; when the back, waist, abdomen, or joint mode is selected, the control unit only drives the lighting unit on the shower rod to emit light, while the lighting unit on the overhead shower remains in standby mode; when the shoulder and neck or combined / full body mode is selected, the control unit drives both the lighting unit and the lighting unit to emit light, and the two independently perform their respective duty cycle calculations.
[0052] Regarding PWM dimming: This solution uses dual-channel independent PWM control to drive the red LED and the blue LED separately, thereby achieving independent dimming of the red and blue light.
[0053] The target light intensities for red and blue light are determined based on the user's selected therapy mode, as shown in Table 2.
[0054] After determining the target light intensity, calculate the final duty cycle of the red light separately. and final duty cycle of blue light :
[0055]
[0056] Where R represents red light; B represents blue light; Indicates the luminous efficacy coefficient of red light hardware; This represents the luminous efficacy coefficient of blue light hardware.
[0057] For the final duty cycle To perform amplitude limiting protection, the output duty cycle is obtained. And according to the output duty cycle Drive the illumination unit to emit light.
[0058] Based on the aforementioned dual-channel independent PWM control, this solution can provide a variety of flexible physiotherapy modes: Adjust the blue light brightness individually: for different degrees of acne severity (e.g., use low brightness blue light for mild acne and high brightness for severe acne). Individually adjust the brightness of the red light: for different repair needs (such as using medium brightness red light to lighten acne scars, and high brightness to heal deep wounds). Hybrid adjustment: such as red light duty cycle of 70% + blue light duty cycle of 30%, to achieve a combined physiotherapy mode of repair and acne removal.
[0059] Closed-loop refresh control: To achieve real-time dynamic adjustment, this embodiment uses a closed-loop refresh cycle of 50ms (20Hz). The following operations are performed within each cycle: 1. Reacquire distance d using millimeter-wave radar; 2. If the distance variation exceeds ±2cm and remains stable for 3 consecutive cycles, recalculate the duty cycle; 3. Output a new PWM duty cycle; Anti-shake processing: The PWM duty cycle is recalculated and adjusted only after the distance change has stabilized for three consecutive cycles, avoiding frequent jitter. This anti-shake mechanism prevents frequent adjustments and light flickering caused by minor user movements.
[0060] The complete operation flow of the phototherapy shower control system of this invention is as follows: 1. System Initialization After the system is powered on, it executes a self-test program to check whether the LED beads, millimeter-wave radar, spectrum sensor, and PWM drive circuit are working properly.
[0061] Initialization parameters: Default duty cycle = 0% (no light); Default mode = standby; Default skin texture coefficient = 1.0; After all hardware returns a normal status code, it indicates that the self-test has passed and the system enters standby mode; if the self-test fails, a buzzer alarm will sound 3 times, the LED indicator will flash red, and the physiotherapy function will not be activated.
[0062] 2. User Detection and Activation Millimeter-wave radar monitors the shower area in real time to detect whether anyone has entered. When a person is detected entering the area under the showerhead and the distance is less than 100cm, the system switches from standby to active mode, emits a beep, and the LED indicator turns solid blue. The millimeter-wave radar outputs the distance d in real time.
[0063] If no further action is taken within 60 seconds of activation, it will automatically return to standby mode. In scenarios where multiple people are showering at the same time, the system identifies the person who is closest to the user and stays in the shower the longest as the target user.
[0064] 3. Diffuse reflectance spectral acquisition 3.1 Start the LED light source of the spectral sensor, continuously collect reflection spectrum data 10 times, calculate the average reflectance at each wavelength point, and obtain the original feature vector.
[0065] Acquisition parameters: three key wavelengths: 520nm (green), 660nm (red), and 880nm (infrared); sampling frequency: 100Hz; duration: 50ms.
[0066] 3.2 Error Handling A - Data Acquisition Failure The exception types and handling actions are shown in Table 3.
[0067] 4. Spectral data preprocessing: 4.1 The original data is denoised, normalized, and dimensionality reduced to obtain a standardized three-dimensional feature vector.
[0068] 4.2 Anomaly Handling: If the variance of the normalized data is <0.01 (signal is too weak), jump back to step 3 to re-acquire data.
[0069] 5. Skin type classification: 5.1 Input the standardized feature vectors into the pre-trained SVM model. The model calculates the RBF kernel value and outputs the skin type category through the decision function.
[0070] 5.2 Obtaining Skin Texture Coefficient Based on Skin Texture Category Mapping .
[0071] 5.3 Anomaly Handling B—Low Classification Confidence The exception types and handling actions are shown in Table 4.
[0072] 6. Location selection and parameter determination: Users can select treatment areas and modes via voice commands or a mobile app.
[0073] The system retrieves the regional power coefficient from a table based on the user's selection. .
[0074] 7. Dynamic Distance Measurement Millimeter-wave radar detects the distance d between the user and the top spray in real time.
[0075] Anomaly Handling—Range Measurement Failure
[0076] 8. Determine the target light intensity The target light intensity of red and blue light is determined based on the treatment area selected by the user. and .
[0077] Relationship between light intensity and distance:
[0078] Target light intensity constraint: ∈[20, 50]mW / cm 2 9. Duty Cycle Calculation Red light duty cycle:
[0079] Blue light duty cycle:
[0080] Among them, the red light hardware luminous efficacy coefficient Typical value is 8.5mW / cm²; Blue light hardware luminous efficacy coefficient The typical value is 7.2 mW / cm².
[0081] 10. Duty Cycle Limiting Protection Limiting formula:
[0082] Safety protection value: when When the light intensity is greater than 0.95, a voice prompt will appear saying "The light intensity is high, please keep your distance," and the log will be recorded simultaneously. when If the value is less than 0.05 and the system is in non-standby mode, check for hardware malfunction. Five consecutive times If the light intensity is greater than 0.9, a voice prompt will appear saying, "The light intensity is high. Please keep your distance."
[0083] 11. Closed-loop refresh The system refreshes every 50ms to ensure a smooth, flicker-free experience. Each refresh performs the following operations: 11.1 Reacquire millimeter-wave radar ranging d; 11.2 If the distance change exceeds ±2cm and remains stable for 3 consecutive cycles, recalculate the PWM duty cycle (repeat steps 7 → 9 → 10 → 11). 11.3 Output the new duty cycle.
[0084] 12. End and Standby The system will terminate the physical therapy and return to standby mode when any of the following conditions are met: ① User voice command "End" or "Close": Gradually reduce the duty cycle to 0 (within 1 second) and play the "Therapy Ended" prompt tone.
[0085] ②If the millimeter-wave radar does not detect a human body for 10 consecutive seconds: immediately shut down the PWM output and return to standby mode.
[0086] ③ If a single physiotherapy session exceeds the time limit (30 minutes): the session will automatically close and display the message "This physiotherapy session has been completed".
[0087] ④ If the temperature sensor detects that the system temperature is too high (>60℃): Emergency shutdown and buzzer alarm.
[0088] Specific application examples: Example 1: Acne treatment for women with sensitive skin User: 25-year-old female, sensitive skin, mild facial acne Usage mode: Facial acne treatment mode (primarily blue light) Standing distance: approximately 30cm from the overhead spray nozzle Environment: Family bathroom, lighting is normal Usage time: 10 minutes (recommended for sensitive skin) System operation process: The system performs a power-on self-test, and the radar ranging d=30cm. Spectral acquisition data: R520=0.32, R660=0.28, R880=0.35, normalized x[0.57, 0, 1]; SVM Skin Type Classification: After the SVM training is completed, the support vectors are obtained as shown in Table 6:
[0089] bias RBF kernel parameters ; Kernel function calculation: Calculate support vector 1 [0.5, 0.1, 0.9]:
[0090]
[0091] Kernel function: ; Calculate support vector 2 [0.7, 0.05, 0.85]:
[0092]
[0093] Kernel function: ; Calculate support vector 3 [0.6, 0.3, 0.7]:
[0094]
[0095] Kernel function:
[0096] Decision function calculation:
[0097]
[0098] Summation: 0.2928 + 0.1776 0.0520 = 0.4184 Add bias:
[0099] Sensitive skin (+1) =0.7.
[0100] Part selection and Sure: Select the facial acne treatment mode and refer to the table. =0.8; Target light intensity: =5mW / cm², =30mW / cm².
[0101] PWM duty cycle calculation: Red light duty cycle:
[0102] =
[0103] Blue light duty cycle:
[0104] =
[0105] Duty cycle limiting protection:
[0106] actual =0.297; =1.0.
[0107] Actual output light intensity verification:
[0108] Red light: =(8.5×0.297) / 900=2.52 / 900≈28mW / cm²; Blue light: =(7.2×1.0) / 900=7.2 / 900≈80mW / cm² (approximately 35~40 after penetrating the water flow).
[0109] Closed-loop refresh: The refresh cycle is 50ms. The d value is re-acquired. If there is a change, the above steps are repeated to ensure a smooth, flicker-free screen. End: When the user says "End," the duty cycle is reduced to 0, and the system returns to standby mode.
[0110] The above description is only a preferred embodiment of the present invention and is not intended to limit the design of this case. All equivalent changes made based on the key design features of this case shall fall within the protection scope of this case.
Claims
1. A method for controlling a phototherapy shower, characterized in that, Includes the following steps: Obtain the diffuse reflectance spectral characteristics of the user's skin features; Based on diffuse reflectance spectral features, a pre-trained support vector machine classification model is used to output skin texture categories and map them to obtain skin texture coefficients. ; The regional power coefficient is obtained by mapping the treatment area selected by the user. and determine the target light intensity The target light intensity is defined as the effective light intensity that reaches the surface of human skin after penetrating the water flow, and ∈[20, 50]mW / cm 2 ; Real-time acquisition of the distance d between the human body and the illumination unit; based on the real-time distance d and the target light intensity... Calculate the target duty cycle using the pre-calibrated hardware luminous efficiency coefficient K. ; Based on skin type index and regional power coefficient For the target duty cycle Make adjustments to obtain the final duty cycle. ; For the final duty cycle To perform amplitude limiting protection, the output duty cycle is obtained. And according to the output duty cycle Drive the illumination unit to emit light.
2. The phototherapy shower control method as described in claim 1, characterized in that: The distance d is obtained by detection using a millimeter-wave radar sensor. The ranging range of the millimeter-wave radar sensor is 10cm to 200cm, the ranging accuracy is ±1cm, and the sampling frequency is 20Hz.
3. The phototherapy shower control method as described in claim 1, characterized in that: The diffuse reflectance spectral characteristics include reflectance at least at the following three wavelength points: 520nm, 660nm, and 880nm; reflectance data are collected by a diffuse reflectance spectral sensor at a sampling frequency of 100Hz, and the average value is taken after 10 consecutive collections.
4. The phototherapy shower control method as described in claim 1, characterized in that: The skin type categories include sensitive skin, normal skin, and tolerant skin; the mapping relationship between the skin type coefficient and the skin type category is as follows: Sensitive skin corresponds to a skin quality index of 0.6~0.8; Neutral skin corresponds to a skin texture index of 0.9~1.1; Tolerant skin corresponds to a skin quality index of 1.0~1.
2.
5. The phototherapy shower control method as described in claim 1, characterized in that: For the final duty cycle The amplitude limiting protection is as follows: 。 6. The phototherapy shower control method as described in claim 1, characterized in that: The lighting unit consists of two LEDs, each including a red LED and a blue LED. Independent hardware luminous efficacy coefficients are used to calculate the final duty cycle of the red LED separately. and final duty cycle of blue light : in, Indicates the luminous efficacy coefficient of red light hardware; This represents the luminous efficacy coefficient of blue light hardware.
7. The phototherapy shower control method as described in claim 1, characterized in that: It also includes a closed-loop refresh step: with a refresh cycle of 50ms, the steps of distance detection, duty cycle calculation, duty cycle correction, amplitude limiting protection and output are repeatedly executed to update the output duty cycle in real time.
8. A phototherapy shower control system, characterized in that, include: The spectral acquisition module is used to acquire the diffuse reflectance spectral characteristics of the user's skin; The skin texture detection and classification module has a built-in pre-trained support vector machine classification model, which is used to output the skin texture category based on the diffuse reflectance spectral features and map it to obtain the skin texture coefficient; The site selection module is used to obtain the physiotherapy site selected by the user and map it to obtain the regional power coefficient; The target setting module is used to determine the target light intensity based on the physiotherapy mode selected by the user. The distance detection module is used to detect the distance between the human body and the illumination unit in real time; The duty cycle calculation module is used to calculate the target duty cycle according to the inverse square relationship based on the distance, target light intensity, and pre-calibrated hardware light efficiency coefficient including water flow attenuation effect. The duty cycle correction module is used to correct the target duty cycle based on the skin texture coefficient and the area power coefficient to obtain the final duty cycle; Amplitude limiting protection module: used to limit the final duty cycle to obtain the output duty cycle; The PWM drive module generates a corresponding PWM square wave signal based on the output duty cycle value, thereby driving the lighting unit to emit light.
9. A phototherapy shower device, characterized in that: Phototherapy control is performed using the phototherapy shower control method as described in any one of claims 1 to 8.