CN116743670B - Similar information rapid self-checking method and system based on coding prefabrication - Google Patents
Similar information rapid self-checking method and system based on coding prefabrication Download PDFInfo
- Publication number
- CN116743670B CN116743670B CN202311015882.4A CN202311015882A CN116743670B CN 116743670 B CN116743670 B CN 116743670B CN 202311015882 A CN202311015882 A CN 202311015882A CN 116743670 B CN116743670 B CN 116743670B
- Authority
- CN
- China
- Prior art keywords
- entropy
- data
- serial port
- transmission information
- port transmission
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 73
- 238000009417 prefabrication Methods 0.000 title claims abstract description 43
- 230000005540 biological transmission Effects 0.000 claims abstract description 145
- 238000013507 mapping Methods 0.000 claims abstract description 50
- 238000004364 calculation method Methods 0.000 claims description 49
- 238000004590 computer program Methods 0.000 claims description 15
- 238000004458 analytical method Methods 0.000 claims description 13
- 230000006870 function Effects 0.000 claims description 10
- 238000013500 data storage Methods 0.000 claims description 7
- 238000000605 extraction Methods 0.000 claims description 4
- 230000008569 process Effects 0.000 description 26
- 238000010586 diagram Methods 0.000 description 9
- 238000012545 processing Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000011156 evaluation Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003238 somatosensory effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2441—Traffic characterised by specific attributes, e.g. priority or QoS relying on flow classification, e.g. using integrated services [IntServ]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/11—Complex mathematical operations for solving equations, e.g. nonlinear equations, general mathematical optimization problems
- G06F17/12—Simultaneous equations, e.g. systems of linear equations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Mathematical Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Computational Mathematics (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Optimization (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Computation (AREA)
- Evolutionary Biology (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Computer Networks & Wireless Communication (AREA)
- Operations Research (AREA)
- Algebra (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
The invention relates to the technical field of similar information self-checking, in particular to a method and a system for quickly self-checking similar information based on coding prefabrication. The scheme comprises the steps of setting serial data transmission and storage modes, storing entropy operation serial data, calculating a mapping coding group corresponding to each entropy operation serial data according to transmission limit of the entropy operation serial data, performing entropy operation according to the mapping coding group to form serial transmission information entropy, setting a range of updating the serial transmission information entropy according to the serial transmission information entropy, storing entropy classification information according to the serial transmission information entropy and the range of the serial transmission information entropy, and rapidly extracting classification data meeting characteristics according to entropy characteristics and storage time. According to the scheme, the similar information quick-checking method is completed in an information entropy grouping matching mode, and the quick checking without fixed rules is realized.
Description
Technical Field
The invention relates to the technical field of similar information self-checking, in particular to a method and a system for quickly self-checking similar information based on coding prefabrication.
Background
In the process of serial port communication, a large amount of data is required to be transmitted, and two modes for distinguishing the data are required, wherein one mode is to set corresponding zone bits in advance, and the zone bits are required to be distinguished by reading the zone bits, so that in the execution process, if the classification is too much, a large amount of time is lost in the distinguishing process and the distinguishing process possibly; in another way, the data is divided and extracted in the process of transmitting the data, and the method has the advantages that corresponding zone bits do not need to be preset in advance, but the distinguishing difficulty is high.
Before the technology of the invention, in the prior art, a great number of types of current data are obtained by means of natural language analysis and feature extraction, and then rapid evaluation analysis is performed, and although an online learning classification can be formed, the classification process often falls into the conditions that the number of dimensions and levels are more and the query process is slower and more.
Disclosure of Invention
In view of the above problems, the invention provides a method and a system for quick self-checking of similar information based on coding prefabrication, which finish the method for quick checking of similar information by means of information entropy grouping matching, and realize quick checking without fixed rules.
According to a first aspect of the embodiment of the invention, a similar information rapid self-checking method based on coding prefabrication is provided.
In one or more embodiments, preferably, the method for rapid self-checking based on encoded prefabricated homogeneous information includes:
setting a serial port data transmission and storage mode, and storing entropy operation serial port data;
calculating a mapping coding group corresponding to each entropy operation serial port data according to the transmission limit of the entropy operation serial port data;
performing entropy operation according to the mapping coding group to form serial port transmission information entropy;
setting and updating the range of the serial port transmission information entropy according to the serial port transmission information entropy;
according to the serial port transmission information entropy and the range of the serial port transmission information entropy, storing entropy classification information;
and according to the entropy characteristics and the storage time, quickly extracting classification data meeting the characteristics.
In one or more embodiments, preferably, the setting a serial port data transmission and storage manner stores entropy operation serial port data, which specifically includes:
after serial data starts to be transmitted, determining a data storage mode, wherein the data storage mode comprises time storage and condition storage;
when the storage mode is time storage, reading all the transmitted serial port data according to preset time, and storing the serial port data into entropy operation serial port data;
and when the storage mode is conditional storage, reading the transmitted data according to a data protocol set in the transmission process, and storing the data into the entropy operation serial port data.
In one or more embodiments, preferably, the calculating, according to the transmission limit of the entropy operation serial port data, a mapping coding set corresponding to each entropy operation serial port data specifically includes:
after the entropy operation serial port data are obtained, reading the upper and lower transmission limits of the entropy operation serial port data;
calculating coding prefabrication possibly corresponding to all entropy operation serial data by using a first calculation formula, and taking the coding prefabrication as a mapping coding group;
the first calculation formula is as follows:
;
wherein a1, a2, …, ai, …, an are the mapping code group 1,2, …, i, …, n data, n is the total amount of mapping code group data, B is the mapping code group, E is the preset mapping analysis length, D () is a rounding function, max is the upper transmission limit of the entropy operation serial data, min is the lower transmission limit of the entropy operation serial data, and C is the mapping group initial value.
In one or more embodiments, preferably, the performing entropy operation according to the mapping coding set forms a serial port transmission information entropy, which specifically includes:
acquiring entropy operation serial data obtained at the current moment, and calculating the coding density by using a second calculation formula according to the time length of corresponding codes of each mapping code when the data interval of the entropy operation serial data is lower than a preset comparison value and the entropy operation serial data is considered to be continuous transmission data;
when the data interval of the entropy operation serial data is not lower than the preset comparison value, the entropy operation serial data is considered as discrete transmission data, and the encoding density is calculated by using a third calculation formula;
according to the coding density, calculating serial port transmission information entropy of serial port transmission data each time by using a fourth calculation formula;
the second calculation formula is as follows:
Fai=Tai÷G;
wherein Fai is the coding density of the coding corresponding to the ith data, G is the total operation time, and Tai is the time of the coding corresponding to the ith data;
the third calculation formula is as follows:
Fai=Lai÷H;
lai is the occurrence number of the corresponding codes of the ith data, and H is the total number of the data;
the fourth calculation formula is as follows:
;
s is the serial port transmission information entropy.
In one or more embodiments, preferably, the setting, according to the serial port transmission information entropy, the range of updating the serial port transmission information entropy specifically includes:
setting the range of a plurality of initial serial port transmission information entropies by utilizing a fifth calculation formula;
acquiring the current running time, setting a running time classification interval, automatically updating the setting mode of entropy classification after passing through the range of the running time classification interval, and updating the range of the serial port transmission information entropy by using a sixth calculation formula, a seventh calculation formula and a fifth calculation formula;
the fifth calculation formula is:
;
wherein P is the range of the serial port transmission information entropy, M1 is the first information entropy margin, M2 is the second information entropy margin, k1 and k2 are preset classification coefficients, and d is the classification interval;
the sixth calculation formula is:
M1=max(S)
max (S) is used for the maximum value of serial port transmission information entropy in the current running time classification interval range;
the seventh calculation formula is:
M2=min(S)
and min (S) is used for the minimum value of the serial port transmission information entropy in the current running time classification interval range.
In one or more embodiments, preferably, the storing of the entropy classification information according to the serial port transmission information entropy and the range of the serial port transmission information entropy specifically includes:
reading serial port transmission information entropy at the current moment;
judging the current running time, and determining the range of all serial port transmission information entropy at the corresponding moment;
and storing the serial port transmission information entropy into a range of the serial port transmission information entropy under corresponding time.
In one or more embodiments, preferably, the quickly extracting the classification data satisfying the characteristics according to the entropy characteristics and the storage time specifically includes:
reading the storage time and calling the range of all serial port transmission information entropy at the corresponding moment;
judging whether a range of the serial port transmission information entropy with call exists, and if so, calling all serial data stored correspondingly.
According to a second aspect of the embodiment of the invention, a similar information rapid self-checking system based on coding prefabrication is provided.
In one or more embodiments, preferably, the rapid self-checking system based on encoded prefabricated homogeneous information includes:
the acquisition setting module is used for setting serial port data transmission and storage modes and storing entropy operation serial port data;
the coding prefabrication module is used for calculating a mapping coding group corresponding to each entropy operation serial data according to the transmission limit of the entropy operation serial data;
the data entropy analysis module is used for carrying out entropy operation according to the mapping coding group to form a serial port transmission information entropy;
the data entropy classification module is used for setting and updating the range of the serial port transmission information entropy according to the serial port transmission information entropy;
the classification storage module is used for storing entropy classification information according to the serial port transmission information entropy and the range of the serial port transmission information entropy;
and the classified query module is used for rapidly extracting classified data meeting the characteristics according to the entropy characteristics and the storage time.
According to a third aspect of embodiments of the present invention, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement a method according to any of the first aspect of embodiments of the present invention.
According to a fourth aspect of embodiments of the present invention there is provided an electronic device comprising a memory and a processor, the memory being for storing one or more computer program instructions, wherein the one or more computer program instructions are executable by the processor to implement the method of any of the first aspects of embodiments of the present invention.
The technical scheme provided by the embodiment of the invention can comprise the following beneficial effects:
in the scheme of the invention, an information entropy grouping operation equation is set, and data classification is carried out through the dynamic range in the equation.
In the scheme of the invention, the operation equation realizes large-class self-adaptive division through dynamic adjustment, and the time of each judging process is short and the efficiency is high.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for rapid self-checking of homogeneous information based on code prefabrication according to an embodiment of the present invention.
Fig. 2 is a flowchart of setting serial port data transmission and storage modes and storing entropy operation serial port data in a method for quick self-checking similar information based on coding prefabrication according to an embodiment of the invention.
Fig. 3 is a flowchart of calculating a mapping code set corresponding to each entropy operation serial port data according to the transmission limit of the entropy operation serial port data in a quick self-checking method based on similar information of code prefabrication according to an embodiment of the present invention.
Fig. 4 is a flowchart of entropy calculation according to the mapping code set to form serial port transmission information entropy in a method for fast self-checking similar information based on code prefabrication according to an embodiment of the present invention.
Fig. 5 is a flowchart of a method for quickly and automatically checking similar information based on code prefabrication according to an embodiment of the present invention, wherein the range of the serial transmission information entropy is updated according to the serial transmission information entropy setting.
Fig. 6 is a flowchart of storing entropy classification information according to a serial port transmission information entropy and a range of the serial port transmission information entropy in a method for fast self-checking similar information based on encoding prefabrication according to an embodiment of the present invention.
Fig. 7 is a flowchart of a method for quickly extracting classified data satisfying characteristics according to entropy characteristics and storage time in a method for quickly self-checking similar information based on encoding prefabrication according to an embodiment of the present invention.
Fig. 8 is a block diagram of a system for rapid self-checking of homogeneous information based on code prefabrication in accordance with one embodiment of the present invention.
FIG. 9 is an electronic implementation of an embodiment of the present invention
Detailed Description
In some of the flows described in the specification and claims of the present invention and in the foregoing figures, a plurality of operations occurring in a particular order are included, but it should be understood that the operations may be performed out of order or performed in parallel, with the order of operations such as 101, 102, etc., being merely used to distinguish between the various operations, the order of the operations themselves not representing any order of execution. In addition, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first" and "second" herein are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, and are not limited to the "first" and the "second" being different types.
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
In the process of serial port communication, a large amount of data is required to be transmitted, and two modes for distinguishing the data are required, wherein one mode is to set corresponding zone bits in advance, and the zone bits are required to be distinguished by reading the zone bits, so that in the execution process, if the classification is too much, a large amount of time is lost in the distinguishing process and the distinguishing process possibly; in another way, the data is divided and extracted in the process of transmitting the data, and the method has the advantages that corresponding zone bits do not need to be preset in advance, but the distinguishing difficulty is high.
Before the technology of the invention, in the prior art, a great number of types of current data are obtained by means of natural language analysis and feature extraction, and then rapid evaluation analysis is performed, and although an online learning classification can be formed, the classification process often falls into the conditions that the number of dimensions and levels are more and the query process is slower and more.
The embodiment of the invention provides a method and a system for quick self-checking of similar information based on coding prefabrication. According to the scheme, the similar information quick-checking method is completed in an information entropy grouping matching mode, and the quick checking without fixed rules is realized.
According to a first aspect of the embodiment of the invention, a similar information rapid self-checking method based on coding prefabrication is provided.
Fig. 1 is a flowchart of a method for rapid self-checking of homogeneous information based on code prefabrication according to an embodiment of the present invention.
In one or more embodiments, preferably, the method for rapid self-checking based on encoded prefabricated homogeneous information includes:
s101, setting a serial port data transmission and storage mode, and storing entropy operation serial port data;
s102, calculating a mapping coding group corresponding to each entropy operation serial port data according to the transmission limit of the entropy operation serial port data;
s103, performing entropy operation according to the mapping coding group to form serial port transmission information entropy;
s104, setting a range for updating the serial port transmission information entropy according to the serial port transmission information entropy;
s105, storing entropy classification information according to the serial port transmission information entropy and the range of the serial port transmission information entropy;
s106, quickly extracting classification data meeting the characteristics according to the entropy characteristics and the storage time.
In the embodiment of the invention, firstly, serial data input and how to set information acquisition processes are carried out, coding prefabrication is completed, then data entropy is calculated, data entropy classification is carried out, and information inquiry and processing are carried out based on classification results.
Fig. 2 is a flowchart of setting serial port data transmission and storage modes and storing entropy operation serial port data in a method for quick self-checking similar information based on coding prefabrication according to an embodiment of the invention.
As shown in fig. 2, in one or more embodiments, preferably, the setting a serial port data transmission and storage manner stores entropy operation serial port data, which specifically includes:
s201, after serial port data starts to be transmitted, determining a data storage mode, wherein the data storage mode comprises time storage and condition storage;
s202, when the storage mode is time storage, reading all the transmitted serial port data according to preset time, and storing the serial port data into entropy operation serial port data;
and S203, when the storage mode is conditional storage, the transmitted data is read according to a data protocol set in the transmission process, and the data is stored in the entropy operation serial data.
In the embodiment of the invention, in the process of data storage for serial port communication, in order to analyze data acquired by serial ports each time, the method is divided into two modes, one mode is to directly extract the data stored according to the preset data length in the serial ports each time, and the other mode is to acquire corresponding stored data according to the preset time interval, and in any case, a group of continuous data with the length larger than 1 is acquired; the algorithm provided in the present patent is mainly used for the rapid classification and extraction of a large amount of data, and therefore, is only used for the rapid classification and processing of data with the length exceeding 100.
Fig. 3 is a flowchart of calculating a mapping code set corresponding to each entropy operation serial port data according to the transmission limit of the entropy operation serial port data in a quick self-checking method based on similar information of code prefabrication according to an embodiment of the present invention.
As shown in fig. 3, in one or more embodiments, preferably, the calculating, according to the transmission limit of the entropy operation serial port data, a mapping encoding group corresponding to each entropy operation serial port data specifically includes:
s301, reading the upper and lower transmission limits of the entropy operation serial data after the entropy operation serial data are acquired;
s302, calculating coding prefabrication possibly corresponding to all entropy operation serial data by using a first calculation formula, and using the coding prefabrication as a mapping coding group;
the first calculation formula is as follows:
;
wherein a1, a2, …, ai, …, an are the mapping code group 1,2, …, i, …, n data, n is the total amount of mapping code group data, B is the mapping code group, E is the preset mapping analysis length, D () is a rounding function, max is the upper transmission limit of the entropy operation serial data, min is the lower transmission limit of the entropy operation serial data, and C is the mapping group initial value.
In the embodiment of the invention, in order to perform coding prefabrication, after serial communication information is acquired, coding is performed on acquired data, a mapping function is mainly set based on the accuracy and the range of data transmission in the setting process, and then coding calculation of the corresponding mapping function can be completed on each data, so that a mapping coding group based on coding prefabrication is formed.
Fig. 4 is a flowchart of entropy calculation according to the mapping code set to form serial port transmission information entropy in a method for fast self-checking similar information based on code prefabrication according to an embodiment of the present invention.
As shown in fig. 4, in one or more embodiments, preferably, the performing entropy operation according to the mapping coding set to form serial port transmission information entropy specifically includes:
s401, acquiring entropy operation serial data obtained at the current moment, and calculating the coding density by using a second calculation formula through the time length of corresponding codes of each mapping code when the data interval of the entropy operation serial data is lower than a preset comparison value and the data is considered to be continuous transmission data;
s402, when the data interval of the entropy operation serial data is not lower than the preset comparison value, the entropy operation serial data is regarded as discrete transmission data, and the encoding density is calculated by using a third calculation formula;
s403, calculating serial port transmission information entropy of serial port transmission data each time by using a fourth calculation formula according to the coding density;
the second calculation formula is as follows:
Fai=Tai÷G;
wherein Fai is the coding density of the coding corresponding to the ith data, G is the total operation time, and Tai is the time of the coding corresponding to the ith data;
the third calculation formula is as follows:
Fai=Lai÷H;
lai is the occurrence number of the corresponding codes of the ith data, and H is the total number of the data;
the fourth calculation formula is as follows:
;
s is the serial port transmission information entropy.
In the embodiment of the invention, it is clear how to perform data entropy operation, after a preset coding group of each data is obtained, corresponding analysis and operation can be performed according to a preset entropy function, in the analysis process, the data is divided into two types of data, one type is continuous data, the data is analog quantity obtained by direct acquisition, so that the continuity of the data corresponding to the formed mapping coding group is high, the calculation of the corresponding probability density is performed by adopting different coding time periods, the other type is relatively discrete data, the probability density is calculated based on the total number and the occurrence number of each mapping coding, and a final operation result is formed.
Fig. 5 is a flowchart of a method for quickly and automatically checking similar information based on code prefabrication according to an embodiment of the present invention, wherein the range of the serial transmission information entropy is updated according to the serial transmission information entropy setting.
As shown in fig. 5, in one or more embodiments, preferably, the setting, according to the serial port transmission information entropy, the range of updating the serial port transmission information entropy specifically includes:
setting the range of a plurality of initial serial port transmission information entropies by utilizing a fifth calculation formula;
acquiring the current running time, setting a running time classification interval, automatically updating the setting mode of entropy classification after passing through the range of the running time classification interval, and updating the range of the serial port transmission information entropy by using a sixth calculation formula, a seventh calculation formula and a fifth calculation formula;
the fifth calculation formula is:
;
wherein P is the range of the serial port transmission information entropy, M1 is the first information entropy margin, M2 is the second information entropy margin, k1 and k2 are preset classification coefficients, and d is the classification interval;
the sixth calculation formula is:
M1=max(S)
max (S) is used for the maximum value of serial port transmission information entropy in the current running time classification interval range;
the seventh calculation formula is:
M2=min(S)
and min (S) is used for the minimum value of the serial port transmission information entropy in the current running time classification interval range.
In the embodiment of the invention, in the information entropy classification process, the classification margin is dynamically adjusted, because in the actual execution process, the classification condition of the information entropy can be different in different time periods; in the final classification process, it may not be reasonable to set information entropy classification of different time periods with the same mechanism; therefore, a way of automatically updating entropy classification at preset time intervals is adopted.
Fig. 6 is a flowchart of storing entropy classification information according to a serial port transmission information entropy and a range of the serial port transmission information entropy in a method for fast self-checking similar information based on encoding prefabrication according to an embodiment of the present invention.
As shown in fig. 6, in one or more embodiments, preferably, the storing the entropy classification information according to the serial port transmission information entropy and the range of the serial port transmission information entropy specifically includes:
s601, reading serial port transmission information entropy at the current moment;
s602, judging the current running time, and determining the range of all serial port transmission information entropy at the corresponding moment;
s603, storing the serial port transmission information entropy into a range of the serial port transmission information entropy under corresponding time.
In the embodiment of the invention, during the information classification storage process, the entropy classification is automatically updated, so that the entropy classification is directly set according to time, the corresponding entropy classification is set at the corresponding time, and finally the information storage is completed; the corresponding entropy query mode is adopted independently in different time periods.
Fig. 7 is a flowchart of a method for quickly extracting classified data satisfying characteristics according to entropy characteristics and storage time in a method for quickly self-checking similar information based on encoding prefabrication according to an embodiment of the present invention.
As shown in fig. 7, in one or more embodiments, preferably, the quickly extracting classification data that satisfies the feature according to the entropy feature and the storage time specifically includes:
s701, reading storage time, and calling the range of all serial port transmission information entropy at corresponding time;
s702, judging whether a range of the serial port transmission information entropy with calling exists, and calling all serial data stored correspondingly if the range exists.
In the embodiment of the invention, firstly, a corresponding entropy operation value is obtained, secondly, corresponding large classification time is completed, and then the corresponding information storage position is rapidly positioned according to entropy classification; when the query information is fuzzy information, the entropy features in the corresponding time period can be acquired according to the entropy features to determine the corresponding stored serial data.
According to a second aspect of the embodiment of the invention, a similar information rapid self-checking system based on coding prefabrication is provided.
Fig. 8 is a block diagram of a system for rapid self-checking of homogeneous information based on code prefabrication in accordance with one embodiment of the present invention.
In one or more embodiments, preferably, the rapid self-checking system based on encoded prefabricated homogeneous information includes:
the acquisition setting module 801 is used for setting serial port data transmission and storage modes and storing entropy operation serial port data;
the encoding prefabrication module 802 is configured to calculate, according to the transmission limit of the entropy operation serial data, a mapping encoding group corresponding to each entropy operation serial data;
the data entropy analysis module 803 is configured to perform entropy operation according to the mapping encoding set to form a serial port transmission information entropy;
the data entropy classification module 804 is configured to set a range for updating the serial port transmission information entropy according to the serial port transmission information entropy;
the classification storage module 805 is configured to store entropy classification information according to the serial port transmission information entropy and the range of the serial port transmission information entropy;
and a classification query module 806, configured to quickly extract classification data that satisfies the features according to the entropy features and the storage time.
In the embodiment of the invention, a system suitable for different structures is realized through a series of modularized designs, and the system can realize closed-loop, reliable and efficient execution through acquisition, analysis and control.
According to a third aspect of embodiments of the present invention, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement a method according to any of the first aspect of embodiments of the present invention.
According to a fourth aspect of an embodiment of the present invention, there is provided an electronic device. Fig. 9 is a block diagram of an electronic device in one embodiment of the invention. The electronic device shown in fig. 9 is a general-purpose code-based prefabricated homogeneous information rapid self-checking device, which comprises a general-purpose computer hardware structure including at least a processor 901 and a memory 902. The processor 901 and the memory 902 are connected by a bus 903. The memory 902 is adapted to store instructions or programs executable by the processor 901. The processor 901 may be a stand-alone microprocessor or may be a set of one or more microprocessors. Thus, the processor 901 performs the process of data and control of other devices by executing the instructions stored in the memory 902, thereby performing the method flow of the embodiment of the present invention as described above. The bus 903 connects the above components together, while connecting the above components to the display controller 904 and display device and input/output (I/O) device 905. Input/output (I/O) device 905 may be a mouse, keyboard, modem, network interface, touch input device, somatosensory input device, printer, and other devices known in the art. Typically, the input/output devices 905 are connected to the system through input/output (I/O) controllers 906.
The technical scheme provided by the embodiment of the invention can comprise the following beneficial effects:
in the scheme of the invention, an information entropy grouping operation equation is set, and data classification is carried out through the dynamic range in the equation.
In the scheme of the invention, the operation equation realizes large-class self-adaptive division through dynamic adjustment, and the time of each judging process is short and the efficiency is high.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
Claims (7)
1. The method for quickly and automatically checking the same kind of information based on the code prefabrication is characterized by comprising the following steps:
setting a serial port data transmission and storage mode, and storing entropy operation serial port data;
calculating a mapping coding group corresponding to each entropy operation serial port data according to the transmission limit of the entropy operation serial port data;
performing entropy operation according to the mapping coding group to form serial port transmission information entropy;
setting and updating the range of the serial port transmission information entropy according to the serial port transmission information entropy;
according to the serial port transmission information entropy and the range of the serial port transmission information entropy, storing entropy classification information;
according to the entropy characteristics and the storage time, quickly extracting classification data meeting the characteristics;
the calculating the mapping coding group corresponding to each entropy operation serial port data according to the transmission limit of the entropy operation serial port data specifically comprises the following steps:
after the entropy operation serial port data are obtained, reading the upper and lower transmission limits of the entropy operation serial port data;
calculating coding prefabrication possibly corresponding to all entropy operation serial data by using a first calculation formula, and taking the coding prefabrication as a mapping coding group;
the first calculation formula is as follows:
;
wherein a1, a2, …, ai, …, an are the mapping code group 1,2, …, i, …, n data, n is the total amount of mapping code group data, B is the mapping code group, E is the preset mapping analysis length, D () is a rounding function, max is the upper limit of transmission of the entropy operation serial data, min is the lower limit of transmission of the entropy operation serial data, and C is the mapping group initial value;
the entropy operation is performed according to the mapping coding group to form a serial port transmission information entropy, which specifically comprises:
acquiring entropy operation serial data obtained at the current moment, and calculating the coding density by using a second calculation formula according to the time length of corresponding codes of each mapping code when the data interval of the entropy operation serial data is lower than a preset comparison value and the entropy operation serial data is considered to be continuous transmission data;
when the data interval of the entropy operation serial data is not lower than the preset comparison value, the entropy operation serial data is considered as discrete transmission data, and the encoding density is calculated by using a third calculation formula;
according to the coding density, calculating serial port transmission information entropy of serial port transmission data each time by using a fourth calculation formula;
the second calculation formula is as follows:
Fai=Tai÷G
wherein Fai is the coding density of the coding corresponding to the ith data, G is the total operation time, and Tai is the time of the coding corresponding to the ith data;
the third calculation formula is as follows:
Fai=Lai÷H
lai is the occurrence number of the corresponding codes of the ith data, and H is the total number of the data;
the fourth calculation formula is as follows:
;
s is a serial port transmission information entropy;
the setting of the range for updating the serial port transmission information entropy according to the serial port transmission information entropy specifically comprises the following steps:
setting the range of a plurality of initial serial port transmission information entropies by utilizing a fifth calculation formula;
acquiring the current running time, setting a running time classification interval, automatically updating the setting mode of entropy classification after passing through the range of the running time classification interval, and updating the range of the serial port transmission information entropy by using a sixth calculation formula, a seventh calculation formula and a fifth calculation formula;
the fifth calculation formula is:
;
wherein P is the range of the serial port transmission information entropy, M1 is the first information entropy margin, M2 is the second information entropy margin, k1 and k2 are preset classification coefficients, and d is the classification interval;
the sixth calculation formula is:
M1=max(S)
max (S) is used for the maximum value of serial port transmission information entropy in the current running time classification interval range;
the seventh calculation formula is:
M2=min(S)
and min (S) is used for the minimum value of the serial port transmission information entropy in the current running time classification interval range.
2. The method for quickly and automatically checking the same kind of information based on the encoding prefabrication according to claim 1, wherein the method for setting the serial data transmission and storage mode and storing the entropy operation serial data is characterized by comprising the following steps:
after serial data starts to be transmitted, determining a data storage mode, wherein the data storage mode comprises time storage and condition storage;
when the storage mode is time storage, reading all the transmitted serial port data according to preset time, and storing the serial port data into entropy operation serial port data;
and when the storage mode is conditional storage, reading the transmitted data according to a data protocol set in the transmission process, and storing the data into the entropy operation serial port data.
3. The method for rapid self-checking of same kind of information based on encoding prefabrication according to claim 1, wherein the storing of entropy classification information is performed according to the range of serial port transmission information entropy and serial port transmission information entropy, specifically comprising:
reading serial port transmission information entropy at the current moment;
judging the current running time, and determining the range of all serial port transmission information entropy at the corresponding moment;
and storing the serial port transmission information entropy into a range of the serial port transmission information entropy under corresponding time.
4. The method for rapid self-checking of homogeneous information based on coding prefabrication according to claim 1, wherein the method for rapid extraction of classification data satisfying characteristics according to entropy characteristics and storage time comprises the following steps:
reading the storage time and calling the range of all serial port transmission information entropy at the corresponding moment;
judging whether a range of the serial port transmission information entropy with call exists, and if so, calling all serial data stored correspondingly.
5. A system for rapid self-checking of homogeneous information based on coded prefabrication, characterized in that it is adapted to carry out the method according to any one of claims 1-4, comprising:
the acquisition setting module is used for setting serial port data transmission and storage modes and storing entropy operation serial port data;
the coding prefabrication module is used for calculating a mapping coding group corresponding to each entropy operation serial data according to the transmission limit of the entropy operation serial data;
the data entropy analysis module is used for carrying out entropy operation according to the mapping coding group to form a serial port transmission information entropy;
the data entropy classification module is used for setting and updating the range of the serial port transmission information entropy according to the serial port transmission information entropy;
the classification storage module is used for storing entropy classification information according to the serial port transmission information entropy and the range of the serial port transmission information entropy;
and the classified query module is used for rapidly extracting classified data meeting the characteristics according to the entropy characteristics and the storage time.
6. A computer readable storage medium, on which computer program instructions are stored, which computer program instructions, when executed by a processor, implement the method of any of claims 1-4.
7. An electronic device comprising a memory and a processor, wherein the memory is configured to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method of any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311015882.4A CN116743670B (en) | 2023-08-14 | 2023-08-14 | Similar information rapid self-checking method and system based on coding prefabrication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311015882.4A CN116743670B (en) | 2023-08-14 | 2023-08-14 | Similar information rapid self-checking method and system based on coding prefabrication |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116743670A CN116743670A (en) | 2023-09-12 |
CN116743670B true CN116743670B (en) | 2023-10-27 |
Family
ID=87904747
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311015882.4A Active CN116743670B (en) | 2023-08-14 | 2023-08-14 | Similar information rapid self-checking method and system based on coding prefabrication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116743670B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103308919A (en) * | 2012-03-12 | 2013-09-18 | 中国科学院声学研究所 | Fish identification method and system based on wavelet packet multi-scale information entropy |
CN104317861A (en) * | 2014-10-15 | 2015-01-28 | 同济大学 | Mutual information based interval data attribute selection method |
CN107172024A (en) * | 2017-05-02 | 2017-09-15 | 江苏科技大学 | For the covert communications detection method based on Have message codings in BitTorrent file sharing process |
CN108769677A (en) * | 2018-05-31 | 2018-11-06 | 宁波大学 | A kind of high dynamic range video dynamic range scalable encoding based on perception |
CN111079283A (en) * | 2019-12-13 | 2020-04-28 | 四川新网银行股份有限公司 | Method for processing information saturation unbalanced data |
CN114205613A (en) * | 2021-12-02 | 2022-03-18 | 北京智美互联科技有限公司 | Method and system for synchronously compressing internet audio and video data |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20230040648A1 (en) * | 2021-08-03 | 2023-02-09 | Data Culpa, Inc. | String entropy in a data pipeline |
-
2023
- 2023-08-14 CN CN202311015882.4A patent/CN116743670B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103308919A (en) * | 2012-03-12 | 2013-09-18 | 中国科学院声学研究所 | Fish identification method and system based on wavelet packet multi-scale information entropy |
CN104317861A (en) * | 2014-10-15 | 2015-01-28 | 同济大学 | Mutual information based interval data attribute selection method |
CN107172024A (en) * | 2017-05-02 | 2017-09-15 | 江苏科技大学 | For the covert communications detection method based on Have message codings in BitTorrent file sharing process |
CN108769677A (en) * | 2018-05-31 | 2018-11-06 | 宁波大学 | A kind of high dynamic range video dynamic range scalable encoding based on perception |
CN111079283A (en) * | 2019-12-13 | 2020-04-28 | 四川新网银行股份有限公司 | Method for processing information saturation unbalanced data |
CN114205613A (en) * | 2021-12-02 | 2022-03-18 | 北京智美互联科技有限公司 | Method and system for synchronously compressing internet audio and video data |
Also Published As
Publication number | Publication date |
---|---|
CN116743670A (en) | 2023-09-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109948669B (en) | Abnormal data detection method and device | |
CN112070180B (en) | Power grid equipment state judging method and device based on information physical bilateral data | |
CN104076809A (en) | Data processing device and data processing method | |
CN111931848B (en) | Data feature extraction method and device, computer equipment and storage medium | |
CN114218174B (en) | Industrial internet data storage method, system and storage medium based on block chain | |
CN113268403A (en) | Time series analysis and prediction method, device, equipment and storage medium | |
CN110389840B (en) | Load consumption early warning method and device, computer equipment and storage medium | |
CN106708875B (en) | Feature screening method and system | |
CN116743670B (en) | Similar information rapid self-checking method and system based on coding prefabrication | |
CN109242304B (en) | Method for evaluating reliability of small-probability event of power system | |
CN115829122A (en) | Electric power customer service work order complaint early warning method and system | |
CN116108276A (en) | Information recommendation method and device based on artificial intelligence and related equipment | |
CN112967154B (en) | Assessment method and device for Well-rolling of power system | |
CN115310705A (en) | Method and device for determining gas emission quantity and computer readable storage medium | |
CN111831622B (en) | Data index generation method, device, electronic equipment and readable storage medium | |
CN113988493A (en) | Method and device for constructing terminal evaluation model and storage medium | |
CN113672234A (en) | Intelligent progress monitoring method and system for numerical control equipment | |
CN112667569A (en) | Feature method, system, computer device and computer-readable storage medium | |
CN113010500B (en) | Processing method and processing system for DPI data | |
CN112115591B (en) | Working state analysis method, device and equipment | |
CN117667606B (en) | High-performance computing cluster energy consumption prediction method and system based on user behaviors | |
CN112819239B (en) | Product quantity prediction method, device, electronic equipment and readable storage medium | |
CN116595509B (en) | Program white list construction method and system | |
CN113722292B (en) | Disaster response processing method, device, equipment and storage medium of distributed data system | |
CN115599062A (en) | Intelligent factory operation method and device based on industrial Internet architecture |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |