Abstract
Modern historic buildings encode exchanges among social development, regional culture, and construction technology. The surviving buildings in the five former concessions of Hankou display diverse facade compositions and window, door, and column forms, but conventional typological analysis depends heavily on expert judgement and is difficult to scale. This study developed a traceable three-level Building–Facade–Component dataset comprising 59 buildings, 77 facades, and 2456 components. At the facade scale, 18 OpenCV-derived morphological descriptors were evaluated first at the facade level and subsequently after multiple facades were aggregated within each Building ID. Building-level permutation tests with false-discovery-rate correction showed that none of the 18 descriptors provided stable evidence for concession-group differences. At the component scale, frozen ResNet50 representations were reduced using principal component analysis and clustered using K-means, while UMAP was used only for exploratory visualization; an archived DINOv2 feature matrix was examined as a secondary representation-sensitivity comparison. The selected partitions yielded three window, two door, and two column cluster-informed visual groupings without component-level reassignment. Independent blinded semantic evaluation showed limited concordance for the three window descriptions (53.4%; κ = 0.296), but stronger concordance for the door (87.3%; κ = 0.750) and column groupings (91.3%; κ = 0.825). Component-level frequencies showed descriptive variation among the sampled concessions; however, building-level composition tests and building-clustered permutation analyses did not support stable concession-related associations. The framework therefore provides complementary, scale-dependent evidence for structured heritage documentation and exploratory morphological comparison while preserving traceability to the original buildings, facades, and component images.
1. Introduction
Modern historic buildings are material records of urban transformation, trade, and cross-cultural exchange. Between the late nineteenth and the first half of the twentieth century, British, French, German, Russian, and Japanese concessions were established in Hankou. Their surviving architecture reflects the interaction of imported design ideas, local construction practices, available materials, and changing patterns of use [1,2,3,4,5]. Variation is visible not only in overall facade organization but also in the proportions, subdivision, ornament, texture, and construction of windows, doors, and columns.
Hankou is an especially suitable case because the former concession districts developed within a shared urban and climatic setting while being exposed to different administrative networks and architectural influences. The surviving stock does not form five internally uniform groups, and later adaptation has further complicated the relationship between present appearance and historical origin. Rather than treating concession membership as a predefined architectural style category, this study uses it as contextual metadata against which observable morphological distributions can be compared.
Architectural surveys and typological studies provide an essential interpretive basis for heritage research. However, approaches centered on representative cases and expert categorization become difficult to reproduce when the sample expands. Facade morphology is inherently multiscale: overall proportion and component arrangement describe spatial organization, whereas component contours, surface textures, and decorative details encode finer visual differences. A scalable analysis therefore requires data structures that preserve the relationship between the building, each independently observable facade, and the components extracted from that facade.
Digital recording methods, photogrammetry, three-dimensional reconstruction, historic building information modeling, and street-level imagery have broadened the evidence available for heritage documentation [6,7,8,9,10,11,12,13,14,15,16]. Computer vision further enables measurable image attributes to be extracted from large collections [17,18,19,20]. Recent reviews indicate that machine learning is increasingly integrated into heritage documentation, classification, and analysis workflows, although dataset availability, interpretability, and generalization remain persistent constraints [21]. Recent studies have also explored quantitative facade characterization through morphological descriptors and data-driven classification frameworks [22,23]. Explicit image-processing variables are interpretable, but they depend on predefined measurements and have limited capacity to represent complex combinations of ornament, material texture, and irregular outline.
Existing digital-heritage studies can be broadly divided into documentation-oriented and image-analysis-oriented approaches. Documentation research prioritizes metric accuracy, geometric reconstruction, semantic organization, and long-term information management, as demonstrated by photogrammetric recording, historic building information modeling, and multiscale semantic mapping [6,9,10,11,12,13,14,15,16]. Image-analysis studies apply machine learning to visual grouping, retrieval, detection, or segmentation of architectural images [8,17,18,24,25]. Recent street-level assessment research further demonstrates the potential of large-scale visual data for automated architectural documentation, but primarily operates at the building-assessment level rather than the component-morphology level [26]. Both directions are valuable, but neither automatically provides a transparent connection between measurements made at facade scale and visual patterns learned from individual components.
For historic urban areas, this connection matters because apparent similarity may arise from different sources. Two facades can share comparable opening ratios while differing substantially in window subdivision, material texture, or ornament. Conversely, components with similar outlines may occupy very different positions and proportions within the facade. A single-scale analysis can therefore overstate similarity or overlook relevant variation. The present study addresses this problem through linked, rather than merged, evidence: interpretable facade variables describe spatial organization, and learned component representations describe local visual morphology.
Recent reviews show that machine learning and deep learning are increasingly applied to cultural heritage tasks including recognition, reconstruction, semantic understanding, documentation, monitoring, and prediction [18,27]. Deep neural networks provide data-driven representations of visual structure [24,25,28,29,30,31]. Features extracted from pretrained convolutional networks can encode edges, textures, local shapes, and higher-order visual combinations, while self-supervised vision transformers offer a complementary representation [32,33,34]. Nevertheless, a computational partition in feature space is not itself an architectural category; its descriptive meaning requires representative samples, explicit criteria, and cautious architectural interpretation.
Transfer learning is particularly relevant when domain-specific heritage datasets are too small to train deep networks from scratch. Representations learned from large generic image collections can be reused as descriptors, after which unsupervised methods reveal similarity structures without requiring a complete set of expert labels [29,30,31]. However, pretrained models can emphasize different properties of the same image. Convolutional representations may respond strongly to local textures and contours, whereas transformer-based representations can encode broader spatial relations and global context [32,33,34,35]. Comparing more than one frozen representation is therefore useful for testing whether a morphological grouping is robust to the choice of feature extractor.
The analytical distinction between visual morphology and historically grounded attribution is central to this work. Historical attribution would require evidence relating form to period, authorship, design intention, and cultural lineage. The current data consist mainly of present-day images and associated location metadata. Accordingly, the study limits its claims to observable visual morphology, cluster composition, and statistical association. Any historical or functional explanation is presented as a hypothesis requiring archival or conservation evidence.
In this study, concession membership is treated as contextual metadata rather than a predefined style category. The objective is not to classify architectural styles, but to examine how observable visual morphology varies across scales and how computational evidence can support heritage interpretation.
Although the empirical analysis is centered on Hankou, the methodological problem addressed here is not geographically specific. Related research on photogrammetric heritage recording, historic building information modeling, computer-vision-assisted heritage analysis, facade characterization, and street-level heritage assessment has demonstrated a broader need for reproducible methods that organize and compare architectural visual evidence [6,10,11,12,13,16,17,18,21,23,26]. Hankou is used here as a single empirical test bed. The potentially transferable contribution lies in the Building–Facade–Component hierarchy and in the combination of interpretable facade descriptors, component-level representations, human semantic review, and building-aware inference; empirical cross-regional generalizability is not claimed.
In another historic district, the same analytical structure may be reconstructed using locally relevant contextual metadata and locally re-derived component groupings. The seven cluster-informed groupings reported here should not be interpreted as a universal architectural taxonomy. The workflow may provide architects, conservation specialists, and heritage managers with a traceable evidence base for comparative documentation and screening, but its external validity requires independent datasets and locally informed architectural interpretation.
This study addresses three questions: (1) how can multiscale image evidence from historic buildings be organized in a traceable data system; (2) can explicit facade-scale indicators distinguish the samples from the five former concessions after multiple facades from the same building are accounted for; and (3) what cluster-informed component visual groupings emerge from frozen deep representations, how reproducible are their descriptive architectural labels from component appearance alone, and do concession-related distributional patterns persist when the building is treated as the independent statistical unit?
2. Materials and Methods
2.1. Study Area and Image Acquisition
Hankou lies near the confluence of the Yangtze and Han rivers in Wuhan, China. The five former concessions constitute a concentrated area of modern architectural heritage with diverse administrative and cultural origins. Fieldwork was conducted in June 2025. Candidate buildings were identified from historical literature, architectural archives, and on-site investigation, and records were created for location, concession membership, approximate construction period, present condition, facade characteristics, and component visibility.
Facade images were collected using an iPhone 15 Pro Max (Apple Inc., Cupertino, CA, USA) and a DJI Mavic 3 (SZ DJI Technology Co., Ltd., Shenzhen, China). A facade was retained when the modern historical attribution was clear, the main composition was sufficiently preserved, target components were visually identifiable, and image quality supported subsequent analysis. Severely occluded, incomplete, or blurred facades were excluded. Buildings with more than one independently analyzable street or corner facade contributed multiple facade records while retaining a shared building identifier.
The acquisition strategy sought frontal or near-frontal views whenever street conditions permitted, but the survey was conducted in an active urban environment rather than under controlled laboratory conditions. Trees, parked vehicles, advertising, utility infrastructure, variable illumination, and the height of the buildings constrained camera position. Image selection therefore balanced geometric comparability with the need to retain a representative set of surviving facades. No sample was selected on the basis of a predefined historical category.
Before annotation and descriptor extraction, the selected facade images were manually rotated, cropped, and perspective-corrected where necessary using Adobe Photoshop CC 2018 (Adobe Inc., San Jose, CA, USA). These operations were intended to improve frontal alignment and comparability among the facade views. They did not constitute control-point-based photogrammetric orthorectification and did not establish a common physical scale. Accordingly, all pixel-based areas, dimensions, and contour measurements were treated as image-space descriptors rather than physical architectural measurements. Facade-normalized ratios reduced, but did not eliminate, residual effects of viewpoint, lens distortion, camera distance, cropping, and incomplete visibility.
Eligibility was assessed at both facade and component levels. A facade had to retain enough visible structure for its principal composition to be recognized. Within an eligible facade, a window, door, or column was retained only when its category and main visible boundary could be identified. Regions with severe occlusion, ambiguous category membership, or insufficient contour information were reviewed and excluded when they could not support consistent cropping. These rules were intended to reduce annotation noise while acknowledging that present-day condition is part of the recorded visual evidence.
The spatial distribution of the sampled buildings is shown in Figure 1.
Figure 1.
Study area and spatial distribution of the sampled buildings in the five former concessions of Hankou.
Representative complete facades from the five former concessions are shown in Figure 2.
Figure 2.
Representative complete facades from the five former concessions of Hankou: (a) Russian; (b) French; (c) British; (d) German; and (e) Japanese.
2.2. Building–Facade–Component Data Structure and Concession Metadata
The dataset was organized as a one-to-many hierarchy. Building records stored building-level attributes; facade records stored view-specific images and directions; and component records stored individual window, door, and column crops. Unique identifiers linked each component to a facade and each facade to a building. Manual bounding boxes followed the visible boundary of the component and were reviewed for class consistency, severe occlusion, and irrelevant background.
Windows, doors, and columns were selected because they are recurrent, visually identifiable, and architecturally complementary. Windows contribute to daylight openings, facade rhythm, subdivision, and ornament; doors define entrance organization and may register changes in access or ground-floor use; columns articulate vertical divisions and carry information about profile, material, and surface treatment. Analyzing the three classes separately preserves these functional and morphological differences while allowing them to be compared within a common data hierarchy.
Each annotation was defined around the visible component body and boundary, rather than an inferred original outline hidden by damage or occlusion. This choice prioritized repeatability from present-day imagery. Crops retained the component’s principal visual information while minimizing unrelated background. The resulting images therefore represent the observed condition, including surviving material, surface weathering, and visible alterations, but do not claim to reconstruct the original state.
Two distinct image products were used for the facade-scale and component-scale analyses. The OpenCV facade-scale workflow used the perspective-corrected complete-facade images together with coarse color-coded component outlines and the corresponding binary masks to calculate component counts, image-space areas, area ratios, and geometric ratios. The component-scale ResNet50 and DINOv2 analyses instead used a separate set of 2456 manually cropped, higher-precision window, door, and column images. The OpenCV masks were not used as inputs to either deep representation model.
Identifiers were assigned independently at each level. Buildings used a B prefix; facades used an F prefix; and window, door, and column components used the prefixes WIN, DOR, and COL, respectively. Every component record stored its component class, image path, Facade ID, Building ID, concession membership, and feature-vector index. This design allowed any cluster member to be traced back to the original crop, source facade, and building record.
Quality control comprised four checks. First, all Facade IDs were required to resolve to a valid Building ID, and all Component IDs to a valid Facade ID. Second, identifiers were checked for duplication, omission, and incorrect class prefixes. Third, facade and crop paths were tested and compared with the database identifiers. Fourth, the correspondence between each image record and its ResNet50 or DINOv2 feature row was verified. These checks prevented a feature vector or cluster label from being assigned to the wrong architectural object.
Concession membership was operationalized at the building level using the verified 59-building master table. Each facade and component inherited the concession label of its parent Building ID for inferential analyses. Original facade-level concession labels were retained as provenance metadata but were not used as independent grouping variables. Five buildings for which one or more source facade labels differed from the building-level operational label were flagged as attribution-sensitive. These records were retained in the primary analysis and excluded in a separate sensitivity analysis; their exclusion did not alter the substantive statistical conclusions.
The composition of the dataset by operational concession group is summarized in Table 1.
Table 1.
Composition of the multiscale dataset by operational concession group.
The operational concession groups comprised 21 British, 17 French, 2 German, 15 Russian, and 4 Japanese buildings. The marked imbalance, particularly the small German and Japanese groups, limits statistical power and precludes symmetrical inference across all five groups.
2.3. Facade-Scale Morphological Quantification
Eighteen indicators were calculated from the facade images and component annotations. Twelve component indicators described counts, mean areas, total area ratios, and geometric ratios for windows, doors, and columns. Six whole-facade indicators described image aspect ratio, edge density, edge-derived opening-area proxy, contour complexity, contour-shape complexity, and symmetry degree. Component area ratios were used to reduce the influence of different facade scales, whereas the whole-facade opening proxy was derived from image edges and contours.
The component-count group contained the numbers of windows, doors, and columns. The mean-area group contained mean window, door, and column areas in image coordinates. The area-ratio group contained the summed area of each component class divided by the annotation/mask image area in the same pixel coordinate system. The geometric-ratio group contained the mean window width-to-height ratio, mean door width-to-height ratio, and mean column width-to-height ratio. The six whole-facade variables were image aspect ratio, edge density, edge-derived opening-area proxy, contour complexity, contour-shape complexity, and symmetry degree.
These indicators were deliberately retained as separate variables rather than combined into a single morphology score. Each variable has a different architectural interpretation: counts describe rhythm and density; area ratios describe the relative visual weight of openings or vertical elements; geometric ratios describe basic component proportions; and edge, contour, and symmetry measures describe aspects of overall visual organization. Maintaining this separation made it possible to identify which types of explicit evidence contributed most strongly to any observed group tendency.
The facade-level description and building-level sensitivity workflow is illustrated in Figure 3.
Figure 3.
Workflow for facade-level morphological description, aggregation of 77 facades to 59 independent buildings, and permutation-based sensitivity analysis.
For component class c, mean area and the image-space component-area ratio were defined as follows:
Here, Aci is the contour area of retained component i in class c, nc is the retained component count, and Amask is the full annotation/mask image area measured in the same pixel coordinate system. The sums extend over all retained components in the class. Window, door, and column width-to-height ratios were calculated as AR_c = W_c/H_c, where W_c and H_c denote the image-space width and height of component class c. All geometric ratios represent image-space proportions rather than physical dimensions. Facade descriptors were derived from grayscale, edge, and binary masks. Edge density was defined as the proportion of edge pixels; the edge-derived opening-area proxy as the proportion of facade pixels enclosed by detected opening contours; contour complexity as the number of detected contours; contour-shape complexity as the share of contours classified as curved or non-rectilinear; and symmetry as the similarity between horizontally reflected facade halves. In this study, contour-shape complexity was operationally defined according to the polygonal approximation characteristics of detected contours rather than semantic architectural categories. These definitions separate manually annotated component-area ratios from the contour-derived whole-facade opening proxy.
Image processing and contour extraction were implemented using OpenCV 5.0.0. For the whole-facade descriptors, each image was converted to grayscale and processed using Canny edge detection with lower and upper thresholds of 50 and 150. External contours were retrieved using cv2.RETR_EXTERNAL and cv2.CHAIN_APPROX_SIMPLE. Contours with an area smaller than 0.2% of the facade-image area were excluded. Polygonal approximation used an epsilon of 0.02 times the closed contour perimeter, and contours with more than six approximation vertices were operationally classified as curved or non-rectilinear. Horizontal bilateral symmetry was calculated as 1 − Σ|L − Rm|/ΣL, where L is the grayscale left half and Rm is the horizontally mirrored right half after both halves were cropped to the same width.
For the manually annotated component descriptors, the color-coded annotation images were converted to HSV color space. Door outlines, marked in red, were segmented using lower and upper HSV bounds of [0, 120, 100] and [10, 255, 255], respectively. Window outlines, marked in green, used bounds of [35, 120, 100] and [77, 255, 255], whereas column outlines, marked in blue, used bounds of [90, 120, 100] and [130, 255, 255].
Each class-specific binary mask was dilated using a 7 × 7 all-ones kernel for three iterations to connect and thicken the annotation strokes. No morphological closing operation was applied in the final workflow. External contours were retrieved using cv2.RETR_EXTERNAL and cv2.CHAIN_APPROX_SIMPLE. Contours with an area smaller than 5 pixels were excluded as isolated mask noise. Component area was calculated using cv2.contourArea(), and width-to-height ratios were obtained from axis-aligned bounding rectangles generated using cv2.boundingRect(). The total area ratio for each component class was calculated as the summed area of the retained contours divided by the annotation/mask image area in the same pixel coordinate system.
A coordinate-system audit identified two records in which the area-ratio denominator had been taken from a differently sized source image. For F030 (B032), the source image measured 944 × 1124 pixels and the annotation/mask measured 1828 × 2311 pixels; for F072 (B041), the corresponding dimensions were 21260 × 21260 and 1254 × 1254 pixels. The three class-area ratios for each record were recalculated from the retained contour-area numerators using the corresponding annotation/mask area as the denominator. All 77 facade records were retained, the 59 building-level averages were regenerated, and all facade-level and building-level statistical tests, including the three restricted sensitivity conditions, were rerun. No component counts, mean component areas, geometric ratios, whole-facade descriptors, metadata mappings, deep features, cluster assignments, or semantic-validation results were changed. High-resolution manual component crops used for deep representations were not substituted into the OpenCV measurements.
Because the concession groups were unequal and several descriptors were non-normal, the original 77-facade dataset was summarized using descriptive statistics and Kruskal–Wallis tests [36]. These facade-level comparisons were retained as exploratory descriptions.
The Kruskal–Wallis statistic was calculated as H = [12/N(N + 1)]Σ(Rg2/ng) − 3(N + 1), where N is the number of records at the relevant analytical level, ng is the size of group g, and Rg is its rank sum. A rank-based epsilon-squared effect size was calculated as ε2 = max [0, (H − G + 1)/(N − G)] [37,38]. The exact formula is reported because closely related rank-based measures are named inconsistently across the literature. The Benjamini–Hochberg procedure controlled the false discovery rate across the 18 tests [39].
To account for multiple facades originating from the same building, each of the 18 facade descriptors was additionally averaged across all facades linked to the same Building ID, yielding 59 independent building-level records. For each descriptor, concession-group differences were reassessed using a permutation-based Kruskal–Wallis test with 9999 label permutations. Three sensitivity conditions were also examined: exclusion of five attribution-sensitive buildings; restriction to the British, French, and Russian groups; and the combination of both restrictions. Confirmatory interpretation was based on the building-level permutation results rather than nominal facade-level p values.
2.4. Deep Visual Representation and Unsupervised Clustering
The component-level analysis was implemented in Python 3.10.20. Each component crop was opened using Pillow 12.2.0 and converted to RGB. Immediately before inference, the shorter image side was resized to 256 pixels, followed by a center crop to 224 × 224 pixels, tensor conversion, and normalization using the ImageNet channel means [0.485, 0.456, 0.406] and standard deviations [0.229, 0.224, 0.225]. No random image augmentation was applied during feature extraction.
Feature extraction used the torchvision implementation of ResNet50 initialized with official ImageNet-1K pretrained weights [29,30]. For offline execution, the official pretrained parameters were stored locally under the filename Resnet50.bin. No additional fine-tuning, domain-specific training, or modification of the pretrained convolutional parameters was performed. The final fully connected classification layer was replaced by an identity mapping, and the model was operated in evaluation mode using torch.inference_mode(). This procedure yielded one 2048-dimensional frozen representation for each component crop. Images were processed with a batch size of 32.
The component-mask parameters and representation settings are summarized in Supplementary Tables S1 and S2, respectively.
The component-level representation, clustering, and descriptive-naming workflow is summarized in Figure 4.
Figure 4.
Workflow for frozen ResNet50 feature extraction, PCA without per-dimension standardization, K-means clustering, and cluster-level descriptive naming. UMAP is an exploratory visualization branch and does not determine cluster membership.
The archived 2048-dimensional feature vectors were entered directly into principal component analysis (PCA) without per-dimension standardization [40]. Fifty principal components were retained using full singular-value decomposition, represented as Z = XW, where X is the archived feature matrix, W is the projection matrix, and Z is the reduced representation. The retained components explained 82.9% of the variance for windows, 86.2% for doors, and 84.7% for columns.
UMAP was used only for exploratory neighborhood visualization. For the final figures, a 50-component PCA was fitted to the archived ResNet50 features without per-dimension standardization, separately for each component class and jointly for the all-component display. The embeddings were regenerated using scikit-learn 1.9.0 and umap-learn 0.5.12, with full-SVD PCA, no whitening, n_neighbors = 30, min_dist = 0.10, Euclidean distance, random_state = 42, and n_jobs = 1 [41]. All 2456 component records were retained, and the archived K-means labels were unchanged. UMAP coordinates were not used for K selection, component assignment, or statistical inference.
Windows, doors, and columns were clustered separately. K-means clustering used k-means++ initialization, n_init = 20, max_iter = 500, convergence tolerance = 1 × 10−4, Euclidean distance, and random_state = 42 [42]. Candidate values K = 2–8 were evaluated using the silhouette coefficient, Calinski–Harabasz index, Davies–Bouldin index [43,44,45], cluster size, repeated-seed stability, representative-image coherence, and architectural interpretability.
For each component class and candidate K, the silhouette coefficient compared the mean within-cluster distance a(i) with the mean distance to the nearest alternative cluster b(i): s(i) = [b(i) − a(i)]/max[a(i), b(i)]. Higher silhouette and Calinski–Harabasz values and lower Davies–Bouldin values were preferred, but none was used as a single automatic decision rule.
The selected solutions were K = 3 for windows and K = 2 for doors and columns. Cluster membership was retained without component-level manual reassignment. Descriptive architectural wording was assigned to entire clusters after inspection of representative images nearest to the cluster centers. The term “post hoc” therefore refers only to cluster-level descriptive naming, not to the transfer of individual components between clusters. The reported grouping sizes are identical to the final K-means cluster sizes. The illustrative sample panels retain verified archived examples rather than presenting a newly computed nearest-centroid ranking; three repeated examples were replaced for display by additional non-identical images from the same fixed clusters, selected in ascending Component ID order after excluding images already displayed. This display-only replacement did not change any analytical record, cluster membership, or semantic-validation result.
The clustering-validity results used to select K are shown in Figure 5.
Figure 5.
Clustering-validity metrics across candidate K values (K = 2–8) under the unified PCA workflow without per-dimension standardization: (a) windows; (b) doors; and (c) columns. Rows show the silhouette coefficient, Calinski–Harabasz index, and Davies–Bouldin index in their original units. Dashed lines denote the retained K values of 3, 2, and 2, respectively; they do not imply simultaneous optimization of every metric. Each value describes one archived partition of 1522 window, 251 door, or 683 column records.
As a secondary representation-sensitivity analysis, an archived 384-dimensional frozen DINOv2 ViT-S/14 feature matrix [32] was used for the same 2456 manually cropped component images. The archived matrix retained image-level identifiers, allowing each feature vector to be linked to its corresponding Component ID, Facade ID, and Building ID.
The original raw-image DINOv2 extraction script was not retained in the final project archive. Consequently, the exact checkpoint variant, raw-image resizing and cropping procedure, normalization settings, and token-pooling operation could not be independently reconstructed. These settings were therefore not inferred retrospectively. DINOv2 was treated as a secondary archived-feature sensitivity representation rather than as a fully reproduced end-to-end feature-extraction pipeline. The primary cluster assignments and descriptive architectural interpretations were based on the fully documented ResNet50 workflow.
For the unified downstream comparison, the archived DINOv2 vectors were entered directly into PCA without per-dimension standardization. Fifty principal components were retained using full singular-value decomposition. K-means used the same component-specific K values, k-means++ initialization, n_init = 20, max_iter = 500, convergence tolerance = 1 × 10−4, Euclidean distance, and random_state = 42, as in the ResNet50 analysis. Representation agreement was evaluated using ARI, NMI, label-aligned agreement, and 9999 label permutations [46,47], together with repeated K-means analyses across 100 random seeds [48,49,50]. Neither representation was treated as a universally superior or definitive morphology model.
2.5. Independent Semantic Validation of Cluster-Informed Visual Groupings
An independent single-evaluator semantic validation was conducted to assess whether the architectural descriptions assigned post hoc to the ResNet50-derived K-means structures were reproducible from component appearance alone. The evaluator had a background in architecture and three years of relevant experience as an independent architectural-heritage researcher and had not participated in feature extraction, clustering, or the original cluster naming.
A stratified sample of 264 unique component images was drawn from the selected cluster solutions: 120 windows, comprising 40 images from each window cluster; 64 doors, comprising all 24 images from the smaller cluster and 40 images from the larger cluster; and 80 columns, comprising 40 images from each column cluster. To assess within-evaluator repeatability, 26 primary images—12 windows, 6 doors, and 8 columns—were duplicated and randomly interspersed, yielding 290 blinded presentations.
Image files were assigned anonymous identifiers. Concession membership, Building ID, Facade ID, cluster number, the original descriptive cluster name, and the analyst answer key were withheld from the evaluator. The evaluator assigned one neutral operational code to each image using visible morphological criteria and recorded confidence on a five-point scale. An unassessable code (U) was available when cropping, occlusion, darkness, or the absence of a visible component prevented reliable classification. After completing all image ratings, the evaluator independently proposed architectural labels for the neutral codes and assessed the clarity of each criterion. No component was reassigned, and the validation did not alter the K-means solutions or downstream distributional analyses.
Semantic concordance was analysed separately for windows, doors, and columns using observed exact agreement and unweighted Cohen’s kappa (κ). Blank and U-coded primary images were excluded from category-based agreement calculations, and the number excluded was reported for each component class. Because multiple component images originated from the same building, 95% confidence intervals for agreement and κ were estimated using a nonparametric building-cluster bootstrap with 10,000 replicates. Buildings were sampled with replacement, and all eligible images from each sampled building were retained. Within-evaluator repeatability was assessed from the blinded duplicate pairs using exact agreement and unweighted κ; exact Clopper–Pearson intervals were reported for repeatability agreement. Analyses used a fixed bootstrap seed of 20260903.
2.6. Descriptive Component-Level Distributions and Building-Level Sensitivity Analysis
Final K-means cluster assignments were mapped back to Building ID, Facade ID, and operational concession metadata. Pearson chi-square statistics, Cramér’s V, adjusted standardized residuals, and correspondence analysis were retained to summarize component-level frequency patterns [51,52,53,54,55]. Because multiple components originated from the same building, these analyses were treated as descriptive and were not interpreted as independent population-level inference.
For building-aware analysis, the counts and within-building proportions of each cluster-informed visual grouping were calculated separately for windows, doors, and columns. Buildings without a given component class were excluded only from the composition analysis for that class; absent component classes were not recoded as zero-proportion compositions. Within-building compositional vectors were Hellinger transformed and compared across concession groups using one-factor PERMANOVA with Euclidean distances and 9999 label permutations.
Permutation-based Kruskal–Wallis tests were additionally applied to each of the seven individual grouping proportions, with Benjamini–Hochberg correction. The original component-count contingency tables were re-evaluated using building-clustered label permutations: concession labels were permuted across Building IDs while all components from the same building remained together. The analyses were repeated under four conditions: all five concessions; exclusion of five attribution-sensitive buildings; restriction to the British, French, and Russian groups; and the combination of both restrictions. Confirmatory interpretation was based on the building-aware results.
3. Results
3.1. Facade-Scale Indicators and Building-Level Sensitivity
At the facade level, total window-area ratio produced the largest unadjusted group difference (H = 11.277, p = 0.024, ε2 = 0.101). However, none of the 18 facade descriptors remained significant after Benjamini–Hochberg correction. The facade-level boxplots and heat map are therefore retained as descriptive visualizations of the present image collection rather than as evidence of stable concession-specific characteristics.
After multiple facades were averaged within Building ID, none of the 18 descriptors remained significant at the building level after false-discovery-rate correction. The largest unadjusted building-level effects were observed for total window-area ratio (H = 12.255, permutation p = 0.0086, pFDR = 0.1548, ε2 = 0.153) and mean column count (H = 11.065, permutation p = 0.0175, pFDR = 0.1575, ε2 = 0.131). Window count and mean door area also showed comparatively larger but non-significant effects.
Descriptive facade-level component counts are compared in Figure 6.
Figure 6.
Descriptive facade-level component counts: (a) windows; (b) doors; and (c) columns. Points represent all 77 facade records from 59 buildings. Boxes span the interquartile range, central lines indicate medians, and whiskers extend to the most extreme observations within 1.5 interquartile ranges. All observations, including those beyond the whiskers, are shown as points. Group sizes are 26, 24, 2, 21, and 4 facades for British, French, German, Russian, and Japanese operational concession groups, respectively. These displays do not treat facades as independent buildings.
The same conclusion was obtained after excluding the five attribution-sensitive buildings, after restricting the comparison to the British, French, and Russian groups, and after combining both restrictions. Under the present sample structure, isolated low-dimensional facade descriptors therefore did not provide stable evidence for concession-level discrimination.
The corrected component-area ratios are shown in Figure 7. After the denominator coordinate systems were aligned for F030 (B032) and F072 (B041), all three class-area ratios lay within 0–1 across the 77 facade records. No record was excluded and no ratio was truncated. These ratios remain image-space summaries derived from the OpenCV annotation masks, rather than measurements of physical facade coverage.
Figure 7.
Descriptive distributions of corrected component-area ratios: (a) windows; (b) doors; and (c) columns. Each point represents one of the 77 facades from 59 buildings. Labels give the number of facades in each operational concession group. Boxes span the interquartile range, horizontal lines mark medians, and whiskers extend to the most extreme values within 1.5 interquartile ranges of the box limits. All observations are shown. Six ratios in F030 (B032) and F072 (B041) were corrected using annotation/mask-area denominators in the same coordinate system as the measured contour areas; no observations were excluded or truncated. The plot is descriptive and does not treat multiple facades of the same building as independent replicates.
Facade-level exploratory results and building-level sensitivity results for the largest effects are reported in Table 2.
Table 2.
Facade-level exploratory results and building-level permutation sensitivity results for the indicators with the largest effects.
Descriptive standardized mean whole-facade indicators are visualized in Figure 8.
Figure 8.
Descriptive means of six whole-facade indicators within the operational concession groups. Each indicator was standardized across all 77 facade records using its overall mean and population standard deviation (ddof = 0), then averaged within each group. Cell annotations give the resulting mean z scores. Contour-shape complexity denotes the curved-contour proportion defined in Section 2.3; the opening-area measure is an edge-derived proxy rather than a measured window-area fraction. Group means are descriptive and do not account for multiple facades per building.
3.2. Cluster-Informed Component Visual Groupings
The final K-means solutions comprised three window clusters, two door clusters, and two column clusters. No component was manually transferred between clusters. Descriptive architectural wording was assigned to each cluster as a whole after representative-image inspection; consequently, the reported counts are identical to the final computational cluster sizes.
Because internal separation was modest and the independent semantic validation did not reproduce all three window descriptions with equal reliability, the seven partitions are referred to as cluster-informed visual groupings rather than fixed architectural categories. The three window labels are used only as shorthand for recurring visual tendencies in the computational feature space.
The shutter/grille-feature door grouping was characterized by horizontal strips, repeated metal grilles, or shutter-like surfaces, whereas the conventional door-leaf grouping retained a recognizable frame-and-leaf organization. These labels describe current visible appearance and do not establish whether individual elements are original or later alterations.
The brick-textured/articulated column grouping combined visible masonry texture, segmented profiles, or surface articulation. The plain-rectilinear column grouping was dominated by continuous vertical edges and visually uniform surfaces. These are broad descriptive interpretations of the computational partitions.
The final cluster-informed visual groupings are summarized in Table 3.
Table 3.
Cluster-informed visual groupings derived from the final ResNet50 K-means partitions.
Representative samples of the three window tendencies are shown in Figure 9.
Figure 9.
Illustrative samples from the three fixed window clusters: (a) W1, arched/ornamented tendency; (b) W2, horizontal-organization tendency; and (c) W3, rectilinear tendency. Each panel contains nine distinct crops. Component, Building, and Facade IDs are retained for traceability. One repeated example in panel (a) was replaced by another non-identical archived crop from the same fixed cluster using the display-only selection rule in Section 2.4. These images are not a new nearest-centroid ranking or architectural ground truth. The full cluster sizes remain 262, 384, and 876; no analytical records or cluster memberships were changed.
Representative samples from the two door groupings are shown in Figure 10.
Figure 10.
Illustrative archived samples from the two fixed door clusters: (a) D1, shutter/grille-feature grouping; and (b) D2, conventional door-leaf grouping. Nine distinct crops per cluster are shown with their Component, Building, and Facade IDs. The photographs are displayed without generative enhancement or changes to image content. The examples illustrate cluster-level descriptions, not an independently established architectural taxonomy; the full cluster sizes remain 24 and 227.
Representative samples from the two column groupings are shown in Figure 11.
Figure 11.
Illustrative samples from the two fixed column clusters: (a) C1, brick-textured/articulated grouping; and (b) C2, plain-rectilinear grouping. Each panel contains nine distinct crops, with Component, Building, and Facade IDs retained. Two repeated examples in panel (a) were replaced by non-identical archived crops from the same fixed cluster using the display-only selection rule in Section 2.4. The full analytical dataset and cluster sizes of 254 and 429 were unchanged. These examples illustrate descriptive groupings rather than architectural ground truth.
3.3. Independent Semantic Validation
The independent evaluator completed all 290 blinded presentations. Of the 264 unique primary images, 13 were marked unassessable because the relevant component was absent, open, occluded, severely cropped, blurred, or insufficiently illuminated. The semantic analysis therefore included 116 of 120 window images, 55 of 64 door images, and all 80 column images.
Agreement with the cluster-derived reference assignments differed substantially by component type. For windows, observed agreement was 53.4% (95% building-cluster bootstrap CI: 44.1–62.9%), with κ = 0.296 (95% CI: 0.165–0.427). The principal discrepancy involved the horizontal-organization grouping: 30 of 37 assessable W2 reference images were judged to be rectilinear windows. In addition, 19 of 39 W3 reference images were judged to show arched or ornamental characteristics. The three window descriptions are therefore interpreted as cluster-informed visual tendencies rather than independently established architectural categories.
For doors, observed agreement was 87.3% (95% CI: 75.0–95.5%), with κ = 0.750 (95% CI: 0.497–0.906). All 24 assessable D1 reference images matched the evaluator’s shutter/grille judgement, whereas 24 of 31 assessable D2 images matched the conventional door-leaf judgement. For columns, observed agreement was 91.3% (95% CI: 84.4–97.3%), with κ = 0.825 (95% CI: 0.683–0.947). These results support the broad semantic interpretability of the two-door and two-column groupings.
Within-evaluator repeatability was complete for all assessable duplicate pairs: 12 of 12 window pairs, 5 of 5 door pairs, and 8 of 8 column pairs received identical category codes. The remaining door duplicate pair was rated U in both presentations. Because the duplicate subsets were limited and no discordant repeat ratings occurred, the perfect repeatability estimates should be interpreted cautiously.
Independent semantic-validation and repeatability results are summarized in Table 4.
Table 4.
Independent semantic validation and within-evaluator repeatability of the cluster-informed visual groupings.
3.4. Representation Sensitivity and Spatial Structure
Internal clustering metrics for ResNet50 and archived DINOv2 features under the unified downstream analysis workflow are compared in Table 5.
Table 5.
Internal clustering metrics for ResNet50 and archived DINOv2 features under the unified downstream analysis workflow.
Under the unified downstream PCA and clustering workflow applied to the two archived feature matrices, ResNet50 showed higher silhouette values for windows and doors, whereas DINOv2 showed a slightly higher silhouette value for columns. The preferred representation therefore remained component-dependent rather than universally consistent.
Cross-representation agreement was moderate for windows (ARI = 0.480; NMI = 0.433; aligned agreement = 80.6%), substantial for doors (ARI = 0.650; NMI = 0.509; aligned agreement = 93.6%), and high for columns (ARI = 0.902; NMI = 0.825; aligned agreement = 97.5%). Permutation tests for ARI and NMI yielded p = 0.0001 for all three component classes.
Because the original raw-image DINOv2 extraction settings could not be reconstructed from the retained project archive, these results are interpreted only as secondary archived-feature sensitivity evidence. They do not constitute an independent end-to-end replication of the documented ResNet50 feature-extraction pipeline and were not used to define the primary cluster assignments or descriptive architectural labels.
Silhouette coefficients from the two representations are compared in Figure 12.
Figure 12.
Silhouette coefficients for the documented ResNet50 representations and archived DINOv2 feature matrix under the unified downstream PCA and K-means workflow without per-dimension standardization. Bars show the selected single-partition coefficients for windows (K = 3; n = 1522 components), doors (K = 2; n = 251), and columns (K = 2; n = 683); numeric labels are rounded to three decimals. No replicate-based uncertainty is implied. The DINOv2 comparison concerns archived features, not a fully reproduced raw-image extraction pipeline.
Repeated K-means runs across 100 random seeds showed high stability for windows and columns. Mean pairwise ARI was 0.995 for ResNet50 windows, 0.917 for ResNet50 doors, and 1.000 for ResNet50 columns; the corresponding DINOv2 values were 0.986, 0.992, and 1.000. The door solution was therefore not random under the unified downstream workflow, although its small minor cluster and weaker ResNet50 seed stability still warrant cautious interpretation.
Descriptive cross-representation agreement is summarized in Figure 13. The figure reports fixed-partition agreement without component-resampling confidence intervals.
Figure 13.
Descriptive cross-representation agreement between the selected ResNet50 and archived DINOv2 partitions: (a) adjusted Rand index; (b) normalized mutual information; and (c) aligned-label agreement. Each bar summarizes the same window (n = 1522), door (n = 251), or column (n = 683) records under the unified downstream no-standardization workflow. These are fixed-partition agreement summaries, not classification accuracies against architectural ground truth. No component-resampling confidence intervals or p values are shown.
The internal silhouette coefficients remained modest, indicating that the selected K values provide exploratory partitions of partially overlapping feature spaces rather than evidence for naturally discrete architectural classes.
UMAP was used for exploratory neighborhood visualization only; two-dimensional distances were not interpreted as physical or architectural measurements. The joint embedding is presented in Figure 14.
Figure 14.
Joint exploratory UMAP embedding of all 2456 archived ResNet50 component representations: 1522 windows, 251 doors, and 683 columns. A 50-component PCA was fitted jointly without per-dimension standardization before UMAP (n_neighbors = 30; min_dist = 0.10; Euclidean metric; random_state = 42). Every component is plotted, and colours indicate component class. Neither cluster labels nor concession labels were used to fit the embedding. Two-dimensional distances are not physical or architectural measurements.
Class-specific UMAP projections provide an exploratory view of local neighborhoods and partial overlap among the selected groupings. They are not used as evidence for naturally discrete architectural categories.
Class-specific UMAP projections are shown in Figure 15.
Figure 15.
Separate exploratory UMAP embeddings of the fixed cluster-informed visual groupings: (a) windows; (b) doors; and (c) columns. Each embedding was recomputed from the corresponding 50-component PCA representation without per-dimension standardization (n_neighbors = 30; min_dist = 0.10; Euclidean metric; random_state = 42). Colours show the unchanged archived K-means assignments, and legends give full cluster sizes. Embeddings were fitted separately, so their coordinate axes are not comparable across panels. UMAP was not used to select K, reassign components, or establish naturally discrete architectural categories.
3.5. Descriptive Component-Level Distributions
Nominal component-level distributional summaries and building-aware sensitivity results are reported together in Table 6.
Table 6.
Descriptive component-level associations and building-aware sensitivity results.
The nominal component-count contingency tables showed descriptive variation among the five concession samples. The Pearson statistics were χ2 = 78.758 (df = 8, p < 0.001, Cramér’s V = 0.161) for windows, χ2 = 4.436 (df = 4, p = 0.350, Cramér’s V = 0.133) for doors, and χ2 = 27.273 (df = 4, p < 0.001, Cramér’s V = 0.200) for columns. These nominal p values treat individual components as independent and are therefore retained only as descriptive summaries of the image collection.
Detailed component-level percentages and adjusted residuals are provided in the Supplementary Materials. Supplementary Figure S1 presents a descriptive correspondence-analysis map of the window-count table under the harmonized Building-ID concession mapping. These summaries identify frequency patterns but do not establish independent building-level associations.
The descriptive component-level composition across the five concession samples is shown in Figure 16.
Figure 16.
Descriptive pooled component composition across the operational concession groups: (a) windows; (b) doors; and (c) columns. Grouping counts were recomputed using the final Building-ID concession mapping and unchanged cluster assignments. Bar labels give percentages; n below each bar is the total number of components of that class in the relevant group. Rounding can cause displayed percentages to differ slightly from 100%. Buildings with more components contribute more records to this pooled display, which does not account for nesting. Building-level distributions are shown separately in Figure 17.
Figure 17.
Within-building proportions of the seven fixed visual groupings: (a–c) window tendencies W1–W3; (d,e) door groupings D1–D2; and (f,g) column groupings C1–C2. Each point represents one building; horizontal black segments indicate group medians. Display jitter changes horizontal positions only. Windows and doors each include 59 buildings (British 21, French 17, German 2, Russian 15, Japanese 4). Columns include 57 buildings (21, 15, 2, 15, and 4, respectively); the two buildings without column records are omitted because their column proportions are undefined, not zero. B, F, G, R, and J denote the operational concession groups in that order. Inferential sensitivity results are reported in Table 6.
3.6. Building-Level Sensitivity of Concession Associations
Building-level component compositions did not show significant concession-group differences. Hellinger-transformed PERMANOVA yielded pseudo-F = 0.932, R2 = 0.065, and permutation p = 0.4803 for windows (n = 59 buildings); pseudo-F = 0.293, R2 = 0.021, and p = 0.9067 for doors (n = 59); and pseudo-F = 1.326, R2 = 0.093, and p = 0.2602 for columns (n = 57). None remained significant after false-discovery-rate correction.
The building-clustered permutation tests of the component-count tables likewise did not retain the nominal component-level associations. The building-clustered permutation p values were 0.8965 for windows, 0.8768 for doors, and 0.8466 for columns. All seven individual within-building grouping-proportion tests were non-significant after correction; the smallest unadjusted value was observed for the rectilinear window tendency (permutation p = 0.0762, pFDR = 0.4734).
Excluding the five attribution-sensitive buildings, restricting the analysis to the British, French, and Russian groups, and combining both restrictions did not alter the conclusion. Component-level frequency patterns are therefore informative descriptions of the present image dataset but do not provide reliable inferential support for stable concession-related differences at the level of independent buildings.
Building-level distributions of within-building grouping proportions are summarized in Figure 17.
4. Discussion
4.1. Multiscale Complementarity, Semantic Interpretation, and Statistical Hierarchy
The facade-scale and component-scale analyses addressed different aspects of visual morphology. OpenCV descriptors characterized how windows, doors, and columns were organized within a facade through counts, relative areas, geometric ratios, edge structure, contour characteristics, and symmetry. Frozen deep representations instead characterized how individual component crops appeared through combinations of outline, subdivision, texture, ornament, and surface condition. The two evidence levels remained linked through Building ID, Facade ID, and Component ID but were not concatenated into a predictive style-classification model.
The semantic-validation results clarify the boundary between computational grouping and architectural interpretation. The broad door and column descriptions showed relatively strong agreement with an independent blinded evaluator, whereas the three window descriptions showed only limited concordance. The window partitions remain computationally reproducible, but their architectural names should be treated as visual tendencies rather than independently established types. The overlap between the horizontal-organization and rectilinear tendencies indicates continuous variation in proportion and subdivision rather than three sharply separated window categories.
The central statistical result concerns the hierarchical structure of the dataset. Nominal component-level chi-square tests produced small p values for windows and columns because repeated components from the same buildings were counted as separate observations. Once concession labels were permuted at the Building-ID level, these apparent associations were no longer retained. Building-level composition PERMANOVA and individual proportion tests reached the same conclusion. The descriptive component distributions remain useful for documenting the present image collection but should not be interpreted as evidence that all buildings from a concession share a stable component composition.
A similar distinction applies to the facade-scale results. Total window-area ratio and column count produced the largest unadjusted building-level effects, but neither remained significant after false-discovery-rate correction. This negative result is methodologically informative: under the current sampling structure, isolated low-dimensional facade variables are insufficient for robust concession discrimination. The absence of corrected significance does not imply an absence of visual variation; rather, the observed variation is not sufficiently stable relative to the number of independent buildings and the imbalance among groups.
The downstream comparison between the fully documented ResNet50 representations and the archived DINOv2 feature matrix further indicates that representation sensitivity is component-dependent. Column partitions were highly consistent across the two feature spaces, window partitions showed moderate agreement, and door partitions showed substantial agreement after the downstream PCA and clustering settings were harmonized. Nevertheless, the modest silhouette coefficients and unequal cluster sizes indicate that none of the partitions should be treated as a unique or definitive architectural taxonomy. ResNet50 is retained as the primary descriptive representation because its image-to-feature pipeline is fully documented and it defines the primary cluster assignments. DINOv2 is retained only as a secondary archived-feature sensitivity comparison, and no primary conclusion depends solely on that comparison.
The multiscale framework should therefore be understood as a tool for structured documentation, similarity-based retrieval, and exploratory screening. It can identify recurrent or unusual visual configurations and retain a traceable path to the original architectural object, but historical origin, authenticity, conservation value, and causal explanation continue to require archival evidence, measured survey, material investigation, and professional judgement.
4.2. Transferability and Practical Applications
The potential applicability of the proposed framework should be understood at the level of analytical structure rather than as a transfer of the Hankou-derived groupings. The Building–Facade–Component hierarchy may be reconstructed for other historic urban areas using locally appropriate contextual information. Application to another city would require local visual structures to be re-derived and interpreted with reference to that location’s architectural, historical, and conservation context.
For architects and designers working in historic environments, the resulting data may serve as a quantitative reference layer rather than a prescriptive design rule. Facade descriptors can document observed ranges of opening density, relative component area, geometric proportion, and visual organization, while component representations can support retrieval of visually related examples. Such outputs should support, rather than replace, professional judgement because visual similarity cannot establish authenticity, cultural significance, material compatibility, or conservation value.
For conservation specialists and heritage managers, the workflow may support screening and information management through traceable links among buildings, facades, components, descriptors, and visual-similarity groupings. The present results establish methodological feasibility within one historical urban context; they do not demonstrate empirical cross-regional generalizability. External validation requires independent datasets, locally re-derived visual groupings, and architectural interpretation by specialists familiar with each study area.
4.3. Limitations and Future Work
The study remains limited by the relatively small and uneven numbers of independent buildings. The German and Japanese groups comprise only two and four buildings, respectively, and cannot support symmetrical inference with the larger British, French, and Russian groups. In addition, five buildings were flagged as attribution-sensitive because source facade labels differed from the building-level operational classification. Excluding these records did not change the statistical conclusions, but historical boundary changes and alternative archival conventions remain relevant when interpreting concession metadata.
The field images were collected under active urban conditions and were manually rotated, cropped, and perspective-corrected before analysis where necessary. This processing improved frontal alignment and visual comparability but did not provide control-point-based metric orthorectification or a common physical scale. Camera viewpoint, distance, lens distortion, illumination, vegetation, vehicles, occlusion, preservation state, and residual perspective may therefore affect both OpenCV descriptors and learned visual representations. Facade-normalized ratios reduce, but do not eliminate, these effects. Future studies should employ calibrated repeat acquisition, control-point-based photogrammetric rectification, UAV photogrammetry, or three-dimensional scanning where feasible.
The independent semantic validation used one evaluator rather than a panel of specialists. Although within-evaluator repeatability was complete for the limited duplicate subset, the repeatability confidence intervals were wide. Window-label concordance was modest, and several door images were unassessable because the relevant component was open, occluded, poorly cropped, or insufficiently illuminated. The validation therefore supports the broad interpretability of the door and column groupings but does not establish expert consensus or architectural ground truth. Future work should include multiple independent evaluators, clearer operational thresholds for window groupings, and additional validation across buildings and cities.
Finally, frozen ResNet50 and DINOv2 representations remain only partially interpretable. Their clusters may reflect mixtures of morphology, material, lighting, crop geometry, surface ageing, and later interventions. Feature-attribution methods, archival photographs, construction dates, materials, conservation records, and measured architectural data are needed to establish which visual structures have historical or conservation significance.
The DINOv2 comparison has an additional reproducibility limitation. Although the archived 384-dimensional feature matrix, image-level identifiers, and downstream analysis settings were retained, the original raw-image extraction script was not available in the final project archive. The exact checkpoint variant, input resizing and cropping procedure, normalization settings, and token-pooling operation therefore could not be independently reconstructed. DINOv2 results were consequently used only as auxiliary archived-feature sensitivity evidence, and no primary conclusion depended solely on this comparison. Future work should regenerate alternative foundation-model features using a fully versioned end-to-end extraction pipeline.
5. Conclusions
This study developed a traceable multiscale computer-vision framework for analysing the visual morphology of modern historic buildings in the five former concessions of Hankou. The Building–Facade–Component hierarchy linked 59 buildings, 77 facades, and 2456 window, door, and column components. At the facade scale, 18 explicit OpenCV descriptors characterized component organization and whole-facade visual structure. After multiple facades were aggregated within Building ID, none of the descriptors remained significant after false-discovery-rate correction, although total window-area ratio and column count retained comparatively larger exploratory effects.
At the component scale, the unified ResNet50 workflow produced three window, two door, and two column cluster-informed visual groupings without manual reassignment of individual components. Independent blinded evaluation supported the broad semantic interpretability of the door and column groupings but showed limited concordance for the three window descriptions. The window labels should therefore be understood as visual tendencies within a partially overlapping feature space rather than as fixed architectural categories.
Component-level frequencies showed descriptive variation among the sampled concessions. However, building-level composition tests and building-clustered permutation analyses did not support stable concession-related associations for windows, doors, or columns. This result demonstrates the importance of distinguishing large numbers of component observations from the smaller number of independent buildings from which those components originate.
The principal contribution is the potentially transferable analytical workflow rather than a fixed taxonomy of Hankou architectural components or a definitive distinction among concession styles. The framework provides a reproducible structure for organizing facade-scale descriptors, component-level visual representations, human semantic review, and building-aware statistical inference. It may support heritage inventory, visual retrieval, comparative screening, and prioritization for detailed conservation investigation, while remaining supplementary to archival research, measured survey, and professional architectural judgement. External validation with larger, more balanced, and geographically independent datasets remains necessary.
Supplementary Materials
The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/buildings16193938/s1, Data S1, the processed minimal dataset and final component assignments; Data S2, Building-ID-level facade descriptors and component-composition tables; Code S1, building-level permutation and hierarchical-sensitivity analysis code and outputs; Data S3, blinded semantic-validation design and summary results; Data S4, the archived 384-dimensional DINOv2 feature matrix with image-level identifiers used for the secondary representation-sensitivity analysis. Tables S1 and S2 report the component-mask parameters and representation settings. Figure S1 retains the correspondence analysis only as a descriptive supplementary visualization because it does not account for components nested within buildings.
Author Contributions
Conceptualization, Z.W. and W.S.; methodology, Z.W. and W.S.; software, Z.W.; validation, Z.W. and W.S.; formal analysis, Z.W.; investigation, Z.W.; resources, Z.W. and W.S.; data curation, Z.W.; writing—original draft preparation, Z.W.; writing—review and editing, Z.W. and W.S.; visualization, Z.W.; supervision, W.S.; project administration, W.S. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the Social Science Foundation of Hubei Province (Key Project), Research on the Spatio-Temporal Evolution Characteristics of Red Cultural Heritage in the Middle Reaches of the Yangtze River Empowered by Digital Technology and the Innovative Path of Cultural and Tourism Integration, grant number HBSKJJ20250249, September 2025.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The processed minimal dataset, Building-ID-level facade descriptors, Building-ID-level component-composition tables, final cluster assignments, semantic-validation summary data, and analysis code are publicly available in the GitHub repository, Version 1.1 (https://github.com/ziwanghbut/Hankou-Building-Morphology-CV accessed on 29 September 2026) and are provided as Supplementary Materials (Data S1–S3 and Code S1). The archived DINOv2 feature matrix is provided in Data S4 for downstream representation-sensitivity analysis. The processed datasets and complete archived ResNet50 and DINOv2 feature matrices have also been deposited in an unpublished Zenodo draft (reserved DOI: 10.5281/zenodo.22304303). A private preview link is provided to the editor and reviewers in the response letter; the Zenodo draft is not yet publicly accessible. The original high-resolution field photographs are available from the corresponding author upon reasonable request because of file-size, image-rights, and image-management considerations.
Acknowledgments
The authors thank the independent architectural-heritage researcher who completed the blinded semantic evaluation. During preparation of this manuscript, the authors used OpenAI ChatGPT-5 (various model versions accessed during manuscript preparation; OpenAI, San Francisco, CA, USA) for English-language editing, manuscript organization, drafting and debugging of analysis scripts, preliminary figure-layout assistance, and preliminary suggestions for descriptive wording based on representative cluster images presented without concession metadata. The tool did not assign or reassign individual components, conduct the independent semantic evaluation, or determine the final statistical conclusions. All analytical scripts were executed using the original research data, and all numerical results and scientific interpretations were reviewed by the authors, who take full responsibility for the content of this publication. The authors also acknowledge the institutional and technical support provided by the Key Laboratory of Intelligent Health Perception and Ecological Restoration of Rivers and Lakes, Ministry of Education, Hubei University of Technology.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| OpenCV | Open Source Computer Vision Library |
| PCA | Principal Component Analysis |
| UMAP | Uniform Manifold Approximation and Projection |
| FDR | False Discovery Rate |
| ARI | Adjusted Rand Index |
| NMI | Normalized Mutual Information |
| CH | Calinski–Harabasz Index |
| DBI | Davies–Bouldin Index |
| ViT | Vision Transformer |
| UAV | Unmanned Aerial Vehicle |
| BH | Benjamini–Hochberg |
| CI | Confidence Interval |
| PERMANOVA | Permutational Multivariate Analysis of Variance |
References
- Dean, B. Sino-British diplomacy in the 1860s: The establishment of the British concession at Hankow. Harv. J. Asiat. Stud. 1972, 32, 71–96. [Google Scholar] [CrossRef] [Scilit]
- Crawford, A. Imagining the Russian concession in Hankou. Hist. J. 2018, 61, 969–989. [Google Scholar] [CrossRef] [Scilit]
- Cheng, S.; Yu, Y.; Li, K. Historic conservation in rapid urbanization: A case study of the Hankow historic concession area. J. Urban Des. 2017, 22, 433–454. [Google Scholar] [CrossRef] [Scilit]
- Song, Y.; He, Y. Identifying the architectural texture of the former British concession of Hankou. Procedia Eng. 2017, 180, 1633–1642. [Google Scholar] [CrossRef] [Scilit]
- Liu, X.; Yang, J.; Tong, Q. The forerunner of modern collective residence in Hankou: The study on Panoffs’ Mansion. J. Asian Archit. Build. Eng. 2023, 22, 2460–2489. [Google Scholar] [CrossRef] [Scilit]
- Remondino, F. Heritage recording and 3D modeling with photogrammetry and 3D scanning. Remote Sens. 2011, 3, 1104–1138. [Google Scholar] [CrossRef] [Scilit]
- Biljecki, F.; Ito, K. Street view imagery in urban analytics and GIS: A review. Landsc. Urban Plan. 2021, 215, 104217. [Google Scholar] [CrossRef] [Scilit]
- Jiang, Y.; Han, S.; Bai, Y. Scan4Façade: Automated as-is façade modeling of historic high-rise buildings using drones and AI. J. Archit. Eng. 2022, 28, 04022031. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Z.; Zou, Y.; Xiao, W. Exploration of a virtual restoration practice route for architectural heritage based on evidence-based design: A case study of the Bagong House. Herit. Sci. 2023, 11, 35. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Murphy, M.; McGovern, E.; Pavia, S. Historic Building Information Modelling—Adding intelligence to laser and image based surveys of European classical architecture. ISPRS J. Photogramm. Remote Sens. 2013, 76, 89–102. [Google Scholar] [CrossRef] [Scilit]
- Noardo, F. Architectural heritage semantic 3D documentation in multi-scale standard maps. J. Cult. Herit. 2018, 32, 156–165. [Google Scholar] [CrossRef] [Scilit]
- Yang, X.; Grussenmeyer, P.; Koehl, M.; Macher, H.; Murtiyoso, A.; Landes, T. Review of built heritage modelling: Integration of HBIM and other information techniques. J. Cult. Herit. 2020, 46, 350–360. [Google Scholar] [CrossRef] [Scilit]
- Malovrh Rebec, K.; Deanovič, B.; Oostwegel, L. Old buildings need new ideas: Holistic integration of conservation-restoration process data using Heritage Building Information Modelling. J. Cult. Herit. 2022, 55, 30–42. [Google Scholar] [CrossRef] [Scilit]
- Chen, Y.; Wu, Y.; Sun, X.; Ali, N.; Zhou, Q. Digital documentation and conservation of architectural heritage information: An application in modern Chinese architecture. Sustainability 2023, 15, 7276. [Google Scholar] [CrossRef] [Scilit]
- Zhuo, L.; Zhang, J.; Hong, X. Cultural heritage characteristics and damage analysis based on multidimensional data fusion and HBIM—Taking the former residence of HSBC Bank in Xiamen, China as an example. Herit. Sci. 2024, 12, 128. [Google Scholar] [CrossRef] [Scilit]
- Hussein, K.A.; Abrahim, A.R.; Mohammed, A.S.; Ali, K.A. Digital preservation of heritage urban facades: An integrated approach using historic building information modeling and shape grammar analysis. Digit. Appl. Archaeol. Cult. Herit. 2024, 35, e00383. [Google Scholar] [CrossRef] [Scilit]
- Starzyńska-Grześ, M.B.; Roussel, R.; Jacoby, S.; Asadipour, A. Computer vision-based analysis of buildings and built environments: A systematic review of current approaches. ACM Comput. Surv. 2023, 55, 1–25. [Google Scholar] [CrossRef] [Scilit]
- Fiorucci, M.; Khoroshiltseva, M.; Pontil, M.; Traviglia, A.; Del Bue, A.; James, S. Machine learning for cultural heritage: A survey. Pattern Recognit. Lett. 2020, 133, 102–108. [Google Scholar] [CrossRef] [Scilit]
- Pulli, K.; Baksheev, A.; Kornyakov, K.; Eruhimov, V. Real-time computer vision with OpenCV. Commun. ACM 2012, 55, 61–69. [Google Scholar] [CrossRef] [Scilit]
- Szeliski, R. Computer Vision: Algorithms and Applications, 2nd ed.; Springer: Cham, Switzerland, 2022. [Google Scholar] [CrossRef] [Scilit]
- Huang, Z. Machine learning in the documentation and analysis of historical landmark buildings: A systematic review and practical demonstration. Built Herit. 2026, 10, 14. [Google Scholar] [CrossRef] [Scilit]
- He, Y.; Cheng, B. Research on the spatial sequence of building facades in historic towns in the Chengdu Plain region of China. Buildings 2026, 16, 838. [Google Scholar] [CrossRef] [Scilit]
- Kılıç, O.; Diler, H. A Heritage DNA (HDNA) framework for quantitative classification of historic facades. Buildings 2026, 16, 2799. [Google Scholar] [CrossRef] [Scilit]
- Llamas, J.; Lerones, P.M.; Medina, R.; Zalama, E.; Gómez-García-Bermejo, J. Classification of architectural heritage images using deep learning techniques. Appl. Sci. 2017, 7, 992. [Google Scholar] [CrossRef] [Scilit]
- Gao, L.; Wu, Y.; Yang, T.; Zhang, X.; Zeng, Z.; Chan, C.K.D.; Chen, W. Research on image classification and retrieval using deep learning with attention mechanism on diaspora Chinese architectural heritage in Jiangmen, China. Buildings 2023, 13, 275. [Google Scholar] [CrossRef] [Scilit]
- Dabrock, K.; Johansson, T.; Donarelli, A.; Mangold, M.; Pflugradt, N.; Weinand, J.M.; Linßen, J. Automated building heritage assessment using street-level imagery. Build. Environ. 2026, 299, 114654. [Google Scholar] [CrossRef] [Scilit]
- Li, X.; Chiabrando, F.; Sammartano, G. Machine learning and deep learning for cultural heritage conservation: A bibliometric and task-oriented review. Remote Sens. 2026, 18, 628. [Google Scholar] [CrossRef] [Scilit]
- LeCun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature 2015, 521, 436–444. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778. [Google Scholar] [CrossRef] [Scilit]
- Deng, J.; Dong, W.; Socher, R.; Li, L.-J.; Li, K.; Fei-Fei, L. ImageNet: A large-scale hierarchical image database. In Proceedings of the 2009 IEEE Conference on Computer Vision and Pattern Recognition, Miami, FL, USA, 20–25 June 2009; pp. 248–255. [Google Scholar] [CrossRef] [Scilit]
- Yosinski, J.; Clune, J.; Bengio, Y.; Lipson, H. How transferable are features in deep neural networks? In Advances in Neural Information Processing Systems 27, Proceedings of the 28th Annual Conference on Neural Information Processing Systems 2014, Montreal, QC, Canada, 8–13 December 2014; Curran Associates, Inc.: Red Hook, NY, USA, 2014; pp. 3320–3328. Available online: https://proceedings.neurips.cc/paper/2014/hash/532a2f85b6977104bc93f8580abbb330-Abstract.html (accessed on 25 September 2026).
- Oquab, M.; Darcet, T.; Moutakanni, T.; Vo, H.; Szafraniec, M.; Khalidov, V.; Fernandez, P.; Haziza, D.; Massa, F.; El-Nouby, A.; et al. DINOv2: Learning robust visual features without supervision. Trans. Mach. Learn. Res. 2024, 1, 1–32. [Google Scholar]
- Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.; Heigold, G.; Gelly, S.; et al. An image is worth 16 × 16 words: Transformers for image recognition at scale. In Proceedings of the International Conference on Learning Representations, Online, 3–7 May 2021; Available online: https://openreview.net/forum?id=YicbFdNTTy (accessed on 25 September 2026).
- Raghu, M.; Unterthiner, T.; Kornblith, S.; Zhang, C.; Dosovitskiy, A. Do Vision Transformers see like convolutional neural networks? In Advances in Neural Information Processing Systems 34, Proceedings of the 35th Conference on Neural Information Processing Systems (NeurIPS 2021), Online, 6–14 December 2021; Curran Associates, Inc.: Red Hook, NY, USA, 2021; pp. 12116–12128. Available online: https://proceedings.neurips.cc/paper/2021/hash/652cf38361a209088302ba2b8b7f51e0-Abstract.html (accessed on 25 September 2026).
- Han, K.; Wang, Y.; Chen, H.; Chen, X.; Guo, J.; Liu, Z.; Tang, Y.; Xiao, A.; Xu, C.; Xu, Y.; et al. A survey on vision transformer. IEEE Trans. Pattern Anal. Mach. Intell. 2023, 45, 87–110. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Kruskal, W.H.; Wallis, W.A. Use of ranks in one-criterion variance analysis. J. Am. Stat. Assoc. 1952, 47, 583–621. [Google Scholar] [CrossRef]
- Lakens, D. Calculating and reporting effect sizes to facilitate cumulative science: A practical primer for t-tests and ANOVAs. Front. Psychol. 2013, 4, 863. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Fiel Peres, F. Effect sizes for nonparametric tests. Biochem. Medica 2026, 36, 010101. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Benjamini, Y.; Hochberg, Y. Controlling the false discovery rate: A practical and powerful approach to multiple testing. J. R. Stat. Soc. Ser. B Stat. Methodol. 1995, 57, 289–300. [Google Scholar] [CrossRef] [Scilit]
- Jolliffe, I.T.; Cadima, J. Principal component analysis: A review and recent developments. Philos. Trans. R. Soc. A 2016, 374, 20150202. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- McInnes, L.; Healy, J.; Saul, N.; Großberger, L. UMAP: Uniform Manifold Approximation and Projection. J. Open Source Softw. 2018, 3, 861. [Google Scholar] [CrossRef] [Scilit]
- Lloyd, S.P. Least squares quantization in PCM. IEEE Trans. Inf. Theory 1982, 28, 129–137. [Google Scholar] [CrossRef] [Scilit]
- Rousseeuw, P.J. Silhouettes: A graphical aid to the interpretation and validation of cluster analysis. J. Comput. Appl. Math. 1987, 20, 53–65. [Google Scholar] [CrossRef] [Scilit]
- Caliński, T.; Harabasz, J. A dendrite method for cluster analysis. Commun. Stat. 1974, 3, 1–27. [Google Scholar] [CrossRef] [Scilit]
- Davies, D.L.; Bouldin, D.W. A cluster separation measure. IEEE Trans. Pattern Anal. Mach. Intell. 1979, PAMI-1, 224–227. [Google Scholar] [CrossRef] [Scilit]
- Hubert, L.; Arabie, P. Comparing partitions. J. Classif. 1985, 2, 193–218. [Google Scholar] [CrossRef] [Scilit]
- Vinh, N.X.; Epps, J.; Bailey, J. Information theoretic measures for clusterings comparison: Variants, properties, normalization and correction for chance. J. Mach. Learn. Res. 2010, 11, 2837–2854. [Google Scholar]
- Efron, B. Bootstrap methods: Another look at the jackknife. Ann. Stat. 1979, 7, 1–26. [Google Scholar] [CrossRef] [Scilit]
- Hennig, C. Cluster-wise assessment of cluster stability. Comput. Stat. Data Anal. 2007, 52, 258–271. [Google Scholar] [CrossRef] [Scilit]
- Liu, T.; Yu, H.; Blair, R.H. Stability estimation for unsupervised clustering: A review. WIREs Comput. Stat. 2022, 14, e1575. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Pearson, K. On the criterion that a given system of deviations from the probable in the case of a correlated system of variables is such that it can be reasonably supposed to have arisen from random sampling. Philos. Mag. 1900, 50, 157–175. [Google Scholar] [CrossRef] [Scilit]
- Cramér, H. Mathematical Methods of Statistics; Princeton University Press: Princeton, NJ, USA, 1946. [Google Scholar]
- Bergsma, W. A bias-correction for Cramér’s V and Tschuprow’s T. J. Korean Stat. Soc. 2013, 42, 323–328. [Google Scholar] [CrossRef] [Scilit]
- Haberman, S.J. The analysis of residuals in cross-classified tables. Biometrics 1973, 29, 205–220. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Greenacre, M. Correspondence Analysis in Practice, 3rd ed.; Chapman & Hall/CRC: Boca Raton, FL, USA, 2017. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
















