Open Access Paper
28 December 2022 Computing direction similarity based on two-layer domain graph
Qin Zong, Wenjing Wang, Hui Ju
Author Affiliations +
Proceedings Volume 12506, Third International Conference on Computer Science and Communication Technology (ICCSCT 2022); 125061U (2022) https://doi.org/10.1117/12.2662533
Event: International Conference on Computer Science and Communication Technology (ICCSCT 2022), 2022, Beijing, China
Abstract
A quantitative calculation model for the direction similarity of composite spatial objects is introduced in this paper. First, it quantifies the compound expression model, defines the distance between the domain map and direction slices suitable for the model; then, it uses the decomposition idea to decompose the composite spatial object, decompose the reference target, and the source target as a whole; finally, it uses the balanced transmission problem. The minimum element method is used to solve the distance between the direction relationship matrix of the compound expression model, and finally the similarity between the composite spatial objects is obtained. The directional similarity experiment of composite spatial objects at different scales proves the feasibility, and the results are in line with human cognition.

1.

INTRODUCTION

Map downsizing and updating are basically based on large-scale maps. When preparing and updating small-scale maps, the similarities between maps of different scales are often compared. As an important part of spatial similarity, directional similarity has always attracted the attention of scholars in the industry, including qualitative description model and quantitative measurement model of directional relationship1-11. Some of these models can only describe the directional relationship model qualitatively, and cannot calculate the similarity quantitatively; some are based on simple spatial objects for qualitative description and quantitative calculations, and less quantitative calculations for the similarity of composite spatial objects. This article studies a quantitative calculation model of the direction similarity of composite spatial objects based on the existing description model of the directional relationship.

2.

DIRECTIONAL RELATIONSHIP MATRIX OF COMPOSITE SPATIAL OBJECTS

2.1

Quantitative expression of compound expression model

Reference [4] integrated the cone model and the direction relationship matrix model to establish a compound expression model describing the qualitative direction relationship, but did not quantify the model. This article establishes the quantitative calculation method of the compound expression model based on the grid. First, the space is divided into 25 partitions by referring to the straight line where the smallest outer rectangle side of the target is located {NW, NNW, N, NNE, NE, WNW, TL, T, TR, ENE, W, L, Same, R, E, WSW, BL, B, BR, ESE, SW, SSW, S, SSE, SE}, corresponding to the 25 elements of the 5×5 order matrix, and then the space object. The area is divided into fixed-size grids, and the values of 25 elements are the proportions of the number of grids in the partition, as shown in equation (1).

00086_PSISDG12506_125061U_page_1_1.jpg

When calculating the total number of grids of a certain spatial object, those that are less than one full grid are also regarded as one grid; when calculating the number of grids in the direction slice, only those with more than half a grid are regarded as one grid. The compound expression model divides the space around the reference target more finely, which can avoid the ambiguity of the direction relationship caused by the size, distance and shape of the source target.

2.2.

Decomposition principles of composite spatial objects

When expressing and calculating the direction relationship of the composite spatial object, the direction relationship matrix of the compound expression model is introduced in the following situations, depending on whether or not the reference target A and the source target B are composite spatial objects.

2.2.1

The Reference Target Is a Composite Spatial Object.

When the reference target A is a composite spatial object composed of m single targets, the m single targets are used as the reference targets, and the directional relationship matrix between each single target and the source target is calculated, and then the m single targets are located. The number of grids occupied is weighted proportionally, and the direction relationship matrix between m single targets and the source target is summed, and finally the direction relationship matrix between the composite spatial object and the source target is obtained, namely

00086_PSISDG12506_125061U_page_2_1.jpg

where, DIR(Ai, B) is the direction relationship matrix between the i-th single target in the composite reference target and the source target pi, which is the ratio of the number of grids occupied by the i-th single target in the composite reference target.

2.2.2

The Source and Target Are Composite Spatial Objects.

When the source target B is a composite spatial object composed of n single targets, n single targets can be formed because in the compound expression model, the direction division of the reference target fully takes into account the shape, size and distance of the source target. The composite spatial object, as the composite source target, directly establishes the direction relationship matrix.

2.2.3

Both the Reference Target and the Source Target Are Composite Spatial Objects.

When the reference target A and the source target B are respectively a composite spatial object composed of m and n single targets, the reference target is divided into m single targets, and the composite spatial object composed of n single targets is regarded as a composite source target, the calculation method is the same as in Section 2.2.1.

3.

DIRECTIONAL SIMILARITY MEASUREMENT METHOD

After the directional relationship of the spatial objects is expressed by the directional relationship matrix, the directional similarity between two spatial objects is transformed into the similarity between the two directional relationship matrices, namely

00086_PSISDG12506_125061U_page_2_2.jpg

In the above equation, D is the direction relation matrix, and dmax is the maximum value of the domain map. Sim(A,B) represents the similarity between the reference target A and the source target B. Its value range is [0,1] (the larger the value, the more similar the directional relationship between A and B, and 1 means that the directional relationship is exactly the same). D0 represents the direction relationship matrix of the reference target A, and D1 represents the direction relationship matrix of the source target B. d(D0, D1) represents the distance between two directional relationship matrices.

There are 9 direction slices in the direction relation matrix model, and the directional distance can be calculated with 4 field maps and 8 field maps, but the difference between these two field maps and human cognition has been questioned by many scholars [5, 6]. Document 5 improves the directional distance between directional slices, and document 6 proposes a comprehensive field map. The direction slice of the compound expression model is 25. In order to calculate the directional distance, a two-layer domain map as shown in Figure 1 is established. The solid line indicates the distance is 1. From this, the reference distance between the 25 direction slices is calculated as shown in Figure 2. The distance from the centre piece to the direction piece on the horizontal and vertical axis of the inner layer is 1, and the distance to the direction piece on the diagonal of the inner layer is both 2. The distance to the direction piece on the horizontal and vertical axis of the outer layer is equal to 90°. It is 2, when the included angle is not 90°, it is 3, and the distance to the outer diagonal direction piece is 4. The distance between the directional pieces on the two ends of the diagonal line reaches the maximum value of 8, such as dc(NW, SE) = dc(SW, NE) = 8. The two-layer domain map is more detailed and distinguishable for the distance between the directional slices, and can identify 9 kinds of directional distance changes, namely {0, 1, 2, 3, 4, 5, 6, 7, 8}, which is more in line with humans actual cognitive habits.

Figure 1.

Two-tier field map.

00086_PSISDG12506_125061U_page_3_1.jpg

Figure 2.

The distance between the direction slices in the two-layer field map.

00086_PSISDG12506_125061U_page_3_2.jpg00086_PSISDG12506_125061U_page_4_1.jpg

4.

COMPARATIVE ANALYSIS OF CALCULATION EXAMPLES

In order to verify the applicability of the direction similarity calculation model in this article, the calculation and analysis are carried out according to the calculation example in Literature 7. Figure 3 shows the composite spatial object A and composite spatial object B in Document 7, where Figure 3a is the large-scale map before synthesis, Figures 3b and 3c are the small-scale maps after synthesis. The change in Figure 3c is that the surface composite spatial object B becomes a point composite spatial object. The difference between Figures 3b and 3c is the position of the single point targets of the composite spatial object. The first is to calculate the similarity between (b), (c) and (a) in Figure 3.

Figure 3.

The point and surface under the large scale are integrated into the point and point under the small scale.

00086_PSISDG12506_125061U_page_5_1.jpg

4.1

Representation of the direction relation matrix of the composite reference target

First, in Figure 3, the composite spatial object A is taken as the reference target, and the composite spatial object B is taken as the source target, which is represented by the direction relationship matrix based on the quantification of the compound expression model in this article. As shown in Figure 4, in order to decompose according to the idea of Section 2.2.3, it is required to divide the composite reference target A into 3 single reference targets ((b)-(d) in Figure 4), and then obtain the source target and each single reference separately. The matrices of directional relationships between targets are as follows.

Figure 4.

Division of composite reference target A.

00086_PSISDG12506_125061U_page_5_2.jpg

It is required to obtain the direction relationship matrix between each single reference target and the composite source target, as shown in Figure 5, synthesize the cone model and the direction relationship matrix model to establish a compound expression model reference system, and calculate a single reference system based on the number of grids in each direction slice. The direction relationship matrix between the reference target A1 and the source target B is as (4), the direction relationship matrix between the single reference target A2 and the source target B is as (5), and the direction relationship matrix between the single reference target A3 and the source target B is as (6).

Figure 5.

The establishment of a compound expression model reference system for each single target.

00086_PSISDG12506_125061U_page_5_3.jpg
00086_PSISDG12506_125061U_page_5_4.jpg
00086_PSISDG12506_125061U_page_6_1.jpg
00086_PSISDG12506_125061U_page_6_2.jpg

According to the grid proportion weight occupied by each single reference target, the direction relationship matrix between the composite reference target A and the composite source target B is calculated as equation (7):

00086_PSISDG12506_125061U_page_6_3.jpg

In the same way, the direction relation matrix of Figures 3b and 3c can be obtained as equations (8) and (9), respectively:

00086_PSISDG12506_125061U_page_6_4.jpg
00086_PSISDG12506_125061U_page_6_5.jpg

4.2

Calculation of similarity of composite reference target direction relationship

In order to compare and analyze the similarity between the large-scale map and the small-scale map, it is necessary to calculate the directional similarity of Figures 3a and 3b, and calculate the directional similarity of Figures 3a and 3c. Let’s take the calculation of direction similarity in Figures 3a and 3b as an example.

Step 1: The matrix difference ΔDir of the direction relation matrix is calculated, and the equation (10) is obtained.

00086_PSISDG12506_125061U_page_7_1.jpg

Step 2: A direction relationship matrix conversion problem table is constructed based on ΔDir, the direction slice corresponding to the positive element value is written into the left column of the box, and the corresponding positive element value is put in the right column of the box; the slices are written into the upper row of the box, and the absolute value of the corresponding negative element value is written into the lower row of the box; for the distance between the other squares in the table in the writing direction of the slices, please refer to Figure 2, ΔDir. The conversion problem table is shown in Figure 6:

Figure 6.

Table of transformation problems of directional relation matrix.

00086_PSISDG12506_125061U_page_7_2.jpg

Step 3: According to the calculation process of Figure 7, starting from the smallest distance value of the direction piece, the value of the positive and negative elements in the row and column is compared with the distance value of the direction piece as the intersection point, and then the smaller row (or column) is deleted. The element value outside the box becomes 0, and the intersecting column (or row) is subtracted from the element value corresponding to the deleted row (column), and the next smallest direction slice is processed in the same way. As shown in Figure 7, starting from the distance value of 2, the element value 4/342 in the corresponding row and column is smaller, the element value of this column becomes 0, and the element value 9/342 of the intersecting row is obtained by subtracting 4/342.5/342.

Figure 7.

The conversion process of the direction relation matrix conversion problem table.

00086_PSISDG12506_125061U_page_8_1.jpg

Step 4: The directional distance is calculated, the distance of the directional slice is multiplied where the transition occurs by the variable next to it, and then it is summed up.

00086_PSISDG12506_125061U_page_7_3.jpg

Step 5: The similarity of the direction relation matrix is calculated, dmax represents the maximum distance between the direction slices, the value of which is 8.

00086_PSISDG12506_125061U_page_8_2.jpg

In the same way, the directional similarity between Figures 3a and 3c is calculated to obtain

00086_PSISDG12506_125061U_page_8_3.jpg

The calculation results in this article also show that the directional similarity of Figures 3a and 3b is higher than the directional similarity of Figures 3a and 3c, which is consistent with human subjective visual cognition.

5.

CONCLUSION

This article quantifies the compound expression model, defines its domain map and the distance between each direction slice, uses the compound expression model to calculate the similarity of the composite spatial objects, and shows the feasibility of the method in this article through example calculations.

ACKNOWLEDGMENT

This article was funded by General project of Chongqing Natural Science Foundation (cstc2020jcyj-msxmX0979)

REFERENCES

[1] 

Zong, Q., Jiang, S. and Liu, Y., “Fuzzy similarity transformation and its measurement model in multi-scale vector maps,” Science of Surveying and Mapping, 43 (11), 72 –78 (2018). Google Scholar

[2] 

Wang, Z. and Yan, H., “An improved cone direction relationship model,” Geomatics and Information Science of Wuhan University, 39 (02), 186 –190 (2014). Google Scholar

[3] 

Li, P., Liu, J., Yan, H. and Lu, X., “Improved model of spatial direction similarity calculation based on direction relation matrix,” Journal of Surveying and Mapping Science and Technology, 35 (02), 216 –220 (2018). Google Scholar

[4] 

Wang, Z. and Yang, Y., “A compound expression model describing qualitative direction relations,” Journal of Image and Graphics, 19 (6), 979 –984 (2014). Google Scholar

[5] 

Gong, X., Xie, Z., Zhou, L. and He, Z., “Spatial direction similarity two-tuple model measurement method,” Journal of Surveying and Mapping, 1 –15 (2022). Google Scholar

[6] 

Li, J., Gong, X., Wu, F. and Huang, B., “An improved calculation model for the similarity of directional relationship between surface targets,” Geomatics and Information Science of Wuhan University, 41 (07), 925 –931+951 (2016). Google Scholar

[7] 

Chen, Z., Gong, X., Wu, L., et al., “Quantitative calculation model of directional similarity of composite spatial objects taking into account the difference in scale,” Journal of Surveying and Mapping, 45 (3), 362 –371 (2016). Google Scholar

[8] 

Chen, Z., Zhou, L., Gong, X., et al., “Quantitative calculation method of spatial similarity based on direction relation matrix,” Journal of Surveying and Mapping, 44 (7), 813 –821 (2015). Google Scholar

[9] 

Lu, X., Yan, H. and Wang, Z., “Modeling the spatial direction relationship of group targets,” Journal of Geo-Information Science, 20 (6), 721 –729 (2018). Google Scholar

[10] 

Lu, X., Yan, H., Wang, Z., et al., “Formal description model of group target spatial direction relations,” Science of Surveying and Mapping, 41 (8), 71 –75 (2016). Google Scholar

[11] 

Zong, Q., Liu, Y. and Zhang, H., “A direction similarity algorithm based on compound expression model,” Journal of Surveying and Mapping Science and Technology, 37 (01), 90 –95 (2020). Google Scholar
© (2022) COPYRIGHT Society of Photo-Optical Instrumentation Engineers (SPIE). Downloading of the abstract is permitted for personal use only.
Qin Zong, Wenjing Wang, and Hui Ju "Computing direction similarity based on two-layer domain graph", Proc. SPIE 12506, Third International Conference on Computer Science and Communication Technology (ICCSCT 2022), 125061U (28 December 2022); https://doi.org/10.1117/12.2662533
Advertisement
Advertisement
RIGHTS & PERMISSIONS
Get copyright permission  Get copyright permission on Copyright Marketplace
KEYWORDS
Composites

Chemical elements

Cognitive modeling

Cognition

Matrices

Integrated modeling

Systems modeling

Back to Top