Living body electric shock current simulation method and device and residual current protection system

By constructing a biological electric shock model and using variable resistance and skin equivalent capacitance to simulate the biological electric shock current, the problem of identifying and distinguishing electric shock objects in the prior art is solved, and the accuracy and safety of the biological electric shock protection are achieved.

CN119047398APending Publication Date: 2024-11-29STATE GRID HUNAN ELECTRIC POWER COMPANY LIMITED +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411160849.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

Existing biological electric shock protection technology is difficult to accurately identify and distinguish between electric shock objects as living organisms or non-living bodies. There are false movements or refusals, and the calculations are complex and unclear, so it cannot effectively characterize the time-varying characteristics of the electric shock current of living organisms.

Method used

The skin equivalent model consisting of variable resistance and skin equivalent capacitance is used to construct a biological electric shock model in combination with the excitable extracellular fluid path and the in vivo conduction path. By controlling the on-off of sodium and potassium ion channels, it simulates the action potential conduction process. Accurately simulate the electric shock current of biological organisms.

Benefits of technology

It realizes accurate simulation of the electric shock current characteristics of different living organisms, reduces false movements or refusals, and ensures the safe and stable operation of the low-voltage distribution system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119047398A_ABST
    Figure CN119047398A_ABST
Patent Text Reader

Abstract

The invention discloses a living body electric shock current simulation method and device and a residual current protection system, and the method comprises the steps: respectively connecting a skin equivalent model in series at two ends of an in-vivo equivalent model to construct a living body electric shock model, and connecting a variable resistance branch and a skin equivalent capacitance branch in parallel to form the skin equivalent model, the excitable extracellular fluid path and the in-vivo conductive path are connected in parallel to form an in-vivo equivalent model, the excitable extracellular fluid path comprises a plurality of cell branches, and each cell branch comprises a plurality of sodium and potassium ion channels for equivalent depolarization and repolarization processes; setting model parameters of the living body electric shock model; and starting simulation control when the target organism electric shock model receives the effective stimulation, realizing a polarization state by controlling the on-off of each sodium ion channel and each potassium ion channel, closing all the potassium ion channels after polarization is completed, and counting the current values of the channels to obtain an electric shock current value. According to the invention, the electric shock current can be obtained by accurately simulating the electric shock characteristics of an organism.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of low-voltage distribution network fault protection, and in particular to a biological body electric shock current simulation method, equipment and a residual current protection system. Background Art

[0002] Electric shock to living organisms is a safety accident that needs to be paid special attention to in low-voltage power distribution systems. At present, the protection of electric shock to living organisms mainly adopts the residual current protection device method, artificial intelligence deep learning method and the establishment of a physical model of electric shock to living organisms.

[0003] The residual current protection device method is to use the residual current protection device to detect that the residual current changes and the amplitude reaches the set value, and the tripping mechanism starts to cut off the power supply, thereby achieving electric shock protection. However, the residual current protection device currently used is based on the total residual current of the line (30mA) as the action criterion, and cannot identify the fault type and distinguish whether the object of electric shock is a living thing or a non-living thing. There is also an action dead zone, which is prone to false action or refusal to act in bad weather or when a large load is put into use, and cannot play an effective safety protection role.

[0004] The deep learning method based on artificial intelligence uses deep learning algorithms to learn the characteristics of life forms that are subject to electric shock and to classify life forms that are subject to electric shock. However, this method requires training of a large number of data samples to meet the required accuracy requirements. It not only has high computational complexity and long training time, but also has defects such as unclear physical mechanisms of fault detection.

[0005] The method of realizing electric shock protection by establishing an equivalent model of electric shock of a living organism is to characterize the electric shock current characteristics of a living organism when it is electrically shocked by establishing an equivalent model of electric shock of a living organism, and to use the electric shock current obtained by the equivalent model of electric shock of a living organism as a criterion for electric shock protection. However, the impedance values ​​of the biological body in such equivalent models of electric shock of living organisms are all regarded as constant values, and it is difficult to describe the time-varying characteristics of the body impedance of the animal when it is electrically shocked. Although the numerical fitting model can describe the changing characteristics of the impedance of a living organism when it is electrically shocked, it is still difficult for the numerical fitting model to describe the waveform distortion phenomenon of the electric shock current and the time-varying phenomenon of the body impedance when the living organism is electrically shocked from a mechanism level, and it is still impossible to accurately characterize the electric shock current characteristics of a living organism when it is electrically shocked. Summary of the invention

[0006] The technical problem to be solved by the present invention is: in response to the technical problems existing in the prior art, the present invention provides a biological electric shock current simulation method, equipment and residual current protection system with simple implementation method, low cost, high simulation accuracy and safety and reliability, which can accurately simulate the electric shock current characteristics of different living organisms when they are electric shocked, thereby facilitating the accurate implementation of electric shock protection for living organisms and reducing the situation of false operation or refusal to operate.

[0007] In order to solve the above technical problems, the technical solution proposed by the present invention is:

[0008] A method for simulating electric shock current of a biological body, comprising the steps of:

[0009] A skin equivalent model is connected in series at both ends of the in vivo equivalent model to form a biological body electric shock model, wherein a variable resistance branch and a skin equivalent capacitance branch are connected in parallel to form the skin equivalent model, the variable resistance branch includes a plurality of variable resistors connected in series, an excitable extracellular fluid path and an in vivo conductive path are connected in parallel to form the in vivo equivalent model, the excitable extracellular fluid path includes a plurality of cell branches connected in series, each of the cell branches includes a plurality of sodium and potassium ion channels to perform an equivalent depolarization and repolarization process, the in vivo conductive path includes a plurality of resistors connected in series, each variable resistor in the skin equivalent model and each resistor in the in vivo conductive path of the in vivo equivalent model are connected to a bypass switch, and each sodium and potassium ion channel in the excitable extracellular fluid path are connected to a conduction switch;

[0010] The model parameters of the biological body electric shock model are set according to the target biological body to be simulated to form the target biological body electric shock model, wherein the model parameters include the size of skin capacitance, the size of resistance, the number of cell branches, and the number of sodium and potassium ion channels;

[0011] An effective stimulus that can cause the living organism to generate an action potential is sent to the target organism electric shock model. When the target organism electric shock model receives the effective stimulus, the simulation control is started, and the polarization state is achieved by controlling the on and off of each sodium and potassium ion channel. After the polarization is completed, all potassium ion channels are closed, and the current values ​​of all sodium and potassium ion channels at the current moment are counted to obtain a simulated electric shock current value output.

[0012] Furthermore, each sodium and potassium ion channel in the constructed biological electric shock model is also provided with a sodium ion equivalent current source, a potassium ion equivalent current source, a cell membrane equivalent capacitance, an extracellular fluid resistance, an intracellular fluid resistance, a leakage channel resistance and an in-vivo immutable resistance.

[0013] Furthermore, the polarization state is achieved by controlling the on and off of each sodium and potassium ion channel, including:

[0014] Obtain the current time and voltage value to calculate the body resistance value and skin resistance value of the current organism;

[0015] Determine whether the current polarization state flag is in a valid state, if so, control the closing of the conduction switch of the corresponding sodium ion channel, otherwise continue to determine whether the repolarization state flag is in a valid state;

[0016] If it is determined that the current repolarization state flag is in a valid state, the corresponding sodium / potassium ion channel conduction switch is controlled to be opened / closed, otherwise, it is continued to be determined whether the potassium ion channel closing operation state flag is in a valid state;

[0017] If it is determined that the current potassium ion channel closing operation state flag is in a valid state, the corresponding potassium ion channel conduction switch is controlled to be disconnected, otherwise it continues to be determined whether all current channels have completed polarization;

[0018] If it is determined that all current channels have completed polarization, the control modifies the repolarization state flag, otherwise it continues to determine whether all current potassium ion channels are closed;

[0019] If it is determined that all the current potassium ion channels are closed, the control modifies the potassium ion channel closing process status flag.

[0020] Furthermore, the process of achieving the polarization state by controlling the on and off of each sodium and potassium ion channel also includes a motion state monitoring step, including:

[0021] When the first moment of polarization initiation is detected, the current moment is stored;

[0022] Determine whether the first responding sodium ion channel conduction time reaches the upper limit, and if so, modify the repolarization state flag to a valid state;

[0023] Determine whether the conduction time of the first closed potassium ion channel reaches the upper limit, and if so, control the potassium ion channel closing operation state flag to be set to a valid state;

[0024] Determine whether the preset refractory period opening condition is met at present, if yes, set the polarization state flag to an invalid state, otherwise set the polarization state flag to a valid state, the refractory period is a period during which the channel will not generate an action potential even if stimulated;

[0025] Determine whether there is effective stimulation. If so, control the polarization state flag to be set to the effective state, otherwise terminate the control.

[0026] Furthermore, during operation, the biological electric shock model simulates the conduction process of the action potential through four stages: stimulus response, conduction excitement, potential recovery, and channel resetting. The stimulus response stage is used to simulate the process of excitable cells in the body generating action potentials under the stimulation of the electric field, the conduction excitement stage is used to simulate the process of the action potential continuing to conduct along the cell membrane, the potential recovery stage is used to simulate the process of the potential in the membrane continuing to decrease, and the channel resetting stage is used to simulate the process of each potassium ion channel resetting in turn. Each sodium ion channel enters a refractory period after completing a conduction once after one stimulation. During the refractory period, the sodium ion channel will not generate an action potential even if stimulated until the end of the refractory period.

[0027] Furthermore, in the stimulus response stage, a local current is formed by turning on the sodium ion channels near the stimulation point, and the potential near the adjacent sodium ion channels changes; in the conduction excitement stage, when the potential difference between the adjacent sodium ion channels reaches a preset action threshold, the adjacent sodium ion channels are controlled to be opened, so that a local current is formed again, and then the sodium ion channels on each cell branch are opened in sequence, so that the action potential is continuously conducted along each cell branch, and the potential in the membrane continues to rise during the continuous conduction process; in the potential recovery stage, after the sodium ion channel is opened for a specified time, each sodium ion channel is controlled to be closed in sequence, so that a local current in the opposite direction is generated, and the potential in the membrane continues to decrease during the process of closing each sodium ion channel in sequence; in the channel reset stage, each potassium ion channel is turned on for a specified time and then closed in sequence in the order of conduction.

[0028] Furthermore, the current values ​​of all sodium and potassium ion channels at the current moment are counted according to the following formula to obtain the simulated electric shock current value:

[0029] I s =I1+I2+…+I k

[0030]

[0031] Among them, I s is the electric shock current value, I i represents the electric shock current value when the independent source in the i-th sodium and potassium ion channels acts alone, i = 1~k, k represents the total number of sodium and potassium ion channels, Indicates the electric shock current value I i The amplitude of Indicates the electric shock current value I i The initial phase of , f represents the frequency, and t represents the time.

[0032] Furthermore, the electric shock current I i The calculation steps are:

[0033] Each ion channel is equivalent to a DC current source, and the capacitor is regarded as an open circuit. At the same time, the external voltage source and other current sources are set to zero, and an equivalent circuit for independent source electric shock current calculation is constructed. The equivalent circuit for independent source electric shock current calculation includes the ion channel equivalent current source A qp , the combined resistance formed by the intracellular fluid resistance and the leakage channel resistance The electrical resistance of the extracellular fluid Total resistance of the extracellular fluid on the left Total resistance of the extracellular fluid on the right Conductive path resistance R iv And the skin resistance 2R at both ends s , the equivalent current source A qp The resistance between one end and the extracellular fluid One end of the equivalent current source A is connected to the A node. qp The other end of the combined resistor The resistance of the extracellular fluid The other end is connected to the B node, and the internal conductive path resistance R iv One end is connected to the C node, and the internal conductive path resistance R iv The other end is connected to the D node, and the total resistance of the extracellular fluid on the left side Connected between nodes A and C, the total resistance of the extracellular fluid on the right side Connected between node B and node C, the skin resistance at both ends is 2R s The two ends of are connected to nodes C and D respectively. If the current independent source is a sodium ion equivalent current source, then the equivalent current source A qp The current direction is downward; if it is a potassium ion equivalent current source, then the equivalent current source A qp The direction of current is upward;

[0034] Calculate the electric shock current I according to the following formula i :

[0035]

[0036] in, Represent the currents on the BD, BA, and DC branches respectively, I qp Represents the equivalent current source A qp The current generated.

[0037] An electronic device comprises a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to execute the computer program to perform the above method.

[0038] A residual current protection system includes a residual current protection device and a control device connected to the residual current protection device. The control device compares the residual current in the electrical circuit detected in real time with an electric shock protection criterion, and determines whether the residual current protection device needs to be activated based on the comparison result. The electric shock protection criterion is obtained by configuring the electric shock current simulated according to the above method.

[0039] Compared with the prior art, the advantages of the present invention are: the present invention constructs a biological electric shock model through a skin equivalent model composed of a variable resistance branch and a skin equivalent capacitance branch in parallel, and an in vivo equivalent model composed of an excitable extracellular fluid path and an in vivo conductive path in parallel, and adopts a combination of multiple resistors and bypass switches to simulate the process of resistance drop during carbonization. It can effectively describe the time-varying characteristics of the impedance of the living body and accurately reflect the nonlinear characteristics of the electric shock current of the living body. By controlling the operation of the model, the electric shock current of the living body can be accurately simulated, and the changing law of the electric shock current of the living body can be accurately described, thereby facilitating the realization of biological electric shock protection and ensuring the safe and stable operation of the low-voltage power distribution system. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a schematic diagram of the implementation process of the biological body electric shock current simulation method of this embodiment.

[0041] Figure 2 Schematic diagram of the structural principle of the skin equivalent model constructed in this embodiment.

[0042] Figure 3 Schematic diagram of the structural principle of the in vivo equivalent model constructed in this embodiment.

[0043] Figure 4 Schematic diagram of the structural principle of the biological electric shock model constructed in this embodiment.

[0044] Figure 5 It is a schematic diagram of the principle of the operation process of the biological electric shock model in this embodiment.

[0045] Figure 6 Detailed operation flow diagram of the biological body electric shock model in this embodiment.

[0046] Figure 7 It is a schematic diagram of the principle of calculating the electric shock current in this embodiment.

[0047] Figure 8 Schematic diagram of the equivalent circuit when the external power supply constructed in this embodiment acts alone.

[0048] Fig. 9 It is a schematic diagram of an equivalent circuit constructed in this embodiment for calculating the electric shock current of each independent source. DETAILED DESCRIPTION

[0049] The present invention is further described below in conjunction with the accompanying drawings and specific preferred embodiments, but the protection scope of the present invention is not limited thereby.

[0050] The biological electric shock equivalent mechanism model is the basis of the electric shock protection criterion for living organisms. The present invention takes into account the carbonization process of the skin and internal tissues under the action of an external current based on the relative position relationship of the physiological structures such as the biological skin and the internal parts, and constructs a biological electric shock model by using a skin equivalent model composed of a variable resistance branch and a skin equivalent capacitance branch in parallel and an in vivo equivalent model composed of an excitable extracellular fluid path and an in vivo conductive path in parallel. A combination of multiple resistors and bypass switches is used to simulate the process of resistance drop during carbonization, thereby forming a time-varying, multi-layer electric shock model. The source macro-equivalent circuit model is adopted. In the output waveform of the model, the amplitude of the electric shock current will gradually increase with time, which effectively describes the time-varying characteristics of the impedance of the living organism. Therefore, the output waveform of the model can accurately reflect the nonlinear characteristics of the electric shock current of the living organism. By controlling the operation of the model, the electric shock current of the living organism when it is electrically shocked can be accurately simulated, and the changing law of the electric shock current of the living organism can be accurately described. The problem of the electric shock current waveform distortion and the time-varying body impedance phenomenon when the living organism is electrically shocked in the low-voltage system can be solved, which is difficult to explain from the mechanism level. This makes it easier to realize the protection of the living organism from electric shock and ensure the safe and stable operation of the low-voltage power distribution system.

[0051] like Figure 1 As shown, the steps of the biological body electric shock current simulation method of this embodiment include:

[0052] Step S01. A skin equivalent model is connected in series at both ends of the in vivo equivalent model to construct a biological electric shock model, wherein a variable resistance branch and a skin equivalent capacitance branch are connected in parallel to form a skin equivalent model, the variable resistance branch includes a plurality of variable resistors connected in series, an excitable extracellular fluid path and an in vivo conductive path are connected in parallel to form an in vivo equivalent model, the excitable extracellular fluid path includes a plurality of cell branches connected in series, each cell branch includes a plurality of sodium and potassium ion channels with equivalent depolarization and repolarization processes, the in vivo conductive path includes a plurality of resistors connected in series, each variable resistor in the skin equivalent model and each resistor in the in vivo conductive path of the in vivo equivalent model are connected to a bypass switch, and each sodium and potassium ion channel in the excitable extracellular fluid path are connected to a conduction switch.

[0053] First, we construct an equivalent model of the biological skin. The path of electric shock in the biological body is composed of the positive skin, the internal part, and the negative skin. Figure 2 As shown in the figure, the biological skin equivalent model is composed of a variable resistance branch and a skin equivalent capacitance branch in parallel. The variable resistance branch is used to equalize the conductive pore channel on the skin surface, and the nearby skin tissue will be burned and carbonized under the action of current.s It is the skin equivalent capacitance, which is mainly formed by the stratum corneum with strong insulation on the skin surface.

[0054] Then, an equivalent model of the in vivo part of the organism is constructed. Figure 3 As shown in the figure, the equivalent model of the body is mainly composed of the excitable extracellular fluid path and other conductive paths in the body in parallel. Considering the dynamic process of the electric shock current on the main line being affected by several equivalent current sources when the sodium and potassium ion channels on several excitable cells are turned on and off, and considering the process in which the conductive parts composed of various organs, fat, and body fluids in the body are gradually carbonized under the action of current, the conductive path of the excitable extracellular fluid in the body is composed of several microscopic depolarization and repolarization process equivalent models in series. There are m excitable cells in the path, and each cell has n pairs of sodium and potassium ion channels on the membrane surface. Let i and j be the index variables of the cell and the channel, then each pair of sodium and potassium ion channels is expressed as It corresponds to an equivalent model of a depolarization and repolarization process. The values ​​of m and n mentioned above can be configured according to actual needs.

[0055] Based on the skin equivalent model and the equivalent model of the body part, a complete macroscopic mechanism model of electric shock of living organisms is constructed. Figure 4 As shown in the figure, the macroscopic structure of the model consists of skin-body-skin, with A and B ends being the contact ends of the electric shock electrodes. In the biological body electric shock model, each sodium and potassium ion channel is also provided with a sodium ion equivalent current source, a potassium ion equivalent current source, a cell membrane equivalent capacitance, an extracellular fluid resistance, an intracellular fluid resistance, a leakage channel resistance and a body non-variable resistance. Figure 4 ,in For skin unit resistance values ​​that are equal to each other, is the internal unit resistance that is equal to each other. After the electric shock occurs, a certain number of bypass switches need to be closed at each moment to carbonize the skin and organic matter in the body under the action of the equivalent electric shock current, resulting in a continuous decrease in resistance. Each local current loop in the conductive path of the extracellular fluid of the excitable cells in the body is uniquely identified by a subscript consisting of two indexes. The first number represents the cell number, and the second number represents the number of different sodium and potassium ion channels in the same cell. For example, N nm , K nm , R in They respectively represent the sodium ion voltage-gated channel switch, potassium ion voltage-gated channel switch, sodium ion equivalent current source, potassium ion equivalent current source, cell membrane equivalent capacitance, extracellular fluid resistance, intracellular fluid resistance, leakage channel resistance and in vivo immutable resistance in the mth pair of sodium-potassium ion channel equivalent circuit of the nth cell.

[0056] This embodiment takes into account the process of carbonization of the skin and body tissues under the action of an external current, and simulates the process of resistance drop during carbonization by adopting a combination of multiple resistors and bypass switches. In the output waveform of the model, the amplitude of the electric shock current gradually increases with time, which explains the time-varying phenomenon of animal body impedance from a mechanism level.

[0057] In order to simulate the bioelectric activity process after the living body is electrocuted, the model of electric shock of the living body adopts the model operation mechanism that considers the principle of action potential conduction. Assuming that each excitable cell in the body of the living body is stimulated by an external electric field at the same time, and each cell only considers one stimulation point, when the living body forms a closed loop under dangerous voltage, the electric field will be formed instantly in the living body. During the operation process, the model of electric shock of the living body simulates the conduction process of the action potential through four stages: stimulus response, conduction excitement, potential recovery and channel reset. That is, the conduction process of the action potential is divided into four stages: stimulus response, conduction excitement, potential recovery and channel reset. Among them, the stimulus response stage is used to simulate the process of excitable cells in the body generating action potentials under the stimulation of the electric field, the conduction excitement stage is used to simulate the process of action potentials continuing to conduct along the cell membrane, the potential recovery stage is used to simulate the process of continuous decrease of the membrane potential, and the channel reset stage is used to simulate the process of each potassium ion channel resetting in turn. In addition, in the model, each sodium ion channel enters the refractory period after completing a conduction once after a stimulus. During the refractory period, the sodium ion channel will not generate an action potential even if it is stimulated until the refractory period ends. That is, the sodium ion voltage-gated channel enters a refractory period after completing a conduction in response to a stimulus. During this period, no action potential will be generated even if it is stimulated. It can only respond to new stimuli after the refractory period ends and repeat the above process of stimulus response, conduction excitement, potential recovery and channel resetting.

[0058] In a specific application embodiment, Figure 5 As shown in the figure, the various stages of the action potential conduction process of the biological electric shock model are:

[0059] (1) In the stimulus response stage, the sodium ion channels near the stimulation point are turned on, forming a local current, and the potential near the adjacent sodium ion channels changes. For example, when the excitable cells in the body generate action potentials under the stimulation of the electric field, the sodium ion voltage-gated channel N_11 near the stimulation point is turned on, which is equivalent to the closing of the sodium ion channel equivalent switch in the model. This process forms a local current and also causes a change in the potential near the adjacent sodium ion voltage-gated channel.

[0060] (2) During the conduction stage, when the potential difference between adjacent sodium ion channels reaches a preset action threshold, the adjacent sodium ion channels are controlled to open, so that local current is formed again, and then the sodium ion channels on each cell branch are opened in turn, so that the action potential is continuously conducted along each cell branch. During this continuous conduction process, the membrane potential continues to rise.

[0061] Specifically, during the stage of conducting excitement, adjacent sodium ion voltage-gated channels will open because the potential difference on both sides reaches the action threshold, forming a local current again, thereby opening channels farther away. According to this rule, the sodium ion channels on the cell membrane will open one after another, which is equivalent to the sodium ion channel equivalent switches in the model closing one after another. The action potential will continue to conduct along the cell membrane, and the potential inside the membrane will continue to rise during this process.

[0062] (3) In the potential recovery stage, after the sodium ion channel is opened for a specified time, each sodium ion channel is controlled to be closed in sequence, so that a local current in the opposite direction is generated. During the process of closing each sodium ion channel in sequence, the membrane potential continues to decrease. In the channel reset stage, each potassium ion channel is turned on for a specified time and then closed in sequence in the order of conduction.

[0063] Specifically, the earliest opened channel N_11 will close after a period of time, and at the same time, the nearby potassium ion voltage-gated channel K_11 will open, generating a local current in the opposite direction. In the equivalent circuit, the sodium ion channel equivalent switch is open, and the potassium ion channel equivalent switch is closed. Assuming that the duration of the conduction state of each sodium ion voltage-gated channel is equal, the other sodium and potassium ion channels will also experience this process in the order of the previous conduction, and the membrane potential will continue to decrease during this process.

[0064] (4) Channel reset: Assuming that the conduction time of each potassium ion voltage-gated channel is equal, each channel will be closed in sequence according to the order of conduction after a period of time, and the potassium ion equivalent switches in the equivalent circuit will be disconnected in sequence.

[0065] Step S02. Setting the model parameters of the biological electric shock model according to the target biological body to be simulated to form the target biological electric shock model, wherein the model parameters include the size of skin capacitance, the size of resistance, the number of cell branches, the number of sodium and potassium ion channels, etc.

[0066] By running the organism electric shock model, the action potential is conducted to generate electric shock current, and the electric shock current can be simulated. Due to the different characteristics of different types of life forms, by setting different numbers of cell branches, sodium and potassium ion channels, it can be suitable for simulating different organisms. The present embodiment configures the model parameters according to the type of the organism to be simulated, and can form a target organism electric shock model of corresponding different organisms. The number of cell branches in the model parameters is the number of cells that conduct excitement, the number of sodium and potassium ion channels is the number of sodium and potassium ion channels of each cell, and the resistance parameters include the basic unit value of the body resistance change under each current, the extracellular fluid resistance value of each cell and each channel, the intracellular fluid resistance value of each cell and each channel, the ion leakage channel resistance value, etc., in addition, it can also include the duration of stimulation, the duration of sodium ion channel conduction, the duration of potassium ion channel conduction, the duration of refractory period, the current of the equivalent current source of the sodium ion voltage-gated channel, and the current of the equivalent current source of the potassium ion voltage-gated channel.

[0067] Step S03. Send an effective stimulus that can cause the living organism to produce an action potential to the target organism electric shock model. When the target organism electric shock model receives the effective stimulus, the simulation control is started, and the polarization state is achieved by controlling the on and off of each sodium and potassium ion channel. After the polarization is completed, all potassium ion channels are closed, and the current values ​​of all sodium and potassium ion channels at the current moment are counted to obtain the simulated electric shock current value output.

[0068] After the parameters are set, an effective stimulus that can cause the organism to produce action potentials is sent to the target organism electric shock model. When the target organism electric shock model receives the effective stimulus, the simulation control is started, and the polarization state is achieved by controlling the on and off of each sodium and potassium ion channel. After polarization is completed, all potassium ion channels are closed, and the current values ​​of all sodium and potassium ion channels at the current moment are counted to obtain the simulated electric shock current value output.

[0069] In this embodiment, the steps of achieving the polarization state by controlling the on and off of each sodium and potassium ion channel specifically include:

[0070] Obtain the current time and voltage value to calculate the body resistance value and skin resistance value of the current organism;

[0071] Determine whether the current polarization state flag is in a valid state, if so, control the closing of the conduction switch of the corresponding sodium ion channel, otherwise continue to determine whether the repolarization state flag is in a valid state;

[0072] If it is determined that the current repolarization state flag is in a valid state, the corresponding sodium / potassium ion channel conduction switch is controlled to be opened / closed, otherwise, it is continued to be determined whether the potassium ion channel closing operation state flag is in a valid state;

[0073] If it is determined that the current potassium ion channel closing operation state flag is in a valid state, the corresponding potassium ion channel conduction switch is controlled to be disconnected, otherwise it continues to be determined whether all current channels have completed polarization;

[0074] If it is determined that all current channels have completed polarization, the control modifies the repolarization state flag, otherwise it continues to determine whether all current potassium ion channels are closed;

[0075] If it is determined that all the current potassium ion channels are closed, the control modifies the potassium ion channel closing process status flag.

[0076] In this embodiment, the process of realizing the polarization state by controlling the on and off of each sodium and potassium ion channel also includes a motion state monitoring step, including:

[0077] When the first moment of polarization initiation is detected, the current moment is stored;

[0078] Determine whether the first responding sodium ion channel conduction time reaches the upper limit, and if so, modify the repolarization state flag to a valid state;

[0079] Determine whether the conduction time of the first closed potassium ion channel reaches the upper limit, and if so, control the potassium ion channel closing operation state flag to be set to a valid state;

[0080] Determine whether the preset refractory period opening condition is met at present. If yes, set the polarization state flag to an invalid state. Otherwise, set the polarization state flag to a valid state. The refractory period is a period during which the channel will not generate an action potential even if stimulated.

[0081] Determine whether there is effective stimulation. If so, control the polarization state flag to be set to the effective state, otherwise terminate the control.

[0082] In a specific application embodiment, Figure 6 As shown, considering the process of action potential and carbonization of organic matter, according to the conduction principle of action potential, a model operation mechanism based on a dual-thread operation mode is adopted. After completing the model parameter setting, it is determined whether it is effectively stimulated. If so, the timing operation is triggered, and the electric shock voltage data is obtained, and the polarization state flag is modified to 1; the above-mentioned action potential conduction sub-thread and operation status monitoring sub-thread are respectively executed according to the dual threads, and the two sub-threads run in parallel. The two threads cooperate through an F^flag object, and multiple status flag variables are set in F^flag. The sub-threads can obtain or modify the values ​​of these variables to realize the reception or transmission of commands, so that F^flag acts as a medium for information interaction. The detailed implementation steps of controlling the operation of the biological body electric shock model are:

[0083] The state variables in the class to which F^flag belongs are shown in Table 1. The states used to characterize the start and stop conditions of each sub-process during the model operation include P^ploa, P^reploa, P^noact, P^clok, etc.; the latest model parameter values ​​such as t, R^s, R^iv, S^N, S^K, etc. are stored in real time. Among them, S^N and S^K are matrices that store the conduction state information of all excitable cells' sodium and potassium ion channels, with rows representing different cells and columns representing different channels. When the action potential conduction sub-thread executes a cycle, the timing parameter of the model is incremented by 1, which is equivalent to the time lapse of 1.8426×10-5s in the real world.

[0084] Table 1: State variable setting table in the class to which the object flag belongs

[0085]

[0086] At the beginning of the program, the basic parameters of the model are set. The specific parameters and their values ​​are shown in Table 2. When setting the parameters in this embodiment, the actual values ​​of each parameter are scaled proportionally to a certain extent in accordance with relevant physiological knowledge. For example, due to the huge number of excitable cells and ion voltage-gated channels in real animals, considering the time complexity and space complexity of the model, it is difficult to build an equivalent model with a 1:1 number of cells. This embodiment adopts the method of compressing the number of cells and ion channels and amplifying the current of a single channel of a single excitable cell when modeling. Specifically, the number of cells that conduct excitement and the number of sodium and potassium ion channels of each cell are set to 300 and 200, and the current value of the equivalent current source is set to 3×10-2A when each channel is open.

[0087] Table 2 Model parameters

[0088]

[0089] After the parameters are set, the effective stimulus monitoring state is entered. After the biological electric shock model receives effective stimulation, the program will trigger the timing operation, obtain real-time voltage data, and modify the value of the state variable P^ploa to 1 to start the polarization state. Subsequently, the model describes the process of action potential conduction through two parallel sub-threads.

[0090] The detailed process of the potential conduction subthread is as follows Figure 6 As shown in the left program branch, the following process will be executed when entering this sub-thread loop:

[0091] First, the timing variable t is incremented by 1 unit. At the same time, the resistance value in the animal's body and the skin resistance value at the current moment are calculated based on the organic carbonization equivalent model.

[0092] Secondly, check whether the polarization state flag, repolarization state flag, potassium ion channel closing operation state flag, etc. are equal to 1 in turn, and if so, perform corresponding operations. For example, when the polarization state flag variable is equal to 1, in the sodium ion voltage-gated channel equivalent switch matrix S^N, the entire column element value of the corresponding column is modified to 1, indicating that a conductive sodium ion channel is added to all excitable cells.

[0093] Again, confirm in sequence whether all channels have completed the polarization process, repolarization process, and shutdown process. If one or more of these processes are completed, the corresponding status flag is changed to 0.

[0094] In addition, the topological parameters of the equivalent circuit model at the current moment are obtained, and the electric shock current value is calculated according to the superposition theorem.

[0095] Finally, determine whether the calculation termination flag is equal to 1. If so, end all calculations and output the calculation results. Otherwise, return to the initial step and keep looping.

[0096] The running status monitoring subthread is as follows Figure 6 The program branch on the right side of the thread will run the following process when entering this sub-thread loop:

[0097] First, the first moment of polarization state activation is obtained, and the end time of the first responding sodium and potassium ion channel conduction is calculated according to the preset duration of sodium and potassium ion channel conduction, and the corresponding state flag is modified to 1 after the end. At this time, the action potential conduction subthread will perform corresponding operations according to the repolarization state flag.

[0098] Secondly, check whether the refractory period start condition is met. If so, set the polarization state flag to 0 to ensure that it does not respond to new stimuli; if not, return to step 1) and keep looping.

[0099] Finally, under the premise of the refractory period being on, check whether the refractory period end condition is met. If not, return to step 1) to keep the loop; if it is met, check whether the effective stimulus still exists. If so, modify the polarization state flag to 1 and start the next round of action potential conduction; if not, set the termination flag to 1 and end the model operation.

[0100] Since the equivalent circuit of electric shock in animals is time-varying, the circuit topology at different times may be different. Therefore, it is necessary to calculate the electric shock current value once for the topology at each time, and finally output an electric shock current data sequence in chronological order. Figure 7As shown, the model will have different topological structures at different times. There may be multiple independent sources in the circuit at each moment. According to the superposition theorem, it is necessary to first calculate the electric shock current value under the action of each independent source separately, and then superimpose the calculation results of all independent sources to obtain the electric shock current value at the corresponding moment.

[0101] In the biological equivalent circuit of electric shock, the quantities that change with time include: the variable resistance R of the skin and the body s and R iv , the equivalent switch state matrix S of the sodium and potassium ion voltage-gated channel N and S K , so in order to accurately describe the topological structure of the model, we only need to determine R s , R iv , S N and S K The value of .

[0102] When the model is running, this embodiment calculates and updates R at each moment through the following formula (2): s and R iv Value. Among them, R s (t) and R iv (t) represents the resistance value of the skin and body at time t. Taking the pig as an example, the number of resistance bypass switches in the skin and body of the model closed at each moment is calculated by combining formula (1). The values ​​of α are 0.0025 and 0.0003 respectively, U is the amplitude of the current electric shock voltage, and t represents the current moment. At the same time, it is also necessary to determine R s and R iv The initial values ​​can be set to 15000 and 1800 according to the resistance values ​​of pig skin stratum corneum and body under normal circumstances.

[0103]

[0104] During the operation of the model, the sodium and potassium ion channels are turned on and off by modifying the matrix S N and S K The corresponding position value is realized, "0" means disconnection, "1" means conduction, so the real-time output S N and S K The value of can show the topological structure of the model at each moment. In the initial state of the model, S N and S K All are "0" matrices. During the model operation, S N and S K is continuously updated. Therefore, at time t, by determining a set of R s , R iv , S N and S K The value of can determine the topological structure corresponding to the model at time t.

[0105] During the model operation, a set of circuit topology parameters is output for each time unit, and then the corresponding electric shock current value is calculated according to the superposition theorem. The specific calculation process is as follows:

[0106] I s =I1+I2+…+I k (4)

[0107] Among them, I s is the electric shock current value, I i represents the electric shock current value when the independent source in the i-th sodium and potassium ion channels acts alone, i = 1~k, k represents the total number of sodium and potassium ion channels, Indicates the electric shock current value I i The amplitude of Indicates the electric shock current value I i The initial phase of the current is represented by f, frequency, and time. When calculating, the counterclockwise direction can be defined as the positive direction of the current.

[0108] Further introduction to the calculation of electric shock current under various topological structures.

[0109] When considering the case where the external power source acts alone, the other independent sources are set to zero, and the equivalent circuit is as follows: Figure 8 shown.

[0110] The electric shock current I1 can be calculated according to the following formula:

[0111]

[0112] For example, the calculation expression of the electric shock current I1 is:

[0113]

[0114] in, Indicates the amplitude of the electric shock current, which can be obtained from the amplitude of the external power supply voltage and the total impedance module length. Indicates the initial phase of the electric shock current, which can be determined based on the initial phase of the external power supply and Figure 8 Impedance angle calculation for the circuit shown; f is the frequency, set to 50 Hz, and t is the time.

[0115] When considering an ion channel equivalent DC current source, all capacitors in the original circuit are considered to be open circuits, and the external voltage source and other current sources are set to zero, to construct an equivalent circuit for independent source electric shock current calculation. The equivalent circuit is as follows: Fig. 9 As shown, the equivalent circuit includes an ion channel equivalent current source A qp , the combined resistance formed by the intracellular fluid resistance and the leakage channel resistance The electrical resistance of the extracellular fluid Total resistance of the extracellular fluid on the left Total resistance of the extracellular fluid on the right Conductive path resistance R iv And the skin resistance 2R at both ends s , equivalent current source A qp The resistance between one end and the extracellular fluid One end of the equivalent current source A is connected to the A node. qp The other end of the resistor Resistance to extracellular fluid The other end is connected to the B node, and the internal conductive path resistance R iv One end is connected to the C node, and the internal conductive path resistance R iv The other end is connected to the D node, and the total resistance of the extracellular fluid on the left Connected between nodes A and C, the total resistance of the extracellular fluid on the right Connected between nodes B and C, the skin resistance at both ends is 2R s The two ends of are connected to nodes C and D respectively. If the current independent source is a sodium ion equivalent current source, then the equivalent current source A qp The current direction is downward; if it is a potassium ion equivalent current source, then the equivalent current source A qp The direction of current is upward.

[0116] Fig. 9 Middle I k It represents the value of the electric shock current under the action of the kth (and k≠1) independent source alone. q and p are index variables, indicating that the current calculation is the equivalent circuit of the qth pair of sodium and potassium ion channels in the pth cell. Represents the sum of the intracellular fluid resistance and the leakage channel resistance, Represents the sum of the extracellular fluid resistance on the left and right sides of the current equivalent circuit, R s is the resistance of the skin at one end; according to the resistance value in the equivalent circuit and the node current law, the current I k The calculation expression of is shown in formula (6):

[0117]

[0118] in, Represent the currents in BD, BA, and DC branches respectively; I qp Represents the current generated by the current source.

[0119] This embodiment takes into account the bioelectric activity during electric shock. By establishing a biological electric shock model with dynamic resistance in the case of single electric shock in a low-voltage distribution network environment, it can accurately reflect the trend that the impedance of biological bodies such as humans or animals drops significantly within 30ms after electric shock and then remains basically stable. It accurately characterizes the time-varying characteristics of human body impedance within a short period of time after electric shock, and can make a more accurate explanation of the nonlinearity and time-varying nature of the electric shock current of the animal body, accurately describe the change law of the waveform of the electric shock current of the biological body, and then accurately simulate the characteristics of the electric shock current of different biological bodies. The model output waveform is close to the electric shock current waveform of the actual biological body.

[0120] This embodiment also provides a residual current protection system, including a residual current protection device, and also including a control device connected to the residual current protection device, the control device compares the residual current in the electrical circuit detected in real time with the electric shock protection criterion, and determines whether it is necessary to start the residual current protection device according to the comparison result, and the electric shock protection criterion is obtained by configuring the electric shock current simulated according to the above method. By using the electric shock current simulated by the above-mentioned biological electric shock model as the basis for distinguishing the electric shock of the biological body, an accurate and reliable basis for distinguishing can be provided, thereby effectively identifying the category of the electric shock object, and solving the problem that the traditional low-voltage distribution network residual current protection device cannot distinguish whether the electric shock object is a living thing or a non-living thing.

[0121] Specifically, the electric shock protection criterion can be simulated by using an organism electric shock model according to the characteristics of the target organism to obtain the corresponding electric shock judgment basis, and then determine whether it is necessary to start the residual current protection device to perform protection action when an electric shock fault occurs based on the electric shock judgment basis to avoid false operation.

[0122] This embodiment further provides an electronic device, including a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to execute the computer program to perform the above method.

[0123] It is understandable that the above method of this embodiment can be executed by a single device, such as a computer or server, etc., and can also be applied to a distributed scenario and completed by multiple devices in cooperation with each other. In the case of a distributed scenario, one of the multiple devices can only execute one or more steps in the above method of this embodiment, and multiple devices interact to complete the above method. The processor can be implemented in the form of a general-purpose CPU, a microprocessor, an application-specific integrated circuit, or one or more integrated circuits, etc., for executing related programs to implement the above method of this embodiment. The memory can be implemented in the form of a read-only memory ROM, a random access memory RAM, a static storage device, and a dynamic storage device. The memory can store an operating system and other applications. When the above method of this embodiment is implemented by software or firmware, the relevant program code is stored in the memory and called and executed by the processor.

[0124] The above is only a preferred embodiment of the present invention, and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment, it is not intended to limit the present invention. Therefore, any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the scope of protection of the technical solution of the present invention.

Claims

1. A method for simulating electric shock current in a living organism, characterized in that the steps include: A skin equivalent model is connected in series at both ends of the in vivo equivalent model to form a biological body electric shock model, wherein a variable resistance branch and a skin equivalent capacitance branch are connected in parallel to form the skin equivalent model, the variable resistance branch includes a plurality of variable resistors connected in series, an excitable extracellular fluid path and an in vivo conductive path are connected in parallel to form the in vivo equivalent model, the excitable extracellular fluid path includes a plurality of cell branches connected in series, each of the cell branches includes a plurality of sodium and potassium ion channels to perform an equivalent depolarization and repolarization process, the in vivo conductive path includes a plurality of resistors connected in series, each variable resistor in the skin equivalent model and each resistor in the in vivo conductive path of the in vivo equivalent model are connected to a bypass switch, and each sodium and potassium ion channel in the excitable extracellular fluid path are connected to a conduction switch; The model parameters of the biological body electric shock model are set according to the target biological body to be simulated to form the target biological body electric shock model, wherein the model parameters include the size of skin capacitance, the size of resistance, the number of cell branches, and the number of sodium and potassium ion channels; An effective stimulus that can cause the living organism to generate an action potential is sent to the target organism electric shock model. When the target organism electric shock model receives the effective stimulus, the simulation control is started, and the polarization state is achieved by controlling the on and off of each sodium and potassium ion channel. After the polarization is completed, all potassium ion channels are closed, and the current values ​​of all sodium and potassium ion channels at the current moment are counted to obtain a simulated electric shock current value output.

2. The biological body electric shock current simulation method according to claim 1, characterized in that: In the constructed biological electric shock model, each sodium and potassium ion channel is also provided with a sodium ion equivalent current source, a potassium ion equivalent current source, a cell membrane equivalent capacitance, an extracellular fluid resistance, an intracellular fluid resistance, a leakage channel resistance and an in-vivo immutable resistance.

3. The biological body electric shock current simulation method according to claim 1, characterized in that: The method of realizing the polarization state by controlling the on and off of each sodium and potassium ion channel comprises: Obtain the current time and voltage value to calculate the body resistance value and skin resistance value of the current organism; Determine whether the current polarization state flag is in a valid state, if so, control the closing of the conduction switch of the corresponding sodium ion channel, otherwise continue to determine whether the repolarization state flag is in a valid state; If it is determined that the current repolarization state flag is in a valid state, the corresponding sodium / potassium ion channel conduction switch is controlled to be opened / closed, otherwise, it is continued to be determined whether the potassium ion channel closing operation state flag is in a valid state; If it is determined that the current potassium ion channel closing operation state flag is in a valid state, the corresponding potassium ion channel conduction switch is controlled to be disconnected, otherwise it continues to be determined whether all current channels have completed polarization; If it is determined that all current channels have completed polarization, the control modifies the repolarization state flag, otherwise it continues to determine whether all current potassium ion channels are closed; If it is determined that all the current potassium ion channels are closed, the control modifies the potassium ion channel closing process status flag.

4. The biological body electric shock current simulation method according to claim 3, characterized in that: The process of achieving the polarization state by controlling the on and off of each sodium and potassium ion channel also includes a motion state monitoring step, including: When the first moment of polarization initiation is detected, the current moment is stored; Determine whether the first responding sodium ion channel conduction time reaches the upper limit, and if so, modify the repolarization state flag to a valid state; Determine whether the conduction time of the first closed potassium ion channel reaches the upper limit, and if so, control the potassium ion channel closing operation state flag to be set to a valid state; Determine whether the preset refractory period opening condition is met at present, if yes, set the polarization state flag to an invalid state, otherwise set the polarization state flag to a valid state, the refractory period is a period during which the channel will not generate an action potential even if stimulated; Determine whether there is effective stimulation. If so, control the polarization state flag to be set to the effective state, otherwise terminate the control.

5. The biological body electric shock current simulation method according to claim 1, characterized in that: During operation, the biological body electric shock model simulates the conduction process of the action potential through four stages: stimulus response, conduction excitement, potential recovery, and channel resetting. The stimulus response stage is used to simulate the process in which excitable cells in the body generate action potentials under the stimulation of an electric field, the conduction excitement stage is used to simulate the process in which the action potential continues to conduct along the cell membrane, the potential recovery stage is used to simulate the process in which the potential in the membrane continues to decrease, and the channel resetting stage is used to simulate the process in which each potassium ion channel is reset in sequence. Each sodium ion channel enters a refractory period after completing a conduction once after a stimulation. During the refractory period, the sodium ion channel will not generate an action potential even if stimulated until the refractory period ends.

6. The biological body electric shock current simulation method according to claim 5, characterized in that: In the stimulus response stage, a local current is formed by conducting the sodium ion channels near the stimulation point, and the potential near the adjacent sodium ion channels changes; in the conduction excitement stage, when the potential difference between the adjacent sodium ion channels reaches a preset action threshold, the adjacent sodium ion channels are controlled to be opened, so that a local current is formed again, and then the sodium ion channels on each cell branch are opened in sequence, so that the action potential is continuously conducted along each cell branch, and the potential in the membrane continues to rise during the continuous conduction process; in the potential recovery stage, after the sodium ion channels are opened for a specified time, the sodium ion channels are controlled to be closed in sequence, so that a local current in the opposite direction is generated, and the potential in the membrane continues to decrease during the process of closing each sodium ion channel in sequence; in the channel reset stage, each potassium ion channel is turned on for a specified time and then closed in sequence in the order of conduction.

7. The biological body electric shock current simulation method according to any one of claims 1 to 6, characterized in that: The current values ​​of all sodium and potassium ion channels at the current moment are calculated according to the following formula to obtain the simulated electric shock current value: I s =I1+I2+…+I k Among them, I s is the electric shock current value, I i represents the electric shock current value when the independent source in the i-th sodium and potassium ion channels acts alone, i = 1~k, k represents the total number of sodium and potassium ion channels, Indicates the electric shock current value I i The amplitude of Indicates the electric shock current value I i The initial phase of , f represents the frequency, and t represents the time.

8. The biological body electric shock current simulation method according to claim 5, characterized in that: Electric shock current I i The calculation steps are: Each ion channel is equivalent to a DC current source, and the capacitor is regarded as an open circuit. At the same time, the external voltage source and other current sources are set to zero, and an equivalent circuit for independent source electric shock current calculation is constructed. The equivalent circuit for independent source electric shock current calculation includes the ion channel equivalent current source A qp , the combined resistance formed by the intracellular fluid resistance and the leakage channel resistance The electrical resistance of the extracellular fluid Total resistance of the extracellular fluid on the left Total resistance of the extracellular fluid on the right Conductive path resistance R iv And the skin resistance 2R at both ends s , the equivalent current source A qp The resistance between one end and the extracellular fluid One end of the equivalent current source A is connected to the A node. qp The other end of the combined resistor The resistance of the extracellular fluid The other end is connected to the B node, and the internal conductive path resistance R iv One end is connected to the C node, and the internal conductive path resistance R iv The other end is connected to the D node, and the total resistance of the extracellular fluid on the left side Connected between nodes A and C, the total resistance of the extracellular fluid on the right side Connected between node B and node C, the skin resistance at both ends is 2R s The two ends of are connected to nodes C and D respectively. If the current independent source is a sodium ion equivalent current source, then the equivalent current source A qp The current direction is downward; if it is a potassium ion equivalent current source, then the equivalent current source A qp The direction of current is upward; Calculate the electric shock current I according to the following formula i : in, Represent the currents on the BD, BA, and DC branches respectively, I qp Represents the equivalent current source A qp The current generated.

9. An electronic device comprising a processor and a memory, wherein the memory is used to store a computer program, wherein: The processor is configured to execute the computer program to perform the method according to any one of claims 1 to 8.

10. A residual current protection system, comprising a residual current protection device, characterized in that: It also includes a control device connected to the residual current protection device, which compares the residual current in the electrical circuit detected in real time with the electric shock protection criterion, and determines whether it is necessary to start the residual current protection device according to the comparison result. The electric shock protection criterion is obtained by simulating the electric shock current configuration according to the method described in any one of claims 1 to 8.