Method, device, equipment and medium for matching Internet of Things perception data with spatial model
Through the code element consistency detection of Beidou grid position codes, the problems of computational complexity and low efficiency in matching IoT sensing data and spatial models are solved, accurate automatic matching is achieved, and matching efficiency and reliability are improved.
Patent Information
- Application Number
- CN202310153596.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-17
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2043-02-17
AI Technical Summary
Existing methods for matching IoT sensing data and spatial models are computationally complex, inefficient, and unreliable, making it difficult to achieve accurate matching and synchronization of massive data.
By determining the location code information of the IoT sensing data and spatial model, and performing code element consistency detection on the Beidou grid position code, and using the code element consistency results as matching rules, the target IoT sensing data and the target space model can be accurately matched. match.
It improves the matching efficiency between IoT sensing data and spatial models, realizes automatic matching when the calculation results are more accurate, and enriches the existing automatic matching method system.
Smart Images

Figure CN116137629B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, equipment and medium for matching Internet of Things perception data with a spatial model. Background Art
[0002] With the operation of digital twin cities and digital twin factories, massive amounts of IoT perception data are generated, which also gives rise to applications based on spatial model integration.
[0003] In order to associate the IoT perception data with the component-level, system-level, and architecture-level spatial models of cities, factories, etc., synchronize them in real time, realize the comprehensive integration of massive data, tap the true potential value of data, and build a new management model for digital twin cities and digital twin factories, it is necessary to first match and integrate the IoT perception data with the spatial model.
[0004] Regarding the matching of IoT perception data and spatial models, although manual matching can be achieved based on the type and name of the IoT perception device and the name information of the spatial model, the efficiency of manual matching is low. Regarding the matching of IoT perception data and spatial models, although the data description semantic information and the spatial relationship information of the coordinate position can be used as the link to achieve automatic matching of IoT perception data and spatial models, it will also increase the computational complexity and reduce the efficiency. Summary of the invention
[0005] The present invention provides a method, device, equipment and medium for matching Internet of Things perception data with a spatial model, so as to solve the problems of complex calculation, low efficiency and low reliability of the existing matching method.
[0006] According to one aspect of the present invention, a method for matching IoT perception data with a spatial model is provided, the method comprising:
[0007] Determine location code information of at least one target IoT sensing data and location code information of at least one target space model data, where the location code information is represented by a Beidou grid location code;
[0008] The code elements in the location code information of the target IoT sensing data and the code elements in the location code information of the target spatial model data are tested for code element consistency. The code element consistency is determined from left to right to determine whether the code elements in the same position are equal. The determination is stopped when the first inequality occurs. The number of equal code elements is summarized. The more the number of equal code elements is, the higher the code element consistency is. The code element consistency relationship is used as the matching rule.
[0009] The matching result between the target IoT perception data and the target space model data is determined based on the code element consistency result.
[0010] According to another aspect of the present invention, a device for matching IoT perception data with a spatial model is provided, the device comprising:
[0011] A code information determination module, used to determine the location code information of at least one target IoT sensing data and the location code information of at least one target space model data, where the location code information is represented by a Beidou grid location code;
[0012] A quantity determination module is used to perform code element consistency detection on the code elements in the position code information of the target IoT sensing data and the code elements in the position code information of the target space model data. The code element consistency is determined from left to right to determine whether the code elements in the same position are equal. The determination is stopped when the first inequality occurs. The number of equal code elements is summarized. The more the number of equal code elements is, the higher the code element consistency is. The code element consistency relationship is used as a matching rule.
[0013] The matching result determination module is used to determine the matching result between the target IoT perception data and the target space model data according to the code element consistency result.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to at least one processor; wherein,
[0017] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the method for matching Internet of Things perception data and spatial models according to any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for matching Internet of Things perception data with a spatial model according to any embodiment of the present invention when executed.
[0019] According to the technical solution of the present invention, by determining the location code information of at least one target Internet of Things perception data and the location code information of at least one target space model data, and performing code element consistency detection on the determined location code information, the target Internet of Things perception data and the target space model data can be automatically positioned more accurately, and the matching result between the target Internet of Things perception data and the target space model data is determined based on the code element consistency result, so that the target Internet of Things perception data and the target space model data can be automatically matched when the calculation result is relatively accurate, thereby improving the matching efficiency of the Internet of Things perception data and the space model data, and enriching the existing automatic matching method system.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.
[0022] Figure 1 This is a flow chart of a method for matching IoT perception data with a spatial model provided according to Embodiment 1 of the present invention;
[0023] Figure 2 is a schematic diagram of a data identifier format applicable to an embodiment of the present invention;
[0024] Figure 3 is a flow chart of another method for matching IoT perception data with a spatial model provided in Embodiment 2 of the present invention;
[0025] Figure 4 An embodiment of the present invention provides a structural block diagram of a device for matching IoT perception data with a spatial model;
[0026] Figure 5 It is a structural schematic diagram of an electronic device for implementing the method for matching Internet of Things perception data and spatial models according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Embodiment 1
[0030] Figure 1 A flowchart of a method for matching IoT sensing data with a spatial model is provided for the first embodiment of the present invention. This embodiment is applicable to the case where there are multiple IoT sensing data and spatial models, and accurate and automatic matching is achieved. The method can be performed by an IoT sensing data and spatial model matching device, which can be implemented in the form of hardware and / or software, and can be configured in any electronic device with network communication function. Figure 1 As shown, the method includes:
[0031] S110. Determine location code information of at least one target IoT perception data and location code information of at least one target space model data, where the location code information is represented by a Beidou grid location code.
[0032] IoT perception data can be collected through the IoT and sensors or perception terminals, with time stamps and records reflecting the state of the perception object. IoT perception data types include but are not limited to surrounding environment data, operating status data, and structural deformation data. Among them, surrounding environment data can be monitoring data such as the natural environment and safety environment where the perception object is located, such as wind speed and direction, temperature and humidity, combustible gas and pollutant concentrations. Operating status data can be state data such as the traffic, accommodation, availability and controllability presented during the operation of the perception object, such as pressure and energy consumption. Structural deformation data can be deformation, movement, speed and other change data presented during the operation of the perception object, such as tilt, settlement, vibration and stress.
[0033] The target IoT perception data may be IoT perception data that will participate in the spatial model matching. The target spatial model data may be spatial model data that will participate in the matching with the target IoT perception data.
[0034] Spatial model data can be a digital expression of a physical space object, reflecting information such as the spatial position, geometry, texture, and attributes of the object. Spatial model data types include, but are not limited to, geometry types and description object types. Among them, geometry types include, but are not limited to, point, line, surface, and body. Description object types include, but are not limited to, equipment models, production line models, workshop models, factory models, building models, transportation facility models, water system models, vegetation models, and site models.
[0035] The location code information can be used to represent the location information collected by the IoT sensing data and the spatial model data. The Beidou grid location code can be a discrete, multi-scale regional location identification system developed on the basis of the GeoSOT earth space partition theory. It can give a globally unique one-dimensional integer code to any grid of various sizes with a maximum accuracy of 1.5 cm in the earth space from the center of the earth to 60,000 kilometers above the ground, and can establish an intrinsic correlation with any physical object and various different data within the same area.
[0036] Among them, Table 1 shows the core data fields contained in the IoT perception data.
[0037] Table 1
[0038]
[0039] Among them, Table 2 is the core data fields contained in the spatial model data
[0040] Table 2
[0041]
[0042] At least one target IoT perception data to be matched with the spatial model and at least one target spatial model data to be matched with the spatial model are determined from the IoT perception data and the spatial model data stored in the database. According to the fields recorded in Table 1 and Table 2, the corresponding location code information is extracted from the area of the location code information recorded in the at least one target IoT perception data and the at least one target spatial model data.
[0043] In an optional solution, determining the location code information of at least one target IoT sensing data and the location code information of at least one target space model data may include steps A1-A4:
[0044] Step A1: determine at least one target IoT perception data and at least one target space model data, where the IoT perception data has a time identifier for reflecting the state of the perception object, and the space model data is used to reflect the spatial position, geometric shape and texture of the perception object.
[0045] Step A2: If the target IoT perception data and / or the target space model data carry the Beidou grid location code of the same dimension, the Beidou grid location code of the same dimension carried by each of them is used as the location code information of the target IoT perception data and the location code information of the target space model data; wherein the location code information is a Beidou two-dimensional grid location code or a Beidou three-dimensional grid location code.
[0046] Step A3: If the dimensions of the Beidou grid location code carried in the target Internet of Things perception data and / or the target space model data are different, the Beidou three-dimensional grid location code in the target Internet of Things perception data or the target space model data is converted into a Beidou two-dimensional grid location code to obtain the location code information of the target Internet of Things perception data and the location code information of the target space model data.
[0047] Step A4: If the target IoT perception data and / or target space model data do not carry the Beidou grid location code, the coordinate data carried by the target IoT perception data and the target space model data are converted into corresponding location code information according to the preset coordinate conversion method, and the dimensions of the Beidou grid location code in the location code information of the target IoT perception data and the target space model data are made the same.
[0048] Since the stored IoT sensing data and spatial model data may contain different Beidou grid location codes or may not contain Beidou grid location codes, after determining at least one target IoT sensing data to be spatially model matched and at least one target spatial model data to be spatially model matched from the IoT sensing data and spatial model data stored in the database, it is necessary to adjust various situations of whether the Beidou grid location code is included and whether the included Beidou grid location code is the same.
[0049] When the target Internet of Things perception data and / or the target space model data both carry a Beidou two-dimensional grid location code or a Beidou three-dimensional grid location code, it means that the target Internet of Things perception data and / or the target space model data can use the Beidou two-dimensional grid location code or the Beidou three-dimensional grid location code they carry as the location code information of the target Internet of Things perception data and the location code information of the target space model data.
[0050] When the target Internet of Things perception data and / or the target space model data both have Beidou grid location codes but the dimensions of the Beidou grid location codes are different, due to the characteristics of the Beidou grid location code itself, the Beidou three-dimensional grid location code can be converted into a Beidou two-dimensional grid location code through calculation, so that the target Internet of Things perception data and the target space model data both have Beidou two-dimensional grid location codes with the same dimension, thereby obtaining the location code information of the target Internet of Things perception data and the location code information of the target space model data.
[0051] When the target IoT perception data and / or the target space model data do not carry the Beidou grid location code but have the coordinate data, the coordinate data can be converted according to the preset coordinate conversion Beidou grid location code method to obtain the Beidou grid location code corresponding to the coordinate data, and the Beidou grid location code converted according to the coordinate data will make the target IoT perception data and the Beidou grid location code of the target space model data have the same dimension. At this time, the converted Beidou grid location code is used as the location code information in the target IoT perception data and / or the target space model data.
[0052] In an optional solution, determining at least one target IoT sensing data and at least one target space model data may include steps A11-A12:
[0053] Step A11, determine the data attribute structure of the acquired source data, extract the attribute information corresponding to the source data according to the data attribute structure of the source data, and perform data identification operation on the source data according to the data identifier format, wherein each row of data record is assigned a unique data identifier.
[0054] Step A12: Divide the source data to obtain at least one target Internet of Things perception data and at least one target space model data.
[0055] The data attribute structure may be used to describe the meanings of different fields in the source data. The data identifier may be data used to uniquely identify an array. The source data may be IoT perception data or spatial model data that has not been subjected to operations such as data extraction.
[0056] After determining the data attribute structure in Table 1 and Table 2, the meanings represented by different data segments in the source data can be determined, and the locations of data representing different meanings in the source data can be determined. Therefore, after determining the data attribute structure in Table 1 and Table 2, the corresponding attribute information in the source data can be determined and extracted.
[0057] After dividing the source data to obtain at least one target IoT perception data and at least one target space model data, the target IoT perception data and the target space model data can be associated with each other according to their corresponding attribute information and stored in a database respectively.
[0058] Figure 2 Schematic diagram of a data identifier format applicable to an embodiment of the present invention. Figure 2 , the data identifier adopts the three-segment ten-digit rule, and the description rules are as follows:
[0059] The first paragraph uses an Arabic numeral to represent the data content classification of the data, which are IoT perception data and spatial model data.
[0060] The second paragraph uses two Arabic numerals to represent the subcategory of the data content.
[0061] The third segment uses seven Arabic numerals to represent the sequence number of the data element.
[0062] in, Figure 2 The data identifier method represented is only one of the representation methods, and the present invention is not limited to this.
[0063] S120. Perform code element consistency detection on the code elements in the location code information of the target IoT perception data and the code elements in the location code information of the target space model data. Code element consistency includes determining the number of the same location code elements in the two Beidou grid location codes when the same location code elements are equal from left to right.
[0064] After obtaining the location code information of the target IoT perception data and the location code information of the target space model data, the code elements in the location code information of the target IoT perception data and the location code information of the target space model data can be compared from left to right to determine whether the code elements in the same code element position are equal, until the code elements in the same position appear different, and the number of equal code elements is recorded.
[0065] By determining the location code information of at least one target IoT perception data and the location code information of at least one target space model data, and performing code element consistency detection, the location of the target IoT perception data and the target space model data can be determined more accurately.
[0066] S130. Determine the matching result between the target IoT perception data and the target space model data according to the code element consistency result.
[0067] After obtaining the code element consistency result, the matching degree of the code elements between the target IoT perception data and the target space model data can be determined based on the code element consistency result, and then the matching result between the target IoT perception data and the target space model data can be determined based on the matching degree.
[0068] According to the technical solution of the embodiment of the present invention, by determining the location code information of at least one target Internet of Things perception data and the location code information of at least one target space model data, and performing code element consistency detection, the target Internet of Things perception data and the target space model data can be more accurately determined in position, and the matching result between the target Internet of Things perception data and the target space model data is determined based on the code element consistency result, so that the target Internet of Things perception data and the target space model data can be automatically matched when the calculation result is relatively accurate, thereby improving the matching efficiency of the Internet of Things perception data and the space model data, and enriching the existing automatic matching method system.
[0069] Embodiment 2
[0070] Figure 3 This is a flowchart of another method for matching IoT perception data with a spatial model provided in the second embodiment of the present invention. Based on the above embodiment, this embodiment further optimizes the process of detecting the consistency of the code elements in the location code information of the target IoT perception data and the code elements in the location code information of the target spatial model data in the above embodiment, and determining the matching result between the target IoT perception data and the target spatial model data based on the code element consistency result. This embodiment can be combined with various optional solutions in one or more of the above embodiments. Figure 3 As shown, the method includes:
[0071] S210. Determine location code information of at least one target IoT perception data and location code information of at least one target space model data, where the location code information is represented by a Beidou grid location code.
[0072] S220. For the target Internet of Things perception data in the at least one target Internet of Things perception data, filter and retain the target space model data that is matched with the target Internet of Things perception data in the at least one target space model data.
[0073] Since the target space model data has a large amount of data, the computing pressure on the computing device is too large when calculating it, and the amount of data is also too large. Therefore, it is necessary to filter the target space model data to reduce the amount of data required for calculation, thereby reducing the computing pressure on the computing device and reducing the time required for calculation by the computing device.
[0074] In an optional solution, the target space model data that is matched with the target Internet of Things sensing data in at least one target space model data is screened and retained, including:
[0075] Filter out target space model data that meets a preset screening condition from at least one target space model data, and determine it as the target space model data to be matched with the target Internet of Things perception data;
[0076] Among them, the preset screening conditions include the spatial relationship and / or dependency relationship that must be satisfied for the matching between the IoT perception data and the spatial model data.
[0077] Among them, the spatial relationship is to construct a sphere with the coordinate point of the IoT perception data as the center and the specified distance as the radius, calculate the spatial relationship between the sphere and the spatial model, and use the spatial relationship as inseparable as the screening condition. Dependency relationship: Determine the attachment dependency relationship between the IoT perception data and the spatial model according to common sense cognitive relationships, internal and external, overall and local, etc., and use the satisfaction of the dependency relationship as the screening condition.
[0078] The preset filtering condition may be a pre-set condition for filtering the target space model data.
[0079] Because all target space model data need to be matched one by one when the target IoT perception data is matched with the target space model data, the amount of data that needs to be calculated when the computing device performs matching calculations is too large, which in turn causes excessive computing pressure on the computing device and takes a long time to calculate.
[0080] In order to avoid the above problems as much as possible, preset filtering conditions are set in advance, and the target space model data in at least one target space model data are filtered one by one according to the preset filtering conditions to determine the target space model data that meets the preset filtering conditions and determine it as the target space model data to be matched with the target Internet of Things perception data.
[0081] S230. Obtain a code element consistency result by detecting from left to right whether the code elements at the same position in the position code information of the target IoT perception number and the target space model data are equal.
[0082] In an optional solution, the code element consistency result is obtained by detecting whether the same position code elements in the position code information of the target IoT perception data and the target space model data are equal from left to right, which may include steps B1-B2:
[0083] Step B1: Check from left to right whether the same position code elements in the position code information of the target IoT perception data and the position code information of the target space model data are equal.
[0084] Step B2: Count the number of identical position code elements that have appeared in the position code information of the target IoT perception data and the target space model data when the identical position code elements appear unequally.
[0085] After obtaining the location code information of the target IoT sensing data and the location code information of the target spatial model data, the code elements of the location code information of the two are compared in order from left to right, and the code elements at the same position are judged to be equal. The comparison is stopped when the code elements at the same position are not equal for the first time during the comparison process, and the number of identical code elements in the comparison process is counted.
[0086] Exemplarily, referring to Table 3, there are two groups of data, Group A and Group B, with Beidou three-dimensional grid location codes. The consistency of the position code symbols of Group A data is 23, and the consistency of the position code symbols of Group B data is 26. The consistency of the position code symbols of Group B data is high.
[0087] Table 3
[0088]
[0089] For example, referring to Table 4, there are two groups of data, Group C and Group D, which have Beidou two-dimensional grid location codes (i.e., they do not have Beidou three-dimensional grid location codes at the same time). The consistency of the data position code symbols of Group C is 18, and the consistency of the data position code symbols of Group D is 16. The consistency of the data position code symbols of Group D is high.
[0090] Table 4
[0091]
[0092] S240. Determine the total number of code elements of the Beidou grid location code in the location code information of the target Internet of Things perception data and the target space model data.
[0093] S250. Calculate the degree of match between the target IoT perception data and at least one target space model data based on the code element consistency result and the total number of code elements of the Beidou grid location code.
[0094] Since the location code information in the target IoT perception data and the target space model data may have different total numbers of code elements due to different dimensions of the Beidou grid location code in the location code information, it is necessary to count the total number of code elements of the Beidou grid location code in the location code information of the target IoT perception data and the at least one target space model data before determining the matching degree between the target IoT perception data and the at least one target space model data, and calculate the matching degree between the target IoT perception data and the at least one target space model data according to formula (1).
[0095] Matching degree = code element consistency / total number of Beidou grid position code elements × 100% (1)
[0096] Wherein, when calculating the matching degree for the Beidou three-dimensional grid location code, the total number of Beidou grid location code elements is 32; when calculating the matching degree for the Beidou two-dimensional grid location code, the total number of Beidou grid location code elements is 20.
[0097] For example, the matching degree of group B data = 26 / 32×100% = 81.25%. The matching degree of group C data = 18 / 20×100% = 90%.
[0098] Since when matching code elements, only when there are code elements below the preset threshold that are the same, there will still be a large error. For example, taking the Beidou two-dimensional grid location code as an example, the first six code elements are the same, and the seventh bit is different, which only means that the group of data to be matched is within the 55.66 km grid (the approximate scale of the grid at the equator), so there is no possibility of matching.
[0099] Therefore, when judging the matching degree, if the number of identical code elements is lower than a preset threshold, it will be determined that the two are not likely to match.
[0100] Among them, when the IoT perception data and the spatial model data have the Beidou three-dimensional grid location code at the same time, the code element consistency is calculated for the Beidou three-dimensional grid location code to ensure that at least the first 18 code elements are the same.
[0101] When the IoT perception data and the spatial model data do not have the Beidou three-dimensional grid location code at the same time, the code element consistency is calculated for the Beidou two-dimensional grid location code to ensure that at least the first 12 code elements are the same.
[0102] By determining the total number of code elements and calculating the matching degree between the target Internet of Things perception data and at least one target space model data based on the code element consistency result and the total number of code elements of the Beidou grid location code, it is possible to perform relatively accurate and clear calculations when determining the matching degree between the target Internet of Things perception data and at least one target space model data in the case of Beidou grid location codes with different dimensions, thereby obtaining a relatively accurate matching degree.
[0103] S260: Determine a matching result between the target IoT perception data and the target space model data based on a matching degree with at least one target space model data.
[0104] After obtaining the matching degree between the target Internet of Things perception data and at least one target space model data, the calculation result of the matching degree can be used as the matching result between the target Internet of Things perception data and the target space model data.
[0105] In an optional solution, determining the matching result between the target IoT sensing data and the target space model data according to the matching degree between the target IoT sensing data and the target space model data may include steps C1-C2:
[0106] Step C1: Filter out target space model data having the highest matching degree with target IoT sensing data from at least one target space model data according to the matching degree with at least one target space model data.
[0107] Step C2: Establish a matching relationship between the data identifier of the target space model data with the highest matching degree and the data identifier of the corresponding target Internet of Things perception data according to the calculated matching degree.
[0108] Since the matching degree between the target IoT perception data and at least one target space model data needs to be calculated when calculating the matching degree, at least one matching degree is calculated. Therefore, the target space model data with the highest matching degree is selected from the at least one matching degree calculated as the data matching the target IoT perception data, and then the data identifier of the target space model data with the highest matching degree and the data identifier of the corresponding target IoT perception data and the matching degree between the two are stored in the database.
[0109] Optionally, see Table 5. The matching relationship can be divided into 4 levels, and the corresponding matching degrees are shown in Table 5. The matching result is represented by a triple of <entity 1, matching relationship, entity 2>, where entity 1 refers to the IoT perception data identifier, the matching relationship includes safe matching, good matching, general matching, and poor matching, and entity 2 refers to the spatial model data identifier. The matching results are stored in a relational database.
[0110] Table 5 Matching relationship levels and their corresponding matching degrees
[0111]
[0112] According to the technical solution of the embodiment of the present invention, by screening and retaining the target space model data that participates in the matching of the target Internet of Things perception data in at least one target space model data, the amount of data required for calculation is reduced, thereby reducing the calculation pressure of the computing device and reducing the time required for the computing device to calculate. By determining the total number of code elements and calculating the matching degree between the target Internet of Things perception data and at least one target space model data based on the code element consistency result and the total number of code elements of the Beidou grid location code, it is possible to determine the matching degree between the target Internet of Things perception data and at least one target space model data, and still be able to perform a relatively accurate and clear calculation in the case of Beidou grid location codes of different dimensions, thereby being able to obtain a relatively accurate matching degree.
[0113] Embodiment 3
[0114] Figure 4 The present invention provides a structural block diagram of a device for matching IoT sensing data with a spatial model. This embodiment is applicable to the case where there are multiple IoT sensing data and spatial models, and accurate and automatic matching is achieved. The device for matching IoT sensing data with a spatial model can be implemented in the form of hardware and / or software, and can be configured in an electronic device with data processing capabilities. Figure 4 As shown, the IoT sensing data and space model matching device of this embodiment may include: a code information determination module 310, a quantity determination module 320 and a matching result determination module 330. Among them:
[0115] A code information determination module 310 is used to determine the location code information of at least one target IoT sensing data and the location code information of at least one target space model data, where the location code information is represented by a Beidou grid location code;
[0116] The number determination module 320 is used to perform code element consistency detection on the code elements in the position code information of the target IoT sensing data and the code elements in the position code information of the target space model data. The code element consistency is determined from left to right in sequence to determine whether the code elements in the same position are equal. The determination is stopped when the first inequality occurs. The number of equal code elements is summarized. The more the number of equal code elements is, the higher the code element consistency is. The code element consistency relationship is used as a matching rule.
[0117] The matching result determination module 330 is used to determine the matching result between the target IoT perception data and the target space model data according to the code element consistency result.
[0118] Based on the above embodiment, optionally, the code information determination module 310 includes:
[0119] A data determination unit, configured to determine at least one target IoT perception data and at least one target space model data, wherein the IoT perception data has a time identifier for reflecting the state of the perception object, and the space model data is used to reflect the spatial position, geometric form, and texture of the perception object;
[0120] A code information determination unit, for, if the target Internet of Things perception data and / or the target space model data carry a Beidou grid location code of the same dimension, using the Beidou grid location code of the same dimension carried by each as the location code information of the target Internet of Things perception data and the location code information of the target space model data; wherein the location code information is a Beidou two-dimensional grid location code or a Beidou three-dimensional grid location code;
[0121] A location code determination unit is used to convert the Beidou three-dimensional grid location code in the target Internet of Things perception data or the target space model data into a Beidou two-dimensional grid location code if the dimensions of the Beidou grid location code carried in the target Internet of Things perception data and / or the target space model data are different, so as to obtain the location code information of the target Internet of Things perception data and the location code information of the target space model data;
[0122] A data conversion unit is used to convert the coordinate data carried by the target Internet of Things perception data and the target space model data into corresponding location code information according to a preset coordinate conversion method if the target Internet of Things perception data and / or the target space model data do not carry a Beidou grid location code, and make the dimensions of the Beidou grid location code in the location code information of the target Internet of Things perception data and the target space model data the same.
[0123] Based on the above embodiment, optionally, the data determination unit includes:
[0124] The data extraction subunit is used to determine the data attribute structure of the acquired source data, extract the attribute information corresponding to the source data according to the data attribute structure of the source data, and perform data identification operations on the source data according to the data identifier format, wherein each row of data record is assigned a unique data identifier
[0125] The source data division subunit is used to divide the source data to obtain at least one target Internet of Things perception data and at least one target space model data.
[0126] Based on the above embodiment, optionally, the quantity determination module 320 includes:
[0127] A data screening unit, configured to screen and retain, for target Internet of Things perception data in at least one target Internet of Things perception data, target space model data that matches the target Internet of Things perception data in at least one target space model data;
[0128] The code element detection unit is used to obtain a code element consistency result by detecting from left to right whether the code elements at the same position in the position code information of the target Internet of Things perception number and the target space model data are equal.
[0129] Based on the above embodiment, optionally, the data screening unit is specifically used to:
[0130] Filter out target space model data that meets a preset screening condition from at least one target space model data, and determine it as the target space model data to be matched with the target Internet of Things perception data;
[0131] Among them, the preset screening conditions include the spatial relationship and / or dependency relationship that must be satisfied for the matching between the IoT perception data and the spatial model data.
[0132] Based on the above embodiment, optionally, the symbol detection unit includes:
[0133] A code element judgment subunit is used to detect whether the code elements at the same position in the position code information of the target IoT sensing data and the position code information of the target space model data are equal from left to right;
[0134] The quantity statistics subunit is used to count the number of identical position code elements that have appeared in the position code information of the target Internet of Things perception data and the target space model data when the identical position code elements appear unequally.
[0135] Based on the above embodiment, optionally, the matching result determination module 330 includes:
[0136] A code element total number determination unit, used to determine the total number of code elements of the Beidou grid location code in the location code information of the target IoT perception data and the target space model data;
[0137] A matching degree determination subunit, used to calculate the matching degree between the target IoT perception data and at least one target space model data according to the code element consistency result and the total number of code elements of the Beidou grid location code;
[0138] The matching result determination subunit is used to determine the matching result between the target Internet of Things perception data and the target space model data based on the matching degree between the target space model data and at least one target space model data.
[0139] Based on the above embodiment, optionally, the matching result determination subunit is specifically used to:
[0140] Filtering the target space model data having the highest matching degree with the target Internet of Things perception data from the at least one target space model data according to the matching degree with the at least one target space model data;
[0141] A matching relationship is established between the data identifier of the target spatial model data with the highest matching degree and the data identifier of the corresponding target IoT sensing data according to the calculated matching degree.
[0142] The Internet of Things perception data and spatial model matching device provided in the embodiment of the present invention can execute the Internet of Things perception data and spatial model matching method provided in any embodiment of the present invention mentioned above, and has the corresponding functions and beneficial effects of executing the Internet of Things perception data and spatial model matching method. For detailed process, please refer to the relevant operations of the Internet of Things perception data and spatial model matching method in the aforementioned embodiment.
[0143] Embodiment 4
[0144] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0145] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0146] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0147] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the method for matching IoT perception data with a spatial model.
[0148] In some embodiments, the method for matching IoT perception data with a spatial model may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for matching IoT perception data with a spatial model described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method for matching IoT perception data with a spatial model by any other appropriate means (e.g., by means of firmware).
[0149] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0150] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0151] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0152] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0153] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0154] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0155] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0156] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for matching IoT perception data with a spatial model, characterized in that: include: Determine location code information of at least one target IoT sensing data and location code information of at least one target space model data, wherein the location code information is represented by a Beidou grid location code; Perform code element consistency detection on the code elements in the position code information of the target IoT sensing data and the code elements in the position code information of the target space model data. The code element consistency is determined from left to right to determine whether the code elements in the same position are equal. The determination is stopped when the first inequality occurs. The number of equal code elements is summarized. The more the number of equal code elements is, the higher the code element consistency is. The code element consistency relationship is used as a matching rule. Determining a matching result between the target IoT perception data and the target space model data according to the code element consistency result; The code element consistency detection of the code element in the location code information of the target IoT sensing data and the code element in the location code information of the target space model data includes: For the target Internet of Things perception data in at least one target Internet of Things perception data, the target space model data in at least one target space model data that is matched with the target Internet of Things perception data is screened and retained; The code element consistency result is obtained by detecting whether the same position code elements in the position code information of the target IoT perception data and the target space model data are equal from left to right, and the number of identical code elements accumulated when the same position code elements are different for the first time.
2. The method according to claim 1, characterized in that Determining location code information of at least one target Internet of Things sensing data and location code information of at least one target space model data includes: Determine at least one target IoT perception data and at least one target space model data, wherein the IoT perception data has a time identifier for reflecting the state of the perception object, and the space model data is used to reflect the spatial position, geometric shape and texture of the perception object; If the target IoT perception data and the target space model data carry Beidou grid location codes of the same dimension, the Beidou grid location codes of the same dimension carried by each are used as the location code information of the target IoT perception data and the location code information of the target space model data; wherein the location code information is a Beidou two-dimensional grid location code or a Beidou three-dimensional grid location code; If the dimensions of the Beidou grid location code carried in the target IoT perception data and the target space model data are different, the Beidou three-dimensional grid location code in the target IoT perception data or the target space model data is converted into a Beidou two-dimensional grid location code to obtain the location code information of the target IoT perception data and the location code information of the target space model data; If the target IoT perception data and / or target space model data do not carry the Beidou grid location code, the coordinate data carried by the target IoT perception data and the target space model data are converted into corresponding location code information according to the preset coordinate conversion method, and the dimensions of the Beidou grid location code in the location code information of the target IoT perception data and the target space model data are made the same.
3. The method according to claim 2, characterized in that Determining at least one target Internet of Things perception data and at least one target space model data, including: Determine the data attribute structure of the acquired source data, extract the attribute information corresponding to the source data according to the data attribute structure of the source data, and perform data identification operation on the source data according to the data identifier format, wherein each row of data record is assigned a unique data identifier; The source data is divided to obtain at least one target Internet of Things perception data and at least one target space model data.
4. The method according to claim 1, characterized in that: The target space model data that is matched with the target Internet of Things sensing data in at least one target space model data is screened and retained, including: Filter out target space model data that meets a preset screening condition from at least one target space model data, and determine it as the target space model data to be matched with the target Internet of Things perception data; The preset screening conditions include the spatial relationship and / or dependency relationship that must be satisfied for the matching between the IoT perception data and the spatial model data.
5. The method according to claim 1, characterized in that The code element consistency result is obtained by detecting whether the same position code elements in the position code information of the target IoT perception data and the target space model data are equal from left to right, including: Check from left to right whether the same position code element in the position code information of the target IoT sensing data and the position code information of the target space model data is equal; When the number of identical position code elements is unequal, the number of identical position code elements that have appeared in the position code information of the target IoT perception data and the target space model data is counted.
6. The method according to claim 1, characterized in that Determining a matching result between the target IoT perception data and the target space model data according to the code element consistency result includes: Determine the total number of code elements of the Beidou grid location code in the location code information of the target Internet of Things perception data and the target space model data; Calculate the matching degree between the target IoT perception data and at least one target space model data according to the code element consistency result and the total number of code elements of the Beidou grid location code; A matching result between the target Internet of Things perception data and the target space model data is determined based on a matching degree with at least one target space model data.
7. The method according to claim 6, characterized in that Determining a matching result between the target IoT sensing data and the target space model data according to a matching degree with at least one target space model data includes: According to the matching degree with at least one target space model data, the target space model data having the highest matching degree with the target Internet of Things perception data is screened out from the at least one target space model data; A matching relationship is established between the data identifier of the target spatial model data with the highest matching degree and the data identifier of the corresponding target IoT sensing data according to the calculated matching degree.
8. A device for matching IoT perception data with a spatial model, characterized in that: include: A code information determination module, used to determine the location code information of at least one target IoT sensing data and the location code information of at least one target space model data, wherein the location code information is represented by a Beidou grid location code; A quantity determination module is used to perform code element consistency detection on the code elements in the position code information of the target IoT sensing data and the code elements in the position code information of the target space model data. The code element consistency is determined from left to right in turn to determine whether the code elements in the same position are equal. The determination is stopped when the first inequality occurs. The number of equal code elements is summarized. The more the number of equal code elements is, the higher the code element consistency is. The code element consistency relationship is used as a matching rule. A matching result determination module, used to determine the matching result between the target IoT perception data and the target space model data according to the code element consistency result; Wherein, the quantity determination module includes: A data screening unit, configured to screen and retain, for target Internet of Things perception data in at least one target Internet of Things perception data, target space model data in at least one target space model data that is matched with the target Internet of Things perception data; The code element detection unit is used to obtain the code element consistency result by detecting whether the code elements at the same position in the position code information of the target Internet of Things perception data and the target space model data are equal from left to right and the accumulated number of the same code elements when the code elements at the same position are different for the first time.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for matching Internet of Things perception data and spatial models according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for matching Internet of Things perception data and spatial models according to any one of claims 1 to 7 when executed.
