A multi-source data fusion correction method for children's glasses
By initializing system parameters in children's glasses and using a multi-source data fusion correction method, the problems of large illumination measurement errors and fiber optic transmission attenuation under dynamic wearing postures were solved, achieving accurate illumination measurement and consistency correction.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN HUIMING EYEGLASSES CO LTD
- Filing Date
- 2026-02-28
- Publication Date
- 2026-06-02
AI Technical Summary
Existing children's glasses suffer from large measurement errors and insufficient fusion correction accuracy in multi-channel illumination acquisition under dynamic wearing posture, and the fiber optic transmission attenuation is not effectively compensated, resulting in poor consistency of correction results.
By initializing system parameters, a reference optical axis for the light-collecting array is established, and multi-source data is collected and aligned synchronously. The multi-channel ADC count values are converted into illumination vectors, and the attitude sensor data is fused through quaternion calibration to define the wearing reference attitude and attitude deviation angle, and to perform attitude compensation calculation. Channel reliability weights are defined to perform robust fusion. Fiber attenuation is inverted and corrected to output accurate illumination values.
It achieves accurate illumination measurement under dynamic wearing and complex light field conditions, improves spatial consistency and anti-occlusion robustness, and can truly reflect the intensity of the external light environment.
Smart Images

Figure CN122132699A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data fusion correction technology, and in particular to a multi-source data fusion correction method for children's eyeglasses. Background Technology
[0002] In recent years, with the continuous growth in demand for myopia prevention and eye health management in children, environmental lighting monitoring technology based on wearable devices has developed rapidly. Children's glasses, as a smart carrier that naturally fits the wearing scenario, are gradually integrating modules such as light sensors, posture sensors, and microcontrollers to realize real-time collection and analysis of daily light exposure. In the relevant technology system, multi-channel light-collecting arrays can improve the perception of complex light fields by collecting light signals from different directions, while inertial measurement units (IMUs) and posture calculation algorithms provide an important foundation for lighting correction under dynamic wearing conditions. In addition, with the maturity of fiber optic light guiding and microlens array processing technologies, the application of light-collecting bead arrays and fiber optic transmission structures in children's glasses is becoming increasingly common, enabling lighting monitoring to evolve from single-point measurement to multi-source fusion and spatial compensation. Therefore, how to achieve multi-source data fusion correction and accurate output under conditions of frequent changes in children's wearing posture, complex light incident directions, and attenuation in transmission links has become an important research direction in the field of smart children's glasses.
[0003] However, existing technologies still have significant shortcomings. First, most illumination monitoring schemes rely on single-channel illuminance acquisition, lacking unified modeling and directional consistency correction for multi-channel illumination vectors. This leads to a significant increase in measurement errors under non-standard wearing postures such as tilting or flipping. Second, some existing methods only use Euler angles or simple posture thresholds for compensation, failing to achieve stable and continuous posture calculation through quaternion fusion. This makes them prone to singularities and error accumulation during large-angle movements or sudden posture changes, thus affecting the reliability of compensation. Furthermore, existing technologies generally lack a systematic definition of "wearing reference posture - posture deviation angle," making it impossible to establish a unified reference coordinate system under conditions of individual differences in children and loose wearing, resulting in poor consistency of correction results. Finally, for children's glasses with fiber optic light guide structures, existing schemes usually ignore fiber transmission attenuation and its inversion compensation, making it difficult for the final illuminance output to accurately reflect the intensity of the external light environment. Summary of the Invention
[0004] In view of the aforementioned existing problems, the present invention is proposed.
[0005] Therefore, this invention provides a multi-source data fusion correction method for children's glasses, which solves the problems of large illuminance measurement error and insufficient fusion correction accuracy in children's glasses under dynamic wearing posture changes and fiber optic transmission attenuation conditions.
[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution: In a first aspect, the present invention provides a multi-source data fusion correction method for children's eyeglasses, comprising, Initialize system parameters, establish the reference optical axis direction of the light-collecting array, and synchronously acquire and align raw multi-source data; The raw multi-source data includes raw data from multi-channel illumination ADC and attitude sensor; The multi-channel ADC count values are converted into illumination vectors, and the raw data from the attitude sensor is calibrated and fused using quaternions to output attitude quaternions. Establish a reference wearing posture and define the posture deviation angle. Correct the illumination vector by posture compensation calculation based on the reference optical axis direction and output posture compensation illuminance. Define channel confidence weights and obtain the fused illumination value by robustly fusing the multi-channel pose-compensated illumination. The fiber attenuation is inverted and corrected on the fused illumination value to output the final accurate illumination value.
[0007] As a preferred embodiment of the multi-source data fusion correction method for children's glasses described in this invention, the initialization of system parameters and the synchronous acquisition and alignment of raw multi-source data include: After the system is powered on, the MCU reads the factory calibration parameters from the memory, including the dark count and channel gain of each light-collecting channel, the fiber length and nominal attenuation coefficient, and the zero-bias parameters of the attitude sensor. Based on the eyeglass structure design, a unit vector of the optical axis direction is defined for each light-collecting bead channel i in the sensor coordinate system; The MCU performs cyclic sampling with a fixed sampling period. Within the sampling period, it sequentially acquires the ADC count value and attitude sensor raw data of each light-collecting bead channel. The attitude sensor raw data includes acceleration, angular velocity and magnetometer raw readings.
[0008] As a preferred embodiment of the multi-source data fusion correction method for children's glasses described in this invention, wherein: the step of converting multi-channel ADC count values into illumination vectors includes, For each light-collecting bead channel, the ADC count value is converted into the original illuminance value of the channel using the corresponding channel's dark count and channel gain. The original illuminance values of all channels are combined to form an illumination vector.
[0009] As a preferred embodiment of the multi-source data fusion correction method for children's glasses described in this invention, the method involves: calibrating and fusing the raw data from the attitude sensor using quaternions to output attitude quaternions, including... Obtain the corresponding sensitivity constant from the attitude sensor datasheet and convert the raw attitude sensor readings into physical quantities. Use the zero-bias parameters of the attitude sensor to perform zero-bias correction on the physical quantities of the attitude sensor; Define a normalized acceleration vector, and obtain the roll and pitch angles based on the normalized acceleration vector; The horizontal component is obtained through tilt compensation of the magnetometer, and the heading angle is calculated based on the horizontal component. Half-angle trigonometric quantities are defined using roll, pitch, and yaw angles. These half-angle trigonometric quantities are then used to generate quaternions in the order of roll-pitch-yaw angle and normalized to obtain the final attitude quaternions. .
[0010] As a preferred embodiment of the multi-source data fusion correction method for children's glasses described in this invention, the step of establishing a wearing reference posture and defining the posture deviation angle includes, When a low angular velocity stabilization window is detected, the average attitude within the window is calculated as the wearing reference attitude. Calculate the quaternion of the current posture relative to the wearing reference posture; Convert the deviation quaternion into an equivalent global deviation angle.
[0011] As a preferred embodiment of the multi-source data fusion correction method for children's glasses described in this invention, the step of correcting the illumination vector through attitude compensation calculation based on the reference optical axis direction and outputting attitude-compensated illuminance includes: Rotate the unit vector of the optical axis direction of each light-collecting bead channel in the sensor coordinate system to the world coordinate system; Define the reference optical axis direction and calculate the cosine of the angle between the current optical axis direction and the reference optical axis direction; Define the physical cosine term and attitude residual term for attitude compensation, correct the illumination vector, and obtain the attitude-compensated illuminance for each channel.
[0012] As a preferred embodiment of the multi-source data fusion correction method for children's glasses described in this invention, wherein: the definition of channel confidence weights includes, First, estimate the channel noise variance within the sliding window; Simultaneously considering incident consistency and noise level, channel confidence weights are defined.
[0013] As a preferred embodiment of the multi-source data fusion correction method for children's glasses described in this invention, wherein: the step of robustly fusing multi-channel attitude-compensated illuminance to obtain a fused illuminance value includes, First, calculate the residuals of the channel-weighted average; The equivalent weights are updated using a preset residual threshold via Huber-type truncation. Finally, equivalent weights are used for fusion, and the fused illumination value is output.
[0014] As a preferred embodiment of the multi-source data fusion correction method for children's glasses described in this invention, the step of performing fiber attenuation inversion and correction on the fused illumination value includes: By inverting the decibels, fiber loss is incorporated into the fused illumination value to obtain an accurate illumination value.
[0015] As a preferred embodiment of the multi-source data fusion correction method for children's glasses described in this invention, wherein: the output of the final accurate illumination value includes, The precise illumination value, combined with the current timestamp, the original illumination value, the attitude quaternion, and the attitude-compensated illumination, is integrated into a full-link data packet and output.
[0016] The beneficial effects of this invention are as follows: by establishing a reference optical axis, performing quaternary attitude calculation, optical axis attitude compensation correction, robust fusion of channel reliability, and fiber attenuation inversion, accurate illumination measurement of children's glasses under dynamic wearing, complex light field, and fiber transmission conditions is achieved. Compared with existing single-channel or simple attitude correction schemes, it has stronger spatial consistency, anti-blocking robustness, and transmission loss compensation capabilities, and can more realistically reflect the intensity of the external light environment. Attached Figure Description
[0017] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a flowchart of a multi-source data fusion correction method for children's glasses in Example 1.
[0019] Figure 2 This is a flowchart of the attitude compensation illumination in Example 1. Detailed Implementation
[0020] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0021] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.
[0022] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.
[0023] Example 1, referring to Figure 1 and Figure 2 This is the first embodiment of the present invention, which provides a multi-source data fusion correction method for children's glasses, including the following steps: S1. Initialize system parameters, establish the reference optical axis direction of the light-collecting array, and synchronously collect and align raw multi-source data. Specifically, after the system is powered on, the MCU reads the factory calibration parameters from the memory, including the dark count and channel gain of each light-collecting channel, the fiber length and nominal attenuation coefficient, and the zero-bias parameters of the attitude sensor. Based on the eyeglass structure design, a unit vector of the optical axis direction is defined for each light-collecting bead channel i in the sensor coordinate system. This vector reflects the fixed installation direction of the light-collecting bead lens in the frame and is expressed as: ; in, , and These represent the vectors along the x, y, and z axes of the unit vector along the optical axis, respectively. The MCU performs cyclic sampling with a fixed sampling period. Within the sampling period, it sequentially acquires the ADC count value and attitude sensor raw data of each light-collecting bead channel. The attitude sensor raw data includes acceleration, angular velocity and magnetometer raw readings.
[0024] By initializing system parameters and establishing the reference optical axis direction of the light-collecting array, and simultaneously acquiring multi-channel illumination ADC count values and raw data from the attitude sensor within a fixed sampling period, strict alignment and structured input of illumination and attitude data under the same time reference are achieved. The purpose of this step is twofold: firstly, by reading factory calibration parameters such as dark count, channel gain, fiber length, and attitude zero bias, subsequent calculations have a unified physical dimension basis; secondly, by defining a fixed optical axis direction unit vector for each light-collecting bead channel, a spatial reference coordinate system for array light collection is established, thus making illumination acquisition not only a single-point illuminance measurement but also a multi-source light signal sampling with directional attributes. This achieves the beneficial effect of providing a stable geometric reference for subsequent attitude compensation and multi-channel fusion in scenarios where children's wearing postures frequently change, significantly improving system repeatability and calibration consistency.
[0025] S2. Convert the multi-channel ADC count values into illumination vectors, calibrate and fuse the raw data from the attitude sensor using quaternions, and output attitude quaternions. Specifically, for each light-collecting bead channel, the ADC count value is converted into the original illuminance value of the channel using the corresponding channel's dark count and channel gain, as follows: ; in, This represents the original illuminance value of the i-th channel. This represents the ADC count value of the i-th channel. and Let represent the dark count and channel gain of the i-th channel, respectively. The original illuminance values of all channels are combined into a light vector; Furthermore, based on the attitude sensor datasheet, the corresponding sensitivity constant is obtained, and the raw attitude sensor readings are converted into physical quantities, expressed as follows: ; ; ; in, , and These represent acceleration, angular velocity, and magnetic force, respectively. , and These represent acceleration, angular velocity, and magnetometer sensitivity, respectively. , and This represents the raw readings from the acceleration, angular velocity, and magnetometer sensors; Use the zero-bias parameters of the attitude sensor to perform zero-bias correction on the physical quantities of the attitude sensor; Define a normalized acceleration vector as follows: ; in, Represents the normalized acceleration vector. This represents the physical quantity of acceleration after zero bias correction. Indicates the square root; Normalize the acceleration vector The roll and pitch angles are obtained from the normalized acceleration vector and are expressed as follows: ; ; in, Indicates the roll angle. Indicates pitch angle, , and The x, y, and z-axis direction vectors representing the normalized acceleration vector; The horizontal component, obtained through magnetometer tilt compensation, is expressed as: ; ; in, and These represent the horizontal components of the x-axis and y-axis, respectively. , and These represent the x, y, and z axis direction vectors of the magnetic physical quantity after zero bias correction; The heading angle is calculated based on the horizontal component and expressed as: ; in, Indicates the heading angle; Half-angle trigonometric quantities are defined using roll, pitch, and yaw angles. These half-angle trigonometric quantities are then used to generate quaternions in the order of roll-pitch-yaw angle and normalized to obtain the final attitude quaternions. .
[0026] By converting multi-channel ADC counts into illumination vectors and performing quaternion calibration on the raw data from the attitude sensor to fuse and output attitude quaternions, a physical representation of illumination signals and attitude information and stable attitude calculation are achieved. The purpose of this step is twofold: First, the raw counts are converted into illuminance values using dark counting and channel gain, mapping the illumination input from the electronic counting domain to the lux physical domain, facilitating subsequent compensation modeling. Second, through sensor sensitivity conversion and zero-bias correction, acceleration, angular velocity, and magnetometer data are unified into fusionable inertial physical quantities. Furthermore, attitude quaternions are constructed using roll angle, pitch angle, and yaw angle to avoid the singularity of Euler angles under large attitude roll conditions, thereby obtaining continuous and stable attitude output. This achieves the beneficial effect of maintaining attitude calculation accuracy and compensation continuity even under dynamic wearing conditions for children, providing a reliable foundation for the subsequent definition of attitude deviation angles.
[0027] S3. Establish the wearing reference posture and define the posture deviation angle. Through posture compensation calculation based on the reference optical axis direction, correct the illumination vector and output the posture compensation illumination. Specifically, when a low angular velocity stabilization window is detected, the average attitude within the window is calculated as the wearing reference attitude, expressed as: ; in, Indicates the standard wearing posture. This represents the total number of frames in the stable window. Indicates the stable window index. Represents the pose quaternion of the j-th frame; The deviation quaternion of the current pose from the wearing reference pose is calculated and expressed as: ; in, Indicates deviation from quaternions, To represent quaternion multiplication, Represents the current attitude quaternion; Converting the deviation quaternion to an equivalent global deviation angle is expressed as: ; in, Indicates the overall deviation angle. express scalar part; Furthermore, the unit vector of the optical axis direction of each light-collecting bead channel in the sensor coordinate system is rotated to the world coordinate system, and expressed as: ; in, This represents the unit vector indicating the direction of the optical axis in the world coordinate system. The rotation matrix corresponding to the attitude quaternion is obtained through attitude quaternion transformation; Define the reference optical axis direction and calculate the cosine of the angle between the current optical axis direction and the reference optical axis direction, expressed as: ; ; in, Indicates the direction of the reference optical axis. This represents the cosine of the angle between the current optical axis direction and the reference optical axis direction. Used to limit the cosine to To avoid the negative values caused by flipping directly amplifying noise; Define the physical cosine term and attitude residual term for attitude compensation, correct the illumination vector, and obtain the attitude-compensated illuminance for each channel, expressed as: ; in, Let represent the attitude-compensated illuminance of the i-th channel. Represents the principal term of the cosine. and Represents the coefficient of the cosine principal term. Indicates the residual compensation term. and This represents the residual compensation coefficient; The cosine principal coefficients and residual compensation coefficients are determined through factory calibration. Specifically, for each light-collecting channel, the children's glasses are fixed in a reference posture and two preset tilt postures under a collimated standard light source. The corresponding original illuminance values are collected as light response values, and the relative response ratio is calculated. The cosine principal coefficients are obtained by solving the denominator of the cosine principal term using a two-point closed-form solution. and Simultaneously, under a uniform diffuse light field, the children's glasses were fixed at a reference deviation angle and two preset attitude deviation angles, respectively. The residual proportions after cosine principal term compensation were collected, and the residual polynomial coefficients were obtained by closed-form solving using the residual compensation term. and .
[0028] By establishing a reference wearing posture and defining the posture deviation angle, and combining the reference optical axis direction for posture compensation calculation, the spatial consistency correction of multi-channel illumination vectors under any wearing posture is achieved. The purpose of this step is as follows: First, the average posture is extracted within the low angular velocity stabilization window as the reference wearing posture, so that the compensation reference system is adaptively matched with the actual wearing state of the child; second, by calculating the deviation quaternion and the overall deviation angle, the complex posture changes are normalized into a quantifiable deviation scale; further, the optical axis direction of each light-collecting channel is mapped to the world coordinate system through a rotation matrix, and the cosine of its angle relative to the reference optical axis is calculated, thereby establishing the physical relationship between "optical axis deviation and light-collecting error"; finally, the cosine principal term and residual polynomial term are used for joint compensation, so that the compensation not only conforms to the optical incident cosine law, but also absorbs non-ideal residuals such as frame obstruction and lens edge effects. Thus, the beneficial effect of outputting posture compensation illuminance and significantly converging the error is achieved even under complex wearing conditions such as tilting and flipping. This is the core improvement of this invention that distinguishes it from the existing simple posture weighting method.
[0029] S4. Define the channel confidence weights and obtain the fused illumination value by robustly fusing the multi-channel attitude compensation illumination. Specifically, we first estimate the variance of the channel noise within the sliding window, expressed as: ; in, Indicates the noise variance. This represents a sliding window with a size of W; Considering both incident uniformity and noise level, the channel confidence weight is defined as follows: ; in, Indicates the channel credibility weight. This represents a fixed sensitivity coefficient to the attenuation of channel weights due to attitude angle deviation, which is solved using fixed constraints. Indicates the minimum value to prevent division by zero; Furthermore, the residual of the channel-weighted mean is first calculated, and expressed as: ; ; in, The residuals represent the channel-weighted mean. This represents the channel-weighted average. The equivalent weights are updated using a preset residual threshold through Huber-type truncation, as follows: ; in, Indicates equivalent weight, This represents the preset residual threshold. Finally, equivalent weights are used for fusion, and the fused illumination value is output as follows: ; in, This indicates the blended illumination value.
[0030] By defining channel reliability weights and robustly fusing multi-channel attitude-compensated illuminance, a reliable illuminance output for a multi-source lighting array under conditions of occlusion interference and noise differences is achieved. This step serves several purposes: first, by using a sliding window to estimate the channel noise variance, the system can dynamically identify the stability differences between different channels; second, by constructing an exponentially decaying weight based on the attitude deviation cosine term, channels with larger deviations automatically reduce their contribution, thereby improving the directional consistency of the fusion; and third, by using residual calculation and a Huber-type truncation mechanism to suppress the biasing effect of abnormal channels on the mean, avoiding the propagation of sudden errors caused by local occlusion or reflection during child wear. This achieves the beneficial effect of obtaining robust fused illuminance values even in complex light fields and dynamic wearing environments, enabling the system output to have anti-interference capabilities without relying on a single channel.
[0031] S5. Perform fiber attenuation inversion and correction on the fused illumination value to output the final accurate illumination value. Specifically, the fiber loss is incorporated into the fused illumination value using decibel inversion to obtain a precise illumination value, expressed as: ; ; in, Indicates the nominal attenuation coefficient. Indicates the length of the optical fiber. Indicates precise illumination values; Furthermore, the precise illumination value, combined with the current timestamp, original illumination value, attitude quaternion, and attitude-compensated illumination, is integrated into a full-link data packet and output.
[0032] By performing fiber attenuation inversion and correction on the fused illumination value, a final accurate illumination value is output, achieving closed-loop correction of end-to-end loss compensation from the light-collecting end to the sensing end. The purpose of this step is to: consider the structural characteristics of light-collecting bead arrays in children's glasses that transmit light through fiber optic guidance, introduce the fiber length and nominal attenuation coefficient into the decibel inversion model, directly and quantitatively correct the transmission loss, and avoid the fused result being systematically low due to fiber attenuation; at the same time, integrate the accurate illumination value with information such as timestamp, attitude quaternion, and attitude-compensated illuminance to form a traceable end-to-end data packet, thereby achieving the beneficial effect of balancing real-time measurement accuracy and data integrity, so that the final output illumination value can truly reflect the actual light environment exposure level of children, and is suitable for long-term health monitoring and behavioral analysis.
[0033] This embodiment also provides a computer device applicable to a multi-source data fusion correction method for children's eyeglasses, comprising: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the multi-source data fusion correction method for children's eyeglasses as proposed in the above embodiment.
[0034] The computer device can be a terminal, comprising a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the computer device's casing, or an external keyboard, touchpad, or mouse.
[0035] This embodiment also provides a storage medium storing a computer program that, when executed by a processor, implements a multi-source data fusion correction method for children's glasses as proposed in the above embodiments. The storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Red-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0036] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A multi-source data fusion correction method for children's eyeglasses, characterized in that: include, Initialize system parameters, establish the reference optical axis direction of the light-collecting array, and synchronously acquire and align raw multi-source data; The raw multi-source data includes raw data from multi-channel illumination ADC and attitude sensor; The multi-channel ADC count values are converted into illumination vectors, and the raw data from the attitude sensor is calibrated and fused using quaternions to output attitude quaternions. Establish a reference wearing posture and define the posture deviation angle. Correct the illumination vector by posture compensation calculation based on the reference optical axis direction and output posture compensation illuminance. Define channel confidence weights and obtain the fused illumination value by robustly fusing the multi-channel pose-compensated illumination. The fiber attenuation is inverted and corrected on the fused illumination value to output the final accurate illumination value.
2. The multi-source data fusion correction method for children's glasses as described in claim 1, characterized in that: The initialization of system parameters, synchronous acquisition and alignment of raw multi-source data, includes, After the system is powered on, the MCU reads the factory calibration parameters from the memory, including the dark count and channel gain of each light-collecting channel, the fiber length and nominal attenuation coefficient, and the zero-bias parameters of the attitude sensor. Based on the eyeglass structure design, a unit vector of the optical axis direction is defined for each light-collecting bead channel i in the sensor coordinate system; The MCU performs cyclic sampling with a fixed sampling period. Within the sampling period, it sequentially acquires the ADC count value and attitude sensor raw data of each light-collecting bead channel. The attitude sensor raw data includes acceleration, angular velocity and magnetometer raw readings.
3. The multi-source data fusion correction method for children's eyeglasses as described in claim 2, characterized in that: The process of converting multi-channel ADC count values into illumination vectors includes, For each light-collecting bead channel, the ADC count value is converted into the original illuminance value of the channel using the corresponding channel's dark count and channel gain. The original illuminance values of all channels are combined to form an illumination vector.
4. The multi-source data fusion correction method for children's glasses as described in claim 3, characterized in that: The raw attitude sensor data is calibrated and fused using quaternions to output attitude quaternions, including: Obtain the corresponding sensitivity constant from the attitude sensor datasheet and convert the raw attitude sensor readings into physical quantities. Use the zero-bias parameters of the attitude sensor to perform zero-bias correction on the physical quantities of the attitude sensor; Define a normalized acceleration vector, and obtain the roll and pitch angles based on the normalized acceleration vector; The horizontal component is obtained through tilt compensation of the magnetometer, and the heading angle is calculated based on the horizontal component. Half-angle trigonometric quantities are defined using roll, pitch, and yaw angles. These half-angle trigonometric quantities are then used to generate quaternions in the order of roll-pitch-yaw angle and normalized to obtain the final attitude quaternions. .
5. The multi-source data fusion correction method for children's glasses as described in claim 4, characterized in that: The process involves establishing a baseline wearing posture and defining the posture deviation angle. include, When a low angular velocity stabilization window is detected, the average attitude within the window is calculated as the wearing reference attitude. Calculate the quaternion of the current posture relative to the wearing reference posture; Convert the deviation quaternion into an equivalent global deviation angle.
6. The multi-source data fusion correction method for children's glasses as described in claim 5, characterized in that: The process involves correcting the illumination vector through attitude compensation calculation based on the reference optical axis direction, and outputting attitude-compensated illuminance, including: Rotate the unit vector of the optical axis direction of each light-collecting bead channel in the sensor coordinate system to the world coordinate system; Define the reference optical axis direction and calculate the cosine of the angle between the current optical axis direction and the reference optical axis direction; Define the physical cosine term and attitude residual term for attitude compensation, correct the illumination vector, and obtain the attitude-compensated illuminance for each channel.
7. The multi-source data fusion correction method for children's eyeglasses as described in claim 6, characterized in that: The defined channel credibility weight include, First, estimate the channel noise variance within the sliding window; Simultaneously considering incident consistency and noise level, channel confidence weights are defined.
8. The multi-source data fusion correction method for children's eyeglasses as described in claim 7, characterized in that: The fused illumination value is obtained by robustly fusing the multi-channel attitude-compensated illumination. include, First, calculate the residuals of the channel-weighted average; The equivalent weights are updated using a preset residual threshold via Huber-type truncation. Finally, equivalent weights are used for fusion, and the fused illumination value is output.
9. The multi-source data fusion correction method for children's eyeglasses as described in claim 8, characterized in that: The fiber attenuation inversion and correction are performed on the fused illumination value. include, By inverting the decibels, fiber loss is incorporated into the fused illumination value to obtain an accurate illumination value.
10. The multi-source data fusion correction method for children's eyeglasses as described in claim 9, characterized in that: The final accurate illumination value output includes, The precise illumination value, combined with the current timestamp, the original illumination value, the attitude quaternion, and the attitude-compensated illumination, is integrated into a full-link data packet and output.