Power switch power-off method based on fingerprint module
By constructing a dynamic state transition function by combining a fingerprint module with temperature and leakage current detection, the rigidity and slow response of existing power interruption control strategies are solved, enabling multi-factor dynamic decision-making and safe response of intelligent power systems.
Patent Information
- Application Number
- CN202511017606.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-23
- Publication Date
- 2025-10-28
AI Technical Summary
Existing intelligent power control systems lack a multi-factor dynamic decision-making mechanism and cannot effectively integrate identification status, ambient temperature response, and leakage detection results, resulting in rigid power outage control strategies and slow response.
A power-off method based on a fingerprint module is adopted. A dynamic state transition function is constructed by fingerprint recognition status, temperature response and leakage current detection results to achieve multi-factor quantitative expression and adaptability and accuracy of power-off control.
The adaptability and accuracy of the power-off control signal output are improved, and the system's response robustness in marginal abnormal states and the safety of power-off execution are enhanced.
Smart Images

Figure CN120848313A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power control, and specifically provides a power switch power-off method based on a fingerprint module. Background Art
[0002] In modern intelligent power control systems, how to achieve personalized management of equipment power usage permissions, safe interlocking control, and fault emergency response has become the core issue in the power management of industrial equipment, smart homes, and critical scenarios. Currently, the widely used power switch control methods mostly rely on fixed logical conditions (such as single thresholds like over-temperature, overload, and leakage) for power-off, and cannot achieve multi-factor dynamic decision-making control. At the same time, although some systems have introduced identity recognition means (such as passwords, cards, etc.), there is a lack of an effective linkage mechanism between operation convenience, security, and environmental state perception, resulting in rigid control strategies and slow fault responses. To solve the above problems, more and more research combines biometric modules with multi-source sensing technologies to achieve more intelligent and personalized power control solutions. In the prior art, there is a lack of a mechanism that can dynamically fuse the recognition status, environmental temperature response, and leakage detection results to construct a state transition function driven by multi-source information, and cannot adjust the control strategy in real time according to complex interaction states, affecting the reliability of power-off decisions and the flexibility of system responses. Summary of the Invention
[0003] Aiming at the deficiencies of the prior art, the present invention provides a power switch power-off method based on a fingerprint module to solve the problems raised in the above background art.
[0004] To achieve the above object, the present invention provides the following technical solutions: In the first aspect, an embodiment of the present invention provides a power switch power-off method based on a fingerprint module, including the following steps: S1. Initialize the fingerprint module recognition status extraction and verification process to obtain the recognition status; S2. Establish a temperature detection synchronous response link according to the recognition status to obtain the temperature response; S3. Use the recognition status and temperature response to construct an intermediate state of power control to obtain the control state; S4. Obtain the leakage detection result, and use the leakage detection result and the control state to jointly construct a state transition function; S5. Output a power-off control signal based on the state function and control the relay to perform a power-off operation To further optimize this technical solution, after acquiring the input fingerprint image in step S1, image quality assessment technology is used to determine whether the acquired image meets the requirements for subsequent processing. During the quality assessment process, an image quality threshold is set. If the image quality score is lower than the threshold, the image is re-acquired. A mature fingerprint minutiae extraction algorithm is used to extract the ridge features, endpoints, and bifurcation information of the fingerprint, and it is compared with the locally registered fingerprint template. The comparison result is logically judged, and the recognition status is output.
[0005] To further optimize this technical solution, step S2 first identifies a status signal that triggers the temperature detection module to start. The identified status obtained from step S1 is as follows: ,in This indicates that fingerprint recognition was successful. This indicates that recognition failed or was not triggered, only when At that time, the temperature detection module is activated, generating a synchronous start signal. ; ; in, The trigger coefficient for the temperature detection module is set to 1.
[0006] To further optimize this technical solution, in step S2, the sensor begins sampling the ambient or equipment surface temperature, and the sampled temperature value is: ; in, The result is the temperature measurement. For the sensor in time The sampling output function on.
[0007] To further optimize this technical solution, in step S2, the temperature signal and the identification status are jointly used to generate a synchronous temperature response: ; in, This is the synchronous temperature response quantity; : is the temperature response mapping function, specifically: ; in, This is the initial threshold for the temperature response; This is a mandatory response threshold; This is the temperature response growth coefficient.
[0008] To further optimize this technical solution, step S3 first performs recognition state weighting processing, transforming the binary recognition state... Mapped to floating-point weight values to reflect their effective participation in the control logic, the state is identified through a first-order mapping function. Perform mapping: ; in, To identify the basic control activation value in the effective state, this value is set based on the empirical value of the control system's authentication trust level, and is usually set to... .
[0009] To further optimize this technical solution, step S3 involves enhancing and correcting the temperature risk factor, utilizing the temperature response. The identified states are weighted to express the dynamic adjustment effect of temperature on the control intensity, and a correction function is introduced. Temperature response Converted into a suppressor or enhancer of the recognition state; ; in, The degree to which the temperature response enhances the control state. This is the temperature effect amplification factor, set based on the impact of ambient temperature on equipment risk; The results of weighted identification of states and temperature risk factor enhancement correction are combined to form the final control intermediate state. for:
[0010] To further optimize this technical solution, in step S4, a leakage current detection submodule is set in the sampling circuit to detect the power supply circuit to ground current and obtain the original leakage data. The normalization transformation is performed using the following formula: ; in, At any moment The actual detected leakage current value; The minimum leakage current value recorded in the system history; The system's preset maximum allowable leakage current threshold; : The standardized dimensionless leakage current response intensity value.
[0011] To further optimize this technical solution, in step S4, the leakage current response intensity value is adjusted using the following piecewise leakage current response adjustment function. Divided into three sections: ; in, : Leakage current safety response function, the output represents the control allowable coefficient; : Segmented critical values, representing the upper limit of low-risk tolerance and the lower limit of high-risk cutoff, respectively; : Secondary attenuation factor.
[0012] To further optimize this technical solution, the final state transition value to be output in step S4 is not only affected by the current state transition value... The influence of this is also affected by its rate of change, which is reflected by the following formula; ; in, : State feedback adjustment coefficient; : The time derivative of the leakage current response function.
[0013] In a second aspect, embodiments of the present invention provide a computer device, including a memory and a processor, wherein the memory stores a computer program, wherein: when the computer program instructions are executed by the processor, they implement the steps of a power switch power-off method based on a fingerprint module as described in the first aspect of the present invention.
[0014] Thirdly, embodiments of the present invention provide a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program instructions are executed by a processor, they implement the steps of a power switch power-off method based on a fingerprint module as described in the first aspect of the present invention.
[0015] Compared with the prior art, the present invention provides a power-off method based on a fingerprint module, which has the following advantages: This fingerprint-based power switch power-off method effectively achieves multi-factor quantitative expression of the control state by setting a dynamic state transition function model that integrates identification status, temperature response, and leakage current factor. This improves the adaptability and accuracy of the power-off control signal output, enhances the system's response robustness under abnormal edge conditions, and strengthens the security of power-off execution. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying 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.
[0017] Figure 1 This is a flowchart illustrating a power-off method for a power switch based on a fingerprint module proposed in this invention. Figure 2 This is a schematic diagram of the temperature detection synchronous response link establishment process of a power switch power-off method based on a fingerprint module proposed in this invention. Figure 3 This is a schematic diagram of the power control intermediate state construction process for a power switch power-off method based on a fingerprint module proposed in this invention. Detailed Implementation
[0018] 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.
[0019] 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.
[0020] Secondly, the term "an 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 embodiment or an embodiment selectively excluded from other embodiments.
[0021] Example 1: Refer to Figures 1-3 This is the first embodiment of the present invention, which provides a power-off method based on a fingerprint module, including the following steps: S1. Initialize the fingerprint module recognition status extraction and verification process to obtain the recognition status; In step S1, the fingerprint sensor hardware module is first started, and the underlying communication initialization is completed through the existing sensor driver and interface standard. After collecting the input fingerprint image, image quality assessment technology is used to determine whether the collected image meets the requirements of subsequent processing. During the quality assessment process, an image quality threshold is set. If the image quality score is lower than the threshold, the image is collected again. Subsequently, for fingerprint images that meet the requirements, mature fingerprint minutiae extraction algorithms are used to extract ridge features, endpoints, and bifurcation information of the fingerprints, and these are compared with locally registered fingerprint templates. Finally, the comparison results are logically determined, and the recognition status is output, with the output content being recognized / unrecognized; at the same time, a unique identity code is generated based on the template ID of the successfully matched template. In addition, the identification status output in step S1 needs to be uniformly processed in terms of data structure. A mature state coding mapping method is used to convert the original identification result into a structured identification signal. The identification status is broadcast to the temperature detection module as an event trigger signal through an event-driven mechanism, so that the temperature response logic and the identification logic maintain synchronous response.
[0022] S2. Establish a temperature detection synchronous response link based on the identification status to obtain the temperature response; Step S2 uses the fingerprint recognition status obtained in step S1 to dynamically construct a correlated temperature detection path and form a temperature response quantity synchronized with the recognition status; In this step, the status signal is first identified to trigger the temperature detection module to start; The recognition status obtained from step S1 is: ,in This indicates that fingerprint recognition was successful. This indicates that recognition failed or was not triggered, only when At that time, the temperature detection module is activated, generating a synchronous start signal. ; ; in, The trigger coefficient for the temperature detection module is set to 1; If the identification status is invalid ( If the temperature is not activated, the temperature detection module will not be activated.
[0023] Subsequently, the sensor begins sampling the ambient or device surface temperature, and the sampled temperature value is: ; in, The result is the temperature measurement. For the sensor in time The sampling output function is implemented based on mature sampling mechanisms such as NTC thermistors and thermocouples; Finally, the temperature signal and the recognition status are combined to generate a synchronous temperature response: ; in, This is the synchronous temperature response quantity; : is the temperature response mapping function, specifically: ; in, This is the initial threshold for the temperature response; This is a mandatory response threshold; The temperature response growth coefficient is an empirical parameter based on the relationship between sensor performance and control system requirements, satisfying a linear growth range and... match.
[0024] In traditional power supply control methods, temperature detection is often a passive, independent channel, without direct timing or state coupling with the identification process. This step actively activates the temperature detection module by recognizing the state signal and converts its response into a synchronous response quantity for subsequent state construction. Compared to existing control methods, this step differs in the following ways: Achieve timing synchronization: Temperature monitoring is performed only after fingerprint recognition is successful, saving energy and improving system response efficiency; Introducing a dynamic response mechanism: through A dynamic thermal risk index is constructed to provide real-time parameter support for the control function; State-aware detection: avoids false triggers or energy waste caused by redundant detection.
[0025] S3. Use the identified state and temperature response to construct the intermediate state of power supply control and obtain the control state; In step S3, the recognition state is first weighted, which converts the binary recognition state into a weighted state. Mapped to floating-point weight values to reflect their effective participation in the control logic, the state is identified through a first-order mapping function. Perform mapping: ; in, To identify the basic control activation value in the effective state, this value is set based on the empirical value of the control system's authentication trust level, and is usually set to... ; Then, temperature risk factor enhancement and correction are performed, utilizing temperature response. The identified states are weighted to express the dynamic adjustment effect of temperature on the control intensity, and a correction function is introduced. Temperature response Converted into a suppressor or enhancer of the recognition state; ; in, The degree to which the temperature response enhances the control state. The temperature effect amplification factor is set based on the impact of ambient temperature on equipment risk. Through empirical parameter selection, if a 10% increase in temperature increases the control sensitivity by 15%, then... .
[0026] Finally, the results of the two unprocessed steps are combined to construct the final control intermediate state. for: ; Output control intermediate state Used as the core input for step S4.
[0027] Existing technologies in power supply control generally employ environmental response mechanisms based on Boolean condition-based identification triggering and independent threshold judgment. These mechanisms struggle to dynamically integrate the identified state with temperature or leakage current signals, resulting in rigid control strategies, high misjudgment rates, and response delays when multiple abnormal factors coexist. Step S3 maps the identified state to continuous control weights and introduces temperature and leakage current signals as enhanced inputs to construct a state transition function with coupled regulation characteristics. This enables a continuous and dynamic expression of the power-off control strategy, effectively improving the system's adaptability and robustness to complex environments.
[0028] S4. Obtain the leakage current detection result and use the leakage current detection result and the control state to construct the state transition function; In step S4, the leakage current detection submodule is set in the sampling circuit to detect the power supply circuit to ground current and obtain the raw leakage data. The normalization transformation is performed using the following formula: ; in, At any moment The actual detected leakage current value; The minimum leakage current value recorded in the system history; The system's preset maximum allowable leakage current threshold; : The standardized dimensionless leakage current response intensity value; In step S4, the leakage current response intensity value is adjusted using the following piecewise leakage current response adjustment function. Divided into three sections: ; in, : Leakage current safety response function, the output represents the control allowable coefficient; : Segmented critical values, representing the upper limit of low-risk tolerance and the lower limit of high-risk cutoff, respectively; Secondary attenuation factor, which controls the nonlinear attenuation rate in the medium-risk section; The three sections are: Safe zone (below) ): Control is uninterrupted, ; Intermediate alert zone: Rapid suppression using a two-stage approach; Danger zone (higher than) Forced interruption, .
[0029] The final state transition value to be output in step S4 is not only affected by the current state transition value. The influence of this is also affected by its rate of change, which is reflected by the following formula; ; in, : State feedback adjustment coefficient, which regulates the influence of leakage current state change trend on state transition; The time derivative of the leakage current response function represents the changing trend of the current leakage current risk. Through derivation, we can obtain: ; in, This is the combined weighting coefficient for temperature and leakage current factor. Configure according to the actual system scenario requirements and security policies; The power outage detection threshold is usually set to 0.5; Ultimately, the output This represents the overall safety value of the system under the current temperature, identification, and leakage current conditions. Traditional and mature power-off control technologies are typically based on a single threshold judgment model or a fixed priority strategy. That is, they rely solely on the individual value of temperature or leakage current detection exceeding a set threshold to trigger a power-off action. They lack the ability to fuse and model multiple source states and have a dynamic response mechanism. However, in step S4, the control states are fused... (Includes historical information on fingerprint recognition and temperature response) and leakage current detection function A dynamic nonlinear state transition function was constructed. The system incorporates fingerprint recognition status as a forced power-off input source, allowing for immediate response when forced human intervention occurs (e.g., in maintenance mode); and employs a fusion weighting coefficient. By aggregating the two risk states of temperature and leakage current in a weighted manner, the system has dynamic trade-off and redundant response capabilities; the power outage judgment no longer relies on a single numerical judgment, but introduces combinational logic and weighted comparison mechanism, which improves the accuracy of response to complex risk events.
[0030] S5. Output a power-off control signal based on the state function and control the relay to perform a power-off operation; In step S5, the state function ζ(t) is first compared using a mature threshold triggering model. A fixed triggering threshold is set according to the equipment design standards or safety policies. When ζ(t) is greater than or equal to the threshold, the system determines the current state as "abnormal" or "power off required"; otherwise, it is determined as "normal" and no power off signal is output. Based on the above judgments, the decision result is converted into a binary control signal using a mature state mapping function (Boolean Mapping Logic). : If ζ(t) exceeds the threshold, then ; otherwise .
[0031] Final control signal The signal is transmitted to the execution layer (such as a relay control module), where mature low-voltage relay control technology is used to control the on / off operation of the actual power supply line.
[0032] Example 2: This is the second embodiment of the present invention, which provides a pre-maintenance hint triggering mechanism based on a state transition function; During execution, the state transition function is output based on step S4. When it is at a critical value or shows a continuous upward trend, although it has not reached the threshold for directly triggering a power outage, the system can trigger a pre-maintenance reminder mechanism in the background to remind users to perform equipment self-checks or environmental inspections. This mechanism combines a log system to record multiple triggering processes, forming a foundation of maintenance big data, which can then be used for long-term equipment health assessments.
[0033] Example 3: This example also provides a computer device applicable to a power switch power-off method based on a fingerprint module, including 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 power switch power-off method based on a fingerprint module as proposed in the above examples.
[0034] This embodiment also provides a storage medium storing a computer program that, when executed by a processor, implements a power-off method based on a fingerprint module as proposed in the above embodiments.
[0035] 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.
[0036] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0037] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-including system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.
[0038] More specific examples (a non-exhaustive list) of computer-readable media include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0039] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0040] 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 power-off method for a power switch based on a fingerprint module, characterized in that, Includes the following steps: S1. Initialize the fingerprint module recognition status extraction and verification process to obtain the recognition status; S2. Establish a temperature detection synchronous response link based on the identification status to obtain the temperature response; S3. Use the identified state and temperature response to construct the intermediate state of power supply control and obtain the control state; S4. Obtain the leakage current detection result and use the leakage current detection result and the control state to construct the state transition function; S5. Output a power-off control signal based on the state function and control the relay to perform a power-off operation.
2. The power-off method for a fingerprint module-based power switch according to claim 1, characterized in that, In step S1, after acquiring the input fingerprint image, image quality assessment technology is used to determine whether the acquired image meets the requirements for subsequent processing. During the quality assessment process, an image quality threshold is set. If the image quality score is lower than the threshold, the image is re-acquired. A mature fingerprint minutiae extraction algorithm is used to extract the ridge features, endpoints, and bifurcation information of the fingerprint, and it is compared with the locally registered fingerprint template. The comparison results are logically judged, and the recognition status is output.
3. The power-off method for a fingerprint module-based power switch according to claim 1, characterized in that, Step S2 first identifies a status signal that triggers the temperature detection module to start. The identified status obtained from step S1 is as follows: ,in This indicates that fingerprint recognition was successful. This indicates that recognition failed or was not triggered, only when At that time, the temperature detection module is activated, generating a synchronous start signal. ; ; in, The trigger coefficient for the temperature detection module is set to 1.
4. The power-off method for a fingerprint module-based power switch according to claim 2, characterized in that, In step S2, the sensor begins to sample the ambient or equipment surface temperature, and the sampled temperature value is: ; in, The result is the temperature measurement. For the sensor in time The sampling output function on.
5. A power-off method for a fingerprint module-based power switch according to claim 2, characterized in that, In step S2, the temperature signal and the identification status are combined to generate a synchronous temperature response: ; in, This is the synchronous temperature response quantity; : is the temperature response mapping function, specifically: ; in, This is the initial threshold for the temperature response; This is a mandatory response threshold; This is the temperature response growth coefficient.
6. The power-off method for a fingerprint module-based power switch according to claim 1, characterized in that, In step S3, the recognition state is first weighted, and the binary recognition state is weighted. Mapped to floating-point weight values to reflect their effective participation in the control logic, the state is identified through a first-order mapping function. Perform mapping: ; in, To identify the basic control activation value in the effective state, this value is set based on the empirical value of the control system's authentication trust level, and is usually set to... .
7. A power-off method for a fingerprint module-based power switch according to claim 6, characterized in that, In step S3, temperature risk factor enhancement and correction are performed, utilizing temperature response. The identified states are weighted to express the dynamic adjustment effect of temperature on the control intensity, and a correction function is introduced. Temperature response Converted into a suppressor or enhancer of the recognition state; ; in, The degree to which the temperature response enhances the control state. This is the temperature effect amplification factor, set based on the impact of ambient temperature on equipment risk; The results of weighted identification of states and temperature risk factor enhancement correction are combined to form the final control intermediate state. for: 。 8. The power-off method for a fingerprint module-based power switch according to claim 1, characterized in that, In step S4, the original leakage current data is obtained by setting a leakage current detection submodule in the sampling circuit to detect the power supply circuit to ground current. The normalization transformation is performed using the following formula: ; in, At any moment The actual detected leakage current value; The minimum leakage current value recorded in the system history; The system's preset maximum allowable leakage current threshold; : The standardized dimensionless leakage current response intensity value.
9. A power-off method for a fingerprint module-based power switch according to claim 8, characterized in that, In step S4, the leakage current response intensity value is adjusted using the following piecewise leakage current response adjustment function. Divided into three sections: ; in, : Leakage current safety response function, the output represents the control allowable coefficient; : Segmented critical values, representing the upper limit of low-risk tolerance and the lower limit of high-risk cutoff, respectively; : Secondary attenuation factor.
10. A power-off method for a fingerprint module-based power switch according to claim 8, characterized in that, The final state transition value to be output in step S4 is not only affected by the current state transition value. The influence of this is also affected by its rate of change, which is reflected by the following formula; ; in, : State feedback adjustment coefficient; : The time derivative of the leakage current response function.