Intelligent port container data security storage method and system
By analyzing the differences and specification uniformity of container data, filtering high-standard data and giving coding priority, the problem of low encoding compression efficiency is solved, and efficient storage of port container data is achieved.
Patent Information
- Application Number
- CN202411570686.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-11-06
AI Technical Summary
In port container data processing, the prior art fails to effectively utilize the repetition of data, resulting in low Hoffman encoding compression efficiency and increasing storage space and transmission efficiency.
By obtaining the container data set for two days adjacent to each other, analyzing data differences and specification uniformity, filtering high-standard dimensional data, giving data encoding priority to different time periods, and using the Hoffman coding algorithm for data compression storage.
The storage efficiency of port container data has been improved, and the data compression efficiency has been significantly improved through data specification uniformity correction and encoding priority allocation.
Smart Images

Figure CN119066237A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method and system for securely storing container data in an intelligent port. Background Art
[0002] "Port container" refers to the process of loading goods into containers and centrally managing and dispatching them at the port; this process is a key link in modern port logistics, involving multiple steps such as packing, stacking, handling and ship loading of goods; since there are many types of container data, including structured data and unstructured data, it is necessary to consider using appropriate data compression methods to reduce storage space and improve transmission efficiency when storing data; when using Huffman coding to compress container data, since the boxes to be packed need to have the same specifications, the container data has a high degree of repetitiveness. If the repetitiveness of container data is not considered, only the disordered original container data is used as the input of the Huffman coding algorithm, the data compression efficiency will be greatly reduced, the storage space will be increased, and the storage efficiency of port container data will be reduced. Summary of the invention
[0003] In order to solve the above problems, the present invention provides a method and system for secure storage of container data in a smart port.
[0004] An embodiment of the present invention provides a method for securely storing container data in a smart port, the method comprising the following steps: Obtain container data sets of several dimensions for two consecutive days; each container data set of each dimension includes container data sequences of several time periods, and each container data sequence of each time period includes several container data; According to the difference of container data in the container data sequence of the same time period between the container data sets of each dimension on two consecutive days, the uniformity of data specifications of the container data sets of each dimension is obtained; according to the difference of container data between the container data sequences of adjacent time periods, the uniformity of data specifications is corrected to obtain the updated uniformity of the container data sets of each dimension; all the container data sets of various dimensions are screened by the uniformity of updated specifications to obtain the container data sets of high-standard dimensions; According to the difference in the number of container data that meet the standard specifications between container data sequences in different time periods, the encoding priority of each high-standard dimension container data set is obtained; Data compression is performed on all kinds of dimensional container data sets according to the coding priority to obtain compressed all kinds of dimensional container data sets; and the compressed all kinds of dimensional container data sets are stored.
[0005] Preferably, the method of obtaining the uniformity of data specifications of container data sets of each dimension according to the difference of container data in the container data sequence of the same time period between container data sets of each dimension on two adjacent days includes the following specific methods: For any dimension container data set, according to the difference of the maximum value of container data in the container data sequence in each time period between the container data sets of the dimension on two consecutive days, the difference of container data in each time period between the container data sets of the dimension on two consecutive days is obtained; Obtain the difference value of the data concentration time period between the container data sets of this dimension on two consecutive days; The cumulative sum of the differences in container data in all time periods between the container data sets of this dimension on two consecutive days is recorded as the first cumulative sum; the reciprocal of the difference in the time period in the data center between the container data sets of this dimension on two consecutive days is recorded as the first reciprocal; the product of the first reciprocal and the first cumulative sum is taken as the data specification uniformity of the container data set of this dimension.
[0006] Preferably, the specific method of obtaining the difference of container data in each time period between container data sets of the dimension on two adjacent days includes: For any container data in a container data sequence of any time period in any dimensional container data set; the absolute value of the difference between the container data and the mean of all container data in the container data sequence of the time period is recorded as the deviation value of the container data; in the container data sequence of the time period, the container data with the maximum deviation value is recorded as the target container data in the container data sequence of the time period; the ratio of the target container data in the container data sequence of the time period on the first day to the target container data in the container data sequence of the time period on the second day is recorded as the first ratio; the absolute value of the difference between 1 and the first ratio is taken as the difference of the container data in the time period between the container data sets of the dimensionality on two adjacent days.
[0007] Preferably, the specific method of obtaining the data concentration time period difference value between the container data sets of the dimension on two consecutive days includes: For any dimensional container data set, in the container data sequence of all time periods in the dimensional container data set on the first day, the time period sequence number to which the largest target container data belongs is recorded as the first sequence number; in the container data sequence of all time periods in the dimensional container data set on the second day, the time period sequence number to which the largest target container data belongs is recorded as the second sequence number; the absolute value of the difference between the first sequence number and the second sequence number is used as the data concentration time period difference value between the dimensional container data sets of two adjacent days.
[0008] Preferably, the data specification uniformity is corrected according to the difference between container data sequences in adjacent time periods to obtain the updated specification uniformity of each dimension container data set, including the specific method of: According to the difference of container data between container data sequences in adjacent time periods, obtain the specification uniformity correction factor of container data set in each dimension; For any dimensional container data set, the product of the inverse proportional value of the specification uniformity correction factor of the dimensional container data set and the data specification uniformity of the dimensional container data set is taken as the updated specification uniformity of the dimensional container data set.
[0009] Preferably, the specific method of obtaining the specification uniformity correction factor of each dimension container data set includes: For a container data sequence of any time period in a container data set of any dimension, the mean of all container data in the container data sequence of the time period is recorded as the first mean of the container data sequence of the time period; the absolute value of the difference between the first mean of the container data sequence of the time period and the first mean of the container data sequence of the next time period is recorded as the first difference absolute value of the container data sequence of the time period; the mean of the first difference absolute values of the container data sequences of all time periods in the container data set of the dimension is used as the specification uniformity correction factor of the container data set of the dimension.
[0010] Preferably, the method of screening all kinds of dimensional container data sets by updating the uniformity of specifications to obtain a high-standard dimensional container data set includes the following specific methods: Preset a threshold parameter For any dimension container data set, if the updated specification uniformity of the dimension container data set is greater than or equal to the threshold parameter , the container data set of this dimension is recorded as a high-standard dimension container data set.
[0011] Preferably, the method of obtaining the encoding priority of each high-standard dimension container data set according to the difference in the number of container data that meets the standard specifications between container data sequences in different time periods includes the following specific methods: For a container data sequence of any time period in any high-standard dimensional container data set, the ratio of the number of container data meeting the standard specifications in the container data sequence of the time period to the number of all container data in the container data sequence of the time period is recorded as the second ratio of the container data sequence of the time period; the mean of the number of container data meeting the standard specifications in the container data sequences of all time periods in the high-standard dimensional container data set is recorded as the second mean; the absolute value of the difference between the number of container data meeting the standard specifications in the container data sequence of the time period and the second mean is recorded as the second absolute value of the difference of the container data sequence of the time period; the product of the second ratio of the container data sequence of the time period and the absolute value of the second difference of the container data sequence of the time period is recorded as the first product of the container data sequence of the time period; the cumulative sum of the first products of the container data sequences of all time periods in the high-standard dimensional container data set is recorded as the second cumulative sum; the product of the updated specification uniformity of the high-standard dimensional container data set and the second cumulative sum is used as the encoding priority of the high-standard dimensional container data set.
[0012] Preferably, the method of compressing the container data sets of all dimensions according to the coding priority and obtaining the compressed container data sets of all dimensions includes: Obtain the original encoding length of each dimension of container data set according to the Huffman coding algorithm; For any high-standard dimensional container data set, an inverse proportional value of the encoding priority of the high-standard dimensional container data set is recorded as a first inverse proportional value; and a product of the first inverse proportional value and an original encoding length of the high-standard dimensional container data set is used as an updated encoding length of the high-standard dimensional container data set; The updated coding lengths of all high-standard dimensional container data sets are input into the Huffman coding algorithm to perform data compression on all dimensional container data sets, thereby obtaining compressed all dimensional container data sets.
[0013] The present invention also proposes a smart port container data security storage system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the steps of the smart port container data security storage method when executing the computer program.
[0014] The beneficial effects of the technical solution of the present invention are as follows: according to the difference of container data between container data sequences in adjacent time periods, the uniformity of data specifications is corrected to obtain the updated uniformity of specifications of each dimension container data set; all dimension container data sets are screened by the updated uniformity of specifications to obtain a high-standard dimension container data set; thereby obtaining a dimensional container data set with high repeatability; according to the difference in the number of container data that meet the standard specifications between container data sequences in different time periods, the encoding priority of each high-standard dimension container data set is obtained; according to the encoding priority, all dimension container data sets are compressed to obtain compressed all dimension container data sets; the compressed all dimension container data sets are stored; different encoding lengths are assigned to the high-standard dimension container data sets according to the encoding priority, thereby improving the data compression efficiency, thereby improving the storage efficiency of port container data. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 This is a flow chart of the steps of a method for securely storing container data in an intelligent port according to the present invention; Figure 2 This is a characteristic relationship flow chart of the secure storage of container data in a smart port according to the present invention. DETAILED DESCRIPTION
[0017] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a smart port container data security storage method and system proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0018] 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.
[0019] The specific scheme of a method and system for secure storage of container data in a smart port provided by the present invention is described in detail below with reference to the accompanying drawings.
[0020] See also Figure 1 , which shows a flowchart of a method for securely storing container data in a smart port provided by an embodiment of the present invention, the method comprising the following steps: Step S001: Obtain container data sets of several dimensions for two consecutive days.
[0021] Specifically, we first need to collect container data sets of several dimensions for two consecutive days. The specific process is as follows: For any day, every 10 minutes is taken as a time period, and the six dimensions of container data, namely, size, weight, volume, packing time, storage location and expected departure time of all containers in the port are collected in turn each time, for a total of 24 hours; the sequence composed of all data of each dimension of container data type collected in each time period is taken as the sequence of container data of each dimension; the set composed of all data of each dimension of container data type in all time periods is taken as the set of container data of each dimension on that day.
[0022] Each dimension of the container data set includes container data sequences of several time periods, and each time period of the container data sequence includes several container data.
[0023] So far, the container data sets of several dimensions for two consecutive days are obtained through the above method.
[0024] Step S002: according to the difference of container data in the container data sequence of the same time period between the container data sets of each dimension on two adjacent days, the uniformity of data specifications of the container data sets of each dimension is obtained; according to the difference of container data between the container data sequences of adjacent time periods, the uniformity of data specifications is corrected to obtain the updated uniformity of specifications of the container data sets of each dimension; all the container data sets of various dimensions are screened by the uniformity of updated specifications to obtain the container data sets of high standards.
[0025] It should be noted that container data has relatively regular data characteristics and its changing forms; for example, the size of the container will be distributed only under several standard size values due to the limitation of the box specifications, so the data corresponding to such size has high repeatability; and the packing time, the corresponding arrival time and departure time, etc., will also have corresponding periodicity due to the influence of container data and size, that is, each dimension container data set corresponds to a data specification uniformity; and the greater the periodicity of each dimension container data set, the more standard the container data in the dimension container data set, and accordingly, the higher the data specification uniformity; since the smaller the difference of container data between container data sequences in adjacent time periods, the higher the periodicity of the corresponding dimension container data set, the data specification uniformity of each dimension container data set can be corrected by the difference of container data between container data sequences in different time periods, and the updated specification uniformity of each dimension container data set can be obtained; all dimensional container data sets are screened by the updated specification uniformity to obtain high-standard dimensional container data sets.
[0026] 1. Obtain uniformity of data specifications for container data sets of each dimension.
[0027] It should be noted that for the analysis of the time characteristics of each dimension container data set, some routes may arrive and leave the port at a fixed time every week, so the corresponding packing activities will also show periodicity. At this time, dimensions such as packing time and packing size will reflect the concentration of data at a certain moment, so its periodicity will be higher; the higher the standardization of the container data set, the more necessary it is to analyze repeatability, and the higher the priority given to the corresponding coding length; and periodicity is an analysis based on time series, that is, the more concentrated the container data sets of different dimensions are in a certain time period in the time series, and the closer the time period is within two adjacent days in the time series, for example, the container data set of the first day's dimension is concentrated at 2 pm, and the container data set of the second day's dimension is also concentrated at 2 pm, then the higher the data periodicity and repeatability of the container data set of this dimension, the higher the corresponding data dimension standardization, that is, the greater the uniformity of the data specifications.
[0028] Preferably, in some implementations of the embodiments of the present invention, according to the difference of container data in the container data sequence in the same time period between the container data sets of each dimension on two adjacent days, a calculation method for obtaining the uniformity of data specifications of the container data set of each dimension is as follows: For any dimension container data set, according to the difference of the maximum value of container data in the container data sequence in each time period between the container data sets of the dimension on two consecutive days, the difference of container data in each time period between the container data sets of the dimension on two consecutive days is obtained; Obtain the difference value of the data concentration time period between the container data sets of this dimension on two consecutive days; The cumulative sum of the differences in container data in all time periods between the container data sets of this dimension on two consecutive days is recorded as the first cumulative sum; the reciprocal of the difference in the time period in the data center between the container data sets of this dimension on two consecutive days is recorded as the first reciprocal; the product of the first reciprocal and the first cumulative sum is taken as the data specification uniformity of the container data set of this dimension.
[0029] The specific formula is: In the formula, Indicates The uniformity of data specifications for container data sets of various dimensions; Indicates the first two days of the The difference value of time periods in the data set of container data sets of different dimensions; Represents the total number of container data sequences in all time periods in the dimension container data set; Indicates the first two days of the The first dimension of the container data set Differences in container data for different time periods; represents an exponential function with a natural constant as the base, and the embodiment adopts The model shows an inverse proportional relationship. As the input of the model, implementers can choose the inverse proportional function according to actual conditions.
[0030] It should be noted that the greater the difference in container data in time periods in the dimensional container data set, the greater the difference in container data in the same time period in the dimensional container data sets of two consecutive days, the worse the periodicity, and the smaller the uniformity of the data specifications of the dimensional container data set; the greater the difference in time periods in the data set of the dimensional container data set, the greater the difference in time periods in the data set, the worse the periodicity, and the smaller the uniformity of the data specifications of the dimensional container data set.
[0031] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the difference of container data in each time period between container data sets of each dimension on two adjacent days includes: For any container data in a container data sequence of any time period in any dimensional container data set; the absolute value of the difference between the container data and the mean of all container data in the container data sequence of the time period is recorded as the deviation value of the container data; in the container data sequence of the time period, the container data with the maximum deviation value is recorded as the target container data in the container data sequence of the time period; the ratio of the target container data in the container data sequence of the time period on the first day to the target container data in the container data sequence of the time period on the second day is recorded as the first ratio; the absolute value of the difference between 1 and the first ratio is taken as the difference of the container data in the time period between the container data sets of the dimensionality on two adjacent days.
[0032] The specific formula is: In the formula, Indicates the first two days of the The first dimension of the container data set Differences in container data for different time periods; Indicates the first day The first dimension of the container data set The target container data in the container data sequence of a time period; The second day The first dimension of the container data set The target container data in the container data sequence of a time period; Indicates taking the absolute value.
[0033] It should be noted that, since the difference needs to consider the positive and negative signs, for container data that is less than the mean, not only is its concentration not considered, it is also not involved in the construction of the standard degree, because container data that is less than the mean does not have valid data features; the closer the target container data of two consecutive days are, the more similar the change characteristics of the container data in the dimensional container data set of the two consecutive days are, that is, the more concentrated the dimensional container data set of the two consecutive days is in a certain time period in the time series, the higher the uniformity of the data specifications of the dimensional container data set is.
[0034] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the difference value of the data concentration time period between the container data sets of each dimension on two adjacent days includes: For any dimensional container data set, in the container data sequence of all time periods in the dimensional container data set on the first day, the time period sequence number to which the largest target container data belongs is recorded as the first sequence number; in the container data sequence of all time periods in the dimensional container data set on the second day, the time period sequence number to which the largest target container data belongs is recorded as the second sequence number; the absolute value of the difference between the first sequence number and the second sequence number is used as the data concentration time period difference value between the dimensional container data sets of two adjacent days.
[0035] It should be noted that the time period difference value of the data concentration indicates the difference in the time period sequence number with the maximum data concentration between the container data sets of this dimension on two adjacent days. The smaller the difference, the higher the data periodicity and repeatability of the container data set of this dimension. For example, the container data set of the first day is concentrated at 2 pm, and the container data set of the second day is also concentrated at 2 pm. Then, the higher the data periodicity and repeatability of the container data set of this dimension, the higher the corresponding data dimension standardization, that is, the greater the uniformity of the data specifications.
[0036] At this point, the data specification uniformity of the container data set in each dimension is obtained.
[0037] 2. Get all high-standard dimension container data sets.
[0038] It should be noted that, since the smaller the mean value of the container data difference between the container data sequences of adjacent time periods, the higher the periodicity of the corresponding dimensional container data set, the data specification uniformity of each dimensional container data set can be corrected by the container data difference between the container data sequences of each time period to obtain the updated specification uniformity of each dimensional container data set; all dimensional container data sets are screened by the updated specification uniformity to obtain high-standard dimensional container data sets.
[0039] Preferably, in some implementations of the embodiments of the present invention, the uniformity of data specifications is corrected according to the difference between container data sequences in adjacent time periods, and a calculation method for obtaining the updated uniformity of specifications of container data sets in each dimension is as follows: According to the difference of container data between container data sequences in adjacent time periods, obtain the specification uniformity correction factor of container data set in each dimension; For any dimensional container data set, the product of the inverse proportional value of the specification uniformity correction factor of the dimensional container data set and the data specification uniformity of the dimensional container data set is taken as the updated specification uniformity of the dimensional container data set.
[0040] The specific formula is: In the formula, Indicates The updated specifications of the container data set of different dimensions are consistent; Indicates The uniformity of data specifications for container data sets of various dimensions; Indicates The uniformity correction factor of the container data set of the dimension; represents an exponential function with a natural constant as the base, and the embodiment adopts The model shows an inverse proportional relationship. As the input of the model, implementers can choose the inverse proportional function according to actual conditions.
[0041] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the specification uniformity correction factor of each dimension container data set includes: For a container data sequence of any time period in a container data set of any dimension, the mean of all container data in the container data sequence of the time period is recorded as the first mean of the container data sequence of the time period; the absolute value of the difference between the first mean of the container data sequence of the time period and the first mean of the container data sequence of the next time period is recorded as the first difference absolute value of the container data sequence of the time period; the mean of the first difference absolute values of the container data sequences of all time periods in the container data set of the dimension is used as the specification uniformity correction factor of the container data set of the dimension.
[0042] Preferably, in some implementations of the embodiments of the present invention, the specific method for obtaining a high-standard dimensional container data set is: Preset a threshold parameter , wherein this embodiment is based on This example is described as an example, and this embodiment is not specifically limited. It depends on the specific implementation situation.
[0043] For any dimension container data set, if the updated specification uniformity of the dimension container data set is greater than or equal to the threshold parameter , the container data set of this dimension is recorded as a high-standard dimension container data set.
[0044] So far, all high-standard dimensional container data sets have been obtained through the above method.
[0045] Step S003: according to the difference in the quantity of container data meeting the standard specifications between container data sequences in different time periods, the encoding priority of each high-standard dimension container data set is obtained.
[0046] It should be noted that each high-standard dimension container data set corresponds to a standard specification. Different high-standard dimension container data sets have different standard specifications, and the frequency of occurrence of container data that meets the standard specifications will also be different; then under different standard specifications, the frequency of occurrence of container data will also be different. Since more attention is paid to container data with higher frequency, the higher the corresponding data repeatability, the higher the priority when performing Huffman encoding; and, the closer the container data under high-frequency standard specifications are, that is, the more cargo ships belong to the container data period under the high-standard dimension, and such cargo ships have relatively similar destinations and sailing distances; in general, container data has data characteristics, such as the size and type of the container, which will be distributed only under several standard size values due to the limitations of the box specifications, so the data corresponding to such size has a high repeatability, so different standard data specifications have different frequencies of occurrence, and the specifications with larger frequency characteristics have higher priorities.
[0047] Preferably, in some implementations of the embodiments of the present invention, according to the difference in the number of container data that meet the standard specifications between container data sequences in different time periods, a calculation method for obtaining the encoding priority of each high-standard dimension container data set is: For a container data sequence of any time period in any high-standard dimensional container data set, the ratio of the number of container data meeting the standard specifications in the container data sequence of the time period to the number of all container data in the container data sequence of the time period is recorded as the second ratio of the container data sequence of the time period; the mean of the number of container data meeting the standard specifications in the container data sequences of all time periods in the high-standard dimensional container data set is recorded as the second mean; the absolute value of the difference between the number of container data meeting the standard specifications in the container data sequence of the time period and the second mean is recorded as the second absolute value of the difference of the container data sequence of the time period; the product of the second ratio of the container data sequence of the time period and the absolute value of the second difference of the container data sequence of the time period is recorded as the first product of the container data sequence of the time period; the cumulative sum of the first products of the container data sequences of all time periods in the high-standard dimensional container data set is recorded as the second cumulative sum; the product of the updated specification uniformity of the high-standard dimensional container data set and the second cumulative sum is used as the encoding priority of the high-standard dimensional container data set.
[0048] The specific calculation method is: In the formula, Indicates A coding priority for a high-dimensional container data set; Indicates The updated specification uniformity of a high-dimensional container data set; Represents the total number of container data sequences in all time periods in the dimension container data set; Indicates A high-dimensional container dataset The number of container data that meet standard specifications in the container data sequence of a time period; Indicates A high-dimensional container dataset The number of all container data in the container data sequence of a time period; Indicates The mean value of the number of container data that meet the standard specifications in the container data sequence of all time periods in the high-standard dimensional container data set; Indicates taking the absolute value.
[0049] It should be noted that, since there is a positive proportional relationship between the number of container data that meet standard specifications and the priority, when the updated specifications of the high-standard dimensional container data set are unified, it means that the stronger the periodic change law of the container data, the higher the regularity of the container data. At this time, the higher the regularity corresponding to the high-standard dimensional container data set, the more it can be proved that the change trend of the container data in the high-standard dimensional container data set is carried out according to the original regular data, the higher its repeatability will be, and the higher the priority during Huffman coding compression; raising the priority of the high-standard dimensional container data set to Huffman coding can greatly improve the coding compression efficiency.
[0050] So far, the encoding priority of each high-standard dimension container data set is obtained through the above method.
[0051] Step S004: compressing the container data sets of all dimensions according to the coding priority, obtaining the compressed container data sets of all dimensions; and storing the compressed container data sets of all dimensions.
[0052] It should be noted that, according to the principle of Huffman coding algorithm, the coding priority is inversely proportional to the coding length, that is, the higher the priority, the higher the data repetitiveness, and the higher the corresponding data frequency, so the shorter the coding length.
[0053] Preferably, in some implementations of the embodiments of the present invention, data compression is performed on the container data sets of all dimensions according to the coding priority, and the specific method for obtaining the compressed container data sets of all dimensions is: Obtain the original encoding length of each dimension of container data set according to the Huffman coding algorithm; For any high-standard dimensional container data set, an inverse proportional value of the encoding priority of the high-standard dimensional container data set is recorded as a first inverse proportional value; and a product of the first inverse proportional value and an original encoding length of the high-standard dimensional container data set is used as an updated encoding length of the high-standard dimensional container data set; The updated coding lengths of all high-standard dimensional container data sets are input into the Huffman coding algorithm to perform data compression on all dimensional container data sets, thereby obtaining compressed all dimensional container data sets.
[0054] It should be noted that, for the non-high-standard dimensional container data set, the original coding length is used for data compression; the Huffman coding algorithm is a prior art and will not be described in detail in this embodiment.
[0055] Specifically, the compressed container data sets of all dimensions are stored in the database.
[0056] It should be noted that after compression, the container data sets of all dimensions ensure that the sensitivity of Huffman coding to repeated data can be fully utilized, the efficiency of the data compression process is increased, the data compression ratio is reduced, the storage efficiency of container data sets of different dimensions is improved, the storage space is reduced, and the efficient storage effect is achieved.
[0057] See also Figure 2 , which shows a characteristic relationship flow chart of secure storage of container data in a smart port.
[0058] Through the above steps, a smart port container data security storage is completed.
[0059] The present invention also proposes a smart port container data security storage system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements steps S001 to S004 of a smart port container data security storage method when executing the computer program.
[0060] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for secure storage of container data in a smart port, characterized in that: The method comprises the following steps: Obtain container data sets of several dimensions for two consecutive days; each container data set of each dimension includes container data sequences of several time periods, and each container data sequence of each time period includes several container data; According to the difference of container data in the container data sequence of the same time period between the container data sets of each dimension on two consecutive days, the uniformity of data specifications of the container data sets of each dimension is obtained; according to the difference of container data between the container data sequences of adjacent time periods, the uniformity of data specifications is corrected to obtain the updated uniformity of the container data sets of each dimension; all the container data sets of various dimensions are screened by the uniformity of updated specifications to obtain the container data sets of high-standard dimensions; According to the difference in the number of container data that meet the standard specifications between container data sequences in different time periods, the encoding priority of each high-standard dimension container data set is obtained; Data compression is performed on all kinds of dimensional container data sets according to the coding priority to obtain compressed all kinds of dimensional container data sets; and the compressed all kinds of dimensional container data sets are stored.
2. According to claim 1, a method for secure storage of smart port container data is characterized in that: The specific method of obtaining the uniformity of the data specification of each dimension container data set according to the difference of the container data in the container data sequence in the same time period between the container data sets of each dimension on two consecutive days includes: For any dimension container data set, according to the difference of the maximum value of container data in the container data sequence in each time period between the container data sets of the dimension on two consecutive days, the difference of container data in each time period between the container data sets of the dimension on two consecutive days is obtained; Obtain the difference value of the time period in the data set between the container data sets of this dimension on two consecutive days; The cumulative sum of the differences in container data in all time periods between the container data sets of this dimension on two consecutive days is recorded as the first cumulative sum; the reciprocal of the difference in the time period in the data center between the container data sets of this dimension on two consecutive days is recorded as the first reciprocal; the product of the first reciprocal and the first cumulative sum is taken as the data specification uniformity of the container data set of this dimension.
3. According to claim 2, a method for secure storage of container data in a smart port is characterized in that: The specific method of obtaining the difference of container data in each time period between the container data sets of the dimension on two consecutive days includes: For any container data in a container data sequence of any time period in any dimension container data set; record the absolute value of the difference between the container data and the mean of all container data in the container data sequence of the time period as the deviation value of the container data; in the container data sequence of the time period, record the container data with the maximum deviation value as the target container data in the container data sequence of the time period; Recording the ratio of the target container data in the container data sequence of the time period on the first day to the target container data in the container data sequence of the time period on the second day as a first ratio; The absolute value of the difference between 1 and the first ratio is used as the difference in container data in the time period between the container data sets of the dimension on two adjacent days.
4. According to claim 2, a method for secure storage of container data in a smart port is characterized in that: The specific method of obtaining the difference value of the data concentration time period between the container data sets of the dimension on two consecutive days includes: For any dimensional container data set, in the container data sequence of all time periods in the dimensional container data set on the first day, the time period sequence number to which the largest target container data belongs is recorded as the first sequence number; in the container data sequence of all time periods in the dimensional container data set on the second day, the time period sequence number to which the largest target container data belongs is recorded as the second sequence number; the absolute value of the difference between the first sequence number and the second sequence number is used as the data concentration time period difference value between the dimensional container data sets of two adjacent days.
5. According to claim 1, a method for secure storage of container data in a smart port is characterized in that: The method of correcting the uniformity of data specifications according to the difference between container data sequences in adjacent time periods to obtain the updated uniformity of the specifications of container data sets in each dimension includes the following specific methods: According to the difference of container data between container data sequences in adjacent time periods, obtain the specification uniformity correction factor of container data set in each dimension; For any dimensional container data set, the product of the inverse proportional value of the specification uniformity correction factor of the dimensional container data set and the data specification uniformity of the dimensional container data set is taken as the updated specification uniformity of the dimensional container data set.
6. According to claim 5, a method for secure storage of smart port container data is characterized in that: The specific method of obtaining the specification uniformity correction factor of each dimension container data set includes: For a container data sequence of any time period in a container data set of any dimension, the mean of all container data in the container data sequence of the time period is recorded as the first mean of the container data sequence of the time period; The absolute value of the difference between the first mean of the container data sequence in the time period and the first mean of the container data sequence in the next time period is recorded as the first absolute value of the difference of the container data sequence in the time period; The average of the absolute values of the first differences of the container data sequences in all time periods in the container data set of the dimension is used as the specification uniformity correction factor of the container data set of the dimension.
7. According to claim 1, a method for secure storage of container data in a smart port is characterized in that: The method of screening all kinds of dimensional container data sets by updating the uniformity of specifications to obtain a high-standard dimensional container data set includes: Preset a threshold parameter For any dimension container data set, if the updated specification uniformity of the dimension container data set is greater than or equal to the threshold parameter , the container data set of this dimension is recorded as a high-standard dimension container data set.
8. According to claim 1, a method for secure storage of container data in a smart port is characterized in that: The specific method of obtaining the encoding priority of each high-standard dimension container data set according to the difference in the number of container data that meets the standard specifications between container data sequences in different time periods includes: For a container data sequence of any time period in any high-standard dimensional container data set, the ratio of the number of container data meeting the standard specifications in the container data sequence of the time period to the number of all container data in the container data sequence of the time period is recorded as the second ratio of the container data sequence of the time period; The mean of the number of container data meeting the standard specifications in the container data sequence of all time periods in the high-standard dimensional container data set is recorded as the second mean; the absolute value of the difference between the number of container data meeting the standard specifications in the container data sequence of the time period and the second mean is recorded as the second absolute value of the difference of the container data sequence of the time period; the product of the second ratio of the container data sequence of the time period and the second absolute value of the difference of the container data sequence of the time period is recorded as the first product of the container data sequence of the time period; The cumulative sum of the first products of the container data sequences of all time periods in the high-standard dimensional container data set is recorded as the second cumulative sum; and the product of the updated specification uniformity of the high-standard dimensional container data set and the second cumulative sum is used as the encoding priority of the high-standard dimensional container data set.
9. According to claim 1, a method for secure storage of container data in a smart port is characterized in that: The method of compressing the container data sets of all dimensions according to the coding priority and obtaining the compressed container data sets of all dimensions includes: Obtain the original encoding length of each dimension of container data set according to the Huffman coding algorithm; For any high-standard dimensional container data set, an inverse proportional value of the encoding priority of the high-standard dimensional container data set is recorded as a first inverse proportional value; and a product of the first inverse proportional value and an original encoding length of the high-standard dimensional container data set is used as an updated encoding length of the high-standard dimensional container data set; The updated coding lengths of all high-standard dimensional container data sets are input into the Huffman coding algorithm to perform data compression on all dimensional container data sets, thereby obtaining compressed all dimensional container data sets.
10. A smart port container data security storage system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method for securely storing container data in a smart port as described in any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Large-scale network data storage method and system
CN117216023A
Underground coal mine explosion-proof electrical equipment parameter management system
CN117318729A
Air conditioner remote control system based on artificial intelligence
CN118274416A
Information agricultural data storage method based on big data analysis
CN118467483A
Electrophoresis production line production operation monitoring method and system
CN118467908A
