Image analysis device, image analysis method and program

The image analysis device effectively clusters and evaluates building images by deriving attention maps, addressing the need for objective classification in historical townscapes.

JP2024117890AInactive Publication Date: 2024-08-30SAGA UNIVERSITY
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023023961
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-20
Publication Date
2024-08-30
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing technologies lack a suitable method for objectively analyzing and classifying building appearances in historical townscapes to facilitate landscape evaluation.

Method used

An image analysis device that acquires building images, clusters them using unsupervised learning, derives attention maps indicating the degree of attention to each part of the building, and adjusts clustering parameters based on evaluation data to improve accuracy.

Benefits of technology

Enables objective classification and evaluation of building images, allowing for precise grouping and assessment of historical townscapes based on architectural styles and eras.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024117890000001
    Figure 2024117890000001
Patent Text Reader

Abstract

To provide an image analysis device etc. which can suitably analyze a building image.SOLUTION: A clustering unit 102 clusters a building to one of a plurality of types of groups, by analyzing a feature point of a building image included in inputted image data. The clustering unit 102 inputs an analysis result in clustering to an attention map deriving unit 103. The attention map deriving unit 103 derives an attention map indicating an attention degree of each portion in the image of the building, when the clustering unit 102 clusters the building, on the basis of the analysis result inputted from the clustering unit 102. An output unit 104 outputs the inputted clustering result and attention map to the outside.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image analysis device, an image analysis method, and a program. [Background technology]

[0002] A method has been proposed for estimating changes in streetscapes by modeling each building in an area to be estimated together with the residents who live in the building (see, for example, Patent Document 1). In the technology described in Patent Document 1, the exterior appearance of a building is classified into one of several types in the process of modeling the building and its residents. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2015-7960 A Summary of the Invention [Problem to be solved by the invention]

[0004] For example, in landscape evaluation of historical streets, technology is needed to analyze the exterior appearance of buildings and to objectively classify and evaluate them.

[0005] The present invention has been made in consideration of the above-mentioned circumstances, and has an object to provide an image analysis device and the like that can suitably analyze architectural images. [Means for solving the problem]

[0006] In order to achieve the above object, an image analyzing apparatus according to the present invention comprises: An image acquisition unit that acquires image data including an image of a building; a clustering unit that analyzes feature points of buildings included in the image data acquired by the image acquisition unit and clusters the buildings into one of a plurality of groups; an attention map derivation unit that derives an attention map (including, for example, a heat map) indicating a degree of attention to each part of the building included in the image data when the clustering unit performs clustering; an output unit that outputs a clustering result by the clustering unit and the attention map derived by the attention map derivation unit; Equipped with.

[0007] The attention map derivation unit is generating a feature map showing the degree of attention in the image data by color coding; assigning a score to each color in the feature map; Segmenting the building portion in the image data; Combining the feature map and the result of the division to calculate an average score for each divided part; The attention map may be derived indicative of an average score for each of the portions.

[0008] an evaluation data acquisition unit that acquires evaluation data of the attention map; an adjustment unit that adjusts parameters of the clustering unit based on the evaluation data; The above configuration may be adopted.

[0009] The image acquisition unit may include an extraction unit that extracts an image of a building from the image.

[0010] In order to achieve the above object, the image analysis method of the present invention comprises: acquiring image data including an image of a building; Analyzing the characteristic points of buildings contained in the acquired image data, the buildings are clustered into one of a plurality of groups; deriving an attention map indicating the degree of attention to each part of the building included in the image data when the clustering is performed; The clustering result and the attention map are output.

[0011] In order to achieve the above object, the program of the present invention comprises: Computer, an image acquisition unit that acquires image data including an image of a building; a clustering unit that analyzes feature points of buildings included in the image data acquired by the image acquisition unit and clusters the buildings into one of a plurality of groups; an attention map derivation unit that derives an attention map indicating a degree of attention to each part of the building included in the image data when the clustering unit performs clustering; an output unit that outputs the clustering result by the clustering unit and the attention map derived by the attention map derivation unit; Function as. Effect of the Invention

[0012] According to the present invention, architectural images can be analyzed suitably. [Brief description of the drawings]

[0013] [Figure 1] 1 is a functional block diagram of an image analysis device according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram illustrating an example of a hardware configuration of an image analyzing device according to the present embodiment. [Diagram 3] 13 is a flowchart illustrating an example of an image analysis process. [Figure 4] FIG. 13 is a diagram illustrating an example of a process for deriving an attention map. [Diagram 5] (A1), (A2), (B1), and (B2) are examples of image data of buildings. [Figure 6] 13(A) to 13(D) are diagrams for explaining a method for deriving an attention map. [Figure 7] FIG. 13 is a diagram illustrating an example of an output of a clustering result. [Figure 8] FIG. 13 is a diagram showing an example of an output of the degree of attention for each part by cluster. [Figure 9]13 is a flowchart illustrating an example of a clustering unit adjustment process. [Figure 10] FIG. 13 is a diagram illustrating an image of tuning a clustering unit by reinforcement learning. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] An image analyzing device 10 according to an embodiment of the present invention will now be described with reference to the drawings, in which the same or corresponding parts are given the same reference numerals.

[0015] The image analysis device 10 according to the embodiment of the present invention is a device that captures image data of buildings such as traditional buildings and historical buildings, and analyzes the building images contained in the image data. Specifically, the image analysis device 10 analyzes the feature points of the building images contained in the captured image data by unsupervised learning, thereby clustering the buildings into one of a number of groups. Then, an attention map is derived that indicates the degree of attention to each part of the building image when the buildings are clustered. In this embodiment, a diagram that visualizes the degree of attention to each part of the image is called an attention map. Note that the attention map may be called by other names, such as a heat map.

[0016] 1 is a functional block diagram showing the functional configuration of an image analysis device 10. The image analysis device 10 includes an image acquisition unit 101, a clustering unit 102, an attention map derivation unit 103, an output unit 104, an evaluation data acquisition unit 105, and an adjustment unit 106.

[0017] The image acquisition unit 101 acquires image data including an elevation image of a building from the outside. In other words, the image acquisition unit 101 inputs the image data to the image analysis device 10. The image acquisition unit 101 inputs the acquired image data to the clustering unit 102.

[0018] The clustering unit 102 analyzes feature points of building images included in the input image data using a predetermined unsupervised learning algorithm, and clusters the buildings into one of a plurality of groups (clusters). The clustering unit 102 inputs the analysis results of the clustering to the attention map derivation unit 103. The clustering unit 102 also inputs the clustering results to the output unit 104.

[0019] The attention map derivation unit 103 derives an attention map indicating the degree of attention of each part in the image of the building when clustering is performed by the clustering unit 102, based on the analysis result input from the clustering unit 102. The attention map derivation unit 103 inputs the derived attention map to the output unit 104.

[0020] The output unit 104 outputs the input clustering result and attention map to the outside.

[0021] The evaluation data acquisition unit 105 acquires evaluation data of the attention map from an external source, and inputs the acquired evaluation data to the adjustment unit 106 .

[0022] The adjustment unit 106 adjusts the parameters of the clustering unit 102 based on the input evaluation data.

[0023] The image analyzing device 10 may have other configurations besides those described above.

[0024] Image analyzing device 10 may be configured with one or more physical information processing devices such as a mainframe, a workstation, or a personal computer (PC), or may be configured with a virtual information processing device that operates on a hypervisor, or may be configured with a cloud server. Image analyzing device 10 may also be a dedicated device.

[0025] 2 is a diagram showing an example of a hardware configuration of the image analyzing device 10. The image analyzing device 10 includes a processor 11 such as a central processing unit (CPU) or a graphical processing unit (GPU), a random access memory (RAM), a read only memory (ROM), a non-volatile memory, a hard disk drive (HDD) and / or a solid state drive (SSD), a memory card or other storage device 12, a communication interface 13 for wired or wireless communication, an input device 14 for accepting input operations, and an output device 15 for outputting information. The input device 14 is, for example, a keyboard, a touch panel, a mouse, and / or a microphone. The output device 15 is, for example, a display and / or a speaker.

[0026] The processor 11 reads a program stored in the storage device 12, and thereby operates as various functional units shown in FIG.

[0027] Next, a description will be given of the operation of the image analysis device 10. Fig. 3 is a flowchart showing an example of image analysis processing executed by the image analysis device 10. The processor 11 of the image analysis device 10 executes the image analysis processing by reading an operation program stored in the storage device 12.

[0028] In the image analysis process, first, the image data acquisition unit 101 of the image analysis device 10 acquires image data of the building elevation (step S11). Here, a plurality of image data are acquired in order to cluster the plurality of image data into one of a plurality of groups. The image data of the building elevation may be, for example, as shown in Figs. 5(A1) and (B1), image data of a traditional building is photographed, and the building portion is extracted by image processing such as trimming, and bias portions such as obstacles are removed and complemented, as shown in Figs. 5(A2) and (B2).

[0029] The image analysis device 10 of this embodiment aims to group traditional buildings with distinctive roofs, exterior walls, windows, doors, etc. by era and region, as shown in Fig. 5. Note that buildings other than traditional buildings may also be grouped.

[0030] The clustering unit 102 of the image analysis device 10 performs clustering on the image data of the elevations of the multiple buildings acquired by the image data acquisition unit 101 using a predetermined algorithm (step S12).

[0031] In step S12, the image data of the building elevation is clustered using, for example, ICC (Invariant Information Clustering), which is a method of image classification and segmentation in unsupervised learning. The number of clusters may be determined in advance according to the image data of the building elevation to be input. For example, the number is set according to the combination of roofs, exterior walls, windows, and doors.

[0032] In ICC, x', which is a pair of x, is generated based on the input image data x of a building elevation. Specifically, x' is generated by geometrically transforming x and changing its contrast. Then, x and x' are input to a neural network, and the network is trained to maximize the mutual information of the output (predicted cluster).

[0033] It should be noted that other algorithms may be used as the clustering algorithm, for example, an algorithm that automatically sets the number of clusters may be used.

[0034] Next, the attention map derivation unit 103 of the image analysis device 10 derives an attention map for each of the input image data (step S13).

[0035] 4 is a diagram showing an example of processing in step S13. In step S13, the attention map derivation unit 103 first generates a feature map for each input image data by using, for example, a Grand-CAM (Gradient-weighted Class Activation Mapping) algorithm to visualize the image data by color coding according to the degree of attention (degree of attention) of the image data during the clustering in step S12 (step S131).

[0036] For example, an example of a feature map generated based on image data of the building elevation shown in Fig. 6(A) is shown in Fig. 6(B). In Fig. 6(B), parts with a high degree of gaze are displayed in dark colors. In Fig. 6(B), it can be seen that the degree of gaze is high on windows and doors. Note that the feature map may be one that indicates the degree of gaze by differences in color, density, etc.

[0037] Next, the attention map derivation unit 103 assigns a score to each point (color) in the feature map (step S132). That is, the degree of attention for each point in the image data of the building is scored. The method of assigning the score may be any method that can assign a score to the degree of attention for each point (color). For example, the point (pixel) with the highest degree of attention and the darkest color is assigned 100 points, the point with the lowest degree of attention and the lightest color is assigned 0 points, and other points are relatively evaluated on a scale of 100 points. The numerical values ​​in FIG. 6(B) indicate the scores for each point. The image data may be divided into areas of a predetermined number of pixels, and the average score for each area may be calculated to assign a score to each area.

[0038] Next, the attention map derivation unit 103 divides each part of the building (roof, windows, doors, walls, etc.) in the image data of the building elevation by semantic segmentation (step S133). In step S133, semantic segmentation is performed on the image data of the building to extract parts of the building and label each part. FIG. 6(C) shows the result of performing semantic segmentation. Here, a description will be given assuming that the roof, windows, doors, and walls are extracted as parts of the building as shown in FIG. 6(C).

[0039] Then, the attention map derivation unit 103 combines (overlaps) the scored feature map (FIG. 6(B)) with the results of semantic segmentation (FIG. 6(C)) to calculate the average score for each part of the building (step S134). In this way, an attention map is derived in which the scores are superimposed on the results of semantic segmentation, as shown in FIG. 6(D) (step S135). In FIG. 6(D), the degree of attention to each part is shown in %.

[0040] Returning to Fig. 3, the output unit 104 of the image analysis device 10 outputs the clustering result by the clustering unit 102 in step S12 and the attention map derived by the attention map derivation unit 103 in step S13 (step S14). The output unit 104 displays the clustering result and the attention map on, for example, a display or the like as the output device 15. The output unit 104 may also output the clustering result and the attention map to a printer in response to a user operation. After that, the image analysis process ends.

[0041] FIG. 7 shows an example of the clustering result output. FIG. 7 shows the result of clustering into four clusters, clusters 1 to 4, as a result of executing image analysis processing on the image data of buildings a to h. Note that the number of sample image data and the number of clusters are just an example. Also, as shown in FIG. 7, the clustering result does not necessarily mean that buildings of the same shape are classified into the same cluster, but of course there are also cases where they are classified into different clusters.

[0042] The attention map is an image in which a building image is divided into parts and a score for each part is shown as shown in Fig. 6(D), and an attention map is output for each image data input to the image analysis device 10. This makes it possible to grasp the parts of the building included in each image data that the image analysis device 10 focused on, and to evaluate the clustering method.

[0043] Also, the degree of attention in the attention map for each cluster may be output together. For example, as shown in Fig. 8, the average value or median value of the degree of attention (score) for each part may be output together for each cluster. In this way, the parts of the buildings included in each cluster that the image analysis device 10 focused on can be understood, and the clustering method according to the shape, style, age, etc. of the building can be evaluated.

[0044] In the image analysis device 10 of this embodiment, evaluation data regarding the attention map is input, and clustering parameters can be adjusted based on the input evaluation data.

[0045] For example, the clustering results and attention maps output by the image analysis device 10 are compared with the building ages determined by experts, area classification data, chronological data of buildings compiled by experts, gaze points when classifying and chronologically arranging, characteristic points of buildings whose construction ages are identified, etc., to evaluate the attention maps and assign scores to each attention map. The scored data becomes the evaluation data.

[0046] For example, a high score is given to an attention map of a building that is classified into an expected cluster as a result of clustering, and a low score is given to an attention map of a building that is classified into an unexpected cluster. Also, when an attention map of a building that is classified into an expected cluster is extracted, and the degree of attention (score) in the attention map matches the expert's gaze point or the characteristic points of the building, a high score is given. The evaluation data of the attention map scored in this way is input to the image analysis device 10.

[0047] 9 is a flowchart showing an example of a clustering adjustment process for adjusting parameters of the clustering unit 102 based on the evaluation data of the attention map. In the clustering adjustment process, the evaluation data acquisition unit 105 of the image analysis device 10 acquires evaluation data for each attention map input from outside (step S21).

[0048] Next, the adjustment unit 106 of the image analysis device 10 tunes the parameters of the clustering unit 102 based on the evaluation data acquired by the evaluation data acquisition unit 105 (step S22), and then ends the image analysis process.

[0049] FIG. 10 is a diagram showing an image of tuning by the adjustment unit 106 in step S22. As shown in FIG. 10, for example, the parameters of the clustering unit 102 are tuned by reinforcement learning. The agent of the reinforcement learning is the image analysis device 10, the function of the reinforcement learning is the clustering unit 102, the action is the clustering of buildings, the environment is the elevation of the building (traditional building), the observation is the feature point, and the reward is the evaluation data. For example, Q-learning, dynamic programming, Monte Carlo method, etc. may be adopted as the reinforcement learning algorithm. In this way, the parameters of the clustering unit 102 may be tuned using the evaluation data as a reward. This allows the clustering performance of the clustering unit 102 to be cumulatively improved.

[0050] As described above, the image analyzing device 10 of this embodiment can cluster buildings included in input image data and output the clustering results. In addition, since an attention map that visualizes the gaze points for each image data is derived and output, it becomes possible to confirm the gaze points during clustering, and it is possible to evaluate the clustering results and the gaze points. In addition, by inputting the evaluation data of the attention map to the image analyzing device 10, the clustering performance of the image analyzing device 10 can be improved by reinforcement learning using the evaluation data as a reward.

[0051] Furthermore, by inputting image data of traditional buildings into the image analysis device 10, the traditional buildings can be classified objectively. For example, buildings in one region are classified into the same cluster, and buildings in another region are classified into a different cluster, so that objective landscape evaluation of historical townscapes, etc., with different architectural styles and eras, can be expected.

[0052] (Modification) The present invention is not limited to the above-described embodiment, and various modifications and applications are possible. For example, some of the above-described embodiment may be omitted or replaced, or any configuration may be added.

[0053] The image analyzing device 10 may extract image data of a building from image data including the building. That is, the image analyzing device 10 may execute image processing for extracting image data of a building shown in FIG. 5. In this case, the image analyzing device 10 acquires image data (e.g., FIG. 5 (A1) and (B1)) including a building and things other than the building (background, obstacles, etc.). Then, the extraction unit of the image analyzing device 10 performs semantic segmentation and deletes the background from the image data (e.g., FIG. 5 (A2) and (B2)). Then, an obstacle in front of the building, such as a utility pole or a tree, is detected by pattern matching or the like, and the obstacle is deleted. After that, the deleted obstacle part is complemented by using a part of the building present in the image data (e.g., FIG. 5 (B2)). If there is no obstacle in front of the building, the deletion of the obstacle and the complement of the building image may be omitted. The image analysis processing shown in FIG. 3 may be executed on the image data of the building obtained in this manner. This makes it possible to remove bias portions from image data that includes buildings and things other than buildings (background, obstacles, etc.), and to suitably extract image data of buildings.

[0054] Furthermore, the image processing algorithms, such as clustering, image extraction, division of buildings into parts, and generation of feature maps, are not limited to those described in the above embodiments, and any known algorithm may be adopted.

[0055] The image data of the building is not limited to a photograph, but may be a drawing of the building before construction or a completed image. Image analysis processing can be performed on such buildings before construction, and clustering can be performed. Then, for example, by comparing the clustering results with the clustering results of buildings that already exist in a specific area, it is possible to objectively evaluate whether the building before construction blends in with the streetscape of the specific area, whether there is any sense of incongruity, etc. This can be expected to lead to the creation of historical streetscapes and the maintenance of the landscape.

[0056] Furthermore, the method for supplying the program to the computer is arbitrary, and may be via a communication line, a communication network, a communication system, or the like.

[0057] Furthermore, in the case where an OS (Operating System) provides some of the above-mentioned functions, the functions other than those provided by the OS may be provided by a program.

[0058] The above-described embodiments are intended to facilitate understanding of the present invention, and are not intended to limit the present invention. The flow charts, sequences, elements included in the embodiments, and their arrangements, materials, conditions, shapes, sizes, etc. are not limited to those illustrated, and can be changed as appropriate. In addition, configurations shown in different embodiments can be partially substituted or combined with each other. [Explanation of symbols]

[0059] 10: image analysis device, 11: processor, 12: storage device, 13: communication interface, 14: input device, 15: output device, 101: image acquisition unit, 102: clustering unit, 103: attention map derivation unit, 104: output unit, 105: evaluation data acquisition unit, 106: adjustment unit

Claims

1. An image acquisition unit that acquires image data including an image of a building; a clustering unit that analyzes feature points of buildings included in the image data acquired by the image acquisition unit and clusters the buildings into one of a plurality of groups; an attention map derivation unit that derives an attention map indicating a degree of attention to each part of the building included in the image data when the clustering unit performs clustering; an output unit that outputs a clustering result by the clustering unit and the attention map derived by the attention map derivation unit; An image analysis device comprising:

2. The attention map derivation unit is generating a feature map showing the degree of attention in the image data by color coding; assigning a score to each color in the feature map; Segmenting the building portion in the image data; Combining the feature map and the result of the division to calculate an average score for each divided part; deriving the attention map indicative of an average score for each of the portions; The image analysis device according to claim 1 .

3. an evaluation data acquisition unit that acquires evaluation data of the attention map; an adjustment unit that adjusts parameters of the clustering unit based on the evaluation data; The image analysis device according to claim 1 or 2, comprising:

4. The image acquisition unit includes an extraction unit that extracts an image of a building from the image.

3. The image analysis device according to claim 1 or 2.

5. acquiring image data including an image of a building; Analyzing the characteristic points of buildings contained in the acquired image data, the buildings are clustered into one of a plurality of groups; deriving an attention map indicating the degree of attention to each part of the building included in the image data when the clustering is performed; Output the clustering result and the attention map. Image analysis methods.

6. Computer, an image acquisition unit that acquires image data including an image of a building; a clustering unit that analyzes feature points of buildings included in the image data acquired by the image acquisition unit and clusters the buildings into one of a plurality of groups; an attention map derivation unit that derives an attention map indicating a degree of attention to each part of the building included in the image data when the clustering unit performs clustering; an output unit that outputs the clustering result by the clustering unit and the attention map derived by the attention map derivation unit; A program that functions as a

Citation Information

Patent Citations

  • Estimation method of change in long term transition of townscape

    JP2015007960A