A sleep-on-duty prevention intelligent monitoring system based on a relay and face recognition
By combining visual perception and operating condition mapping to optimize the relay disconnection process, the problems of visual fatigue judgment and relay response lag are solved, enabling timely disconnection under high-risk operating conditions and stable operation under low-risk operating conditions, reducing accidental shutdowns.
Patent Information
- Application Number
- CN202611359222.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-03
- Publication Date
- 2026-11-20
AI Technical Summary
Existing industrial safety monitoring systems suffer from fluctuations and lags in visual fatigue judgment and relay disconnection response, leading to frequent shutdowns due to misjudgments. This makes it difficult to promptly shut down equipment under high-risk conditions and avoid accidental shutdowns under low-risk conditions.
The system employs a smart monitoring system for preventing sleep deprivation based on relays and facial recognition. It extracts facial fatigue features through a visual perception module, obtains equipment operating status through a working condition mapping module, adjusts trigger thresholds through a risk arbitration module, and generates a voltage pulse sequence through an action drive module to drive relay switching, thereby optimizing the relay engagement process and reducing the impact of mechanical lag and environmental disturbances.
It improves the timeliness of safe disconnection under high-risk operating conditions, reduces accidental shutdowns under low-risk operating conditions, maintains production continuity, reduces the impact of light and shadow changes and environmental noise on judgment, and improves the response stability of relays.
Smart Images

Figure CN123142289A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of industrial safety supervision technology, and in particular relates to a smart supervision system for preventing slacking off at work based on relays and facial recognition. Background Technology
[0002] In industrial production environments, fatigue status is typically assessed by collecting facial image features of operators. When an anomaly is detected, electromagnetic relays are used to cut off the power to the equipment or trigger a safety brake. This is a common method in production safety monitoring. In high-risk operation scenarios such as CNC machine tools and stamping equipment, it is necessary to stop the equipment in a timely manner when personnel show signs of fatigue risk, while also avoiding frequent shutdowns due to misjudgment. Therefore, visual fatigue detection and equipment safety shutdown need to balance safety and production continuity.
[0003] Existing image fatigue recognition typically judges fatigue based on the operator's eyelid closure and head posture. Production sites are easily affected by factors such as sudden changes in lighting, mechanical vibration, and dust, causing frequent fluctuations in fatigue recognition results. On the other hand, as a cut-off response component in an electrical cut-off circuit, the armature of an electromagnetic relay needs to establish a magnetic field and overcome the spring reaction force to engage, resulting in an inherent mechanical engagement lag time. In addition to the response delay and light and shadow interference caused by the hardware physical characteristics, existing monitoring systems also have shortcomings at the control logic and strategy level. For example, Chinese invention patent application CN113256273A discloses a monitoring system for preventing tower crane operator fatigue. It captures images of operators at fixed time intervals and compares pixel similarity. After determining that the image is abnormal, it calls the recognition interface to judge the fatigue state and cuts off the operation circuit.
[0004] Therefore, how to reduce the impact of visual fatigue judgment fluctuations and relay physical lag on the timing of safe disconnection, while taking into account both timely disconnection under high-risk conditions and accidental shutdown under low-risk conditions, remains a problem that the existing production safety supervision system needs to solve. Summary of the Invention
[0005] To address the problems in the background technology, this technical solution provides a smart monitoring system for preventing slacking off at work based on relays and facial recognition, comprising: The visual perception module is used to acquire facial image sequences of operators, extract eyelid closure degree and head posture deflection angle, and generate continuous facial fatigue characterization values. The working condition mapping module is connected to the control bus of the production equipment. It obtains the running linear velocity and spindle load torque, which represent the operating kinetic energy and load state of the production equipment. It then multiplies the running linear velocity and spindle load torque by their respective normalized weighting coefficients and sums them to generate the real-time risk index of the production equipment. The risk arbitration module is connected to the visual perception module and the working condition mapping module respectively. It is used to receive facial fatigue characterization values and real-time risk index. Based on the preset benchmark fatigue trigger threshold, it deducts the negative adjustment amount that is positively correlated with the real-time risk index and deducts the time feedforward bias that is positively correlated with the inherent mechanical engagement delay time of the anti-sleep-on-duty relay in the relay switching module, and calculates and generates the actual trigger threshold. The motion drive module is connected to the risk arbitration module and the relay switching module respectively. When the facial fatigue characterization value is greater than the actual trigger threshold, it generates a voltage pulse sequence with initial transient overshoot excitation characteristics, which drives the anti-sleep relay in the relay switching module to activate and cut off the power circuit of the production equipment.
[0006] Preferably, when calculating the real-time risk index of the production equipment, the operating condition mapping module multiplies the acquired operating linear velocity by a first normalized weighting coefficient to generate a velocity component, multiplies the acquired spindle load torque by a second normalized weighting coefficient to generate a torque component, and sums the velocity component and the torque component to obtain a dimensionless real-time risk index distributed between 0 and 1.0; when the real-time risk index increases, the risk arbitration module simultaneously increases the negative adjustment amount to lower the actual trigger threshold.
[0007] Preferably, the visual perception module includes an environmental disturbance filtering submodule; the environmental disturbance filtering submodule is used to detect the background brightness change rate of a continuous multi-frame facial image sequence, and when the background brightness change rate exceeds a preset threshold, the weight of the facial fatigue characterization value in the current sampling period is reduced.
[0008] Preferably, the voltage pulse sequence generated by the action drive module includes an initial transient overshoot segment and a subsequent sustaining segment; the output voltage of the initial transient overshoot segment is higher than the rated pull-in voltage of the anti-sleep relay; the output voltage of the subsequent sustaining segment is lower than the rated pull-in voltage.
[0009] Preferably, the output voltage of the initial transient overshoot segment is 1.15 to 1.25 times the rated pull-in voltage; the duration of the initial transient overshoot segment is set to 0.8 to 1.2 times the inherent mechanical pull-in hysteresis time of the anti-sleep relay.
[0010] Preferably, the output voltage of the subsequent holding stage is 40% to 50% of the rated pull-in voltage.
[0011] Preferably, the action drive module further includes a coil temperature rise compensation submodule; the coil temperature rise compensation submodule is used to calculate the thermal resistance drift of the anti-sleeping relay coil based on the historical trigger frequency and the duration of the initial transient overshoot segment, and adjust the duration of the initial transient overshoot segment according to the thermal resistance drift in subsequent trigger cycles.
[0012] Preferably, the risk arbitration module receives the current surge feedback signal and starts timing verification at the moment the anti-sleeping relay switches; when the delay of the current surge feedback signal exceeds the preset window, it determines that the drive level is subject to electromagnetic interference and outputs a reset signal to the action drive module to correct the state of the anti-sleeping relay.
[0013] Preferably, the relay switching module is hardware-connected to the electrical cut-off circuit of the production equipment; when the facial fatigue characterization value is less than or equal to the actual trigger threshold, the motion drive module maintains the rated output level to keep the electrical cut-off circuit of the production equipment in a closed conducting state; when the facial fatigue characterization value is greater than the actual trigger threshold, the motion drive module outputs a voltage pulse sequence to cut off the electrical cut-off circuit.
[0014] Compared with existing technologies, the present invention provides a smart monitoring system for preventing slacking off at work based on relays and facial recognition, which has the following advantages: 1. In the intelligent supervision of anti-sleep-shifting operations using relays and facial recognition, the actual trigger threshold is adjusted based on the operating line speed of the production equipment, the spindle load torque, and the inherent mechanical hysteresis time of the anti-sleep-shifting relay by working in conjunction with the working condition mapping module and the risk arbitration module. This allows the equipment to trigger the cut-off command earlier when it is in a high-risk operating state, leaving time for the anti-sleep-shifting relay to complete the actual engagement. This reduces the time misalignment between visual fatigue judgment and physical relay cut-off, and improves the timeliness of safe cut-off under high-risk operating conditions.
[0015] 2. When the production equipment is running at low speed or in standby mode, the actual trigger threshold can be maintained at a high level. The environmental disturbance filtering submodule reduces the impact of light changes on facial fatigue characterization values. This can reduce misjudgments caused by changes in light and shadow and environmental noise in the industrial field, avoid the anti-sleep relay from frequently engaging due to interference, reduce the occurrence of unexplained shutdowns, and help maintain the continuous operation of the production line.
[0016] 3. The action drive module adopts a voltage pulse sequence that includes an initial transient overshoot segment and a subsequent sustaining segment. This can increase the rate of change of coil current and electromagnetic attraction force when the relay starts to engage, and shorten the time required for the armature to overcome the spring reaction force. After the relay engages, the drive voltage is reduced, which can reduce the heat accumulation caused by continuous high voltage drive of the coil. At the same time, the coil temperature rise compensation submodule adjusts the subsequent triggering process according to the change of coil thermal resistance, so that the anti-sleeping relay can still maintain a relatively stable engagement response under high frequency triggering conditions. Attached Figure Description
[0017] Figure 1 This is a flowchart of the anti-sleep duty monitoring and control process of the present invention; Figure 2 This is a system module architecture diagram of the present invention. Detailed Implementation
[0018] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0019] A smart monitoring system for preventing slacking off at work, based on relays and facial recognition, includes: The visual perception module is used to acquire facial image sequences of operators, extract eyelid closure degree and head posture deflection angle, and generate continuous facial fatigue characterization values. The working condition mapping module is connected to the control bus of the production equipment. It obtains the running linear velocity and spindle load torque, which represent the operating kinetic energy and load state of the production equipment. It then multiplies the running linear velocity and spindle load torque by their respective normalized weighting coefficients and sums them to generate the real-time risk index of the production equipment. The risk arbitration module is connected to the visual perception module and the working condition mapping module respectively. It is used to receive facial fatigue characterization values and real-time risk index. Based on the preset benchmark fatigue trigger threshold, it deducts the negative adjustment amount that is positively correlated with the real-time risk index and deducts the time feedforward bias that is positively correlated with the inherent mechanical engagement delay time of the anti-sleep-on-duty relay in the relay switching module, and calculates and generates the actual trigger threshold. The motion drive module is connected to the risk arbitration module and the relay switching module respectively. When the facial fatigue characterization value is greater than the actual trigger threshold, it generates a voltage pulse sequence with initial transient overshoot excitation characteristics, which drives the anti-sleep relay in the relay switching module to activate and cut off the power circuit of the production equipment.
[0020] Preferably, when calculating the real-time risk index of the production equipment, the operating condition mapping module multiplies the acquired operating linear velocity by a first normalized weighting coefficient to generate a velocity component, multiplies the acquired spindle load torque by a second normalized weighting coefficient to generate a torque component, and sums the velocity component and the torque component to obtain a dimensionless real-time risk index distributed between 0 and 1.0; when the real-time risk index increases, the risk arbitration module simultaneously increases the negative adjustment amount to lower the actual trigger threshold.
[0021] Preferably, the visual perception module includes an environmental disturbance filtering submodule; the environmental disturbance filtering submodule is used to detect the background brightness change rate of a continuous multi-frame facial image sequence, and when the background brightness change rate exceeds a preset threshold, the weight of the facial fatigue characterization value in the current sampling period is reduced.
[0022] Preferably, the voltage pulse sequence generated by the action drive module includes an initial transient overshoot segment and a subsequent sustaining segment; the output voltage of the initial transient overshoot segment is higher than the rated pull-in voltage of the anti-sleep relay; the output voltage of the subsequent sustaining segment is lower than the rated pull-in voltage.
[0023] Preferably, the output voltage of the initial transient overshoot segment is 1.15 to 1.25 times the rated pull-in voltage; the duration of the initial transient overshoot segment is set to 0.8 to 1.2 times the inherent mechanical pull-in hysteresis time of the anti-sleep relay.
[0024] Preferably, the output voltage of the subsequent holding stage is 40% to 50% of the rated pull-in voltage.
[0025] Preferably, the action drive module further includes a coil temperature rise compensation submodule; the coil temperature rise compensation submodule is used to calculate the thermal resistance drift of the anti-sleeping relay coil based on the historical trigger frequency and the duration of the initial transient overshoot segment, and adjust the duration of the initial transient overshoot segment according to the thermal resistance drift in subsequent trigger cycles.
[0026] Preferably, the risk arbitration module receives the current surge feedback signal and starts timing verification at the moment the anti-sleeping relay switches; when the delay of the current surge feedback signal exceeds the preset window, it determines that the drive level is subject to electromagnetic interference and outputs a reset signal to the action drive module to correct the state of the anti-sleeping relay.
[0027] Preferably, the relay switching module is hardware-connected to the electrical cut-off circuit of the production equipment; when the facial fatigue characterization value is less than or equal to the actual trigger threshold, the motion drive module maintains the rated output level to keep the electrical cut-off circuit of the production equipment in a closed conducting state; when the facial fatigue characterization value is greater than the actual trigger threshold, the motion drive module outputs a voltage pulse sequence to cut off the electrical cut-off circuit.
[0028] Example 1: This example uses a heavy-duty machining condition on a metal cutting CNC machine tool. The anti-sleeping intelligent monitoring system is deployed in an electrical disconnection circuit equipped with an anti-sleeping relay. The anti-sleeping relay has a calibrated inherent mechanical engagement delay time. Set to 0.020s, the baseline fatigue trigger threshold. Set to 0.85, risk sensitivity gain coefficient Set to 0.30, time feedforward compensation coefficient Set to 2.50s - ¹, First normalized weighting coefficient Set to 0.10 s / m, the second normalized weighting coefficient Set to 0.005N - ¹·m - ¹, The linear velocity of the machine tool transmission mechanism Reaching 6.0 m / s, spindle load torque When the temperature reaches 80 N·m, dust settling and cutting fluid splashing in the workshop cause changes in ambient light and shadow. The visual perception module collects facial image sequences of the operators and extracts the degree of eyelid closure. With head posture yaw angle Calculate and generate continuous facial fatigue characterization values. The facial fatigue index is affected by changes in ambient light and shadow. The nonlinear high-frequency jitter is generated. Under this condition, the control architecture with a fixed trigger threshold cannot offset the 20ms inherent mechanical engagement delay caused by the electromagnetic armature overcoming the spring reaction force, resulting in a delay in the effective activation of the cut-off command.
[0029] The operating condition mapping module is connected to the production equipment control bus to collect the operating linear velocity. With spindle load torque And according to the formula Calculate and generate a dimensionless real-time risk index characterizing the real-time destructive potential energy of production equipment. ,in The specific calculation process is as follows During the calculation of the real-time risk index, to prevent equipment overload or transient impacts from causing the operating speed and torque to exceed the preset range, the system sets a numerical saturation truncation rule after the formula calculation. When the calculation result is greater than 1.00, the real-time risk index is truncated to 1.00, limiting the real-time risk index to between 0 and 1.00. Simultaneously, the risk arbitration module sets a physical lower limit protection value of 0.20 for the calculated actual trigger threshold. When the calculated result of the actual trigger threshold is lower than 0.20, it is corrected to 0.20 to prevent the threshold from becoming negative or too low, leading to false triggering. The risk arbitration module receives the real-time risk index. With inherent mechanical hysteresis time And according to the formula Calculate the actual trigger threshold for the current sampling period. The specific calculation process is as follows: Actual trigger threshold The value of facial fatigue characterization output by the visual perception module decreased from 0.85 to 0.50. When it reaches 0.52, due to Facial fatigue characterization value Greater than the actual trigger threshold The system generates a trigger control signal and uses the time advance determined by the algorithm to offset the 20ms physical activation delay of the anti-sleep relay.
[0030] Motion-driven module in facial fatigue characterization value Greater than the actual trigger threshold A voltage pulse sequence is generated, consisting of an initial transient overshoot segment and a subsequent sustaining segment. The initial transient overshoot segment outputs an overshoot voltage of 28.8V, which is higher than the 24V rated pull-in voltage of the anti-sleep relay. The duration is set to 22ms, which is the inherent mechanical pull-in hysteresis time. The coil current change rate and electromagnetic attraction force are increased by 1.1 times, enabling the armature to overcome the spring tension and complete physical engagement. In the subsequent holding phase, the output voltage is reduced to a 12V holding voltage to reduce heat accumulation caused by continuous coil overvoltage. The coil temperature rise compensation submodule in the action drive module calculates the thermal resistance drift based on the historical trigger frequency and the duration of the initial transient overshoot. In subsequent trigger cycles, the duration of the initial transient overshoot is adjusted based on the thermal resistance drift. Specifically, the coil temperature rise compensation submodule counts the number of triggers within a preset historical window to obtain the historical trigger frequency and accumulates each initial transient... The duration of the overshoot segment; the first and second heating coefficients are determined based on the temperature rise calibration results of the anti-sleep relay coil under the corresponding driving conditions. The historical trigger frequency and the cumulative duration are multiplied by the corresponding heating coefficients and then added together to obtain the cumulative temperature rise of the coil. The thermal resistance drift is then calculated according to the linear temperature rise coefficient of the copper conductor resistance with temperature. When the thermal resistance drift increases, the duration of the initial transient overshoot segment is adjusted accordingly to compensate for the influence of the coil resistance change on the excitation current. This calculation relationship follows the existing implementation records of the historical trigger frequency, total overshoot time and coil thermal resistance drift in the instruction manual.
[0031] When the machine tool is in low-speed orientation mode and the linear speed of the spindle drive mechanism is... Reduced to 0.5 m / s, spindle load torque When the temperature drops to 10 N·m, the working condition mapping module calculates and generates a dimensionless real-time risk index. : The risk arbitration module calculates the actual trigger threshold. : Actual trigger threshold The value is reduced to 0.77 when lighting flicker causes interference noise in the visual perception module and the output facial fatigue characterization value is adjusted. When it reaches 0.65, due to Facial fatigue characterization value The actual trigger threshold was not reached. In this untriggered state, the action drive module maintains its rated operating level, which is determined according to the rated drive conditions of the anti-sleeping relay in the non-cut-off state. This ensures that the relay switching module keeps the electrical cut-off circuit of the production equipment in a closed conducting state. Simultaneously, the environmental disturbance filtering submodule in the visual perception module detects the background brightness change rate of a continuous multi-frame facial image sequence. When the background brightness change rate exceeds a preset threshold, it reduces the facial fatigue characterization value within the current sampling period. The weights are adjusted to suppress computational interference caused by ambient lighting fluctuations.
[0032] Regarding the mechanism by which the time feedforward bias offsets the physical engagement hysteresis, in actual control, when the facial fatigue characterization value increases linearly with time, the threshold value reduction corresponds to the advance in the time domain of the triggering time. This advance is equal to the threshold reduction divided by the slope of the facial fatigue characterization value in the time domain. Under high-risk, heavy-load industrial conditions, the slope of the fatigue characterization value in the time domain corresponding to the operator's fatigue aggravation process remains between 0.10 and 0.20 per second. This is achieved through the time feedforward compensation coefficient and the inherent mechanical engagement hysteresis time of the anti-sleep relay. The calculated deduction of 0.05 corresponds to a decision advance of 0.25s to 0.50s. This advance is greater than the inherent mechanical engagement hysteresis time of the relay (20ms), causing the cut-off control signal to be issued earlier, thus affecting the physical operating kinetic energy parameters and fatigue characterization values of the production equipment. The inherent mechanical hysteresis time of the anti-sleep relay Within the bidirectional arbitration framework, parameter coupling is achieved, with the working condition mapping module, risk arbitration module, and action-driven module jointly adjusting the actual trigger threshold. It generates a voltage pulse sequence so that the power cut-off command under high-risk operating conditions is issued before the armature physical action is completed, and the electrical cut-off circuit is kept in a closed conducting state under low-risk operating conditions.
[0033] Example 2: The current experiment uses an automated machining test platform for metal cutting CNC machine tools. The test platform is equipped with an industrial camera and a bus data acquisition card. The armature engagement response time of the anti-sleeping relay is simultaneously measured using a digital oscilloscope with a resolution of 0.1ms and a photoelectric sensor. The inherent mechanical engagement hysteresis time of the anti-sleeping relay is also measured. The baseline fatigue trigger threshold is 0.020s. Set to 0.85, risk sensitivity gain coefficient Set to 0.30, time feedforward compensation coefficient Set to 2.50s - ¹, First normalized weighting coefficient Set to 0.10 s / m, the second normalized weighting coefficient Set to 0.005N - ¹·m -¹, taking into account both the time efficiency of visual feature calculation and the system bus communication load, the image acquisition and operating condition calculation cycle were uniformly set to 33.3ms, corresponding to a sampling frequency of 30Hz. The test signal source was superimposed with Gaussian white noise with a signal-to-noise ratio of 20dB and periodically alternating background light intensity interference. The test was set up with five test schemes: the sample group of this invention, control group one, control group two, control group three, and control group four. Among them, control group one adopted a fixed threshold of 0.85 and constant rated voltage drive; control group two retained the negative adjustment amount corresponding to the real-time risk index and adjusted the time feedforward compensation coefficient. Set it to 0 to remove the time feedforward bias. Control group three uses adaptive threshold arbitration, but cancels the initial transient overshoot excitation and coil temperature rise compensation in the voltage pulse sequence; control group four adjusts the risk sensitivity gain coefficient. The out-of-range bias is set to 0.65.
[0034] The test covers high-risk heavy-load conditions, medium-risk operating conditions, low-risk standby conditions, and high-frequency continuous triggering conditions. The system collects the running linear velocity of the machine tool spindle transmission mechanism and the spindle load torque. The working condition mapping module calculates the real-time risk index, and the risk arbitration module generates the actual trigger threshold by combining the facial fatigue characterization value. When the triggering condition is met, the action drive module generates a voltage pulse sequence with initial transient overshoot excitation characteristics and drives the relay switching module to act.
[0035] In high-risk, heavy-load operating conditions, the linear speed of the prototype of this invention is 6.0 m / s, the spindle load torque is 80 N·m, and the surface fatigue characterization value is... The real-time risk index is 0.52, calculated by the working condition mapping module. The threshold is set to 1.00, at which point the risk arbitration module will actually trigger the threshold. The threshold was lowered from 0.85 to 0.50. After the facial fatigue characterization value exceeded the actual trigger threshold, the motion drive module output a transient overshoot pulse voltage of 28.8V. The measured physical engagement delay was 12.1ms, the motion accuracy was 99.2%, and the false stop rate was 0.2%. Under the same conditions of a running linear speed of 6.0m / s, a spindle load torque of 80N·m, a facial fatigue characterization value of 0.52, and a real-time risk index of 1.00, the actual trigger threshold of control group 1 was 0.85, the physical engagement delay was 38.5ms, and the motion accuracy was 6. 1.5%, false stop rate 0.0%; Control group 2 has an actual trigger threshold of 0.55, physical engagement delay of 27.2ms, action accuracy of 88.0%, and false stop rate of 0.1%; Control group 3 has an actual trigger threshold of 0.50, physical engagement delay of 25.8ms, action accuracy of 91.5%, and false stop rate of 0.1%. When the input conditions of each group are consistent, the time feedforward bias in the risk arbitration module and the initial transient overshoot excitation output by the action drive module are applied to the triggering time and the relay engagement process, respectively.
[0036] Under medium-risk operating conditions, the linear speed of the prototype of this invention is 3.0 m / s, the spindle load torque is 40 N·m, and the surface fatigue characterization value is... The real-time risk index is calculated to be 0.68 by the working condition mapping module. The actual trigger threshold generated by the risk arbitration module is 0.50. The actual trigger threshold was 0.65. After the facial fatigue characterization value exceeded the actual trigger threshold, the physical engagement delay was measured to be 12.3ms, the action accuracy was 98.8%, and the false stop rate was 0.3%. The control group used the same 3.0m / s running linear speed, 40N·m spindle load torque, 0.68 facial fatigue characterization value, and 0.50 real-time risk index. Its actual trigger threshold remained at 0.85, and the recorded physical engagement delay was 38.2ms, the action accuracy was 72.0%, and the false stop rate was 0.0%.
[0037] Under low-risk standby conditions, the linear speed of the prototype of this invention is 0.5 m / s, the spindle load torque is 10 N·m, and the surface fatigue characterization value is... The real-time risk index is calculated to be 0.65 by the working condition mapping module. The threshold value is 0.10, meaning the risk arbitration module will actually trigger the threshold. The trigger value was adjusted back to 0.77. The facial fatigue characterization value did not exceed the actual trigger threshold, so the anti-sleep relay did not engage. The physical engagement delay was recorded as -, the action accuracy was 100.0%, and the false stop rate was 0.4%. Simultaneously, the environmental disturbance filtering submodule reduced the weight of the facial fatigue characterization value within the current sampling period for frames with high background brightness change rates. Control group one, under the same operating linear speed of 0.5 m / s, spindle load torque of 10 N·m, facial fatigue characterization value of 0.65, and real-time risk index of 0.10, used a low fixed threshold of 0.50, measuring a physical engagement delay of 26.5 ms, an action accuracy of 18.0%, and a false stop rate of 82.0%. Control group four also used an operating linear speed of 0.5 m / s, spindle load torque of 10 N·m, facial fatigue characterization value of 0.65, and real-time risk index of 0.10, but adjusted the risk sensitivity gain coefficient. When set to 0.65, exceeding the calibration window of 0.15 to 0.40, the actual trigger threshold drops to 0.39, the measured physical engagement delay is 12.2ms, the action accuracy is 22.0%, and the false stop rate is 78.0%.
[0038] Under high-frequency continuous triggering conditions, the linear speed of the prototype of this invention is 4.0 m / s, the spindle load torque is 50 N·m, and the surface fatigue characterization value is... The real-time risk index is 0.60. The actual trigger threshold is 0.65. The measured physical engagement delay was 12.5 ms, the action accuracy was 98.5%, and the false stop rate was 0.3%. Control group three used the same operating linear speed of 4.0 m / s, spindle load torque of 50 N·m, a facial fatigue characterization value of 0.60, a real-time risk index of 0.65, and an actual trigger threshold of 0.60. After canceling coil temperature rise compensation, the coil temperature rose to 55℃, causing copper coil resistance drift. The physical engagement delay increased from the initial 12.4 ms to 21.4 ms, the action accuracy was 82.3%, and the false stop rate was 0.2%. The coil temperature rise compensation submodule in the prototype of this invention adjusts the duration of the initial transient overshoot segment of subsequent triggering cycles based on the historical triggering frequency and the duration of the initial transient overshoot segment, so that the relay engagement response during continuous triggering remains stable. During the above test, the operating condition mapping module, the risk arbitration module, and the action drive module participate in real-time risk calculation, feedforward compensation of mechanical engagement hysteresis, and drive adjustment under coil temperature rise conditions, respectively, so that the system performs power cut-off under high-risk operating conditions and keeps the electrical cut-off circuit in a closed conducting state under low-risk standby operating conditions.
[0039] Example 3: In a production environment monitoring architecture that includes CNC machine tools and automated cutting production lines, the vision perception module is equipped with an industrial camera with a sampling frequency of 30Hz, and the motion drive module hardware connection has a rated pull-in voltage of 24V and an inherent mechanical pull-in hysteresis time. For the anti-sleep-on-duty relay with a 0.020s timeout, the initial system parameters were determined using an offline calibration process. 500 sets of facial image sequences of operators in normal working and fatigue states were collected while the equipment was stationary, and eyelid closure was extracted. With head posture yaw angle Baseline fatigue trigger threshold Set to 0.85; under the extreme conditions of no-load and full-load operation of the machine tool spindle, read the maximum running linear speed of 6.0 m / s and the maximum spindle load torque of 80 N·m, and set the first normalized weighting coefficient. Set to 0.10 s / m, the second normalized weighting coefficient Set to 0.005N - ¹·m - ¹, enabling real-time risk index The value range is limited to between 0 and 1.00, based on the inherent mechanical hysteresis time of the anti-sleep relay. Safety tolerance limit of machine tool emergency braking window, risk sensitivity gain coefficient Set to 0.30, time feedforward compensation coefficient Set to 2.50s - ¹; When the risk sensitivity gain coefficient When the risk sensitivity gain coefficient is greater than 0.40, the rate of false shutdown increases under low-risk operating conditions. When the value is less than 0.15, the response feedforward is insufficient under high-risk operating conditions, so 0.30 is taken as the calibration value.
[0040] During parameter calibration, the first normalized weighting coefficient The value is 0.10 s / m, obtained by dividing the maximum risk component upper limit of 0.60 by the machine tool's limit operating linear speed of 6.0 m / s; the second normalized weighting coefficient. Take 0.005N - ¹·m - ¹, the real-time risk index is obtained by dividing the upper limit of the torque risk component (0.40) by the ultimate spindle load torque (80 N·m), and adding the running linear velocity component to the spindle load torque component. The time feedforward compensation coefficient is a dimensionless quantity and does not exceed 1.00. Take 2.50s - ¹, determined based on the proportional relationship of converting a 20ms physical hysteresis into a 0.05 threshold deduction; when this coefficient is below 1.00s - ¹When the feedforward compensation is insufficient to offset the hysteresis, and the coefficient is higher than 5.00s. - ¹When the actual trigger threshold is lowered by a larger margin, it can cause false triggering.
[0041] The visual perception module continuously acquires facial images at a period of 33.3ms and calculates the eyelid closure degree through a feature extraction algorithm. With head posture yaw angle The facial fatigue characterization values for the current sampling period are generated using a weighted summation method. Eyelid closure degree The standardized value between 0 and 1.0 represents the head posture yaw angle. Convert to a deflection metric between 0 and 1.0; calculate facial fatigue characterization values. At that time, eyelid closure degree Multiplying by the first normalization factor of 0.70, and multiplying the head posture deflection measure by the second normalization factor of 0.30, the sum of the two yields a scalar facial fatigue characterization value continuously distributed between 0 and 1.0. The result is then entered into the risk arbitration module.
[0042] Continuous extraction of environmental disturbance filtering submodule The average pixel grayscale value of the background region of the frame image, where The value is set to 5, and the discrete variance of the mean background grayscale values over five consecutive frames is used to characterize the rate of change in background brightness. The rate of change in background brightness caused by flickering or strong light shaking in the workshop lighting When the value exceeds the preset threshold of 15.0, the environmental disturbance filtering submodule initiates weight decay, reducing the facial fatigue characterization value of the current sampling period. The weight is reduced by 50%; in specific processing, the facial fatigue characterization value calculated in the current sampling period is based on a 50% reduction weight, and the facial fatigue characterization value that remained stable in the previous sampling period is based on a 50% retention weight. The two are added together to form the corrected fatigue characterization value passed to the risk arbitration module, so as to reduce the impact of high-frequency noise caused by sudden changes in illumination on the actual trigger threshold determination.
[0043] The operating condition mapping module reads the running linear velocity from the control bus in real time. With spindle load torque According to the determined first normalized weighting coefficient Second normalized weighting coefficient Calculate the real-time risk index The risk arbitration module receives facial fatigue characterization values. Real-time risk index With inherent mechanical hysteresis time Combined with the benchmark fatigue trigger threshold Risk sensitivity gain coefficient and time feedforward compensation coefficient Calculate the actual trigger threshold for the current sampling period. After the equipment enters heavy-load, high-speed operating conditions, the real-time risk index... As the threshold increases, the risk arbitration module will correspondingly increase the negative adjustment amount, and the actual trigger threshold will be lowered in conjunction with the time feedforward bias. This makes the facial fatigue index... The trigger condition can be met at a relatively low value.
[0044] When facial fatigue index Greater than the actual trigger threshold At that time, the motion drive module outputs a voltage pulse sequence, which includes an initial transient overshoot segment and a subsequent sustain segment. The initial transient overshoot segment outputs an overshoot voltage of 28.8V, and the duration is... Set to 22ms, which is the inherent mechanical hysteresis time. The voltage is 1.1 times that of the coil, which establishes the magnetic field and drives the armature to overcome the spring force to complete the engagement; then it enters the subsequent holding stage, where the output voltage is reduced to 12V.
[0045] The coil temperature rise compensation submodule calculates the thermal resistance drift based on the historical trigger frequency and the cumulative duration of the initial transient overshoot. Continuous high-frequency triggering causes the coil temperature to rise and the thermal resistance to drift. When the initial resistance is reached to 15%, the duration of the initial transient overshoot in subsequent trigger cycles will be adjusted. The time was extended to 24ms to compensate for the attenuation of excitation current caused by the increase in coil resistance. During the calculation process, the coil temperature rise compensation submodule recorded the total number of triggers within the past 300s window and calculated the historical trigger frequency. At the same time, the duration of the initial transient overshoot in each trigger was accumulated to obtain the total overshoot time. The historical trigger frequency was multiplied by the first heating coefficient, and the total overshoot time was multiplied by the second heating coefficient and then added together to calculate the cumulative temperature rise of the coil. Finally, the current thermal resistance drift was calculated according to the linear temperature rise coefficient of copper conductor resistance with temperature. When the calculated result reaches 15% of the initial resistance, the duration of the initial transient overshoot is extended to compensate for the excitation current attenuation caused by the increase in coil resistance.
[0046] The relay switching module is connected to the electrical disconnection circuit of the production equipment. After the anti-sleeping relay armature is engaged, it disconnects the machine tool power circuit. The relay switching module generates a current surge feedback signal at the moment the armature contact closes. The risk arbitration module receives this feedback signal and initiates a 30ms timing check. When the delay of the current surge feedback signal exceeds the 30ms check window, the risk arbitration module determines that the drive level is subject to electromagnetic interference and outputs a reset signal to the action drive module to correct the state of the anti-sleeping relay. After receiving the reset signal, the action drive module first cuts off the current output, maintains a low-level output for 10ms, and then restarts the triggering process, outputting an initial transient overshoot pulse with a duration of 22ms and a voltage of 28.8V to make the relay armature re-engage. After three consecutive resets, if the current surge feedback signal still exceeds the 30ms check window, the action drive module locks the output to the highest safe disconnection level, keeping the electrical disconnection circuit in the disconnected state.
[0047] Example 4: This example combines Figures 1 to 2 This paper describes a smart monitoring system for preventing slacking off at work, based on relays and facial recognition. Figure 1 As shown, environmental disturbance filtering detects illumination and reduces its weight to assist visual perception in extracting facial features and generating representation values. The visual perception extracts facial features and generates representation values, and the generated data is input into risk arbitration combined with hysteresis to generate actual thresholds. At the same time, the working condition mapping obtains parameters to generate a risk index and provides the results synchronously to risk arbitration combined with hysteresis to generate actual thresholds. After the risk arbitration combined with hysteresis to generate actual thresholds completes the comprehensive judgment, it outputs a control signal to the action drive to generate a pulse sequence to drive the engagement. The action drive generates a pulse sequence to drive the engagement, which in turn controls the relay to switch and cut off the equipment power circuit. The coil temperature rise compensation calculates thermal resistance and adjusts overshoot to adjust the parameters of the action drive to generate a pulse sequence to drive the engagement in real time.
[0048] like Figure 2As shown, the anti-sleep-on-duty intelligent monitoring system includes a visual perception module, a working condition mapping module, a risk arbitration module, an action drive module, and a relay switching module. The visual perception module is used to extract eyelid closure degree and head posture deflection angle and detect the background brightness change rate of the facial image. The working condition mapping module is used to obtain the running linear speed and spindle load torque and calculate and generate the real-time risk index of the production equipment. The risk arbitration module is used to deduct the negative adjustment amount and time feedforward bias amount and calculate and generate the actual trigger threshold. The action drive module is used to calculate the thermal resistance drift of the anti-sleep-on-duty relay coil and generate a voltage pulse with transient overshoot characteristics. The relay switching module is used to drive the anti-sleep-on-duty relay in the module to activate when a drive signal is received, thereby cutting off the power circuit of the production equipment.
[0049] Example 5: After the anti-sleep-on-duty relay and visual perception module are deployed to the industrial production site, there is a physical deviation between the installation angle of the industrial camera and the distance to the operator's sitting posture. Before starting the monitoring, the visual perception module continuously collects 100 frames of facial image sequence of the operator in an awake state and extracts the eyelid closure degree. The mean and head posture deflection angle The variance of the distribution was used to adjust the facial fatigue characterization value based on the calculated mean of the awake baseline. The zero-point offset; simultaneously, the environmental disturbance filtering submodule reads the background grayscale mean corresponding to the change in static power frequency lighting in the workshop, writes the discrete variance benchmark value of the background grayscale mean of 5 consecutive frames into the register, and when the background brightness change rate of the production site... When the deviation from the benchmark value exceeds 15, weight decay is triggered, thereby completing the initial physical environment adaptability calibration of the visual perception module under the corresponding production conditions.
[0050] The motion drive module receives a pulse excitation signal via its input terminal and uses a photoelectric sensor and a high-precision digital oscilloscope to measure the physical action time from the start of excitation of the armature of the anti-sleeping relay to the complete engagement of the contacts. The arithmetic mean of 10 physical action times is taken as the inherent mechanical hysteresis time of the anti-sleeping relay. After the system has been continuously run for 1000 triggers or 720 hours, the risk arbitration module calculates the actual hysteresis time based on the feedback signal of the current surge generated by the armature engagement contact. When the absolute value of the deviation between the measured hysteresis time and the initial calibration value exceeds 2ms, the system updates the inherent mechanical engagement hysteresis time in the memory. And according to the updated Recalculate the actual trigger threshold The time feedforward bias in the calculation ensures that the hysteresis time used for feedforward compensation corresponds to the actual mechanical response of the armature of the anti-sleep relay.
[0051] Example 6: Currently, multiple metal cutting CNC machine tools are deployed in an automated production line. The production line includes 8 cutting machine tool units. A centralized arbitration node receives the real-time risk index output by the working condition mapping module of each cutting machine tool unit. The linear speed of the spindle drive mechanism of the third cutting machine tool unit 6.0 m / s, spindle load torque Real-time risk index at 80 N·m The value was 1.00; splattered oil from the cutting process momentarily obscured the industrial camera lens, causing the visual perception module to fail to extract eyelid closure for three consecutive sampling cycles. With head posture yaw angle Facial fatigue characterization value The data stream was subsequently interrupted, triggering a visual perception fault self-check signal. The risk arbitration module invoked the anomaly degradation protection logic, sending a deceleration command to the underlying controller of the third cutting machine unit via the industrial fieldbus, thus reducing the linear speed of the spindle drive mechanism. The speed decreased from 6.0 m / s to 1.5 m / s within 200 ms, indicating a real-time risk index. The actual trigger threshold was reduced to 0.20. The value was adjusted back to 0.77, putting the device into a low-risk, safe standby range.
[0052] During the parallel operation of multiple machine tool units, a centralized arbitration node is established based on a real-time risk index. The dynamic priority vector is calculated and adjusted according to the real-time risk index of each cutting machine tool unit. Arrange the arbitration calculation queue from largest to smallest to make the real-time risk index... The cutting machine unit reaching 1.00 obtains the highest computing frequency and bus bandwidth resources. After the third cutting machine unit completes deceleration, the lens oil cleaning air blower removes obstructions from the industrial camera lens. The vision perception module recovers and acquires the facial image sequence, and re-extracts the eyelid closure degree. With head posture yaw angle The facial fatigue characterization value was calculated. It is 0.60.
[0053] During the acceleration recovery process of the third cutting machine tool unit, the running linear speed The spindle load torque increases to 4.0 m / s. The real-time risk index is calculated by the working condition mapping module, which measures 50 N·m. The actual trigger threshold is calculated by the risk arbitration module to be 0.65. The value was 0.60; facial fatigue index. Reaching the actual trigger threshold At that time, the motion drive module outputs an initial transient overshoot of 28.8V, driving the anti-sleep relay armature to physically engage and disconnect the electrical cutoff circuit of the third cutting machine unit. Simultaneously, the real-time risk index of the remaining seven units... Machine tool units with a cutting speed of less than 0.30 maintain normal operation, and the electrical cut-off status of each machine tool unit is independent of each other.
[0054] The embodiments of this application have been described above with reference to the accompanying drawings. Unless otherwise specified, the embodiments and features in the embodiments of this application can be combined with each other. This application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit of this application and the scope of protection of this invention, and all of these forms are within the protection scope of this application.
Claims
1. A smart monitoring system for preventing slacking off on duty based on relays and facial recognition, characterized in that, include: The visual perception module is used to acquire facial image sequences of operators, extract eyelid closure degree and head posture deflection angle, and generate continuous facial fatigue characterization values. The working condition mapping module is connected to the control bus of the production equipment. It obtains the running linear velocity and spindle load torque, which represent the operating kinetic energy and load state of the production equipment. It then multiplies the running linear velocity and spindle load torque by their respective normalized weighting coefficients and sums them to generate the real-time risk index of the production equipment. The risk arbitration module is connected to the visual perception module and the working condition mapping module respectively. It is used to receive facial fatigue characterization values and real-time risk index. Based on the preset benchmark fatigue trigger threshold, it deducts the negative adjustment amount that is positively correlated with the real-time risk index and deducts the time feedforward bias that is positively correlated with the inherent mechanical engagement delay time of the anti-sleep-on-duty relay in the relay switching module, and calculates and generates the actual trigger threshold. The motion drive module is connected to the risk arbitration module and the relay switching module respectively. When the facial fatigue characterization value is greater than the actual trigger threshold, it generates a voltage pulse sequence with initial transient overshoot excitation characteristics, which drives the anti-sleep relay in the relay switching module to activate and cut off the power circuit of the production equipment.
2. The intelligent monitoring system for preventing slacking off at work based on relays and facial recognition as described in claim 1, characterized in that, When calculating the real-time risk index of production equipment, the working condition mapping module multiplies the acquired running linear velocity by the first normalized weighting coefficient to generate a velocity component, multiplies the acquired spindle load torque by the second normalized weighting coefficient to generate a torque component, and sums the velocity component and the torque component to obtain a dimensionless real-time risk index distributed between 0 and 1.
0. When the real-time risk index increases, the risk arbitration module simultaneously increases the negative adjustment amount to lower the actual trigger threshold.
3. The intelligent monitoring system for preventing slacking off at work based on relays and facial recognition as described in claim 1, characterized in that, The visual perception module includes an environmental disturbance filtering submodule; The environmental disturbance filtering submodule is used to detect the background brightness change rate of a series of consecutive facial images, and when the background brightness change rate exceeds a preset threshold, the weight of the facial fatigue characterization value in the current sampling period is reduced.
4. The intelligent monitoring system for preventing slacking off at work based on relays and facial recognition as described in claim 1, characterized in that, The voltage pulse sequence generated by the motion drive module includes an initial transient overshoot segment and a subsequent sustaining segment; the output voltage of the initial transient overshoot segment is higher than the rated pull-in voltage of the anti-sleep relay; the output voltage of the subsequent sustaining segment is lower than the rated pull-in voltage.
5. The intelligent monitoring system for preventing slacking off at work based on relays and facial recognition as described in claim 4, characterized in that, The output voltage of the initial transient overshoot phase is 1.15 to 1.25 times the rated pull-in voltage; the duration of the initial transient overshoot phase is set to 0.8 to 1.2 times the inherent mechanical pull-in hysteresis time of the anti-sleep relay.
6. The intelligent monitoring system for preventing slacking off at work based on relays and facial recognition as described in claim 4, characterized in that, The output voltage of the subsequent holding stage is 40% to 50% of the rated pull-in voltage.
7. The intelligent monitoring system for preventing slacking off at work based on relays and facial recognition as described in claim 4, characterized in that, The action drive module also includes a coil temperature rise compensation submodule; the coil temperature rise compensation submodule is used to calculate the thermal resistance drift of the anti-sleeping relay coil based on the historical trigger frequency and the duration of the initial transient overshoot, and adjust the duration of the initial transient overshoot in subsequent trigger cycles based on the thermal resistance drift.
8. The intelligent monitoring system for preventing slacking off at work based on relays and facial recognition as described in claim 1, characterized in that, The risk arbitration module receives a current surge feedback signal and initiates timing verification at the moment the anti-sleeping relay switches. When the delay of the current surge feedback signal exceeds the preset window, it determines that the drive level is subject to electromagnetic interference and outputs a reset signal to the action drive module to correct the state of the anti-sleeping relay.
9. A smart monitoring system for preventing slacking off at work based on relays and facial recognition as described in claim 1, characterized in that, The relay switching module is hardware-connected to the electrical cut-off circuit of the production equipment; when the facial fatigue characterization value is less than or equal to the actual trigger threshold, the motion drive module maintains the rated output level to keep the electrical cut-off circuit of the production equipment in a closed conduction state. When the facial fatigue index exceeds the actual trigger threshold, the motion drive module outputs a voltage pulse sequence to cut off the electrical cut-off circuit.
Citation Information
Patent Citations
Monitoring system for preventing fatigue operation of tower crane driver
CN113256273A
