Intelligent campus safety management method based on Internet of Things
Through the intelligent campus safety management method based on the Internet of Things, circuit data of student dormitories is collected and analyzed, circuit risk fluctuation coefficients and early warnings are identified, and the inefficiency and one-sided problems of electricity safety monitoring in the existing technology are solved, and the student dormitories are realized. Quick identification and early warning of circuit risks ensures the safety of students and property.
Patent Information
- Application Number
- CN202411042001.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-12-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing campus safety management methods are difficult to effectively monitor and early warning of the electricity safety of student dormitories, especially the risk of sudden and persistent circuit overload caused by privately harboring high-power electrical appliances, leading to serious consequences such as fires, and the existing technology has low efficiency. and one-sided issues.
Using an intelligent campus safety management method based on the Internet of Things, the circuit data of the student dormitory is collected, the circuit hazard fluctuation coefficient is calculated, and the preset hazard identification model is used for analysis and early warning, the first and second hazard level dormitories are identified, and the circuit is tracked in a timely manner. Risk location and take measures.
It has achieved rapid identification and early warning of sudden electricity risks in student dormitories, ensured the personal and property safety of students, promptly handled the potential risks of circuits reaching dangerous temperatures, and improved the efficiency and accuracy of campus safety management.
Smart Images

Figure CN119068627A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of campus safety management, and more specifically, to an intelligent campus safety management method based on the Internet of Things. Background Art
[0002] As students pursue a higher quality of life and convenience, they are prompted to buy and use small appliances, which further increases the number of devices in dormitories; however, students generally have weak safety awareness and lack basic knowledge and vigilance about electrical safety. Some students even use high-power electrical appliances, such as electric blankets, electric cups, and rice cookers, in pursuit of convenience. These devices are powerful and improper use can easily cause problems such as overload and short circuit of wires, leading to serious consequences such as fires, threatening students' personal safety and campus property safety. Therefore, monitoring the safety of electricity use in student dormitories is an urgent issue to be addressed.
[0003] The electrical safety risks in student dormitories can be roughly divided into three types. The first is sudden risks. Due to the use of prohibited electrical appliances by students, the circuit load is seriously increased, and eventually the line may be overloaded in a very short period of time, causing a fire or other risks. Or, damage to a component in dormitory public facilities such as lighting equipment and air conditioning may cause the line operation to be blocked, resulting in risks such as leakage. The second is continuous risk. Due to the use of high-power electrical appliances by students, or the use of multiple electrical appliances at the same time, the circuit load is increased, and the circuit is in an overloaded state for a long time, causing the line to overheat or even fuse and cause a fire.
[0004] At present, the existing campus safety management methods for dormitory electricity safety first rely on the inspection and inspection of dormitory management personnel. Such methods are inefficient, difficult to achieve comprehensive coverage, prone to omissions, and unable to respond in time when risks occur, with a certain lag; and in order to take into account the privacy of students, dormitory managers cannot directly check whether high-power electrical appliances are privately hidden in student dormitories, which may also cause students to use high-power electrical appliances privately, resulting in line overloads and fires, etc., which has a certain one-sidedness; second, dormitory electricity safety is managed by monitoring student power consumption. For example, the patent with authorization announcement number CN112540549B discloses a student dormitory electricity monitoring method and device. Although the invention monitors the power consumption of student dormitories and performs power-off processing according to the number of abnormal power consumption and the timing duration, thereby preventing students from using high-power electrical appliances in dormitories and ensuring the safety of students' electricity use in student dormitories, the monitoring data is too single and has a certain one-sidedness, and when students use high-power electrical appliances and cause sudden risks, they cannot issue timely warnings, which has a lag. Summary of the invention
[0005] In order to overcome the above-mentioned defects of the prior art, an embodiment of the present invention provides a smart campus security management method based on the Internet of Things.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] An intelligent campus safety management method based on the Internet of Things, the method comprising:
[0008] Step 1: Collect measured circuit data of the circuit in the student dormitory from time TN to time T, and number the student dormitories in order of house numbers as 1, 2, 3, ...i, where i is a positive integer greater than zero, and record the corresponding geographical location based on the number; the circuit includes a switch circuit, a lighting circuit, an air-conditioning circuit, and a socket circuit; the measured circuit data includes the measured voltage value and the measured current value of the switch circuit, the measured voltage value and the measured current value of the lighting circuit, the measured voltage value and the measured current value of the air-conditioning circuit, and the measured voltage value and the measured current value of the socket circuit, and T and N are positive integers greater than zero;
[0009] Step 2: Generate a circuit danger fluctuation coefficient of a student dormitory based on the measured circuit data of the circuit;
[0010] Step 3: Analyze the dangerous fluctuation coefficient of the circuit to determine whether the i-th student dormitory is a first-level dangerous dormitory;
[0011] Step 4: obtaining a measured current fluctuation diagram according to the measured current value in the measured circuit data of the dormitory of the first danger level;
[0012] Step 5: Input the measured current fluctuation diagram into a preset hazard identification model for identification, obtain a dangerous circuit, and issue an early warning.
[0013] Further, generating a circuit risk fluctuation coefficient of a student dormitory based on the measured circuit data of the circuit includes:
[0014] Extract the measured circuit data of the i-th student dormitory circuit from time TN to time T;
[0015] Obtaining rated circuit data of the i-th student dormitory circuit, wherein the rated circuit data includes a rated voltage value and a rated current value of a switch circuit, a rated voltage value and a rated current value of a lighting circuit, a rated voltage value and a rated current value of an air conditioning circuit, and a rated voltage value and a rated current value of a socket circuit;
[0016] The measured voltage value and the measured current value of the switch circuit are compared with the rated voltage value and the rated current value of the switch circuit respectively, and the dangerous fluctuation coefficient of the switch circuit is calculated; the calculation formula is: Where: DF i represents the switching circuit fluctuation risk factor of the i-th student dormitory, DVi t 、DIi tRespectively represent the measured voltage value and the measured current value of the switch circuit of the i-th student dormitory at the t-th time, DVi0 and DIi0 represent the rated voltage value and the rated current value of the switch circuit of the i-th student dormitory, respectively, and H represents the total time from the TN time to the T time;
[0017] The measured voltage value and the measured current value of the lighting circuit are compared with the rated voltage value and the rated current value of the lighting circuit respectively, and the dangerous fluctuation coefficient of the lighting circuit is calculated; the calculation formula is: In the formula: LF i represents the dangerous fluctuation coefficient of the lighting circuit of the i-th student dormitory, LVi t ,LIi t Respectively represent the measured voltage value and the measured current value of the i-th student dormitory lighting circuit at the t-th time, LVi0 and LIi0 represent the rated voltage value and the rated current value of the i-th student dormitory lighting circuit, and H represents the total time from the TN time to the T time;
[0018] The measured voltage value and the measured current value of the air conditioning circuit are compared with the rated voltage value and the rated current value of the air conditioning circuit respectively, and the dangerous fluctuation coefficient of the air conditioning circuit is calculated; the calculation formula is: Where: AF i AVi represents the dangerous fluctuation coefficient of the air conditioning circuit in the i-th student dormitory. t 、AIi t Respectively represent the measured voltage value and the measured current value of the i-th student dormitory lighting circuit at the t-th time, AVi0 and AIi0 respectively represent the rated voltage value and the rated current value of the i-th student dormitory lighting circuit, and H represents the total time from the TN moment to the T moment;
[0019] The measured voltage value and the measured current value of the socket circuit are compared with the rated voltage value and the rated current value of the socket circuit respectively, and the dangerous fluctuation coefficient of the socket circuit is calculated; the calculation formula is: Where: SF i SVi represents the dangerous fluctuation coefficient of the socket circuit in the i-th student dormitory. t 、SIi t Respectively represent the measured voltage value and the measured current value of the i-th student dormitory socket circuit at the t-th time, SVi0 and SIi0 respectively represent the rated voltage value and the rated current value of the i-th student dormitory socket circuit, and H represents the total time from TN to T;
[0020] Based on the dangerous fluctuation coefficient of the switch circuit, the dangerous fluctuation coefficient of the lighting circuit, the dangerous fluctuation coefficient of the adjustment circuit and the dangerous fluctuation coefficient of the socket circuit, the dangerous fluctuation coefficient of the circuit of the student dormitory is calculated; the calculation formula is: Where: β irepresents the dangerous fluctuation coefficient of the circuit in the i-th student dormitory, and e is a natural constant.
[0021] Furthermore, the circuit dangerous fluctuation coefficient is analyzed, including:
[0022] A first danger threshold is set, and the circuit danger fluctuation coefficient is compared with the preset first danger threshold; if the circuit danger fluctuation coefficient is greater than or equal to the preset first danger threshold, the i-th student dormitory is marked as a first danger level dormitory.
[0023] Furthermore, the measured current fluctuation diagram is input into a preset danger identification model for identification to obtain a dangerous circuit, including:
[0024] Inputting the measured current fluctuation diagram into a preset hazard identification model for identification to obtain a hazard type, wherein the hazard type includes non-hazardous and hazardous;
[0025] The generation logic of the preset hazard identification model is as follows:
[0026] Acquire historical current fluctuation graph training data, and divide the historical current fluctuation graph training data into a current fluctuation graph training set and a current fluctuation graph test set; the historical current fluctuation graph training data includes R amplitude current fluctuation graphs and their corresponding annotation labels, where R is an integer greater than zero;
[0027] Wherein, the labeling labels include non-hazardous labels and hazardous labels;
[0028] Constructing a classifier, taking the current fluctuation graph in the current fluctuation graph training set as input data of the classifier, and taking the annotated labels in the current fluctuation graph training set as output data of the classifier, training the classifier, thereby obtaining an initial classifier;
[0029] The initial classifier is validated using the test set, and the initial classification model with a precision greater than or equal to the preset accuracy is used as the preset hazard identification model;
[0030] When the measured current fluctuation graph is a dangerous label, the corresponding circuit is marked as a dangerous circuit, triggering an early warning and sending an early warning message.
[0031] Furthermore, the logic for generating the label in the historical current fluctuation graph training data includes:
[0032] S51: extracting the vth current fluctuation graph among the R-amplitude current fluctuation graphs, where R and v are integers greater than zero;
[0033] S52: Retrieving a pre-stored rated current fluctuation diagram, and calculating a cosine similarity coefficient between the vth current fluctuation diagram and the rated current fluctuation diagram;
[0034] S53: Compare the cosine similarity coefficient with the preset cosine similarity coefficient threshold. If the cosine similarity coefficient is greater than or equal to the preset cosine similarity coefficient threshold, mark the vth current fluctuation diagram as a non-dangerous label; set v=v+1, and return to step S51; if the cosine similarity coefficient is less than the preset cosine similarity coefficient threshold, mark the vth current fluctuation diagram as a dangerous label; set v=v+1, and return to step S51;
[0035] S54: repeat the above steps S51 to S53 until v=R, then end the loop and obtain the label corresponding to each current fluctuation graph.
[0036] Furthermore, the method further comprises:
[0037] Step 6: Perform a second analysis based on the circuit dangerous fluctuation coefficient to determine whether the i-th student dormitory is a second dangerous level dormitory;
[0038] Step 7: Collect the measured temperature data of the corresponding socket circuit from time T to time T+N according to the dormitory of the second danger level, where N is a positive integer greater than zero;
[0039] Step 8: Analyze the measured temperature data to obtain the time required to reach the dangerous temperature;
[0040] Step 9: Based on the time when the dangerous temperature is reached, a warning is issued to the dormitory administrator, and a warning message is sent.
[0041] Further, a second analysis is performed based on the circuit dangerous fluctuation coefficient, including:
[0042] Setting a second danger threshold, wherein the second danger threshold is less than the first danger threshold;
[0043] Compare the circuit danger fluctuation coefficient with the preset second danger threshold; if the circuit danger fluctuation coefficient is greater than or equal to the preset second danger threshold and less than the first danger threshold, mark the i-th student dormitory as a second danger level dormitory; if the circuit danger fluctuation coefficient is less than the preset second danger threshold, mark the i-th student dormitory as a normal dormitory, and set T=T+M, return to step 1, M is a positive integer greater than zero.
[0044] Further, the time required to reach the dangerous temperature is obtained by analyzing the measured temperature data, including:
[0045] Extract each moment from moment T to moment T+N and the corresponding circuit temperature value, perform formula calculation on each moment and the corresponding circuit temperature value, and obtain the time required to reach the dangerous temperature; the calculation formula is: Where: Time represents the time to reach the dangerous temperature, Temp0 represents the dangerous temperature value, Time t represents the tth moment, Temp t Indicates the temperature value at time t, Time t+1 Indicates the t+1th moment, Temp t+1 represents the temperature value at time t+1, and Q represents the total time from time T to time T+N.
[0046] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the above-mentioned smart campus safety management method based on the Internet of Things is implemented.
[0047] A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the above-mentioned smart campus safety management method based on the Internet of Things.
[0048] Compared with the prior art, the present invention has the following beneficial effects:
[0049] (1) The present application discloses an intelligent campus safety management method based on the Internet of Things, which collects the voltage and current of the circuit and generates a circuit danger fluctuation coefficient, analyzes the circuit danger fluctuation coefficient, and determines the first-level danger dormitory. This is beneficial for quickly tracking the specific dormitory location and the circuit where the danger of electricity is occurring when there is a sudden risk of electricity use in the student dormitory, so as to take corresponding measures and ensure the personal safety and property safety of the students.
[0050] (2) The present application discloses an intelligent campus safety management method based on the Internet of Things. By conducting a second analysis of the circuit danger fluctuation coefficient, the second danger level dormitory is determined, and the time required for the circuit to reach the dangerous temperature is obtained, which is conducive to the administrator to deal with the danger in time before it occurs, thereby ensuring property safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 A schematic diagram of the smart campus security management method based on the Internet of Things provided by the present invention.
[0052] Figure 2 The present invention provides a schematic structural diagram of an electronic device.
[0053] Figure 3 A schematic diagram of the structure of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, a first unit may be referred to as a second unit, and a similar second unit may be referred to as a first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.
[0056] Example 1
[0057] See also Figure 1 As shown, this embodiment discloses a smart campus security management method based on the Internet of Things, and the method includes:
[0058] Step 1: Collect measured circuit data of the circuit in the student dormitory from time TN to time T, and number the student dormitories in order of house numbers as 1, 2, 3, ...i, where i is a positive integer greater than zero, and record the corresponding geographical location based on the number; the circuit includes a switch circuit, a lighting circuit, an air conditioning circuit and a socket circuit;
[0059] It should be understood that the geographical location indicates the building and floor where the student dormitory is located, so that the dormitory administrator can quickly determine the specific location when danger occurs;
[0060] In a preferred embodiment, the measured circuit data includes the measured voltage value and the measured current value of the switch circuit, the measured voltage value and the measured current value of the lighting circuit, the measured voltage value and the measured current value of the air conditioning circuit, and the measured voltage value and the measured current value of the socket circuit, and T and N are positive integers greater than zero;
[0061] Step 2: Generate a circuit danger fluctuation coefficient of a student dormitory based on the measured circuit data of the circuit;
[0062] Specifically, generating a circuit danger fluctuation coefficient of a student dormitory based on the measured circuit data of the circuit includes:
[0063] S21: extracting the measured circuit data of the i-th student dormitory circuit from time TN to time T;
[0064] S22: Acquire rated circuit data of the i-th student dormitory circuit, wherein the rated circuit data includes a rated voltage value and a rated current value of a switch circuit, a rated voltage value and a rated current value of a lighting circuit, a rated voltage value and a rated current value of an air conditioning circuit, and a rated voltage value and a rated current value of a socket circuit;
[0065] It should be noted that: the rated circuit data is experimentally specified according to the student dormitory safety management plan and is pre-stored in the system database, which will not be described in detail in this embodiment;
[0066] S23: Compare the measured voltage value and the measured current value of the switch circuit with the rated voltage value and the rated current value of the switch circuit respectively, and calculate the dangerous fluctuation coefficient of the switch circuit; the calculation formula is: Where: DF i represents the switching circuit fluctuation risk factor of the i-th student dormitory, DVi t 、DIi t Respectively represent the measured voltage value and the measured current value of the switch circuit of the i-th student dormitory at the t-th time, DVi0 and DIi0 represent the rated voltage value and the rated current value of the switch circuit of the i-th student dormitory, respectively, and H represents the total time from the TN time to the T time;
[0067] S24: Compare the measured voltage value and the measured current value of the lighting circuit with the rated voltage value and the rated current value of the lighting circuit, respectively, and calculate the dangerous fluctuation coefficient of the lighting circuit; the calculation formula is: In the formula: LF i represents the dangerous fluctuation coefficient of the lighting circuit of the i-th student dormitory, LVi t ,LIi t Respectively represent the measured voltage value and the measured current value of the i-th student dormitory lighting circuit at the t-th time, LVi0 and LIi0 represent the rated voltage value and the rated current value of the i-th student dormitory lighting circuit, and H represents the total time from the TN time to the T time;
[0068] S25: Compare the measured voltage value and the measured current value of the air conditioning circuit with the rated voltage value and the rated current value of the air conditioning circuit, respectively, and calculate the dangerous fluctuation coefficient of the air conditioning circuit; the calculation formula is: Where: AF i AVi represents the dangerous fluctuation coefficient of the air conditioning circuit in the i-th student dormitory. t 、AIi t Respectively represent the measured voltage value and the measured current value of the i-th student dormitory lighting circuit at the t-th time, AVi0 and AIi0 respectively represent the rated voltage value and the rated current value of the i-th student dormitory lighting circuit, and H represents the total time from the TN moment to the T moment;
[0069] S26: Compare the measured voltage value and the measured current value of the socket circuit with the rated voltage value and the rated current value of the socket circuit respectively, and calculate the dangerous fluctuation coefficient of the socket circuit; the calculation formula is: Where: SF i SVi represents the dangerous fluctuation coefficient of the socket circuit in the i-th student dormitory. t 、SIi t Respectively represent the measured voltage value and the measured current value of the i-th student dormitory socket circuit at the t-th time, SVi0 and SIi0 respectively represent the rated voltage value and the rated current value of the i-th student dormitory socket circuit, and H represents the total time from TN to T;
[0070] S27: Calculate the circuit dangerous fluctuation coefficient of the student dormitory based on the dangerous fluctuation coefficient of the switch circuit, the dangerous fluctuation coefficient of the lighting circuit, the dangerous fluctuation coefficient of the adjustment circuit and the dangerous fluctuation coefficient of the socket circuit; the calculation formula is: Where: β i represents the dangerous fluctuation coefficient of the circuit in the i-th student dormitory, and e is a natural constant;
[0071] Step 3: Analyze the dangerous fluctuation coefficient of the circuit to determine whether the i-th student dormitory is a first-level dangerous dormitory;
[0072] Specifically, the circuit dangerous fluctuation coefficient is analyzed, including:
[0073] Setting a first danger threshold, comparing the circuit danger fluctuation coefficient with the preset first danger threshold; if the circuit danger fluctuation coefficient is greater than or equal to the preset first danger threshold, marking the i-th student dormitory as a first danger level dormitory;
[0074] It should be noted that the first danger threshold is determined after multiple experiments and summaries, and this embodiment will not elaborate on this.
[0075] It should be understood that the first-level dangerous dormitories have risks including high-temperature fuses caused by severe line overloads and leakage caused by line obstructions;
[0076] An example explanation is: the first-level dangerous dormitory is because students use ultra-high-power electrical appliances, such as induction cookers, electric ovens, etc., which cause the circuit to be severely overloaded instantly, causing the circuit to fuse in a very short time and cause fire, or the components in the circuit are suddenly damaged, causing the circuit to be broken, causing leakage danger;
[0077] Step 4: obtaining a measured current fluctuation diagram according to the measured current value in the measured circuit data of the dormitory of the first danger level;
[0078] Specifically, according to the measured current value in the measured circuit data of the dormitory of the first danger level, a measured current fluctuation diagram is obtained, including:
[0079] The measured current value from time TN to time T is retrieved, and a two-dimensional graph is established with time as the horizontal axis and the measured current value as the vertical axis to obtain a measured current fluctuation graph;
[0080] It should be noted that: the measured current fluctuation diagram includes the measured current fluctuation diagram of the switch circuit, the measured current fluctuation diagram of the lighting circuit, the measured current fluctuation diagram of the air conditioning circuit and the measured current fluctuation diagram of the socket circuit;
[0081] Step 5: Input the measured current fluctuation diagram into a preset danger identification model for identification, obtain a dangerous circuit, and issue an early warning;
[0082] Specifically, the measured current fluctuation diagram is input into a preset hazard identification model for identification to obtain a dangerous circuit, including:
[0083] Inputting the measured current fluctuation diagram into a preset hazard identification model for identification to obtain a hazard type, wherein the hazard type includes non-hazardous and hazardous;
[0084] In implementation, the generation logic of the preset hazard identification model is as follows:
[0085] Acquire historical current fluctuation graph training data, and divide the historical current fluctuation graph training data into a current fluctuation graph training set and a current fluctuation graph test set; the historical current fluctuation graph training data includes R amplitude current fluctuation graphs and their corresponding annotation labels, where R is an integer greater than zero;
[0086] It should be noted that the historical current fluctuation diagram training data is collected and processed by technicians in advance and stored in the system database;
[0087] The annotated labels include non-hazardous labels and hazardous labels, and the generation logic of the annotated labels in the historical current fluctuation graph training data is as follows:
[0088] S51: extracting the vth current fluctuation graph among the R-amplitude current fluctuation graphs, where R and v are integers greater than zero;
[0089] S52: Retrieving a pre-stored rated current fluctuation diagram, and calculating a cosine similarity coefficient between the vth current fluctuation diagram and the rated current fluctuation diagram;
[0090] It should be noted that: the rated current fluctuation diagram is the current fluctuation under normal circuit operation, which is generated by technicians through multiple experiments according to the student dormitory safety management plan and pre-stored in the system database. The rated current fluctuation diagram may include multiple images; the cosine similarity coefficient is calculated by the cosine similarity calculation formula;
[0091] S53: Compare the cosine similarity coefficient with the preset cosine similarity coefficient threshold. If the cosine similarity coefficient is greater than or equal to the preset cosine similarity coefficient threshold, mark the vth current fluctuation diagram as a non-dangerous label; set v=v+1, and return to step S51; if the cosine similarity coefficient is less than the preset cosine similarity coefficient threshold, mark the vth current fluctuation diagram as a dangerous label; set v=v+1, and return to step S51;
[0092] S54: repeating the above steps S51 to S53 until v=R, ending the loop and obtaining a label corresponding to each current fluctuation graph;
[0093] Constructing a classifier, taking the current fluctuation graph in the current fluctuation graph training set as input data of the classifier, and taking the annotated labels in the current fluctuation graph training set as output data of the classifier, training the classifier, thereby obtaining an initial classifier;
[0094] It should be noted that the classifier is a specific one of classification algorithms such as logistic regression, support vector machine, random forest, neural network, etc.;
[0095] The initial classifier is validated using the test set, and the initial classification model with a precision greater than or equal to the preset accuracy is used as the preset hazard identification model;
[0096] In a specific implementation, when the measured current fluctuation graph is a dangerous label, the corresponding circuit is marked as a dangerous circuit, triggering an early warning and sending an early warning message;
[0097] It should be noted that: the warning information includes the number, geographical location and dangerous circuit of the i-th student dormitory;
[0098] When the circuit hazard fluctuation coefficient is greater than or equal to the preset first hazard threshold, it means that the current student dormitory is a first-hazard level dormitory. At this time, the dangerous circuit is obtained based on the preset hazard identification model according to the measured circuit data of the circuit, which is conducive to quickly tracking the specific location and dangerous circuit when there is a sudden electrical hazard in the student dormitory, so as to take corresponding measures to ensure the personal safety and property safety of the students.
[0099] Example 2
[0100] See also Figure 1 As shown, based on the above-mentioned embodiment 1, this embodiment makes design improvements based on the dangers of students using electricity. This embodiment discloses a smart campus safety management method based on the Internet of Things, and the method also includes:
[0101] Step 6: Perform a second analysis based on the circuit dangerous fluctuation coefficient to determine whether the i-th student dormitory is a second dangerous level dormitory;
[0102] Specifically, a second analysis is performed based on the circuit dangerous fluctuation coefficient, including:
[0103] Setting a second danger threshold, wherein the second danger threshold is less than the first danger threshold;
[0104] Compare the circuit danger fluctuation coefficient with the preset second danger threshold; if the circuit danger fluctuation coefficient is greater than or equal to the preset second danger threshold and less than the first danger threshold, mark the i-th student dormitory as a second danger level dormitory; if the circuit danger fluctuation coefficient is less than the preset second danger threshold, mark the i-th student dormitory as a normal dormitory, and set T=T+M, return to step 1, M is a positive integer greater than zero;
[0105] It should be noted that the danger level of dormitories at the first danger level is higher than that of dormitories at the second danger level;
[0106] An example explanation is: the second danger level is that the circuit is overloaded due to students using high-power electrical appliances. The circuit is still in an operational state in the short term, but the circuit is potentially dangerous. As the circuit temperature continues to rise, it will eventually lead to danger.
[0107] Step 7: Collect the measured temperature data of the corresponding socket circuit from time T to time T+N according to the second danger level dormitory, where N is a positive integer greater than zero;
[0108] It should be noted that the measured temperature data includes each time from time T to time T+N and the corresponding circuit temperature value, and the circuit temperature value is obtained by the temperature sensor;
[0109] Step 8: Analyze the measured temperature data to obtain the time required to reach the dangerous temperature;
[0110] It should be noted that the dangerous temperature is determined by circuit material description and multiple experiments, and this embodiment will not be described in detail.
[0111] Specifically, analyzing the measured temperature data to obtain the time to reach the dangerous temperature includes:
[0112] Extract each moment from moment T to moment T+N and the corresponding circuit temperature value, perform formula calculation on each moment and the corresponding circuit temperature value, and obtain the time required to reach the dangerous temperature; the calculation formula is: Where: Time represents the time to reach the dangerous temperature, Temp0 represents the dangerous temperature value, Time t represents the tth moment, Temp t Indicates the temperature value at time t, Time t+1Indicates the t+1th moment, Temp t+1 represents the temperature value at time t+1, Q represents the total time from time T to time T+N;
[0113] Step 9: Based on the time when the dangerous temperature is reached, the dormitory administrator is warned and a warning message is sent;
[0114] It should be noted that: the warning information includes the number, geographical location and time when the dangerous temperature reaches the i-th student dormitory;
[0115] An example explanation is: due to the students' use of high-power electrical appliances, the temperature of the socket circuit continues to rise. When the dangerous temperature is reached, the circuit will fuse and cause a fire. By formulating the calculation of each moment and the corresponding circuit temperature value, the time required to reach the dangerous temperature is obtained, and an early warning is given to the dormitory administrator, who can arrive at the dormitory within a safe time to prevent the danger from occurring. At the same time, when the students stop using high-power electrical appliances midway and do not cause danger, the dormitory administrator can also provide safety education to the students to prevent the students from frequently using high-power electrical appliances, which may cause frequent overload of the socket circuit and mechanical damage to the socket circuit.
[0116] When the circuit danger fluctuation coefficient is greater than or equal to the preset second danger threshold and less than the first danger threshold, it means that the students are using high-power electrical appliances or multiple high-power electrical appliances are used at the same time in the dormitory, causing the measured current value of the socket circuit to be greater than the rated current value. At this time, the circuit is under continuous load, causing the circuit temperature to continue to rise. By predicting the time required to reach the dangerous temperature and warning the administrator, it is beneficial for the administrator to deal with it in time before the danger occurs, thereby ensuring property safety.
[0117] Example 3
[0118] See also Figure 2 As shown, this embodiment discloses an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned smart campus safety management method based on the Internet of Things when executing the computer program.
[0119] Since the electronic device introduced in the present embodiment is an electronic device used for implementing the intelligent campus safety management method based on the Internet of Things in the embodiment of the present application, based on the intelligent campus safety management method based on the Internet of Things introduced in the embodiment of the present application, a person skilled in the art can understand the specific implementation of the electronic device of the present embodiment and its various variations, so how the electronic device implements the method in the embodiment of the present application is no longer described in detail. As long as a person skilled in the art implements the electronic device adopted by the intelligent campus safety management method based on the Internet of Things in the embodiment of the present application, it belongs to the scope of protection of the present application.
[0120] Example 4
[0121] See also Figure 3 As shown, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned smart campus safety management method based on the Internet of Things is implemented.
[0122] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters, weights and thresholds in the formula are set by technicians in this field according to actual conditions.
[0123] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center through a wired network or a wireless network. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD) or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0124] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0125] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0126] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only one, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0127] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0128] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0129] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0130] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. An intelligent campus safety management method based on the Internet of Things, characterized in that: The method comprises: Step 1: Collect measured circuit data of the circuit in the student dormitory from time TN to time T, and number the student dormitories in order of house numbers as 1, 2, 3, ...i, where i is a positive integer greater than zero, and record the corresponding geographical location based on the number; the circuit includes a switch circuit, a lighting circuit, an air-conditioning circuit, and a socket circuit; the measured circuit data includes the measured voltage value and the measured current value of the switch circuit, the measured voltage value and the measured current value of the lighting circuit, the measured voltage value and the measured current value of the air-conditioning circuit, and the measured voltage value and the measured current value of the socket circuit, and T and N are positive integers greater than zero; Step 2: Generate a circuit danger fluctuation coefficient of a student dormitory based on the measured circuit data of the circuit; Step 3: Analyze the dangerous fluctuation coefficient of the circuit to determine whether the i-th student dormitory is a first-level dangerous dormitory; Step 4: obtaining a measured current fluctuation diagram according to the measured current value in the measured circuit data of the dormitory of the first danger level; Step 5: Input the measured current fluctuation diagram into a preset hazard identification model for identification, obtain the dangerous circuit, and issue an early warning.
2. The method for smart campus safety management based on the Internet of Things according to claim 1 is characterized in that: The circuit danger fluctuation coefficient of the student dormitory is generated based on the measured circuit data of the circuit, including: Extract the measured circuit data of the i-th student dormitory circuit from time TN to time T; Obtaining rated circuit data of the i-th student dormitory circuit, wherein the rated circuit data includes a rated voltage value and a rated current value of a switch circuit, a rated voltage value and a rated current value of a lighting circuit, a rated voltage value and a rated current value of an air conditioning circuit, and a rated voltage value and a rated current value of a socket circuit; The measured voltage value and the measured current value of the switch circuit are compared with the rated voltage value and the rated current value of the switch circuit respectively, and the dangerous fluctuation coefficient of the switch circuit is calculated; the calculation formula is: Where: DF i represents the switching circuit fluctuation risk factor of the i-th student dormitory, DVi t 、DIi t Respectively represent the measured voltage value and the measured current value of the switch circuit of the i-th student dormitory at the t-th time, DVi0 and DIi0 represent the rated voltage value and the rated current value of the switch circuit of the i-th student dormitory, respectively, and H represents the total time from the TN time to the T time; The measured voltage value and the measured current value of the lighting circuit are compared with the rated voltage value and the rated current value of the lighting circuit respectively, and the dangerous fluctuation coefficient of the lighting circuit is calculated; the calculation formula is: In the formula: LF i represents the dangerous fluctuation coefficient of the lighting circuit of the i-th student dormitory, LVi t ,LIi t Respectively represent the measured voltage value and the measured current value of the i-th student dormitory lighting circuit at the t-th time, LVi0 and LIi0 represent the rated voltage value and the rated current value of the i-th student dormitory lighting circuit, and H represents the total time from the TN time to the T time; The measured voltage value and the measured current value of the air conditioning circuit are compared with the rated voltage value and the rated current value of the air conditioning circuit respectively, and the dangerous fluctuation coefficient of the air conditioning circuit is calculated; the calculation formula is: Where: AF i AVi represents the dangerous fluctuation coefficient of the air conditioning circuit in the i-th student dormitory. t 、AIi t Respectively represent the measured voltage value and the measured current value of the i-th student dormitory lighting circuit at the t-th time, AVi0 and AIi0 respectively represent the rated voltage value and the rated current value of the i-th student dormitory lighting circuit, and H represents the total time from the TN moment to the T moment; The measured voltage value and the measured current value of the socket circuit are compared with the rated voltage value and the rated current value of the socket circuit respectively, and the dangerous fluctuation coefficient of the socket circuit is calculated; the calculation formula is: Where: SF i SVi represents the dangerous fluctuation coefficient of the socket circuit in the i-th student dormitory. t 、SIi t Respectively represent the measured voltage value and the measured current value of the i-th student dormitory socket circuit at the t-th time, SVi0 and SIi0 respectively represent the rated voltage value and the rated current value of the i-th student dormitory socket circuit, and H represents the total time from TN to T; Based on the dangerous fluctuation coefficient of the switch circuit, the dangerous fluctuation coefficient of the lighting circuit, the dangerous fluctuation coefficient of the adjustment circuit and the dangerous fluctuation coefficient of the socket circuit, the dangerous fluctuation coefficient of the circuit of the student dormitory is calculated; the calculation formula is: Where: β i represents the dangerous fluctuation coefficient of the circuit in the i-th student dormitory, and e is a natural constant.
3. The smart campus safety management method based on the Internet of Things according to claim 1 is characterized in that: Analyzing the dangerous fluctuation coefficient of the circuit includes: A first danger threshold is set, and the circuit danger fluctuation coefficient is compared with the preset first danger threshold; if the circuit danger fluctuation coefficient is greater than or equal to the preset first danger threshold, the i-th student dormitory is marked as a first danger level dormitory.
4. The method for smart campus safety management based on the Internet of Things according to claim 1 is characterized in that: The measured current fluctuation diagram is input into a preset hazard identification model for identification to obtain a dangerous circuit, including: Inputting the measured current fluctuation diagram into a preset hazard identification model for identification to obtain a hazard type, wherein the hazard type includes non-hazardous and hazardous; The generation logic of the preset hazard identification model is as follows: Acquire historical current fluctuation graph training data, and divide the historical current fluctuation graph training data into a current fluctuation graph training set and a current fluctuation graph test set; the historical current fluctuation graph training data includes R amplitude current fluctuation graphs and their corresponding annotation labels, where R is an integer greater than zero; Wherein, the labeling labels include non-hazardous labels and hazardous labels; Constructing a classifier, taking the current fluctuation graph in the current fluctuation graph training set as input data of the classifier, and taking the annotated labels in the current fluctuation graph training set as output data of the classifier, training the classifier, thereby obtaining an initial classifier; The initial classifier is validated using the test set, and the initial classification model with a precision greater than or equal to the preset accuracy is used as the preset hazard identification model; When the measured current fluctuation graph is a dangerous label, the corresponding circuit is marked as a dangerous circuit, triggering an early warning and sending an early warning message.
5. The method for smart campus safety management based on the Internet of Things according to claim 4 is characterized in that: The logic for generating the label in the historical current fluctuation graph training data includes: S51: extracting the vth current fluctuation graph among the R-amplitude current fluctuation graphs, where R and v are integers greater than zero; S52: Retrieving a pre-stored rated current fluctuation diagram, and calculating a cosine similarity coefficient between the vth current fluctuation diagram and the rated current fluctuation diagram; S53: Compare the cosine similarity coefficient with the preset cosine similarity coefficient threshold. If the cosine similarity coefficient is greater than or equal to the preset cosine similarity coefficient threshold, mark the vth current fluctuation diagram as a non-dangerous label; set v=v+1, and return to step S51; if the cosine similarity coefficient is less than the preset cosine similarity coefficient threshold, mark the vth current fluctuation diagram as a dangerous label; set v=v+1, and return to step S51; S54: repeat the above steps S51 to S53 until v=R, then end the loop and obtain the annotation label corresponding to each current fluctuation graph.
6. The method for smart campus safety management based on the Internet of Things according to claim 1 is characterized in that: The method further comprises: Step 6: Perform a second analysis based on the circuit dangerous fluctuation coefficient to determine whether the i-th student dormitory is a second dangerous level dormitory; Step 7: Collect the measured temperature data of the corresponding socket circuit from time T to time T+N according to the dormitory of the second danger level, where N is a positive integer greater than zero; Step 8: Analyze the measured temperature data to obtain the time required to reach the dangerous temperature; Step 9: Based on the time when the dangerous temperature is reached, a warning is issued to the dormitory administrator, and a warning message is sent.
7. The method for smart campus safety management based on the Internet of Things according to claim 6 is characterized in that: A second analysis is performed based on the circuit dangerous fluctuation coefficient, including: Setting a second danger threshold, wherein the second danger threshold is less than the first danger threshold; Compare the circuit danger fluctuation coefficient with the preset second danger threshold; if the circuit danger fluctuation coefficient is greater than or equal to the preset second danger threshold and less than the first danger threshold, mark the i-th student dormitory as a second danger level dormitory; if the circuit danger fluctuation coefficient is less than the preset second danger threshold, mark the i-th student dormitory as a normal dormitory, and set T=T+M, return to step 1, M is a positive integer greater than zero.
8. The method for smart campus safety management based on the Internet of Things according to claim 6 is characterized in that: The time required to reach the dangerous temperature is obtained by analyzing the measured temperature data, including: Extract each moment from moment T to moment T+N and the corresponding circuit temperature value, perform formula calculation on each moment and the corresponding circuit temperature value, and obtain the time required to reach the dangerous temperature; the calculation formula is: Where: Time represents the time to reach the dangerous temperature, Temp0 represents the dangerous temperature value, Time t represents the tth moment, Temp t Indicates the temperature value at time t, Time t+1 Indicates the t+1th moment, Temp t+1 represents the temperature value at time t+1, and Q represents the total time from time T to time T+N.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the smart campus safety management method based on the Internet of Things described in any one of claims 1 to 8 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the smart campus safety management method based on the Internet of Things described in any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Methods and devices for monitoring electricity usage in student dormitories
CN112540549B
