CN115120921A - Fire control monitored control system based on fire control gas cylinder - Google Patents
Fire control monitored control system based on fire control gas cylinder Download PDFInfo
- Publication number
- CN115120921A CN115120921A CN202211043707.1A CN202211043707A CN115120921A CN 115120921 A CN115120921 A CN 115120921A CN 202211043707 A CN202211043707 A CN 202211043707A CN 115120921 A CN115120921 A CN 115120921A
- Authority
- CN
- China
- Prior art keywords
- data
- difference
- matrix
- dimensional
- encryption
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- A—HUMAN NECESSITIES
- A62—LIFE-SAVING; FIRE-FIGHTING
- A62C—FIRE-FIGHTING
- A62C37/00—Control of fire-fighting equipment
- A62C37/50—Testing or indicating devices for determining the state of readiness of the equipment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
Abstract
The invention relates to the technical field of data encryption, in particular to a fire-fighting monitoring system based on a fire-fighting gas cylinder. The system considers that in the process of transmitting the pressure data and the temperature data of the collected fire-fighting gas cylinder, the data needs to be encrypted in order to ensure the safety of the data. The acquired data is subjected to modal conversion to generate a two-dimensional sensor data matrix, and a two-dimensional difference matrix is generated according to priori knowledge. And dividing the self-adaptive encryption blocks according to the characteristics of the two-dimensional difference matrix, and calculating the two-dimensional weighted information entropy of each encryption block in the two-dimensional difference matrix to be used as a key for data encryption. The invention ensures the safety of the data of the fire-fighting gas cylinder through the encryption algorithm and ensures the accuracy of the fire-fighting monitoring of the fire-fighting gas cylinder.
Description
Technical Field
The invention relates to the technical field of data encryption, in particular to a fire-fighting monitoring system based on a fire-fighting gas cylinder.
Background
In recent years, the fire fighting situation in China is increasingly severe, and the number of times of fire disasters is increasing. The fire-fighting gas bottle is an important fire-fighting means which has wide application and can be used for fire fighting through gas, and fire-fighting gas is stored in the fire-fighting gas bottle. When the fire-fighting gas cylinders are used, inspection and maintenance are needed, and the working condition of each fire-fighting gas cylinder is detected. The extremely important personal concern of fire control safety, and to the monitoring data among the fire control monitoring system, if suffer lawless persons' infringement in the transmission course for the monitoring data of fire control gas cylinder is tempered and can make fire control monitoring system make misjudgment to current fire control environment, if the operating condition of fire control gas cylinder goes wrong, and its monitoring data takes place to temper, makes untimely the maintenance to fire control gas cylinder equipment, hardly reduces the injury of conflagration when the conflagration breaing out.
Disclosure of Invention
In order to solve the technical problems, the invention aims to provide a fire-fighting monitoring system based on a fire-fighting gas cylinder, and the adopted technical scheme is as follows:
the invention provides a fire-fighting monitoring system based on a fire-fighting gas cylinder, which comprises:
the data acquisition module is used for acquiring pressure data and temperature data of the fire-fighting gas cylinder;
the data integration module is used for respectively carrying out normalization processing on the pressure data and the temperature data to obtain data binary groups at the same moment; arranging and complementing a plurality of continuous binary groups according to a time sequence relation to obtain a two-dimensional sensor data matrix;
the difference matrix acquisition module is used for acquiring standard pressure data corresponding to the temperature data in each binary group in the two-dimensional sensor data matrix by utilizing a Keraberon equation; obtaining a difference value between the pressure data in each binary group in the two-dimensional sensor data matrix and the corresponding standard pressure data to obtain a two-dimensional difference matrix; obtaining a difference degree correction weight of each element in the two-dimensional difference matrix according to a preset difference degree threshold value, and adjusting corresponding data in the two-dimensional difference matrix according to the difference degree correction weight to obtain an adjusted difference matrix; equally dividing the difference matrix into a plurality of encryption blocks according to the data dispersion;
the two-dimensional weighted information entropy acquisition module is used for acquiring the two-dimensional weighted information entropy of each encryption block according to the occurrence frequency of each adjusted difference value in the difference matrix;
the data encryption module is used for encrypting the data at the corresponding position in the two-dimensional sensor data matrix according to the two-dimensional weighted information entropy to obtain encrypted data; taking the number of the complementary bits, the size of an encryption block, the number of the encryption blocks and the two-dimensional weighted information entropy in the complementary bit process as a key; and storing and transmitting the encrypted data and the corresponding key, receiving the data by a receiving end and carrying out a decryption process, and feeding back an early warning signal if the data is abnormal.
Further, the normalizing the pressure data and the temperature data respectively comprises:
the pressure data and the temperature data are normalized separately using a maximum-minimum normalization method.
Further, the arranging and bit-complementing the plurality of continuous binary groups according to the time sequence relationship to obtain the two-dimensional sensor data matrix includes:
two-dimensional sensor data matrix size ofWherein,Representing the number of acquisition instants in the current acquisition period,indicating the number of matrix rows that are set,represents rounding up; the complement data is。
Further, the obtaining of the disparity correction weight of each element in the two-dimensional disparity matrix according to the preset disparity threshold includes:
obtaining a difference degree correction weight by using a difference degree correction weight formula, wherein the difference degree correction weight formula comprises the following steps:
wherein, the first and the second end of the pipe are connected with each other,is the first in two-dimensional difference matrixThe degree of difference of the individual elements corrects the weights,is the first in a two-dimensional difference matrixThe difference value corresponding to each element is calculated,is a first threshold value of the degree of difference,is a second dissimilarity threshold;
,whereinIs the largest disparity value in the two-dimensional disparity matrix,is the smallest disparity value in the two-dimensional disparity matrix.
Further, the adjusting the corresponding data in the two-dimensional difference matrix according to the difference degree correction weight includes:
and multiplying the difference correction weight by a corresponding difference value in the two-dimensional difference matrix to obtain an adjusted difference matrix.
Further, the equally dividing the difference matrix into a plurality of encryption blocks according to the data dispersion comprises:
setting different sizes of the encryption blocks for iteration, comparing the variance difference value difference between the variance mean value of each encryption block and the integral difference matrix in different iterations, and if the variance difference value is smaller than the variance difference threshold value, indicating that the size of the encryption block in the current iteration is the proper size of the encryption block; the difference matrix is equally divided into a plurality of cipher blocks according to the proper cipher block size.
Further, the obtaining the two-dimensional weighted information entropy of each encrypted block according to the occurrence frequency of each adjusted difference value in the difference matrix includes:
wherein, the first and the second end of the pipe are connected with each other,is as followsThe two-dimensional weighted information entropy of each encryption block,andrespectively represent the first in a two-dimensional difference matrixMinimum and maximum of difference degree in each encryption block;andrespectively represent the first in a two-dimensional difference matrixThe minimum value and the maximum value of the neighborhood difference degree in each encryption block;representing the second in a two-dimensional difference matrixBinary group in encryption blockProbability of occurrence of whereinIs specifically calculated asIn the formula (I), the compound is shown in the specification,representing doubletsThe frequency of occurrence, i.e. ofThe difference degree of each encryption block isAnd the weighted mean of the neighborhood disparity isFrequency of occurrence of (c);represents the size of the cipher block; wherein the first stepNeighborhood disparity weighted mean in individual cipherblocks,Is shown asOne of the encryption blocksSecond in the neighborhoodThe value of the difference is obtained by comparing the difference value,representing a difference valueThe encryption weight value of (1).
Further, the encrypting the data at the corresponding position in the two-dimensional sensor data matrix according to the two-dimensional weighted information entropy to obtain the encrypted data includes:
encrypting according to a data encryption formula, the data encryption formula comprising:
wherein the content of the first and second substances,representing the second in a two-dimensional sensor data matrixTwo-dimensional weighted information entropy of each encryption block;representing the second in a two-dimensional sensor data matrixThe data corresponding to each of the matrix elements,is encrypted data.
The invention has the following beneficial effects:
1. the embodiment of the invention combines two acquired one-dimensional sensor data and converts the two acquired one-dimensional sensor data into a two-dimensional data matrix, the method reduces the time characteristic of the sensor data, performs combined encryption according to the data characteristics, increases the safety of the data for the data filled in the data matrix, and reduces the probability of brute force cracking.
2. In order to achieve a better encryption effect and ensure the data security, the embodiment of the invention combines the correlation between two sensor data to divide the self-adaptive encryption block. Through self-adaptive encryption block division, information in each encryption block is ensured to approach to information of the whole matrix, and the situation that a good encryption effect cannot be achieved due to large information difference in the encryption blocks during encryption is avoided.
3. The embodiment of the invention can self-adaptively obtain the encryption weight according to the data distribution characteristic of each matrix element in the whole matrix during the two-dimensional weighted information entropy, can greatly ensure the safety of data when illegal cracking is carried out under the condition that the weight value is unknown, and is difficult to crack without a secret key.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions and advantages of the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a block diagram of a fire-fighting monitoring system based on a fire-fighting gas cylinder according to an embodiment of the invention.
Detailed Description
To further illustrate the technical means and effects of the present invention for achieving the predetermined objects, the following detailed description of the fire-fighting monitoring system based on fire-fighting gas cylinder according to the present invention with reference to the accompanying drawings and preferred embodiments shows the detailed implementation, structure, features and effects thereof. In the following description, the different references to "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
The invention aims at the following scenes: in the transmission process of the pressure data and the temperature data of the collected fire-fighting gas cylinder, if data tampering occurs, the fire-fighting monitoring system can make an error judgment on the current fire-fighting environment. Therefore, the acquired pressure monitoring data and the environmental temperature data of the fire-fighting gas cylinder need to be encrypted in the transmission process, so that the data is prevented from being tampered.
The specific scheme of the fire-fighting monitoring system based on the fire-fighting gas cylinder is specifically described below with reference to the attached drawings.
Referring to fig. 1, a block diagram of a fire monitoring system based on a fire fighting gas cylinder according to an embodiment of the present invention is shown, the system including: the system comprises a data acquisition module 101, a data integration module 102, a difference matrix acquisition module 103, a two-dimensional weighted information entropy acquisition module 104 and a data encryption module 105.
The embodiment of the invention mainly aims to: in the process of transmitting the pressure data and the temperature data of the collected fire-fighting gas cylinder, the data need to be encrypted in order to ensure the safety of the data. The acquired data is subjected to modal conversion to generate a two-dimensional sensor data matrix, and a two-dimensional difference matrix is generated according to priori knowledge. And dividing the self-adaptive encryption blocks according to the characteristics of the two-dimensional difference matrix, and calculating the two-dimensional weighted information entropy of each encryption block in the two-dimensional difference matrix to be used as a key for data encryption.
The data acquisition module 101 acquires temperature data and pressure data of each time point by installing a temperature sensor and a pressure sensor on the fire-fighting gas cylinder, and the acquisition time of the two sensors is the same.
The data integration module 102 performs modality conversion on the acquired data, combines the acquired two one-dimensional sensor data, and converts the two one-dimensional sensor data into two-dimensional data for joint encryption. The method has the advantages that the two collected one-dimensional sensor data are combined and converted into the two-dimensional data matrix, the time characteristics of the sensor data are reduced, the combined encryption is carried out according to the data characteristics, the data security is improved for the data filled in the data matrix, and the probability of brute force cracking is reduced.
The data integration module 102 is configured to perform normalization processing on the pressure data and the temperature data respectively to obtain a data binary group at the same time; and arranging and complementing a plurality of continuous binary groups according to the time sequence relation to obtain a two-dimensional sensor data matrix. The specific process for establishing the two-dimensional sensor data matrix is as follows:
in order to reduce the calculation amount and better perform combined encryption, the two sensor data are respectively normalized by the method, wherein the calculation expression for normalizing the two sensor data is as follows:
in the formula (I), the compound is shown in the specification,denotes the firstThe pressure monitoring data of the fire-fighting gas cylinder collected by the data points,maximum value in the represented monitoring data of the pressure of the fire-fighting gas cylinder in the current acquisition time period;minimum value in the monitoring data of the pressure of the gas cylinder in the current acquisition time period;is shown asThe temperature monitoring data of the fire-fighting gas cylinder collected by the data points,maximum value in the represented monitoring data of the temperature of the fire-fighting gas cylinder in the current acquisition time period;minimum in the cylinder temperature monitoring data for the current acquisition time period represented.
Because the acquisition time of the two sensors is in one-to-one correspondence, the two normalized data are subjected to the generation of a two-dimensional sensor data matrix, wherein the second sensor data matrix is the second sensor data matrixEach matrix element being a binary groupThe corresponding two-dimensional sensor data matrix size is: divide the collection time equally intoIf the two-dimensional sensor data matrix generated in the corresponding current acquisition time is equal to the data matrix sizeWherein,Indicates the number of acquisition moments in the current acquisition time period (i.e. acquired in the current time period)One data),indicating the number of matrix rows that are set,indicating rounding up. Specifically, the following steps are carried out: if set in the current acquisition time periodValue, cannot collect a time periodWhen the data is equally divided, the data padding is carried out in the form of data padding in the last row, and the padding data isRecording the number of fillsFor establishing a data key.
The difference matrix acquisition module 103 establishes a difference matrix by calculating the difference between the data and the standard data according to the correlation between the two sensor data, comprehensively considers the error allowed by the data, calculates the correction weight to correct the value of the difference matrix, and divides the adaptive encryption block according to the adjusted difference matrix. In order to achieve a better encryption effect and ensure the data security, the self-adaptive encryption block is divided by combining the correlation between two sensor data. Through self-adaptive encryption block division, information in each encryption block is ensured to approach to information of the whole matrix, and the situation that a good encryption effect cannot be achieved due to large information difference in the encryption blocks during encryption is avoided.
The difference matrix acquisition module is used for acquiring standard pressure data corresponding to the temperature data in each binary group in the two-dimensional sensor data matrix by utilizing a Keraberon equation; obtaining a difference value between the pressure data in each binary group in the two-dimensional sensor data matrix and the corresponding standard pressure data to obtain a two-dimensional difference matrix; obtaining a difference degree correction weight of each element in the two-dimensional difference matrix according to a preset difference degree threshold value, and adjusting corresponding data in the two-dimensional difference matrix according to the difference degree correction weight to obtain an adjusted difference matrix; and equally dividing the difference matrix into a plurality of encryption blocks according to the data dispersion.
The fire-fighting gas cylinder pressure data and the temperature data collected in the embodiment of the invention have strong correlation, and the pressure of the gas in the fire-fighting gas cylinder changes along with the change of the temperature. Therefore, the data encryption is carried out according to the two-dimensional weighted information entropy between the acquired pressure data and the acquired temperature data of the fire-fighting gas cylinder.
Firstly, in order to reduce the "time characteristic" of the data (i.e. the time difference of each column of data points in the two-dimensional sensor data matrix is 1 unit time), and further increase the security of the data, the two-dimensional sensor data matrix is divided into blocks, and the two-dimensional weighting information entropy of each block is calculated respectively for data encryption. The specific method for dividing the blocks comprises the following steps:
due to the fact that the temperature and the gas pressure of the gas in the fire-fighting gas bottle have strong correlation, namely the correlation characteristics between the pressure data value and the temperature data value in each matrix element in the two-dimensional sensor data matrix are strong. Therefore, according to the correlation between the pressure data value and the temperature data value of each matrix element (the pressure changes under different temperatures), the standard pressure data under the currently acquired temperature data of each matrix element is calculated, and the difference between the standard pressure data and the currently acquired pressure data of the matrix elements is reconstructed to form a corresponding two-dimensional difference matrix.
From a priori knowledge, the theoretical correlation between temperature data and pressure data of the gas in the fire fighting cylinders can be knownCan be characterized by the Kerberon equation, where the first in a two-dimensional sensor data matrixA matrix elementIn the current collection of temperature dataLower pair standard pressure dataThe calculation expression is (Clarbelon formula):
in the formula (I), the compound is shown in the specification,the mole number of the gas filled in the fire-fighting gas bottle can be known according to the gas parameters in the fire-fighting gas bottle;represents the universal gas constant;is shown asCurrent collected temperature data for each matrix element;the volume of the gas in the fire-fighting gas cylinder is shown and can be known according to the parameters of the gas cylinder in the fire-fighting gas cylinder.
Wherein, the two-dimensional difference matrix is constructed as follows: by calculating the second in a two-dimensional sensor data matrixTemperature data currently acquired in individual matrix elementsStandard pressure data ofWith currently acquired pressure data of matrix elementsDifference value betweenThus, the difference value of each matrix element in the two-dimensional sensor data matrix is obtained, and a corresponding two-dimensional difference matrix is reconstructed (the position of each matrix element is unchanged).
Considering that some of the acquired temperature data and pressure data have a difference within an allowable range, a large error is generated if the block division is performed only according to the difference value of each matrix element of the two-dimensional difference matrix, and therefore the difference is corrected by setting the difference correction weight. The obtaining of the difference correction weight of each element in the two-dimensional difference matrix according to the preset difference threshold comprises the following steps:
obtaining a disparity correction weight by using a disparity correction weight formula, wherein the disparity correction weight formula comprises:
wherein, the first and the second end of the pipe are connected with each other,is the first in a two-dimensional difference matrixThe degree of difference of the individual elements corrects the weights,is the first in a two-dimensional difference matrixThe difference value corresponding to each element is calculated,is a first threshold value of the degree of difference,is a second disparity threshold;
,whereinIs the largest disparity value in the two-dimensional disparity matrix,is the smallest disparity value in the two-dimensional disparity matrix.
First degree of difference threshold for set degree of differenceWhen the difference is less than the first difference thresholdThe difference value is considered to be within a set allowable range, and probably caused by fine error influence, and the corresponding set difference correction weight value is 0; second degree of difference threshold for set degree of differenceWhen the difference is greater than the second difference thresholdValue ofThe difference value is considered to be out of the allowable range, possibly caused by the influence of equipment problems of the fire-fighting gas cylinder, and the difference correction weighted value is correspondingly set to be 1; when the difference degree is larger than the first difference degree threshold valueAnd is less than a second degree of difference thresholdIn the present disclosure, it is considered that the abnormal degree increases with the increase of the difference degree, and the corresponding difference degree correction weight value increases with the increase of the difference degree.
According to each matrix element, the difference weight value is re-acquired to obtain a two-dimensional difference matrix, the difference correction weight is multiplied by the corresponding difference value in the two-dimensional difference matrix to obtain an adjusted difference matrix, and the second difference matrix is obtainedAdjusted difference of matrix element pairsThe calculation expression of (a) is:
in the formula (I), the compound is shown in the specification,is shown asDisparity correction weights for individual matrix elements;Represents the second in the difference matrixDisparity values for individual matrix elements. And obtaining the adjusted difference matrix according to the steps.
Equally dividing the difference matrix into a plurality of encryption blocks according to the data dispersion comprises:
setting different sizes of the encryption blocks for iteration, comparing the variance difference between the variance mean value of each encryption block and the variance value of the whole difference matrix during different iterations, and if the variance difference is smaller than the variance difference threshold value(variance difference threshold)Can be determined according to the specific implementation conditions of an implementer, and an empirical reference value is given in the schemeWhereinIs the variance of the overall difference matrix), it indicates that the encryption block in the current iteration is large and is the proper encryption block size, and the adjusted difference matrix is divided into encryption blocks according to the encryption block size. Wherein at leastThe size is taken as the size of an initial iteration encryption block, and the step length is taken asThe cipher block size change is performed.
Wherein the first stepThe process of the secondary iteration is as follows: first, the variance of the overall difference matrix is calculated(only need to calculate once), and then the adjusted difference matrix is processedEqually dividing and calculating the variance mean of all the encryption blocksIf, ifIt indicates that the currently divided cipher block size is the proper cipher block size. When the threshold condition is met, then the next iteration is not performed.
The two-dimensional weighted information entropy obtaining module 104 is configured to obtain a two-dimensional weighted information entropy of each encrypted block according to the occurrence frequency of each adjusted difference value in the difference matrix. And calculating the two-dimensional weighted information entropy of the encryption block of each difference matrix according to the obtained self-adaptive blocked adjusted difference matrix and the data distribution characteristics of each matrix element in the whole matrix, and taking the two-dimensional weighted information entropy as the encryption basis. When the two-dimensional weighted information entropy is carried out, the encryption weight is obtained in a self-adaptive mode according to the data distribution characteristics of each matrix element in the whole matrix, under the condition that the weight value is unknown, the security of data can be greatly guaranteed when illegal cracking is carried out, and the cracking is difficult without a secret key.
And encrypting by calculating the two-dimensional weighted information entropy of each encryption block. Wherein the encryption weight value of each matrix element needs to be calculated. The probability that the difference value after different adjustments appears in the whole adjusted difference matrix is counted, and the greater the probability of the occurrence, the difference value appearing in the whole image is shownThe higher the frequency, the more important the data at the corresponding position in the corresponding original two-dimensional sensor data matrix, the larger the weight value set by the corresponding difference data value, i.e. the difference value and the encryption weight value are in the order of the secondTaking an element of the matrix as an example, statisticsFrequency of occurrence in the entire adjusted difference matrixCorresponding to the second in the raw two-dimensional sensor data matrixEncryption weights for individual matrix elementsThe calculation expression of (a) is:
in the formula (I), the compound is shown in the specification,representing the first in the adjusted difference matrixValue of degree of difference of individual matrix elementsFrequency of occurrence in the entire adjusted difference matrix;indicating the number of all matrix elements in the adjusted disparity matrix.
Calculating two-dimensional weighted information entropy of each encryption block in the adjusted difference matrix, wherein the second weighting information entropy is calculated in the adjusted difference matrixTwo-dimensional weighted information entropy of encryption blockAnd (4) calculating. Wherein the calculation expression is:
wherein the content of the first and second substances,is as followsThe two-dimensional weighted information entropy of each encrypted block,andrespectively represent the first in a two-dimensional difference matrixMinimum and maximum difference in each encryption block;andrespectively represent the first in a two-dimensional difference matrixThe minimum value and the maximum value of the neighborhood difference degree in each encryption block;representing the second in a two-dimensional difference matrixTwo-tuple in one encryption blockProbability of occurrence of whereinIs specifically calculated asIn the formula (I), the compound is shown in the specification,representing doubletsThe frequency of occurrence, i.e. ofThe difference degree of each encryption block isAnd the weighted mean of the neighborhood disparity isThe frequency of occurrence of (c);represents the size of the cipher block; wherein the first stepNeighborhood disparity weighted mean in individual cipherblocks,Is shown asOne of the encryption blocksIn the neighborhood ofThe value of the difference is obtained by comparing the difference value,representing a difference valueThe encryption weight value of (3).
Different weight values are set for each difference value in each encryption block, a key is set by taking frequency of data as the weight value, the more frequency of the data is, the more important characteristic that the data can represent the whole data is shown, the larger weight value is obtained, the corresponding two-dimensional weighting information entropy is calculated again for encryption, under the condition that the weight value is unknown, when illegal cracking is carried out again, the security of the data can be greatly guaranteed, and the cracking is difficult without the key.
The data encryption module 105 is configured to encrypt data at a corresponding position in the two-dimensional sensor data matrix according to the two-dimensional weighted information entropy to obtain encrypted data; taking the number of the complementary bits, the size of an encryption block, the number of the encryption blocks and the two-dimensional weighted information entropy in the complementary bit process as a key; and storing and transmitting the encrypted data and the corresponding key, receiving the data by a receiving end and carrying out a decryption process, and feeding back an early warning signal if the data is abnormal. The method for encrypting the data at the corresponding position in the two-dimensional sensor data matrix according to the two-dimensional weighted information entropy comprises the following steps:
encrypting according to a data encryption formula, the data encryption formula comprising:
wherein the content of the first and second substances,representing the second in a two-dimensional sensor data matrixTwo-dimensional weighted information entropy of each encryption block;representing the second in a two-dimensional sensor data matrixThe data corresponding to each of the matrix elements,is encrypted data.
The content format of the data key is:. And transmitting the encrypted data to a fire fighting system, decrypting and converting the data (converting the normalized data into original data) according to the data key of each time point, storing the data into a database of the fire fighting system, calling the data and displaying the data on a display screen, and further realizing fire fighting data monitoring. If the acquired temperature data or pressure data is larger than the warning value, the early warning system feeds back an early warning signal to perform data early warning and remind the fire fighter of checking the fire-fighting gas cylinder.
In summary, in the embodiment of the invention, in the process of transmitting the acquired pressure data and temperature data of the fire-fighting gas cylinder, the data needs to be encrypted in order to ensure the safety of the data. The acquired data is subjected to modal conversion to generate a two-dimensional sensor data matrix, and a two-dimensional difference matrix is generated according to priori knowledge. And dividing the self-adaptive encryption blocks according to the characteristics of the two-dimensional difference matrix, and calculating the two-dimensional weighted information entropy of each encryption block in the two-dimensional difference matrix to be used as a key for data encryption. The embodiment of the invention ensures the safety of the data of the fire-fighting gas cylinder through the encryption algorithm and ensures the accuracy of fire-fighting monitoring of the fire-fighting gas cylinder.
It should be noted that: the precedence order of the above embodiments of the present invention is only for description, and does not represent the merits of the embodiments. The processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (8)
1. A fire protection monitoring system based on a fire protection gas cylinder, the system comprising:
the data acquisition module is used for acquiring pressure data and temperature data of the fire-fighting gas cylinder;
the data integration module is used for respectively carrying out normalization processing on the pressure data and the temperature data to obtain data binary groups at the same moment; arranging and complementing a plurality of continuous binary groups according to a time sequence relation to obtain a two-dimensional sensor data matrix;
the difference matrix acquisition module is used for acquiring standard pressure data corresponding to the temperature data in each binary group in the two-dimensional sensor data matrix by utilizing a Keraberon equation; obtaining a difference value between the pressure data in each binary group in the two-dimensional sensor data matrix and the corresponding standard pressure data to obtain a two-dimensional difference matrix; obtaining a difference degree correction weight of each element in the two-dimensional difference matrix according to a preset difference degree threshold value, and adjusting corresponding data in the two-dimensional difference matrix according to the difference degree correction weight to obtain an adjusted difference matrix; equally dividing the difference matrix into a plurality of encryption blocks according to the data dispersion;
the two-dimensional weighted information entropy acquisition module is used for acquiring the two-dimensional weighted information entropy of each encryption block according to the occurrence frequency of each adjusted difference value in the difference matrix;
the data encryption module is used for encrypting the data at the corresponding position in the two-dimensional sensor data matrix according to the two-dimensional weighted information entropy to obtain encrypted data; taking the number of the complementary bits, the size of an encryption block, the number of the encryption blocks and the two-dimensional weighted information entropy in the complementary bit process as a key; and storing and transmitting the encrypted data and the corresponding key, receiving the data by a receiving end and carrying out a decryption process, and feeding back an early warning signal if the data is abnormal.
2. A fire protection monitoring system based on a fire fighting gas cylinder according to claim 1, characterized in that the normalization processing of the pressure data and the temperature data respectively comprises:
the pressure data and the temperature data are normalized separately using a maximum-minimum normalization method.
3. A fire fighting monitoring system based on a fire fighting gas cylinder according to claim 1, wherein the arranging and bit-filling of a plurality of binary groups in succession according to a time sequence relationship, and the obtaining of a two-dimensional sensor data matrix comprises:
4. A fire fighting gas cylinder based fire fighting monitoring system according to claim 1, wherein the obtaining of the dissimilarity degree correction weight of each element in the two-dimensional dissimilarity matrix according to a preset dissimilarity degree threshold includes:
obtaining a difference degree correction weight by using a difference degree correction weight formula, wherein the difference degree correction weight formula comprises the following steps:
wherein, the first and the second end of the pipe are connected with each other,is the first in a two-dimensional difference matrixThe degree of difference of the individual elements corrects the weights,is the first in a two-dimensional difference matrixThe difference value corresponding to each element is calculated,is a firstThe threshold value of the degree of difference is,is a second disparity threshold;
5. A fire fighting gas cylinder based fire fighting monitoring system according to claim 1, wherein the adjusting of the corresponding data in the two-dimensional difference matrix according to the difference degree correction weight includes:
and multiplying the difference correction weight by a corresponding difference value in the two-dimensional difference matrix to obtain an adjusted difference matrix.
6. A fire protection gas cylinder based fire protection monitoring system as claimed in claim 1, wherein the equally dividing the difference matrix into a plurality of encryption blocks according to data dispersion comprises:
setting different sizes of the encryption blocks for iteration, comparing the variance difference value difference between the variance mean value of each encryption block and the integral difference matrix in different iterations, and if the variance difference value is smaller than the variance difference threshold value, indicating that the size of the encryption block in the current iteration is the proper size of the encryption block; the difference matrix is equally divided into a plurality of cipher blocks according to the proper cipher block size.
7. The fire fighting gas cylinder-based fire fighting monitoring system according to claim 1, wherein the obtaining of the two-dimensional weighted information entropy for each encryption block according to the frequency of occurrence of each adjusted difference value in the difference matrix comprises:
wherein, the first and the second end of the pipe are connected with each other,is as followsThe two-dimensional weighted information entropy of each encrypted block,andrespectively represent the first in a two-dimensional difference matrixMinimum and maximum difference in each encryption block;andrespectively represent the first in a two-dimensional difference matrixThe minimum value and the maximum value of the neighborhood difference degree in each encryption block;representing the second in a two-dimensional difference matrixTwo-tuple in one encryption blockProbability of occurrence of whereinIs specifically calculated asIn the formula (I), the compound is shown in the specification,representing doubletsThe frequency of occurrence, i.e. ofThe difference degree of each encryption block isAnd the weighted mean of the neighborhood disparity isThe frequency of occurrence of (c);represents the size of the cipher block; wherein the first stepNeighborhood disparity weighted mean in individual cipherblocks,Denotes the firstOne of the encryption blocksSecond in the neighborhoodThe value of the difference is obtained by comparing the difference value,representing a difference valueThe encryption weight value of (1).
8. A fire fighting monitoring system based on a fire fighting gas cylinder according to claim 1, wherein the device for encrypting data at corresponding positions in a two-dimensional sensor data matrix according to a two-dimensional weighted information entropy includes:
encrypting according to a data encryption formula, the data encryption formula comprising:
wherein the content of the first and second substances,representing second in a two-dimensional sensor data matrixTwo-dimensional weighted information entropy of each encryption block;representing the second in a two-dimensional sensor data matrixThe data corresponding to each matrix element,is encrypted data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211043707.1A CN115120921A (en) | 2022-08-30 | 2022-08-30 | Fire control monitored control system based on fire control gas cylinder |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211043707.1A CN115120921A (en) | 2022-08-30 | 2022-08-30 | Fire control monitored control system based on fire control gas cylinder |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115120921A true CN115120921A (en) | 2022-09-30 |
Family
ID=83387736
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211043707.1A Pending CN115120921A (en) | 2022-08-30 | 2022-08-30 | Fire control monitored control system based on fire control gas cylinder |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115120921A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116168502A (en) * | 2023-02-28 | 2023-05-26 | 合肥初云信息科技有限公司 | Energy-saving control system of fire sensor of self-optimizing industrial park |
CN116962051A (en) * | 2023-07-28 | 2023-10-27 | 江苏城乡建设职业学院 | Underground space fire-fighting transmission optimizing system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102013975A (en) * | 2010-06-29 | 2011-04-13 | 北京飞天诚信科技有限公司 | Secret key management method and system |
CN103585736A (en) * | 2013-11-01 | 2014-02-19 | 余正生 | Fire-control remote visible alarming and remote control fire extinguishing system |
CN109861819A (en) * | 2019-03-19 | 2019-06-07 | 天津中德应用技术大学 | Based on the data ciphering method and decryption method for obscuring encryption block algorithm |
CN110732109A (en) * | 2019-09-24 | 2020-01-31 | 九江中船消防设备有限公司 | automatic monitoring devices of marine fire control steel bottle pressure that puts out a fire |
CN112291296A (en) * | 2020-08-27 | 2021-01-29 | 浙江八度科技有限公司 | Internet of things equipment access system for urban fire-fighting remote monitoring system and method thereof |
CN112619016A (en) * | 2020-12-09 | 2021-04-09 | 威特龙消防安全集团股份公司 | Fire control monitored control system and management platform based on fire control gas cylinder |
CN114569927A (en) * | 2022-03-14 | 2022-06-03 | 安徽棁姿安防科技有限公司 | Fire-fighting equipment safety on-line monitoring system |
-
2022
- 2022-08-30 CN CN202211043707.1A patent/CN115120921A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102013975A (en) * | 2010-06-29 | 2011-04-13 | 北京飞天诚信科技有限公司 | Secret key management method and system |
CN103585736A (en) * | 2013-11-01 | 2014-02-19 | 余正生 | Fire-control remote visible alarming and remote control fire extinguishing system |
CN109861819A (en) * | 2019-03-19 | 2019-06-07 | 天津中德应用技术大学 | Based on the data ciphering method and decryption method for obscuring encryption block algorithm |
CN110732109A (en) * | 2019-09-24 | 2020-01-31 | 九江中船消防设备有限公司 | automatic monitoring devices of marine fire control steel bottle pressure that puts out a fire |
CN112291296A (en) * | 2020-08-27 | 2021-01-29 | 浙江八度科技有限公司 | Internet of things equipment access system for urban fire-fighting remote monitoring system and method thereof |
CN112619016A (en) * | 2020-12-09 | 2021-04-09 | 威特龙消防安全集团股份公司 | Fire control monitored control system and management platform based on fire control gas cylinder |
CN114569927A (en) * | 2022-03-14 | 2022-06-03 | 安徽棁姿安防科技有限公司 | Fire-fighting equipment safety on-line monitoring system |
Non-Patent Citations (6)
Title |
---|
乔路: "数据加密在计算机网络安全中的应用", 《电子技术与软件工程》 * |
司贤栋: "活动识别的深度特征增强与模型优化方法", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》 * |
李亚翔: "基于局部像素预测和差值的加密图像可逆信息隐藏算法研究", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》 * |
李冬辉,等: "基于CNN-GRU的冷水机组传感器偏差故障诊断方法", 《湖南大学学报(自然科学版)》 * |
毛晓楠,等: "基于序贯蒙特卡罗方法的自适应红外目标提取算法", 《微型电脑应用》 * |
王林伟,等: ""基于改进局部二值模式的YASS检测方法", 《信息安全与通信保密》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116168502A (en) * | 2023-02-28 | 2023-05-26 | 合肥初云信息科技有限公司 | Energy-saving control system of fire sensor of self-optimizing industrial park |
CN116168502B (en) * | 2023-02-28 | 2024-04-19 | 山西德元致盛建设工程有限公司 | Energy-saving control system of fire sensor of self-optimizing industrial park |
CN116962051A (en) * | 2023-07-28 | 2023-10-27 | 江苏城乡建设职业学院 | Underground space fire-fighting transmission optimizing system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115120921A (en) | Fire control monitored control system based on fire control gas cylinder | |
CN102007726B (en) | Node device and program | |
EP3038286B1 (en) | Information processing method, information processing program, and information processing apparatus | |
US7747014B2 (en) | Information transmission system, and information sending apparatus and information receiving apparatus used therein | |
CN106251278A (en) | A kind of image encryption territory based on histogram feature reversible information hidden method | |
CN110677234B (en) | Privacy protection method and system based on homomorphic encryption blockchain | |
CN114979407B (en) | Multi-image encryption and decryption method based on code division multiple access and deep learning ghost imaging | |
Li et al. | Cryptanalyzing an encryption scheme based on blind source separation | |
CN113225180A (en) | Method and system for protecting communication key | |
US7920705B1 (en) | System and method for convert channel detection | |
CN116305080A (en) | Universal password detection method | |
CN115834792A (en) | Video data processing method and system based on artificial intelligence | |
CN111343606A (en) | Safety protection method and device for train data | |
CN114650156B (en) | Real-time data transmission method and system for Internet of things | |
CN114491631A (en) | Nursing sensitive index information interaction method and monitoring device | |
CN109829319B (en) | Image encryption method based on compressed sensing technology and Hybrid chaotic system | |
CN108365946B (en) | Energy internet communication safety system and method based on chaotic system array | |
CN102355375A (en) | Distributed abnormal flow detection method with privacy protection function and system | |
TW202109373A (en) | A system and method for object recognition | |
CN110704839A (en) | Data encryption protection method based on national cryptographic algorithm | |
CN105554033B (en) | A kind of authentic authentication method and its image input device of image input device | |
US20230261879A1 (en) | Method of hashing a video stream | |
CN116996628B (en) | Network data transmission protection method | |
KR102505081B1 (en) | Method for decoding Adavanced Encryption Standard employing Multi Layer Perceptron according to analysis of Advanced Virtual RISC equipment with AES | |
CN109194614A (en) | A kind of electric power data processing method based on block chain |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |