Semantic Segmentation, Object Extraction, and Adaptive Recomposition of Cultural Images for Cultural and Creative Product Visual Development

Semantic Segmentation, Object Extraction, and Adaptive Recomposition of Cultural Images for Cultural and Creative Product Visual Development

Lin Zhu | Zhixin Zhou*

Academy of Arts, Tianjin University of Technology and Education, Tianjin 300222, China

Corresponding Author Email: 
ysxyzzx0529@163.com
Page: 
2181-2192
|
DOI: 
https://doi.org/10.18280/ts.430508
Received: 
28 April 2026
|
Revised: 
15 August 2026
|
Accepted: 
10 October 2026
|
Available online: 
31 October 2026
| Citation

© 2026 The authors. This article is published by IIETA and is licensed under the CC BY 4.0 license (http://creativecommons.org/licenses/by/4.0/).

OPEN ACCESS

Abstract: 

Cultural image reuse requires semantic interpretation, reliable region extraction, and adaptation to different visual formats. This study investigates an integrated image-processing method for preparing cultural and creative product imagery and quantifying error propagation through recomposition. Chinese landscape paintings were analyzed using frozen DINOv2 patch features and a compact spatial residual decoder. Predicted semantic components were selected by confidence and geometric criteria, then rearranged using grid and permutation-based shelf candidates. A semantic occupancy decomposition separated correctly classified, incorrectly classified, and unlabelled regions after transformation. Across three training seeds on a 339-image held-out set, the residual decoder increased mean intersection over union from 36.813% to 37.502% relative to a linear decoder. Capacity and spatial controls on a 312-image supplementary subset showed that this improvement did not establish a consistent advantage for RGB input. At the fixed confidence threshold of 0.7, supplementary component precision and recall reached 85.91% and 46.46%, respectively. Adaptive recomposition increased occupied canvas area by 12.42 percentage points across 219 paired cases; correctly classified regions contributed 9.51 percentage points. No overlap or clipping was observed in the evaluated layouts. The method connects pixel classification with selective extraction and constrained canvas adaptation. Its semantic decomposition makes the useful spatial gain and the accompanying enlargement of segmentation errors separately measurable, providing an evaluation framework for visual asset preparation.

Keywords: 

adaptive recomposition, confidence filtering, cultural image segmentation, frozen visual representation, semantic component extraction, visual asset preparation

1. Introduction

Digitized paintings provide motifs for packaging graphics, printed surfaces, and other cultural and creative product imagery. Reusing these motifs requires their semantic identification, spatial extraction, and adaptation to a target composition. Recent reviews describe extensive applications of artificial intelligence to cultural heritage analysis and protection [1, 2]. For visual development, a specific image-processing problem remains: how can candidate elements be extracted and rearranged while retaining control over their semantic content and geometry?

Chinese landscape paintings provide a demanding case because pictorial structure is expressed through ink variation, brushwork, and relationships between depicted regions and unpainted space. Mountains, trees, clouds, and water can share similar tones while differing in semantic role. Dedicated painting-parsing methods, including CLPPP and DRANet, address this setting through learned semantic representations [3, 4]. Their contribution establishes the importance of domain-specific interpretation, but a predicted label map is only an intermediate output for visual asset preparation. A large correctly segmented mountain may raise a pixel score while a small bridge or boat needed for a design remains poorly extracted.

Geometry connects image interpretation with downstream composition. Vijendran et al. [5] review geometric feature extraction, analysis, and synthesis in artistic imagery, while Cohen et al. [6] examine painting segmentation and the extraction of connected regions for object collections. A segmentation score alone does not describe the quality of the resulting design assets. Confidence-based selection changes which regions are retained, and enlargement changes the visible area of both correct and incorrect predictions. Evaluation therefore needs to follow these transformations from the semantic map to the recomposed canvas.

This study develops an integrated workflow for semantic segmentation, component selection, and canvas-dependent recomposition. Frozen DINOv2 patch features feed a compact residual decoder with an RGB detail branch. Confidence filtering selects whole predicted components, and a constrained search adapts their common scale and placement to square, landscape, and portrait canvases. The resulting outputs support visual asset preparation; performance is measured separately at the pixel, component, and layout levels.

The methodological contribution is the connection between selective extraction, constrained recomposition, and semantic error accounting. The workflow retains predictions throughout the transformation and uses reference labels only for evaluation. An additive occupancy decomposition measures how much of a layout gain comes from correctly classified regions, semantic errors, or unlabelled source regions. Decoder ablations and capacity controls establish the scope of the segmentation improvement, while paired canvas comparisons isolate geometric gains obtained from the same selected components.

Section 2 reviews painting segmentation and visual layout methods. Sections 3 and 4 define the data, evaluation units, and processing workflow. Section 5 reports segmentation, extraction, and layout experiments, followed by discussion and conclusions.

2. Related Work

2.1 Semantic analysis of paintings and heritage imagery

General image segmentation research spans a wide range of model families and application domains [7]. Transformer-based visual segmentation extends this development through attention-based representations and task-specific decoding strategies [8]. Artistic images introduce a domain shift relative to natural photographs: a category may be conveyed by a few strokes, conventional shape cues, or contextual placement instead of a consistent photographic texture. For this reason, architectural advances need to be considered alongside the semantic definitions, image sources, and annotation conventions of the artistic benchmark.

CLPPP was developed for Chinese landscape painting scene understanding, while DRANet provides a dedicated segmentation network for landscape paintings [3, 4]. These works are directly relevant to the parsing problem, but their reported results cannot be transferred to a different data snapshot or split. In particular, the six foreground categories described for SegCLP differ from the 14 scored categories used here. Mural segmentation provides a related but distinct line of work: Cao et al. [9] combine multiscale feature fusion and dual attention, and Yuan et al. [10] address craquelure and paint-loss recognition. Damage regions, mural illustrations, and depicted landscape objects serve different annotation purposes and should not be pooled into a common ranking without a shared evaluation protocol.

Semantic maps also appear in generative applications. Semantic layout-guided synthesis [11], the fine-grained hierarchical semantic adapter [12], and semantic-and-sketch-guided restoration [13] use image structure to condition generated or restored content. These studies demonstrate another role for semantic information, but reconstruction or generation scores measure a different task from assigning categories to the original image. The present workflow rearranges extracted masks through explicit geometric transformations; it does not train a diffusion model or synthesize replacement brushwork.

Open-vocabulary models expand the categories that can be queried in artistic collections. Yemelianenko et al. [14] compare object detection in visual art and discuss open-vocabulary segmentation, with the latter remaining a preliminary part of their analysis. Their study supports the relevance of flexible artistic-image interpretation, while also distinguishing detection evidence from segmentation evidence. Here, a fixed label vocabulary is retained so that the same semantic classes can be followed from pixel prediction to component matching and recomposition.

2.2 Frozen representations and spatial refinement

DINOv2 provides representations learned without task-specific supervision and supports semantic segmentation with frozen features. Oquab et al. [15] also presented painting examples. Holding this encoder fixed allows lightweight heads to be compared under a shared visual representation and reduces the number of trainable parameters. The encoder nevertheless remains part of the inference computation.

Spatial refinement adds modeling capacity beyond pointwise linear decoding. SparseRefine [16] examines high-resolution refinement through sparse computation and location selection. The present decoder instead applies dense residual processing on a 63 by 63 grid before producing 252 by 252 predictions. An entropy-gated variant is assessed separately as an ablation. Feature-only pointwise and spatial controls examine the effects of additional capacity and convolution without adding RGB input.

Low-shot learning and class-imbalance research [17, 18] motivates category-level evaluation in addition to pooled segmentation scores. The weighting ablation examined how training-frequency weights changed rare-category recovery and overall mIoU on the present data.

2.3 Confidence selection and constrained visual layout

Confidence-based rejection offers a way to control which predicted regions enter a downstream application. Küchler et al. [19] examine uncertainty estimates for semantic segmentation and segment-level reliability. A mean softmax score is useful for ranking candidates, but its numerical value is not a calibrated probability of object correctness. The present method accepts or rejects whole connected components and reports both precision and recall. As a result, improved precision obtained through rejection is evaluated together with the loss of retained components.

Layout generation concerns the spatial organization of visual content. Shi et al. [20] review deep generative layout methods, and Zou et al. [21] examine AI-driven graphic design. Explicit constraints also guide layout construction: LayoutRectifier [22] addresses layout post-processing, and Iris [23] incorporates multiple constraints in graphic layout generation. Here, a bounded search over grid and next-fit shelf candidates adapts extracted components to canvas dimensions. Its objective is feasible space use; aesthetic preference and cultural interpretation require separate evaluation.

Evaluation must follow the intended output. Metrics Reloaded [24] and the analysis of metric-related pitfalls [25] emphasize the need to align metrics with the task and its data structure. This principle is especially relevant when segmentation outputs are transformed. Enlarging a retained mask can increase occupied area while preserving its original semantic mistakes. The evaluation therefore combines category IoU, one-to-one component matching, and semantic occupancy decomposition. The resulting measurements connect segmentation and layout performance while keeping their interpretations separate.

3. Data and Problem Formulation

3.1 Public data and reproducible acquisition

The experiments used the public Chinese landscape painting dataset distributed as Rane7/CLP_dataset on Hugging Face, pinned to revision 54cba6131985352b643d11394663a214dc008c51. The examined upload history dated the public release to 10 March 2025. The dataset card identifies the contributing research teams, requests citation of the CLPPP paper [3], and states a CC BY-NC 4.0 license. This is a release date for the digital dataset, not the creation date of the historical paintings or a verified date of image capture. The study was conducted as noncommercial computational research. The figures report numerical results and predicted masks rather than reproducing source paintings.

File-level acquisition records contained 4,414 entries, corresponding to 2,207 image-mask pairs and 2,206 unique image contents. One exact image duplicate had conflicting annotations, and six near-duplicate pairs were also identified. The affected records were quarantined conservatively rather than resolved through performance-based selection. The numerical label mapping was recovered from accompanying historical labeling files and retained in the processing record. Original label 0 was treated as unlabelled and excluded from category scoring; it was not interpreted as a verified background category.

Table 1 summarizes the fixed partition. Training used 1,434 met or smithsonian records, development used 99 harvard records, and the original held-out assessment used 339 Princeton records. Another 323 records were initially unused, and 12 were quarantined. The prefixes are filename grouping keys rather than verified museum accession or artwork identities. Accordingly, the protocol establishes separation between records and source-prefix groups, while artwork-level independence and overlap with encoder pretraining remain unverified [26].

Table 1. Data partitions and assessment roles

Partition

Records

Grouping and Role

Training

1,434

met and smithsonian prefixes

Development

99

harvard prefix; head and threshold selection

Original held-out

339

Princeton prefix; original fixed assessment

Initially unused pool

323

Other prefixes; no original model development

Initial quarantine

12

Duplicate and near-duplicate records

Supplementary subset

312 of 323

After 11 further conservative quarantines

Note: The first five rows partition 2,207 pairs; the last row is a subset of the initially unused pool. Prefixes are filename groups, not verified artwork identities.

3.2 Supplementary subset and evaluation protocol

The 323 initially unused records were screened using image content before supplementary scoring. Pixel-exact matches were flagged, as were pairs with difference-hash distance ≤ 4 or with both perceptual-hash distance ≤ 8 and mean absolute RGB difference ≤ 12 on 32 × 32 thumbnails at the 0–255 scale. No pair met these rules. Embedding similarities organized inspection without defining an exclusion threshold. Additional registration diagnostics examined 30 and six selected pairs, respectively, without confirming a strong match under their specified criteria.

AI-assisted image-similarity inspection flagged three potentially related compositions for conservative quarantine. The observations were not treated as confirmed duplicate identities or independent expert annotations. All 11 records in the normalized wangjian and wuyuanzhi prefix groups were excluded, leaving 312 images in 26 normalized prefix groups. The eligibility manifest, checkpoint hashes, and original scoring endpoints were fixed before reference masks were loaded for supplementary scoring. This assessment used additional records from the same corpus. Its predictions were retained for subsequent common-class metric computation and fixed-output layout diagnostics.

3.3 Semantic and geometric output units

The 14 scored categories were river, mountain, trees, clouds, building, animals, birds, boat, person, sky, bridge, waterfall, rock, and grass. Extraction targeted ten categories: trees, building, animals, birds, boat, person, bridge, waterfall, rock, and grass. These categories were chosen to supply relatively isolated visual assets. River, mountain, clouds, and sky remained part of segmentation scoring but were excluded from extraction. This fixed target list defines the evaluated application rather than a ranking of the categories' design value.

An extracted object is defined operationally as a class-specific connected region in the predicted semantic map. It is a semantic component rather than an annotated object instance: adjacent trees may merge into one region, and disconnected strokes may divide one depicted object. Reference components were derived from semantic masks using the same connectivity and minimum-area rules. Recomposition operated on the predicted masks and bounding boxes. The simulated canvases represent alternative visual formats; the experiment evaluates geometry rather than narrative or symbolic relationships between motifs.

4. Methodology

4.1 Processing architecture

Figure 1 presents the workflow. Image decoding, frozen feature extraction, and dense segmentation produce a semantic map. Component geometry and confidence are calculated from predictions, followed by candidate ranking and canvas-dependent placement. Reference labels are accessed only after predictions and layouts are fixed, for pixel scoring, component matching, and semantic occupancy decomposition. Thus, the extraction and layout stages use information available at inference.

Each image was converted to RGB and resized bilinearly to 252 by 252 pixels. Reference masks were resized with nearest-neighbor interpolation. The square resize standardizes the computational experiment but can alter the aspect ratio of the source artwork; it is distinct from the subsequent proportion-preserving transformation of extracted components. Encoder input was divided by 255 and normalized with channel means (0.485, 0.456, 0.406) and standard deviations (0.229, 0.224, 0.225). The parallel RGB detail input was divided by 255 without that encoder normalization. No center crop, augmentation, or task-specific encoder fine-tuning was applied.

Figure 1. Processing and evaluation workflow
Note: Ground-truth masks enter only after predictions and layouts are fixed. The primary decoder combines frozen features with an RGB detail branch.

The encoder was the 22,056,576-parameter DINOv2-S/14 checkpoint at revision ed25f3a31f01632728cabb09d1542f84ab7b0056. The class token was removed, leaving normalized final patch tokens reshaped to a 384-channel, 18 by 18 feature map. Features were stored in half precision and converted to float32 for head training. All heads used the same features. This protocol isolates decoder-level changes from encoder adaptation and makes the fixed representation reproducible [15].

4.2 Residual decoding and matched controls

For the linear comparator, a 1 by 1 convolution maps the 384 feature channels to 14 coarse logits, followed by bilinear interpolation to the output resolution. The primary RGB residual head retains this coarse prediction. A separate 1 by 1 convolution maps patch features to 24 channels and upsamples them to 63 by 63. The RGB branch uses a 7 by 7 convolution with stride four and padding three, producing 12 channels, followed by GroupNorm with three groups and GELU. Concatenating the semantic and RGB branches gives 36 channels. A 3 by 3 convolution reduces these to 24 channels; GroupNorm with four groups, GELU, and a final 1 by 1 convolution then produce the residual logits.

$\mathrm{L}=\mathrm{U}_{252}\left[\mathrm{U}_{63}\left(\mathrm{~W}_{\mathrm{c}} * \mathrm{~F}\right)+\mathrm{D}\left(\mathrm{U}_{63}\left(\mathrm{~W}_{\mathrm{s}} * \mathrm{~F}\right), \mathrm{B}(\mathrm{I})\right)\right]$            (1)

In Eq. (1), F denotes frozen patch features, I is the scaled RGB input, $\mathrm{W}_{\mathrm{c}}$ and $\mathrm{W}_{\mathrm{s}}$ are the coarse and semantic projections, B is the RGB branch, D is the concatenation-based detail decoder, and Ur denotes bilinear resizing to resolution r. The symbol * denotes convolution. The resulting primary head contains 24,628 trainable parameters. It performs dense spatial processing; the word residual describes logit addition and does not imply sparse execution or a measured speed advantage.

Table 2 lists the principal structural controls. A feature-only pointwise multilayer perceptron used 62 hidden channels and 24,752 parameters, closely matching the RGB head's parameter count while retaining the 18 by 18 processing grid. A later feature-only spatial residual head retained the coarse and 24-channel semantic branches but applied a 3 by 3 convolution from 24 to 44 channels, GroupNorm with four groups, GELU, and a 1 by 1 output projection at 63 by 63. It contained 24,896 parameters. The latter comparison matches the presence of spatial convolution more closely, although channel widths and operations are not identical. The pointwise and spatial controls were introduced after the original held-out analysis and were evaluated on development and supplementary data only.

Table 2. Segmentation heads and training settings

Head

Spatial Processing

Parameters

Seeds

Linear

1 × 1 at 18 × 18

5,390

17, 29, 43

Pointwise control

384 → 62 → 14 at 18 × 18

24,752

17, 29, 43

Spatial control

24 → 44 → 14 at 63 × 63

24,896

17, 29, 43

RGB residual

Semantic 24 + RGB 12; detail 24

24,628

17, 29, 43

Note: All use a frozen 22,056,576-parameter encoder; 12 epochs; AdamW; learning rate 0.001; weight decay 0.0001; batch size 16. Controls match capacity approximately, not identically.

Two additional factors were examined in the original decoder ablations. Class-weighted losses used the square root of the ratio between the median training-class count and each class count, clipped to the interval [0.25, 4]. An entropy-gated residual multiplied detail logits by the normalized entropy of the coarse softmax, interpolated to 63 by 63. This gate was differentiable and dense. The primary head used ordinary cross-entropy without class weighting or entropy modulation. These ablations were kept distinct from the matched controls so that a weighting or gating effect was not attributed to RGB information alone.

4.3 Confidence-based target extraction

The segmentation logits were converted to softmax probabilities, and the largest probability defined a pixel confidence. For each target category, eight-connected predicted components were extracted. A component was retained for extraction when its area was at least 32 pixels and its mean pixel confidence met the threshold. Confidence was averaged over the complete predicted region, including locations that might later prove unlabelled in the reference. The acceptance rule therefore used no ground-truth information.

$\mathrm{q}(\mathrm{C})=\frac{1}{|\mathrm{C}|} \sum_{\mathrm{p} \in \mathrm{C}} \max _{\mathrm{k}} \mathrm{P}(\mathrm{k} \mid \mathrm{p}) ;|\mathrm{C}| \geq 32, \mathrm{q}(\mathrm{C}) \geq \tau$           (2)

Eq. (2) defines the component confidence q(C), where C is a predicted region and τ is the acceptance threshold. The development sweep tested 0, 0.4, 0.5, 0.6, 0.7, and 0.8. The lowest threshold attaining at least 80% empirical component precision for the primary seed-17 model was selected, giving τ = 0.7. It was fixed before original held-out inference and retained for supplementary diagnostics. Rejection retained accepted components whole and did not alter their boundaries [19].

For layout, accepted components also required bounding-box sides of at least three pixels. Candidates were ordered by decreasing mean confidence, then decreasing area, then category identifier; the first five were retained. Images with fewer than two candidates did not enter layout comparison. Extraction statistics were computed before this top-five layout restriction. This distinction prevents the layout eligibility rule from silently redefining component precision or recall.

4.4 Adaptive recomposition across canvas formats

Three target canvases were simulated: 256 by 256, 384 by 256, and 256 by 384 pixels. A common continuous scale s was applied to all selected components, preserving their relative sizes and each bounding box's aspect ratio before raster rounding. Rotations were not permitted. The scale was capped at eight, and placements used a four-pixel gap. Component colors in the visual examples indicate semantic labels rather than reproduced painting textures.

$\mathrm{s}_{\text {selected }}=\max \left(\left\{\mathrm{s}_{\mathrm{g}}\right\} \cup\left\{\mathrm{s}_{\mathrm{j}}: \mathrm{j} \in \mathrm{J}\right\}\right)$             (3)

Eq. (3) selects the largest scale among the grid and finite-search shelf candidates. Here, sg denotes the grid scale, J indexes permutations yielding a feasible shelf candidate, and sj denotes the scale returned for permutation j. The grid baseline considered row counts from one to n components, with ceiling(n/rows) columns. Components were centered in cells, and the largest common cell-fitting scale was retained across grid arrangements.

For each permutation of up to five components, a 20-step bisection heuristic generated a shelf candidate over [0, 8]. Next-fit placement started a new row whenever the next component exceeded the current row width. Because row assignments can change with scale, shelf feasibility is not globally monotonic; the returned scale is therefore a feasible heuristic result rather than a certified largest scale. The best returned shelf candidate was compared with the retained grid. Candidate inclusion ensures non-decreasing selected continuous scale relative to the grid baseline.

Masks were rasterized with nearest-neighbor interpolation at the resulting integer dimensions. Canvas containment and overlap were checked on rendered outputs. Raster rounding can introduce small deviations in aspect ratio and occupied area. With at most five components, exhaustive ordering contributes at most 5! = 120 permutations and 2,400 shelf feasibility checks per canvas for the 20-step search; each check visits at most five components. This finite search bound describes the implemented candidate family, not measured runtime or global optimality. Semantic relationships, typography, and aesthetic balance remain separate design criteria [22, 23].

4.5 Evaluation from segmentation to recomposition

Segmentation scores were computed from pooled confusion matrices over reference-labelled pixels, excluding original label 0. Category IoU and mIoU were defined by Eq. (4). The reference-present category set K was fixed across compared models and seeds within each assessment: 14 categories for development and original held-out scoring, and 13 for supplementary scoring. Supplementary reference masks contained no bird pixels. Common-class mIoU was recomputed from saved confusion matrices without changing predictions, checkpoints, or thresholds; false-positive bird pixels were counted separately. Pixel accuracy was the proportion of correctly classified reference-labelled pixels. Appendix A reports supplementary per-seed scores and pixel accuracy [24, 25].

$\mathrm{IoU}_{\mathrm{k}}=\frac{\mathrm{TP}_{\mathrm{k}}}{\mathrm{TP}_{\mathrm{k}}+\mathrm{FP}_{\mathrm{k}}+\mathrm{FN}_{\mathrm{k}}} ; \mathrm{mIoU}=\frac{1}{|\mathrm{~K}|} \sum_{\mathrm{keK}} \mathrm{IoU}_{\mathrm{k}}$            (4)

Reference target components used eight-connectivity and the same minimum area of 32 pixels. Within each image and category, one-to-one Hungarian matching first maximized the number of component pairs with IoU at least 0.5 and then their summed IoU. Predicted components were extracted and accepted before reference access. During scoring only, original unlabelled pixels were excluded from predicted component area; accepted components entirely within unlabelled regions were excluded from the precision denominator. Precision and recall were pooled component counts, not averages of per-image ratios.

$\mathrm{P}_{\mathrm{c}}=\frac{\mathrm{M}}{\mathrm{N}_{\mathrm{a}}} ; \mathrm{R}_{\mathrm{c}}=\frac{\mathrm{M}}{\mathrm{N}_{\mathrm{g}}}$             (5)

In Eq. (5), M is the number of matched components, $\mathrm{N}_{\mathrm{a}}$ is the scored accepted count, and $\mathrm{N}_{\mathrm{g}}$ is the reference count; $\mathrm{P}_{\mathrm{c}}$ and $\mathrm{R}_{\mathrm{c}}$ denote component precision and recall. Accepted-pixel precision measures correctly classified pixels among retained reference-labelled pixels. Target-pixel recall measures correctly retained target pixels relative to all reference target pixels. These measures complement the one-to-one component criterion: a fragmented or incomplete region can recover many correct pixels while failing the IoU match.

For each fixed layout, the source positions occupied by a selected mask were partitioned into correct-category, wrong-known-category, and unlabelled-reference pixels. These three masks were subjected to exactly the same placement and resizing as the prediction. Their canvas fractions formed an additive partition of occupied area. Reference labels were thus used only to diagnose an already fixed arrangement, never to choose a component, threshold, or placement.

 $\mathrm{O}_{\mathrm{t}}=\mathrm{O}_{\mathrm{c}}+\mathrm{O}_{\mathrm{w}}+\mathrm{O}_{\mathrm{u}} ; \Delta \mathrm{O}_1=\mathrm{O}_{\mathrm{a}, 1}-\mathrm{O}_{\mathrm{g}, 1}$              (6)

In Eq. (6), $\mathrm{O}_{\mathrm{t}}, \mathrm{O}_{\mathrm{c}}, \mathrm{O}_{\mathrm{w}}$, and $\mathrm{O}_{\mathrm{u}}$ denote total, correct-category, wrong-known-category, and unlabelled occupancy. Subscripts a and g identify adaptive and grid arrangements, while $\ell \in\{\mathrm{t}$, $\mathrm{c}, \mathrm{w}, \mathrm{u}\}$ identifies the total or one of the three occupancy components. Paired changes were averaged over identical image-canvas cases and reported in percentage points. Unlabelled occupancy was retained separately. Seed-level mean ± sample SD summarizes training variability; it is not an artwork-level confidence interval.

5. Experiments and Results

5.1 Training and assessment protocol

Principal heads were trained for 12 epochs using AdamW, learning rate 0.001, weight decay 0.0001, and batch size 16. Unweighted pixelwise cross-entropy excluded original label-0 pixels. Development mIoU was checked at epochs 2, 4, 6, 8, 10, and 12, with the earliest checkpoint retained on ties. The linear and RGB heads and both matched-control families used seeds 17, 29, and 43. Four additional loss-and-gate ablations used seed 17. Training used Python 3.12.14 and PyTorch 2.15.0+cpu, with float32 head tensors, three intra-operation threads, one inter-operation thread, and deterministic algorithms. Cached frozen features and confidence maps were stored in float16 and converted to float32 for head training and component scoring, respectively.

Checkpoint hashes, the primary RGB model, reporting seed 17, and threshold 0.7 were fixed before original held-out inference. Later matched controls were assessed on development and supplementary data, without adding results to the original held-out comparison. Supplementary model hashes and image eligibility were fixed before reference loading. Results were summarized descriptively across three seeds. Common-class supplementary scores were subsequently derived from the retained confusion matrices, keeping the original predictions and primary-model identity unchanged.

5.2 Segmentation improvements and structural controls

Figure 2 shows development learning curves for the decoder and loss ablations. Table 3 gives the selected checkpoints and original held-out scores at seed 17; Table 4 compares the principal heads across three seeds. The shared frozen encoder and approximately matched control capacities support decoder-level comparisons. These controls analyze the implemented architecture and do not constitute a ranking against fully trained state-of-the-art segmentation systems.

Figure 2. Development learning curves for decoder ablations
Note: All curves use seed 17. Loss weighting and entropy gating are separate ablations; checkpoint selection uses development mIoU.

Table 3. Original decoder and loss ablations at seed 17

Configuration

Best epoch

Dev mIoU (%)

Held-out mIoU (%)

Linear

12

36.094

37.258

Weighted linear

12

33.974

35.899

RGB residual

4

36.236

37.303

Weighted RGB residual

8

34.126

37.352

Gated RGB residual

8

35.695

37.177

Weighted gated RGB

10

33.683

36.679

Note: Development checkpoints were fixed before original held-out scoring. Weighted variants use training-frequency weights; the primary method is the unweighted, ungated RGB residual head.

Table 4. Three-seed segmentation comparisons

Head

Development (%)

Original held-out (%)

Supplementary (%)

Linear

35.823 ± 0.336

36.813 ± 0.388

42.041 ± 1.600

Pointwise control

35.938 ± 1.680

Not evaluated

42.955 ± 0.714

Spatial control

37.083 ± 1.215

Not evaluated

42.544 ± 1.633

RGB residual

37.267 ± 0.928

37.502 ± 0.195

41.889 ± 1.069

Note: mIoU mean ± sample SD across seeds 17, 29, and 43. Development n = 99 and original held-out n = 339 use 14 reference-present classes; supplementary n = 312 uses a fixed set of 13. Later controls were not evaluated on the original held-out set. Appendix A gives per-seed supplementary values and absent-bird false-positive counts.

On the original held-out set, the RGB residual decoder increased mean mIoU from 36.813% to 37.502%, a gain of 0.689 percentage points. All three paired seed differences were positive: 0.044, 0.963, and 1.060 percentage points. The sample SD decreased from 0.388 to 0.195 percentage points. At the reporting seed of 17, scores were 37.303% and 37.258% for the RGB and linear decoders, respectively. These results describe a modest, seed-dependent improvement over the linear comparator.

The pointwise control averaged 35.938% development mIoU, compared with 37.267% for the RGB head and 37.083% for the spatial control. The RGB–spatial difference was 0.184 percentage points. On the supplementary subset, common-class mIoU averaged 42.955% for the pointwise control, 42.544% for the spatial control, 42.041% for the linear head, and 41.889% for the RGB head. Figure 3 shows all seed values and sample SDs. The RGB head exceeded the spatial control on one of three seeds in each set. Spatial processing is thus a plausible contributor to the original linear-head comparison, while the RGB-specific advantage was not consistent across these controls.

Supplementary scoring retained the original model identities, checkpoints, and parameters. Model comparisons use the same category set within each assessment. Differences between the absolute scores of the original and supplementary subsets reflect different image and category distributions and are not treated as additional method gains.

Figure 4 presents original held-out category IoU for the seed-17 linear and RGB heads. Bird IoU was zero in both runs; unlike the supplementary subset, this assessment contained bird reference pixels. Development results also showed failures on animals and variation in small categories. Class weighting recovered development bird IoU in some ablations but reduced overall mIoU. Appendix A reports category support for the supplementary subset, separating category absence from recognition failure.

Figure 3. Segmentation performance under matched controls
Note: Markers show seeds 17, 29, and 43; black marks show mean ± sample SD. Development and supplementary mIoU use fixed sets of 14 and 13 reference-present categories, respectively. The supplementary subset belongs to the same corpus.

Figure 4. Category IoU on the original held-out set
Note: Linear and primary RGB residual heads at seed 17; 339 images. Bird IoU was zero for both.

5.3 Confidence rejection and component extraction

Figure 5 shows how confidence rejection changes component precision and recall on development images. Raising the primary decoder's threshold from zero to 0.7 increased precision from 18.21% to 84.47% and reduced recall from 40.26% to 22.60%. At 0.8, precision reached 94.44% while recall fell to 8.83%. The selected threshold therefore improves retained-component reliability at the cost of fewer recovered regions. This trade-off matters when preparing a small pool of candidate motifs rather than attempting exhaustive object recovery.

Figure 5. Component selection on development images
Note: Whole-component confidence rejection raises precision while reducing recall. Components use eight-connectivity and a 32-pixel area minimum.

At the locked threshold of 0.7, the original held-out primary workflow accepted 377 scored components and matched 303 of 1,784 reference components. Precision was 80.37% and recall was 16.98%. The linear comparator accepted 419 components and matched 318, producing 75.89% precision and 17.83% recall. The RGB workflow therefore increased component precision by 4.48 percentage points while slightly lowering recall. Its accepted-pixel precision was 83.11%, compared with 81.15% for the linear head. These results show that improved selectivity can coexist with fewer recovered reference regions.

On supplementary images, the fixed primary pipeline accepted 298 components, with 256 matches among 551 reference components. Precision was 85.91% and recall 46.46%; accepted-pixel precision and target-pixel recall were 81.57% and 74.19%. These results used the same primary seed and threshold as the original held-out pipeline. Table 5 reports the accepted, matched, and reference counts for each assessment set.

Table 5. Fixed-threshold component extraction

Set and Head

Accepted

Matched

Reference

Precision (%)

Recall (%)

Original / Linear

419

318

1784

75.89

17.83

Original / RGB residual

377

303

1784

80.37

16.98

Supplementary / RGB

298

256

551

85.91

46.46

Note: Seed 17; confidence threshold 0.7; minimum area 32 pixels; class-consistent one-to-one matching at IoU ≥ 0.5. Counts refer to semantic components. Supplementary component diagnostics followed fixed-model segmentation scoring.

Supplementary component recall was lower than target-pixel recall because one-to-one matching requires a coherent region with IoU of at least 0.5. A partial tree or building mask can retain many correct pixels while failing this criterion. Region precision, region recall, and pixel recovery therefore describe complementary aspects of asset extraction. Partial masks may supply fragments or textures, whereas isolated motifs require more complete regions; the present labels support semantic-component evaluation without resolving individual depicted instances.

5.4 Adaptive layout simulation and semantic occupancy

At least two eligible layout candidates were obtained for 99 of 339 original held-out images (29.20%) and 73 of 312 supplementary images (23.40%). The three canvas formats produced 297 and 219 paired cases, respectively. Every image remained in segmentation scoring, while layout comparisons used only this eligible subset. As reported in Table 6, both arrangements in each pair used identical selected components, isolating changes in placement and scale.

Table 6. Paired adaptive occupancy gains

Set

Eligible Images

Canvas Pairs

Correct (pp)

Wrong (pp)

Unlabelled (pp)

Total (pp)

Original held-out

99 / 339

297

10.305

2.076

1.119

13.500

Supplementary

73 / 312

219

9.512

2.660

0.252

12.423

Note: pp = percentage points. Gains are adaptive shelf minus grid, averaged over paired canvas cases for the fixed seed-17 primary pipeline. The semantic decomposition is post hoc. No rendered overlap or clipping was observed in either eligible subset.

On the original held-out eligible subset, average occupied area increased from 21.24% under the grid to 34.74% under adaptive recomposition, a gain of 13.50 percentage points. Correct-category occupancy increased by 10.31 percentage points, wrong-known-category occupancy by 2.08, and unlabelled occupancy by 1.12. On the supplementary eligible subset, total occupancy increased by 12.42 percentage points, of which 9.51 came from correct-category regions, 2.66 from wrong-known-category regions, and 0.25 from unlabelled regions. Figure 6 separates these contributions. The gain in correctly classified occupied area is directly relevant to making selected semantic content more visible within the available format; the simultaneous enlargement of errors remains part of the same transformation. Correct-category pixels accounted for 76.33% and 76.56% of the mean total occupancy gains, respectively. These are ratios of aggregate paired gains, not averages of per-canvas ratios or measures of aesthetic quality.

No overlap or clipping was recorded, consistent with the explicit placement constraints. The retained grid candidate also ensures non-decreasing selected continuous scale. Occupancy differences quantify space use within the tested candidate family. Figure 7 shows the first eligible held-out image under the recorded ordering rule, using predicted masks without source painting textures.

Figure 6. Semantic composition of occupied canvas area
Note: The original and supplementary eligible subsets contain 297 and 219 canvas pairs. Both comparisons reuse fixed predictions, candidates, and transforms.

 

Figure 7. Predicted-mask recomposition on a held-out example
Note: Grid (a) and adaptive shelf (b) use the first eligible image in the recorded order. Colors identify predicted semantic classes; source painting textures are not shown.

Uniform scaling enlarges the semantic content already present in a mask. It increases correctly and incorrectly classified source regions together, subject to small raster-rounding effects. The additive partition in Eq. (6) quantifies these contributions after placement. Consequently, improved occupancy is interpreted as more efficient use of the tested canvas, while correct-category occupancy identifies the part attributable to the intended semantic content.

5.5 Simulated input perturbations

A separate development-only stress test examined Gaussian noise with standard deviation 0.05 on the [0, 1] image scale, Gaussian blur with sigma one, and half-resolution downsampling followed by bilinear restoration. This experiment compared the seed-17 linear decoder with the entropy-gated RGB ablation, not the primary ungated RGB head. No perturbed input was used for training or threshold selection. The conditions were computational image perturbations and should not be interpreted as measured acquisition noise from a camera or digitization device.

Both tested decoders lost accuracy under input perturbations (Table 7). Gaussian noise reduced linear mIoU from 36.094% to 31.041% and gated RGB mIoU from 35.695% to 30.725%. Blur produced 34.844% and 34.507%, while resolution reduction produced 33.842% and 33.335%, respectively. The gated ablation remained below the linear comparator in every condition. These development results characterize the two tested decoders; they provide no robustness estimate for the primary ungated residual decoder.

Table 7. Development mIoU under simulated perturbations

Input Condition

Linear (%)

Gated RGB Ablation (%)

Unaltered

36.094

35.695

Gaussian noise, SD = 0.05

31.041

30.725

Gaussian blur, sigma = 1

34.844

34.507

Half resolution, bilinear restoration

33.842

33.335

Note: Seed 17; 99 development images. The gated variant is an ablation, not the primary RGB head. Noise SD is 0.05 on [0, 1]; blur sigma is 1; reduced inputs are restored bilinearly to 252 × 252.
6. Discussion

6.1 Segmentation and downstream performance

The experiments distinguish three forms of improvement. Residual decoding increased original held-out mIoU relative to a linear decoder. Confidence rejection raised the reliability of selected components while reducing recovery. Recomposition increased occupied area for identical component sets, with most of the mean increase assigned to correctly classified pixels. These gains have different denominators and should be assessed at their respective stages rather than combined into a single quality score.

The matched controls delimit the architectural interpretation. The RGB decoder exceeded the pointwise control on development data, and the feature-only spatial decoder narrowed that difference. Both controls exceeded the RGB decoder's mean supplementary mIoU. Thus, the observed original improvement supports the implemented residual decoder relative to the linear head, without establishing RGB input as its independent cause. The contribution of the full workflow lies in tracing predicted content through selection and geometric transformation, including cases where decoder rankings change.

6.2 Relevance to cultural and creative visual development

The workflow supplies semantic maps, selected component masks, confidence scores, and alternative layouts across three canvas formats. A designer can use these outputs to assemble candidate motifs and inspect their spatial adaptation before addressing texture, symbolism, typography, and product-surface requirements. Semantic occupancy decomposition also identifies when a geometrically fuller arrangement enlarges classification errors, providing a computational diagnostic before design review.

The demonstrated application is preparation and format adaptation of candidate visual assets. Physical prototypes, consumer preferences, and expert cultural interpretation were outside the experiment. Canvas coverage is a geometric measure: negative space may be intentional, and preserving a component's shape does not preserve its cultural meaning after relocation. These distinctions place the evaluated processing stages within a broader design workflow without substituting occupancy for aesthetic or cultural quality.

6.3 Data dependence and reproducibility

Source bytes, image-mask pairs, quarantines, and partition rules make the data preparation traceable. Automatic duplicate screens returned no supplementary flags, while AI-assisted inspection identified potentially related compositions that prompted conservative prefix-group quarantine. Complete artwork independence cannot be inferred from these screens. The source-prefix split and same-corpus supplementary assessment are therefore reported explicitly, in line with concerns about leakage and reproducibility [26].

Input resolution and annotation structure affect the observed performance. Resizing to 252 by 252 can remove small figures, birds, and brushstroke boundaries. Label 0 is excluded supervision, and supplementary bird absence is handled through a fixed reference-present class set. The three-seed SD measures training variability rather than artwork-level sampling uncertainty. Stronger generalization evidence would require documented artwork identities and external data; competitive benchmarking would require representative segmentation systems evaluated under the same protocol.

Dataset and backbone revisions, checkpoint identities, seeds, selection rules, and scoring definitions preserve the provenance of the reported comparisons. The retained confusion matrices support common-class recalculation without new inference. Original held-out results, later structural controls, and fixed-output layout diagnostics retain their distinct evaluation roles.

7. Conclusions

An integrated image-processing method was developed for cultural image segmentation, selective component extraction, and adaptive recomposition. The residual decoder increased original held-out mean mIoU from 36.813% to 37.502% across three seeds. Supplementary structural controls showed that this result was specific to the evaluated comparison and did not establish a consistent advantage for RGB input. The framework's contribution is the evaluated connection between semantic prediction, component selection, and layout diagnostics.

At the fixed threshold of 0.7, component precision reached 80.37% on the original held-out set and 85.91% on the supplementary subset, with recalls of 16.98% and 46.46%. On eligible image-canvas pairs, adaptive recomposition increased total occupancy by 13.50 and 12.42 percentage points. Correct-category regions contributed 10.31 and 9.51 percentage points of these gains. The semantic decomposition separates useful enlargement from error amplification while preserving the same predictions and geometric transformations.

The method provides a reproducible basis for preparing candidate visual assets and adapting them to different canvas formats. Its outputs support subsequent design decisions while keeping component reliability, geometric space use, and cultural interpretation distinct. Further evaluation can address complete motif recovery, independently documented artworks, and designer-assessed cultural and visual quality.

Appendix A Reproducibility and Class Support

Table A1 reports per-seed supplementary scores and bird false positives; Table A2 gives reference-class support and seed-17 IoU. The dataset revision was 54cba6131985352b643d11394663a214dc008c51 and the DINOv2-S/14 revision was ed25f3a31f01632728cabb09d1542f84ab7b0056. The evaluation used NumPy 2.3.5, Pillow 13.0.0, SciPy 1.17.0, Transformers 4.57.6, and PyTorch 2.15.0+cpu. Development and original held-out reference masks contained all 14 categories; supplementary masks contained 13. Class support was counted after nearest-neighbor resizing to 252 × 252 and exclusion of original label 0.

Table A1. Supplementary scores under the common class set

Head

Seed

mIoU (%)

Pixel Accuracy (%)

Bird FP Pixels

Linear

17

42.143

72.162

0

Linear

29

40.392

71.951

0

Linear

43

43.588

73.267

0

Pointwise control

17

43.543

72.902

0

Pointwise control

29

42.161

65.475

46

Pointwise control

43

43.160

74.989

0

Spatial control

17

41.223

70.011

0

Spatial control

29

42.039

72.814

0

Spatial control

43

44.370

70.104

0

RGB residual

17

40.726

68.600

0

RGB residual

29

42.113

72.775

0

RGB residual

43

42.827

67.920

0

 

 

 

Note: Common-class mIoU averages the 13 reference-present categories for every supplementary model and seed. Bird false positives remain errors in pixel accuracy and false negatives for the reference categories at those pixels, and are also counted separately. The pointwise seed-29 model produced 46 bird false-positive pixels. Other runs produced none. Values were recomputed from retained confusion matrices; no training or image inference was repeated.

 

 

 

Table A2. Supplementary class support and seed-17 IoU

 

 

 

Category

Reference Pixels

Linear IoU (%)

RGB IoU (%)

River

3089261

59.200

58.041

Mountain

9549337

70.407

65.243

Trees

2467831

76.275

77.524

Clouds

2036481

25.896

29.496

Building

237363

68.445

68.772

Animals

1064

50.733

40.144

Birds

0

N/A

N/A

Boat

13078

47.431

49.588

Person

8398

46.637

47.148

Sky

1974588

45.957

42.573

Bridge

10955

46.255

41.548

Waterfall

18607

3.011

2.741

Rock

2690

0.098

0.088

Grass

263279

7.508

6.532

 

 

 

Note: N/A identifies the category without supplementary reference pixels and is excluded consistently from common-class mIoU. It is not interpreted as successful bird recognition.

 

 

 

  References

[1] Colace, F., Gaeta, R., Lorusso, A., Pellegrino, M., Santaniello, D. (2025). New AI challenges for cultural heritage protection: A general overview. Journal of Cultural Heritage, 75: 168-193. https://doi.org/10.1016/j.culher.2025.07.019

[2] Mishra, M., Lourenço, P.B. (2024). Artificial intelligence-assisted visual inspection for cultural heritage: State-of-the-art review. Journal of Cultural Heritage, 66: 536-550. https://doi.org/10.1016/j.culher.2024.01.005

[3] Yang, R., Yang, H., Zhao, M., Jia, R., Wu, X., Zhang, Y. (2023). Special perceptual parsing for Chinese landscape painting scene understanding: A semantic segmentation approach. Neural Computing and Applications, 36(10): 5231-5249. https://doi.org/10.1007/s00521-023-09343-w

[4] Hu, Q., Zhou, W., Peng, X., et al. (2024). DRANet: A semantic segmentation network for Chinese landscape paintings. Digital Signal Processing, 147: 104427. https://doi.org/10.1016/j.dsp.2024.104427

[5] Vijendran, M., Deng, J., Chen, S., Ho, E.S.L., Shum, H.P.H. (2024). Artificial intelligence for geometry-based feature extraction, analysis and synthesis in artistic images: A survey. Artificial Intelligence Review, 58(2): 1-47. https://doi.org/10.1007/s10462-024-11051-3

[6] Cohen, N., Newman, Y., Shamir, A. (2022). Semantic segmentation in art paintings. Computer Graphics Forum, 41(2): 261-275. https://doi.org/10.1111/cgf.14473

[7] Brar, K.K., Goyal, B., Dogra, A., et al. (2024). Image segmentation review: Theoretical background and recent advances. Information Fusion, 114: 102608. https://doi.org/10.1016/j.inffus.2024.102608

[8] Li, X., Ding, H., Yuan, H., et al. (2024). Transformer-based visual segmentation: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 46(12): 10138-10163. https://doi.org/10.1109/tpami.2024.3434373

[9] Cao, J., Cao, Z., Chen, Z., Wang, F., Wang, X., Yang, Z. (2024). Ancient mural segmentation based on multiscale feature fusion and dual attention enhancement. Heritage Science, 12(1): 1-15. https://doi.org/10.1186/s40494-024-01172-x

[10] Yuan, Q., He, X., Han, X., Guo, H. (2023). Automatic recognition of craquelure and paint loss on polychrome paintings of the Palace Museum using improved U-Net. Heritage Science, 11(1): 1-11. https://doi.org/10.1186/s40494-023-00895-7

[11] Yang, R., Ota, K., Dong, M., Wu, X. (2024). Semantic layout-guided diffusion model for high-fidelity image synthesis in ‘The Thousand Li of Rivers and Mountains’. Expert Systems with Applications, 263: 125645. https://doi.org/10.1016/j.eswa.2024.125645

[12] Peng, X., Hu, Q., Fan, F., Xie, P., Zhang, Y., Cao, R. (2024). FHS-adapter: Fine-grained hierarchical semantic adapter for Chinese landscape paintings generation. Heritage Science, 12(1): 1-27. https://doi.org/10.1186/s40494-024-01370-7

[13] Zhao, L., Chen, Y., Du, G., Wu, X. (2025). Semantic and sketch-guided diffusion model for fine-grained restoration of damaged ancient paintings. Electronics, 14(21): 4187. https://doi.org/10.3390/electronics14214187

[14] Yemelianenko, T., Tkachenko, I., Masclef, T., Scuturici, M., Miguet, S. (2026). Open-vocabulary models for object detection and segmentation in visual art: Survey and comparative study. Multimedia Tools and Applications, 85(3): 245. https://doi.org/10.1007/s11042-026-21443-y

[15] Oquab, M., Darcet, T., Moutakanni, T., et al. (2024). DINOv2: Learning Robust Visual Features without Supervision. Transactions on Machine Learning Research, 2024(1): 1-32. https://openreview.net/forum?id=a68SUt6zFt

[16] Liu, Z., Zhang, Z., Khaki, S., et al. (2024). Sparse refinement for efficient high-resolution semantic segmentation. In Computer Vision – ECCV 2024. ECCV 2024. Lecture Notes in Computer Science, pp. 108-127. https://doi.org/10.1007/978-3-031-72855-6_7

[17] Polak, P.B., Prusa, J.D., Khoshgoftaar, T.M. (2024). Low-shot learning and class imbalance: A survey. Journal of Big Data, 11(1): 1-37. https://doi.org/10.1186/s40537-023-00851-z

[18] Jeong, S., Heo, Y.S. (2024). ETFT: Equiangular tight frame transformer for imbalanced semantic segmentation. Sensors, 24(21): 6913. https://doi.org/10.3390/s24216913

[19] Küchler, J., Kröll, D., Schoenen, S., Witte, A. (2024). Uncertainty estimates for semantic segmentation: Providing enhanced reliability for automated motor claims handling. Machine Vision and Applications, 35(4): 1-10. https://doi.org/10.1007/s00138-024-01541-3

[20] Shi, Y., Shang, M., Qi, Z. (2023). Intelligent layout generation based on deep generative models: A comprehensive survey. Information Fusion, 100: 101940. https://doi.org/10.1016/j.inffus.2023.101940

[21] Zou, X., Zhang, W., Zhao, N. (2025). From fragment to one piece: A review on AI-driven graphic design. Journal of Imaging, 11(9): 289. https://doi.org/10.3390/jimaging11090289

[22] Shen, I., Shamir, A., Igarashi, T. (2025). LayoutRectifier: An optimization-based post-processing for graphic design layout generation. Computer Graphics Forum, 44(7): e70273. https://doi.org/10.1111/cgf.70273

[23] Chen, L., Jing, Q., Tsang, Y., Zhou, T. (2024). Iris: A multi-constraint graphic layout generation system. Frontiers of Information Technology & Electronic Engineering, 25(7): 968-987. https://doi.org/10.1631/fitee.2300312

[24] Maier-Hein, L., Reinke, A., Godau, P., et al. (2024). Metrics reloaded: Recommendations for image analysis validation. Nature Methods, 21(2): 195-212. https://doi.org/10.1038/s41592-023-02151-z

[25] Reinke, A., Tizabi, M.D., Baumgartner, M., et al. (2024). Understanding metric-related pitfalls in image analysis validation. Nature Methods, 21(2): 182-194. https://doi.org/10.1038/s41592-023-02150-0

[26] Kapoor, S., Narayanan, A. (2023). Leakage and the reproducibility crisis in machine-learning-based science. Patterns, 4(9): 100804. https://doi.org/10.1016/j.patter.2023.100804