CN114461738A - Method and device for generating data thermodynamic diagram and computer readable storage medium - Google Patents

Method and device for generating data thermodynamic diagram and computer readable storage medium Download PDF

Info

Publication number
CN114461738A
CN114461738A CN202111580369.0A CN202111580369A CN114461738A CN 114461738 A CN114461738 A CN 114461738A CN 202111580369 A CN202111580369 A CN 202111580369A CN 114461738 A CN114461738 A CN 114461738A
Authority
CN
China
Prior art keywords
value
hash
data
generating
evaluation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111580369.0A
Other languages
Chinese (zh)
Inventor
周广超
吕晓
陈立力
周明伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202111580369.0A priority Critical patent/CN114461738A/en
Publication of CN114461738A publication Critical patent/CN114461738A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Remote Sensing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a method, a device and a computer readable storage medium for generating a data thermodynamic diagram, wherein the method comprises the following steps: acquiring a first service data table, wherein the first service data table comprises longitude and latitude information of different places; encoding the latitude and longitude information to obtain a first Hash encoding value; generating a plurality of hash blocks based on the first hash encoded value; matching a first Hash code value corresponding to the Hash block with a preset mapping table to obtain first element related information matched with the first Hash code value, wherein the preset mapping table comprises second element related information of a plurality of elements and a second Hash code value matched with the second element related information; evaluating the related information of the first element to obtain a first evaluation value; based on the first evaluation value, a data thermodynamic diagram is generated. Through the mode, personnel and materials can be conveniently called according to the data thermodynamic diagram.

Description

Method and device for generating data thermodynamic diagram and computer readable storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for generating a data thermodynamic diagram, and a computer-readable storage medium.
Background
With the continuous increase of houses, vehicles and the like, higher requirements are put forward on the comprehensive capabilities of rescue response speed, dispatching command, field operation, scientific rescue and the like, but the rescue system in the related technology has the following problems: the local rescue force cannot be seen visually, and the personnel scheduling cannot be carried out efficiently and accurately.
Disclosure of Invention
The application provides a method and a device for generating a data thermodynamic diagram and a computer readable storage medium, which can be used for conveniently calling personnel and materials according to the data thermodynamic diagram.
In order to solve the technical problem, the technical scheme adopted by the application is as follows: a method for generating a data thermal diagram is provided, which comprises the following steps: acquiring a first service data table, wherein the first service data table comprises longitude and latitude information of different places; encoding the latitude and longitude information to obtain a first Hash encoding value; generating a plurality of hash blocks based on the first hash code value; matching a first Hash code value corresponding to the Hash block with a preset mapping table to obtain first element related information matched with the first Hash code value, wherein the preset mapping table comprises second element related information of a plurality of elements and a second Hash code value matched with the second element related information; evaluating the related information of the first element to obtain a first evaluation value; based on the first evaluation value, a data thermodynamic diagram is generated.
In order to solve the above technical problem, another technical solution adopted by the present application is: there is provided a thermodynamic diagram generating device comprising a memory and a processor connected to each other, wherein the memory is used for storing a computer program, and the computer program is used for implementing the method for generating a data thermodynamic diagram in the above technical solution when being executed by the processor.
In order to solve the above technical problem, another technical solution adopted by the present application is: there is provided a computer-readable storage medium for storing a computer program for implementing the method for generating a data thermodynamic diagram in the above-described solution when the computer program is executed by a processor.
Through the scheme, the beneficial effects of the application are that: firstly, acquiring a first service data table comprising longitude and latitude information of different places; then, encoding the latitude and longitude information to generate a first Hash code value; then, the first Hash coding value is used for realizing the division of the Hash blocks, and a plurality of Hash blocks are generated; matching the first hash coding value corresponding to the hash block with a preset mapping table to obtain the related information of the first element; evaluating the related information of the first element to obtain a first evaluation value; and then, a data thermodynamic diagram is generated by utilizing the first evaluation value, the element conditions of each place can be visually displayed, and the method is applied to a plurality of fields, can assist fire-fighting troops to dispatch fire-fighting quickly, avoids unnecessary loss and accelerates the rescue speed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts. Wherein:
FIG. 1 is a schematic flow chart diagram illustrating an embodiment of a method for generating a thermal diagram of data provided herein;
FIG. 2 is a schematic flow chart diagram illustrating another embodiment of a method for generating a thermal map of data provided herein;
FIG. 3 is a schematic diagram of a plurality of hash blocks provided herein;
FIG. 4 is a schematic diagram of a police force profile provided herein;
FIG. 5 is a schematic structural diagram of an embodiment of a thermodynamic diagram generation apparatus provided herein;
FIG. 6 is a schematic structural diagram of an embodiment of a computer-readable storage medium provided in the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be noted that the following examples are only illustrative of the present application, and do not limit the scope of the present application. Likewise, the following examples are only some examples and not all examples of the present application, and all other examples obtained by a person of ordinary skill in the art without any inventive work are within the scope of the present application.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
It should be noted that the terms "first", "second" and "third" in the present application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of indicated technical features. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of the feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 is a schematic flow chart of an embodiment of a method for generating a data thermodynamic diagram, the method including:
s11: and acquiring a first service data table.
The first service data table can be obtained from a database, or data sent by other equipment is received and stored in the first service data table, the first service data table can be a fire-fighting organization table or other types of tables, the first service data table comprises longitude and latitude information of different places, and the longitude and latitude information comprises the longitude of the place and the latitude of the place.
S12: and encoding the latitude and longitude information to obtain a first Hash code value.
For the acquired first service data table, the longitude and latitude information of each place can be extracted from the first service data table; and then, encoding the longitude and the latitude in the latitude and longitude information by using an encoding method to obtain a first Hash (Hash) encoded value, wherein the encoding method can be Hash encoding or a geohash algorithm.
S13: a plurality of hash blocks is generated based on the first hash-encoded value.
After the longitude and latitude information is encoded, a plurality of hash blocks can be generated by utilizing the first hash code value, and the size of each hash block can be the same; specifically, each location corresponds to one first hash code value, so that locations with the same first hash code value can be divided into the same hash block to obtain a plurality of hash blocks; or recording the areas corresponding to all the longitude and latitude information as target areas, dividing the target areas into a plurality of sub-areas with the same size, then judging whether the sub-areas have places with the longitude and latitude information, if the sub-areas have the places with the longitude and latitude information, taking the sub-areas as hash blocks, taking the mode of the first hash code values of the places as the first hash code values of the hash blocks, and if the sub-areas do not have the places with the longitude and latitude information, not processing.
S14: and matching the first hash coding value corresponding to the hash block with a preset mapping table to obtain the first element related information matched with the first hash coding value.
The element-related information (including the first element-related information and the second element-related information) may include information such as the number and category of at least one element; and counting second element related information corresponding to the elements of the plurality of places in advance, and encoding the longitude and latitude information corresponding to the second element related information according to the encoding method to obtain a second hash code value so as to form a preset mapping table, wherein the preset mapping table comprises the second element related information of the plurality of elements and the second hash code value matched with the second element related information.
Further, after the first hash code values of the hash blocks are obtained, the first hash code value corresponding to each hash block may be matched with a preset mapping table to determine whether a second hash code value matched with the first hash code value exists in the preset mapping table; and if a second hash code value matched with the first hash code value exists in the preset mapping table, using second element related information corresponding to the second hash code value as the first element related information of the hash block.
It can be understood that, when the first hash code value and the second hash code value are measured to be matched, whether the first hash code value and the second hash code value are completely consistent can be judged, and if the first hash code value and the second hash code value are completely consistent, the first hash code value and the second hash code value are determined to be matched; or whether the similarity between the first hash code value and the second hash code value is larger or not can be judged, and if the similarity is larger, the first hash code value and the second hash code value are determined to be matched.
S15: and evaluating the related information of the first element to obtain a first evaluation value.
After the first related element information of each hash block is obtained, the first related element information can be evaluated by adopting a preset scoring mechanism to generate a first evaluation value; specifically, the sub-evaluation values of all elements corresponding to the hash block may be counted first, and the first evaluation value of the hash block may be generated by adding all the sub-evaluation values. For example, assume that the kind of the element is a-C, the number of the elements a is 3, and the sub-evaluation value of the element a is 1; the number of the elements B is 5, and the sub-evaluation value of the element B is 2; the number of elements C is 1, and the sub-evaluation value of the element C is 4, the first evaluation value is (3 × 1) + (5 × 2) + (1 × 4) ═ 17.
S16: based on the first evaluation value, a data thermodynamic diagram is generated.
After the first evaluation value is obtained, each hash block can be drawn on a corresponding map, and the first evaluation value is marked on the map; or the hash block may be processed, for example, converted into an image block of a preset size, and then the image block is added on the map, and a first evaluation value corresponding to the image block is added; alternatively, other processing may be performed on the first evaluation value, such as: normalization or weighting processing, and the like, and then displaying the processed first evaluation value on a map to obtain a data thermodynamic diagram, wherein the data thermodynamic diagram comprises a soldier point diagram, a fire fighting thermodynamic diagram or a police strength distribution diagram.
When a fire disaster occurs, due to the shortage of the guard power, the fire cannot be efficiently extinguished, so that loss is caused, and therefore, the practical application significance is achieved by visually showing the guard power in a certain area; based on this, the embodiment provides a scheme that generates fire protection security strength distribution map based on hash coding, can directly show the security strength of each region on the map, and the supplementary fire control army carries out the fire protection dispatch sooner, can strengthen the security strength according to local condition to avoid unnecessary loss.
Referring to fig. 2, fig. 2 is a schematic flow chart diagram of another embodiment of a method for generating a data thermal map provided by the present application, the method including:
s21: and selecting the information of the set number of elements of the place from the third business data table to generate a second business data table.
In order to obtain a required service table, a data source needs to be accessed into a data platform, and a source address where data is located, a table name of the data source, and a data updating method are determined, where the data updating method is preset, and includes: once a day, once at 6 points per day, or in real time. Establishing a receiving table (namely a third service data table) in the data platform, and establishing data connection after determining an access mode; then executing data access operation; and finally, checking whether the data volume in the receiving table is consistent with the data volume in the data source or not, and avoiding data loss. Specifically, the third business data table may be a fire-fighting organization table, the data access mode is realized through kafka, and data consumed in kafka is transmitted to the hive data warehouse in a daily increment mode to update the data.
Furthermore, in the development process, development operation is not needed to be performed on all fields in the receiving table, so that partial data can be extracted according to key business fields (namely, element information) required by a client and key business fields required by a business; although the operation cannot reduce the size of the data volume, the number of data fields can be greatly reduced, redundant operation is avoided when the subsequent geohash calculation operation is executed, and load pressure is relieved. For example: the original data volume of the fire-fighting organization table has more than 50 fields, many fields in actual business are not used, and a client does not need to display the fields, so that 5 key business fields can be selected from each piece of data in the table.
S22: and performing duplicate removal processing on the second service data table and/or removing dirty data in the second service data table to obtain the first service data table.
The operation of extracting the key service field may extract other fields, which results in some repeated data generated in the process of extracting the key service field, so that the deduplication operation can be executed; for example, the windowing effect is better when the ditint statement is used for processing or the windowing operation is performed for removing the duplicate according to the main key.
In other embodiments, because there may be some dirty data in the second service data table, the dirty data may also be removed, and this embodiment may not remove all the dirty data when removing the dirty data, because this way may affect the accuracy of the main service, and the scheme adopted in this embodiment only needs to remove part of the data that does not meet the requirement/format of the normal data in the key service field, so as to reduce the data amount as much as possible, and may not affect the accuracy of the final result.
S23: and coding the hash block by adopting a preset coding function to obtain a first hash coding value.
The input parameters of the preset coding function comprise a longitude value, a latitude value and a weight value, and the weight value corresponds to the first Hash coding value; specifically, a geohash algorithm can be used to generate a geohash encoding function with required precision according to service requirements by using Java codes, and the geohash encoding value of each table is calculated by using a hivesql code through the geohash encoding function.
Further, a specific geohash coding scheme is as follows:
1) firstly, a latitude range (-90 degrees and 90 degrees) is divided into two intervals (-90 degrees and 0 degrees and 90 degrees, if a target latitude (namely the latitude in the latitude and longitude information) is located in the previous interval, the target latitude is coded into 0, and if the target latitude is not located in the previous interval, the target latitude is coded into 1.
For example, assume that the target latitude is 39.92324 °, since 39.92324 ° belongs to (0 °, 90 °), it is encoded as 1.
2) The (0 °, 90 °) is divided into two intervals (0 °, 45 °) and (45 °, 90 °), and since 39.92324 ° is located at (0 °, 45 °), 0 is encoded. And repeating the steps until the precision meets the requirement, and obtaining the hash code value of 39.92324 degrees to be 10111000110001111001.
It can be understood that the coding length of the geohash can be specified according to a self-defined weight value, that is, a mapping relationship exists between the weight value and the coding length, and a mapping table can be established in advance, wherein the mapping table comprises a plurality of weight values and code lengths corresponding to the weight values; when the mapping table is actually used, the currently required coding length is determined by matching the currently set weight value with the mapping table; further, the geohash encoding function is as follows:
geohash ('latitude', 'longitude', weight) equation (1)
In the formula (1), the weight value is a self-defined value, and the larger the weight value is, the larger the obtained coding length is, the larger the range represented by the coding length is.
S24: a plurality of hash blocks is generated based on the first hash-encoded value.
S24 is the same as S13 in the previous embodiment, and is not repeated here.
S25: and matching the first hash coding value corresponding to the hash block with a preset mapping table to obtain the first element related information matched with the first hash coding value.
The similarity between the first hash code value and the second hash code value can be calculated; then judging whether the similarity is greater than a preset similarity, wherein the preset similarity is a threshold value set according to experience or application requirements; and if the similarity is greater than the preset similarity, determining the second element related information matched with the second Hash code value as the first element related information.
In a specific embodiment, for example, in the case of fire-fighting service, two-dimensional coordinate points are represented by a string of character strings (i.e., hash values) through a geohash algorithm, and by comparing the similarity of the geohash values, nearby guard elements including fire-fighting organizations, fire stations, fire-fighting organization personnel, fire hydrants, and fire vehicles are searched to generate a guard force distribution map using the guard elements.
S26: and calculating the sum of the sub-evaluation values of each element in the first element related information corresponding to the hash block to obtain a first evaluation value.
Acquiring a sub-evaluation value of each element in the first element related information corresponding to the hash block; accumulating the sub-evaluation values to obtain a first evaluation value; specifically, each hash block may correspond to at least two weight values, and the sum of the sub-evaluation values of all elements of the hash block corresponding to the weight values is calculated to generate the first evaluation value.
In a specific embodiment, the first hash code value includes a first code value and a second code value, the hash block may be encoded by using a preset encoding function to obtain the first code value, the input parameter of the preset encoding function includes a longitude value, a latitude value and a first weight value, and the first weight value corresponds to the first code value; encoding the hash block by adopting a preset encoding function to obtain a second encoding value, wherein input parameters of the preset encoding function comprise a longitude value, a latitude value and a second weight value, and the second weight value corresponds to the second encoding value; judging whether the pre-set quantity bit characters in the first coding value are the same as the pre-set quantity bit characters in the second coding value or not; and if the pre-set number bit characters in the first coded value are the same as the pre-set number bit characters in the second coded value, determining that the first hash block is the same as the second hash block, wherein the first hash block is a hash block corresponding to the first weight value, and the second hash block is a hash block corresponding to the second weight value. For example, if the first encoded value is "101110", the second encoded value is "10111000", and the predetermined number is 5, the hash block corresponding to the first encoded value and the hash block corresponding to the second encoded value are considered to be the same hash block.
S27: and updating the first evaluation value based on the first evaluation value of the current hash block and the first evaluation values of the surrounding hash blocks to obtain a second evaluation value.
The peripheral hash blocks are hash blocks positioned around the current hash block, and the first evaluation value of the current hash block and the first evaluation values of all the peripheral hash blocks are subjected to weighted summation to obtain a third evaluation value; for each hash block, the sum of the third evaluation values corresponding to all the weight values is calculated, and a second evaluation value is generated.
In a specific embodiment, taking the fire-fighting security force distribution diagram as an example, assume that a fire fighter is 1 point (no longer available), a fire hydrant is 3 points, a fire engine is 6 points, and a mini fire station is 6 points; the first weight value is 0.8, and the hash block corresponding to the first weight value is marked as a geohash6 block; the second weight value is 0.6, and the hash block corresponding to the second weight value is marked as a geohash5 block.
1) A first evaluation value of each geohash6 block is calculated and then the evaluation value of each geohash6 block is diffused to the surrounding 8 geohash6 blocks to count a third evaluation value of each geohash6 block.
For example, as shown in fig. 3, assuming that the geohash6 blocks are denoted as G1-G9, and the corresponding first evaluation values are S1-S9, the corresponding first evaluation value of G5 is updated by the following formula to obtain a corresponding third evaluation value:
l1 ═ 0.8 × (S1+ S2+ S3+ S4+ S6+ S7+ S8+ S9) + S5 formula (2)
The first evaluation values corresponding to G1-G4 and G6-G9 are processed respectively in a calculation manner similar to that of formula (2), and then corresponding third evaluation values can be obtained.
2) A first evaluation value of each geohash5 block is calculated and then the evaluation value of each geohash5 block is diffused to the surrounding 8 geohash5 blocks to count a third evaluation value of each geohash5 block.
3) The third evaluation value of each geohash5 block is added to the third evaluation value of the corresponding geohash6 block to obtain a second evaluation value.
It is understood that different weight values can be set according to the types of the elements, such as: assume that the element types are denoted as K1-K2, K1 corresponds to two weight values P1 and P2, and K2 corresponds to two weight values P3 and P4, and the implementation is similar to the above embodiment, and will not be described herein again.
S28: based on the second evaluation value, a data thermodynamic diagram is generated.
And generating a plurality of image blocks corresponding to the hash blocks on the map corresponding to the latitude and longitude information, marking a second evaluation value on each image block, and generating a data thermodynamic diagram, wherein the image blocks corresponding to different second evaluation values have different colors. Specifically, each hash block generates 20 × 20 image blocks on the map, and the larger the second evaluation value in each image block is, the lighter the color of the image block is, and the higher the guard power is; the smaller the second evaluation value in each image block, the darker the color, and the weaker the guard force, such as: as shown in fig. 4, the area without the number in fig. 4 is an area without latitude and longitude information, and the allocation condition of the police strength can be visually seen through the image shown in fig. 4, so that the subsequent personnel and material scheduling is facilitated.
In the embodiment, a geohash coding function with required precision is calculated according to a geohash algorithm, and the longitude and latitude information is coded by adopting the geohash coding function, so that data comparison and storage are facilitated; and the statistical rules of the weighted values and the evaluation values of the hash blocks are formulated, so that the police strength distribution of a certain area can be greatly improved, and the police system can be conveniently connected according to the police strength distribution map, so that the police system can intelligently dispatch the police, and the intelligent, efficient and accurate police dispatch is realized.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an embodiment of a thermodynamic diagram generating device provided in the present application, a thermodynamic diagram generating device 50 includes a memory 51 and a processor 52 connected to each other, the memory 51 is used for storing a computer program, when the computer program is executed by the processor 52, the computer program is used for implementing a method for generating a data thermodynamic diagram in the foregoing embodiment, and the thermodynamic diagram generating device 50 may be a data platform.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an embodiment of a computer-readable storage medium 60 provided in the present application, where the computer-readable storage medium 61 is used for storing a computer program 61, and the computer program 61 is used for implementing a method for generating a data thermal diagram in the foregoing embodiment when being executed by a processor.
The computer-readable storage medium 60 may be a server, a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various media capable of storing program codes.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules or units is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are intended to be included within the scope of the present application.

Claims (10)

1. A method for generating a data thermodynamic diagram is characterized by comprising the following steps:
acquiring a first service data table, wherein the first service data table comprises longitude and latitude information of different places;
encoding the longitude and latitude information to obtain a first Hash encoding value;
generating a plurality of hash blocks based on the first hash code value;
matching a first hash code value corresponding to the hash block with a preset mapping table to obtain first element related information matched with the first hash code value, wherein the preset mapping table comprises second element related information of a plurality of elements and a second hash code value matched with the second element related information;
evaluating the related information of the first element to obtain a first evaluation value;
and generating a data thermodynamic diagram based on the first evaluation value.
2. The method of generating a data thermodynamic diagram according to claim 1, wherein the step of generating a plurality of hash blocks based on the first hash code value comprises:
dividing the places with the same first hash code value into the same hash block to obtain a plurality of hash blocks;
the step of evaluating the information related to the first element to obtain a first evaluation value includes:
acquiring a sub-evaluation value of each element in the first element related information corresponding to the hash block;
and accumulating the sub-evaluation values to obtain a first evaluation value.
3. The method of generating a data thermodynamic diagram according to claim 2, wherein the step of generating a data thermodynamic diagram based on the first evaluation value includes:
updating the first evaluation value based on the first evaluation value of the current hash block and the first evaluation values of surrounding hash blocks to obtain a second evaluation value, wherein the surrounding hash blocks are hash blocks positioned around the current hash block;
generating the data thermodynamic diagram based on the second evaluation value.
4. A method of generating a data thermodynamic diagram according to claim 3, the method further comprising:
encoding the hash block by adopting a preset encoding function to obtain the first hash encoding value, wherein input parameters of the preset encoding function comprise a longitude value, a latitude value and a weight value, and the weight value corresponds to the first hash encoding value;
calculating the sum of the sub-evaluation values of all elements of the hash block corresponding to each weight value to generate a first evaluation value;
weighting and summing the first evaluation value of the hash block corresponding to each weight value and the first evaluation values of the peripheral hash blocks to obtain a third evaluation value;
and calculating the sum of the third evaluation values corresponding to all the weighted values to generate the second evaluation value.
5. The method of generating a data thermal graph of claim 4, wherein the first hash code value comprises a first code value and a second code value, the method further comprising:
encoding the hash block by adopting a preset encoding function to obtain a first encoding value, wherein input parameters of the preset encoding function comprise a longitude value, a latitude value and a first weight value;
encoding the hash block by adopting a preset encoding function to obtain a second encoding value, wherein input parameters of the preset encoding function comprise the longitude value, the latitude value and a second weight value;
judging whether the pre-set quantity bit characters in the first coding value are the same as the pre-set quantity bit characters in the second coding value;
if so, determining that the hash block corresponding to the first weight value and the hash block corresponding to the second weight value are the same hash block.
6. A method of generating a data thermodynamic diagram according to claim 3, the method further comprising:
and generating a plurality of image blocks corresponding to the hash blocks on the map corresponding to the latitude and longitude information, and labeling the second evaluation values on the image blocks to generate the data thermodynamic diagram, wherein the image blocks corresponding to different second evaluation values are different in color.
7. The method for generating a data thermal diagram according to claim 1, wherein the step of matching the first hash code value corresponding to the hash block with a preset mapping table to obtain the information related to the first element matching the first hash code value includes:
calculating the similarity between the first hash code value and the second hash code value;
judging whether the similarity is greater than a preset similarity or not;
and if so, determining second element related information matched with the second hash code value as the first element related information.
8. The method for generating a data thermal diagram according to claim 1, wherein the step of obtaining a first service data table comprises:
selecting information of a set number of elements of the place from a third business data table to generate a second business data table;
and performing duplicate removal processing on the second service data table and/or removing dirty data in the second service data table to obtain the first service data table.
9. A thermodynamic diagram generation apparatus comprising a memory and a processor connected to each other, wherein the memory is used for storing a computer program, which when executed by the processor is used for implementing the method for generating a data thermodynamic diagram according to any one of claims 1-8.
10. A computer-readable storage medium for storing a computer program, characterized in that the computer program, when being executed by a processor, is adapted to carry out the method for generating a thermal map of data according to any of the claims 1-8.
CN202111580369.0A 2021-12-22 2021-12-22 Method and device for generating data thermodynamic diagram and computer readable storage medium Pending CN114461738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111580369.0A CN114461738A (en) 2021-12-22 2021-12-22 Method and device for generating data thermodynamic diagram and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111580369.0A CN114461738A (en) 2021-12-22 2021-12-22 Method and device for generating data thermodynamic diagram and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114461738A true CN114461738A (en) 2022-05-10

Family

ID=81405059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111580369.0A Pending CN114461738A (en) 2021-12-22 2021-12-22 Method and device for generating data thermodynamic diagram and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114461738A (en)

Similar Documents

Publication Publication Date Title
GB2537231A (en) System and method for determining a sequence for performing a plurality of tasks
CN111352808B (en) Alarm data processing method, device, equipment and storage medium
CN110300011B (en) Alarm root cause positioning method, device and computer readable storage medium
CN112287111B (en) Text processing method and related device
CN111553826B (en) Smart city data processing method
CN106815062A (en) A kind of business pipelined data processing method and processing device
CN110175438A (en) Share account detection method and relevant device
CN113706182B (en) User classification method and device
CN111724098B (en) Information display method and system, electronic equipment and storage medium
CN114461738A (en) Method and device for generating data thermodynamic diagram and computer readable storage medium
CN111553600B (en) Big data-based smart city business distribution system
EP3759665A1 (en) Multi-dimensional organization of data for efficient analysis
CN114022184A (en) Data management method and device, electronic equipment and storage medium
CN112800242B (en) Pedigree mining method, pedigree mining device, electronic equipment and computer-readable storage medium
CN113590276A (en) Information pushing method and related product
CN110489568B (en) Method and device for generating event graph, storage medium and electronic equipment
CN113222778A (en) Method, electronic device and storage medium for power network adaptation analysis
CN106804039A (en) User security index acquisition methods and device
CN114049042B (en) Risk area analysis method, device, equipment and medium based on artificial intelligence
CN113076317B (en) Big data-based data processing method, device, equipment and readable storage medium
CN110648208B (en) Group identification method and device and electronic equipment
CN114282674A (en) Employee state prediction method and device, electronic equipment and computer readable medium
CN113554281A (en) Grid-based user business risk analysis method and device and electronic equipment
Zheleva et al. Community detection in cellular network traces
CN115796945A (en) Electronic ticket processing method, electronic ticket server, electronic device and storage medium

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