Multimodal Image Semantic Representation, Visual Feature Disentanglement, and Generative Design for Rural Tourism Cultural Products

Multimodal Image Semantic Representation, Visual Feature Disentanglement, and Generative Design for Rural Tourism Cultural Products

Xiao Zhang

School of Art, Anhui Wenda University of Information Engineering, Hefei 231201, China

Corresponding Author Email: 
zx258258_582@yeah.net
Page: 
2369-2378
|
DOI: 
https://doi.org/10.18280/ts.430521
Received: 
3 May 2026
|
Revised: 
19 August 2026
|
Accepted: 
17 October 2026
|
Available online: 
31 October 2026
| Citation

© 2026 The author. 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: 

Traditional textile motifs are a rich visual source for cultural products, yet color variation and the boundaries of repeated patterns make them difficult to reuse computationally. This study develops a signal-processing framework that links multimodal motif representation with controllable colorway design for rural tourism applications. A frozen image–text encoder was combined with RGB, orientation and Fourier descriptors, and a class-balanced projection was regularized with paired photometric transformations. Regularized text-prototype geometry was built into the supervised class space, and gradient-domain systems were used to generate palette-controlled periodic colorways. The experiments used 1,350 eligible photographs from a publicly licensed dataset acquired in 2024, five group-separated partitions, and image-only and parameter-matched target controls. Averaged over the five partitions, retrieval average precision rose from 0.4761 to 0.5309 under color shifts and from 0.3986 to 0.4879 under grayscale conversion, compared with supervised feature fusion. Under identical regularization, text targets added mean gains of 0.0020, 0.0024 and 0.0036 for original, color-shifted and grayscale queries, respectively. Equality-constrained colorways reached zero opposing-edge error and raised mean gradient agreement from 0.9340 to 0.9638 relative to edge averaging. These results point to a reproducible route to color-stable motif retrieval and structurally controlled, image-derived design. The framework offers an auditable computational basis for turning traditional textile imagery into cultural-product references.

Keywords: 

motif retrieval, multimodal representation, periodic colorway synthesis, photometric invariance, rural tourism, textile image processing

1. Introduction

Reusing traditional textile motifs in cultural products starts with a practical image-processing problem: a photographed pattern has to be represented, matched against related references and turned into a usable graphic. Rural tourism gives this workflow a concrete application, since local craft imagery can inform repeated decorative surfaces, printed accessories and interpretive materials. The computational task addressed here is the preparation of visual design references. In this paper, generative design refers to fixed-source palette and repeat construction; the design branch does not train a new neural generator. The measurable outcomes are motif discrimination, retrieval stability and control over the transformed image signal. CHINTEXDB-PERU28 is a recent, source-documented collection of traditional textile iconographies photographed in Chinchero, Peru [1]. Its explicit provenance and shared class definitions make it possible to examine the whole processing chain.

Color and structure play different roles in a textile photograph. Color can change with illumination, camera processing or deliberate recoloring, whereas a useful reference should keep its geometric identity across several palettes. Deep-feature fusion has been applied to the retrieval of traditional motifs [2], and fabric recommendation has drawn on both image and text information [3]. General image–text pretraining places visual and linguistic information in related spaces [4], and compact models such as TinyCLIP reduce the size of the visual–linguistic backbone [5]. For specialized iconographies, however, the representation still has to link the target classes to their observable textures and account for the effect of appearance changes on retrieval.

Separating the contribution of color from that of texture is therefore central to the design problem. Self-supervised fabric retrieval has already used augmented pretext tasks to decouple color and texture information [6]. In this study, visual feature disentanglement is treated operationally: color statistics and structure descriptors are kept as explicit branches, and a paired penalty suppresses selected photometric changes in the projected representation. This setup also makes it possible to state explicitly how class-level text alters the geometry of the fitted projection, in keeping with the call for disentanglement properties to be defined and evaluated precisely [7].

Design transformation brings a second requirement: a retrieved reference may need to be recolored while its boundaries are adjusted for repetition. Controllable synthesis covers various forms of conditioning and latent manipulation [8]. One-shot Chinese textile generation has combined color and spatial-structure control [9], while ColorwAI has explored textile colorways through disentanglement in generative models [10]. The present study follows a complementary engineering route, in which a fixed photographed motif is transformed through an explicit palette and a quadratic boundary model. The resulting image remains traceable to its source, and its boundary and structural errors can be measured directly.

This study brings together photometrically stable motif retrieval and boundary-constrained colorway synthesis. Its contributions are threefold. First, paired photometric regularization, class-text geometry and explicit color/structure descriptors are combined in a compact supervised projection. Second, the text-target solution is written as the one-hot solution followed by a class-space transformation, which enables parameter-matched and reassigned-target controls. Third, soft and equality-constrained boundary models are compared with edge averaging and mirror repetition, including checks at native source resolution. Group-separated evaluation, additional image degradations and description-transfer tests delineate the operating range of the representation, and the group-preserving evaluation responds to the wider need to control leakage in machine-learning research [11].

2. Literature Review

2.1 Textile image representation and retrieval

Traditional textile retrieval links low-level image content to a structured reference library. Varshney et al. examined fused deep descriptors for Indian textile motifs [2] and showed that feature fusion is a relevant strategy in this domain. Another line of work integrates images and text for fabric recommendation [3], reflecting the fact that users often describe a preference rather than supply an exact reference photograph.

Recent retrieval research has also sought to reduce reliance on category annotation. CL-Tran applies contrastive learning with an image encoder and a momentum image encoder to textile-pattern retrieval [12]. Since both encoders operate on images, the architecture differs from an image–text dual encoder. CLIP, by contrast, learns transferable visual representations from natural-language supervision [4], and TinyCLIP relies on cross-modal distillation with affinity mimicking and weight inheritance [5]. Rather than retraining a large encoder, the present experiments freeze the compact backbone and measure what supervised descriptors and projection add.

The retrieval formulation in this study treats iconography classes as relevance labels. This makes the analysis reproducible, but it addresses a different question from expert judgment of visual similarity or cultural equivalence. Retrieving the same class for a held-out image tests recognition-supported retrieval, whereas replacing a short class description with another description tests a narrower lexical-transfer interface.

2.2 Class semantics and operational feature separation

Knowledge-enhanced multimodal learning draws on external knowledge to enrich visual–linguistic representations [13]. A class-linked description is a lightweight source of such information, though not a full knowledge graph. In this study, the descriptions act as targets whose pairwise relationships shape a supervised metric, which provides a transparent interface between the source vocabulary and the image descriptors without an additional language-model training stage.

Color–texture separation has a direct predecessor in the self-supervised fabric framework of Wang et al. [6]. Their use of image transformations and distinct feature roles is an important point of comparison for the present paired regularizer. The current model, however, uses an explicit quadratic projection and a fixed text-prototype matrix. Its contribution can therefore be assessed through controlled target substitutions and a closed-form solution instead of being attributed to an unspecified semantic effect.

Carbonneau et al. classified disentanglement metrics by their assumptions and measurement mechanisms [7]. The distinction matters here, because a classifier can become less sensitive to a transformation without recovering independent underlying factors. The experiments therefore measure specified changes in classification, image retrieval and description transfer. The evidence supports an operational interpretation in terms of color stability, while the class-space factorization accounts for the geometry introduced by text targets.

2.3 Controllable design and periodic image structure

Controllable synthesis offers several ways to condition generated images or manipulate their attributes [8]. In heritage-related applications, adapter-based diffusion has been applied to Dunhuang patterns [14], fine-tuning to traditional kite designs [15] and human–AI workflows to lacquerware [16]. These studies combine structural control, learned generation and human participation in different ways. They also suggest that the property being controlled should be evaluated explicitly, instead of treating image generation as a single, undifferentiated outcome.

ColorwAI deals directly with alternative textile colorways that keep an underlying pattern [10], and its expert questionnaires separate computational image measures from human assessment of creativity. OS-CTPIG addresses one-shot Chinese textile synthesis with color and spatial control [9]. The design branch proposed here works on a fixed source crop and applies deterministic signal constraints. It offers an analytically specified, easily reproducible alternative for reference preparation while keeping a direct link to the photographed source.

Repeated-pattern detection is concerned with locating and organizing existing repetitions in fabric images [17], and adjacent key-point localization has been used to identify minimal repeated patterns [18]. These detection tasks differ from building a tile whose opposing boundaries match, which is the problem addressed by the present boundary model. The distinction matters for metric selection: repeat localization accuracy, edge continuity and agreement with the source structure describe different processing operations and should be interpreted separately.

3. Data and Research Methods

3.1 Data provenance and group construction

CHINTEXDB-PERU28 V3 contains 1,358 photographs in 28 iconography classes. According to the dataset creators, the images were acquired in March and April 2024 [1], and the archive is distributed under CC BY 4.0. This study reused the public images and annotations; all acquisition was carried out by the dataset creators. After all images were decoded, four exact duplicates were removed and four photographs with empty annotation files were excluded, leaving 1,350 eligible photographs.

Conservative similarity groups were defined as connected components of exact-duplicate and perceptual-hash candidate relationships. A 64-bit perceptual hash was computed from the low-frequency 8 × 8 discrete cosine transform block of a 32 × 32 grayscale image, and candidate pairs were those with a Hamming distance of at most six. The resulting 1,300 groups are photograph-similarity units; they are not identifiers of independently verified physical textiles. Five partitions were generated with seeds 17, 29, 43, 71 and 101. For each seed, 500 candidate partitions were screened only for class-distribution balance, before any model outcomes were inspected. The target proportions for training, validation and testing were approximately 70%, 15% and 15%.

Every region inherited the group assignment of its source photograph. Polygon labels were converted to enclosing axis-aligned boxes. For each photograph and class, up to two of the largest distinct boxes with a native width and height of at least 32 pixels were kept, yielding 11,872 crops. Retrieval used a stricter unit, namely the largest native-coordinate crop for each group–class combination, with ties resolved in favor of the earlier index. Table 1 distinguishes the photograph, crop and retrieval units.

Table 1. Data and evaluation units

Unit

Count

Definition

Eligible photographs

1,350

After duplicate and empty-label exclusions

Photograph similarity groups

1,300

Conservative connected components

Feature crops

11,872

At most two regions per photograph and class

Seed-17 retrieval gallery

4,140

Training group–class units

Seed-17 retrieval queries

871

Test group–class units

Figure 1 summarizes class support in the original archive before duplicate removal and crop selection. Its 102,591 source annotations should not be confused with the 11,872 retained feature crops.

Figure 1. Class support in photographs and annotated regions

3.2 Image and class-text signals

The handcrafted branch operated on crops bilinearly resized to 64 × 64 pixels. Marginal RGB histograms with 16 bins per channel gave 48 dimensions. From standardized luminance, unsigned orientation histograms with nine bins were computed in each of sixteen nonoverlapping cells, giving a 144-dimensional component inspired by histograms of oriented gradients (HOG) [19]. Sixteen normalized radial Fourier-power statistics completed the 208-dimensional handcrafted vector. The orientation and Fourier components together formed the 160-dimensional structure-only control.

Luminance was standardized within each crop before gradients and spectra were computed. Orientation histograms were weighted by gradient magnitude and normalized within each cell. Radial Fourier power was averaged over sixteen annular bands, each two frequency-grid units wide, transformed with log(1 + power), and normalized to unit Euclidean norm.

A frozen TinyCLIP backbone [5] provided a 512-dimensional unit-normalized image embedding. The checkpoint was wkcn/TinyCLIP-ViT-8M-16-Text-3M-YFCC15M, revision a2a8c6eaa2549ad66eb7c31b85022bf58273a26c. Input crops were processed at 112 × 112 pixels with positional interpolation; this operating resolution should be distinguished from the native 224-pixel resolution used in the checkpoint benchmarks. Embeddings were cached in float16 and converted to float64 for fitting. Concatenating the image embedding with the handcrafted vector gave 720 dimensions, and training-set standardization plus an intercept produced a 721-dimensional predictor row.

The text branch encoded 28 class descriptions linked to the source. The class order in the archive YAML file was mapped explicitly to the descriptions in the data article. These descriptions are class-level paraphrases, not captions annotated independently for each photograph. Text inputs were limited to 77 tokens. Let $t_c$ be a unit-normalized text vector. The rows of Q were obtained by centering these vectors and normalizing each row. With QQᵀ = V diag(λ)Vᵀ, the regularized target matrix was

$S=\operatorname{rownorm}\left(V \operatorname{diag}\left(\sqrt{\frac{\lambda}{\lambda+\tau}}\right)\right)$          (1)

The ratio and square root in Eq. (1) are applied to each eigenvalue separately. Small negative eigenvalues caused by roundoff were clipped to zero, and the rows were normalized after the spectral transformation. The parameter τ controls the conditioning of the class prototypes. In exact arithmetic, centering limits the rank to 27, although floating-point reconstruction may leave a negligible residual direction. The fitted implementation was used without applying a further rank threshold.

3.3 Class-balanced paired projection

Let X denote training predictor rows, Y the 28-column one-hot label matrix and A the diagonal class-weight matrix. Weight $w_i$ = n/(28 $n_{y_i}$) depends on the training-crop count n and the training support of the class of observation i. D stacks the differences between the original predictor rows and their two transformed versions. $A_D$ repeats the class weights, halved, for these difference blocks. J is a diagonal matrix with ones on the feature coordinates and zero on the intercept. The ridge-based projection [20] minimized

$\begin{gathered}\mathcal{L}(W)=\left\|A^{1 / 2}(X W-Y S)\right\|_F^2+\eta\left\|A_D{ }^{1 / 2} D W\right\|_F^2+\alpha \operatorname{tr}\left(W^T J W\right)\end{gathered}$          (2)

$\begin{gathered}K=X^T A X+\eta D^T A_D D+\alpha J, \\ C=X^T A Y .\end{gathered}$          (3)

$\begin{gathered}W_0=K^{-1} C, \\ W_S=K^{-1} C S=W_0 S .\end{gathered}$         (4)

Eq. (4) gives the text branch an explicit interpretation. Under identical α and η, the text-target solution equals the one-hot solution followed by S. For q = xW₀, classification uses qSSᵀ and retrieval uses the cosine similarity of qS. M = SSᵀ therefore defines a positive-semidefinite metric in class space. Because an orthogonal rotation of the targets leaves cosine similarity unchanged, this factorization motivates comparisons among matched targets, orthogonal rotations and reassigned class–prototype mappings.

The one-hot controls used S = I₂₈. The raw-text controls used the centered, row-normalized prototype matrix Q directly as the target, with and without the paired penalty. Frozen zero-shot predictions were based on dot products between unit image embeddings and the original unit text prototypes. All fitted controls used training-set feature standardization and the same class-weighting rule.

Two paired transformations were used: a gain/gamma operation with exponent 0.8 and channel gains (1.20, 0.85, 1.05), and grayscale conversion. Each was applied after resizing within its feature branch. In the gain/gamma transform, exponentiation was applied before channel multiplication, and the result was clipped to [0,1]. The hyperparameters α in {1, 10, 100}, η in {0, 0.1, 1, 10} and τ in {0.01, 0.1, 1} were chosen by mean validation Macro-F1 over original, transformed-color and grayscale inputs, and the same values were reused in all later retrieval evaluations. The matched-target controls applied the α and η previously selected for the semantic model to both target types, alongside the independently selected one-hot baseline.

Figure 2 outlines the representation and colorway branches and their separate evaluation paths.

Figure 2. Representation and colorway processing branches

3.4 Gradient-domain colorway synthesis

In the main 128-pixel design experiment, source crops were resized with bicubic interpolation; the paired-resolution experiment used Lanczos interpolation at both resolutions.

Each fixed source crop was converted into a normalized RGB luminance proxy with weights (0.299, 0.587, 0.114), scaled between the first and ninety-ninth percentiles and clipped to [0,1]. Let f be this signal, L the forward-difference graph Laplacian and H = I + L, and let T compare opposing boundary pixels. Following gradient-domain image editing and tileable-region construction [21], the soft boundary solution satisfied

$\left(H+\mu T^T T\right) z^*=H f$         (5)

The boundary penalty was controlled by μ in {0, 1, 10, 100}. The equality extension used a map P that copied the first row and column of an (s − 1) × (s − 1) variable array to the final boundaries of an s × s image. The reduced system was

$\left(P^T H P\right) u^*=P^T H f, z=P u^*$         (6)

$\begin{gathered}v=d+(\ell-d) \operatorname{clip}(z, 0,1), \\ c(z)=\operatorname{round}(255 v)\end{gathered}$          (7)

Here, d and ℓ are the dark and light RGB endpoints on [0,1]. The three palettes were indigo–cream, terracotta–sand and forest–ivory, with 8-bit endpoint pairs of (26,35,87)/(241,231,207), (74,34,29)/(232,191,137), and (19,61,47)/(231,224,179), respectively. Clipping was applied after the linear solve. In the tied-boundary formulation it preserves opposing-edge equality, but it is a post-solve operation, not a general exact box-constrained optimization step.

4. Experimental Setup

4.1 Recognition and retrieval comparisons

Macro-F1 was the primary recognition metric in the main text, and balanced accuracy and prediction consistency are given in Supplementary Material S1. The comparisons covered frozen zero-shot TinyCLIP, image-only ridge, texture-only ridge, fused ridge, raw-text projection, paired raw-text projection, decorrelated-text projection, paired one-hot projection and paired decorrelated-text projection. The same five photo-group partitions were used throughout. Standardization and coefficient fitting relied on training observations, and configurations were selected on validation outcomes.

Closed-set image retrieval used a clean training gallery and test query regions. No gallery group appeared in the corresponding query split. Gallery sizes ranged from 4,092 to 4,140 and query sizes from 871 to 912, and relevance was defined as sharing the same iconography class. The primary retrieval metric, mean average precision (mAP), averaged full-gallery average precision over queries, whereas class-macro mAP first averaged within each class and then gave all 28 classes equal weight. Standard deviations across the five partitions describe variation over repeated splits. Because photographs recur across partitions, the partitions are repeated evaluations of a single archive.

A resolution-sensitivity check recomputed the frozen image embeddings at 224 × 224 pixels for all 4,140 gallery units and 871 query units of seed 17, using only original images and the same checkpoint. At both resolutions, embeddings were unit-normalized and cached in float16, and cosine scores were computed in float64. Native-resolution encoding used the checkpoint processor without positional interpolation. No hyperparameters were fitted in this comparison.

Further seed-17 conditions included reverse color gains (0.80, 1.15, 0.90) with gamma 1.25, JPEG compression at quality 25 with subsampling 2, and Gaussian blur with radius 1.2. The fitted parameters were kept fixed. For classification, paired uncertainty intervals were obtained from 1,000 resamples of the 195 test similarity groups; retrieval comparisons used 2,000 group resamples with the gallery held fixed. These intervals describe the specified comparison between fitted models and are reported without adjustment for multiple comparisons.

A description-transfer test replaced the short class prompts with longer descriptions from the same data article. Leading class headings and citation markers were removed, and the texts were encoded and mapped into the regularized prototype coordinates, while the 28 classes and the fitted image projection were kept unchanged. This is a within-source lexical-transfer task, and its 1,737 test crops are distinct from the 871 deduplicated retrieval query units. In addition, ten fixed permutations of the class–prototype assignments were evaluated for seed 17. Their ranges serve as descriptive controls, not as permutation p-values.

For description transfer, the new unit text embeddings were centered with the mean of the short training prototypes and normalized by row. With the eigensystem of Eq. (1), the coordinate basis and the mapped description row were

$\begin{gathered}U=Q^T V \operatorname{diag}\left[\max (\lambda, \varepsilon)^{-1 / 2}\right], \\ t^*=\operatorname{rownorm}\left[t U \operatorname{diag}\left((\lambda+\tau)^{-1 / 2}\right)\right]\end{gathered}$         (8)

In Eq. (8), ε = 10⁻¹² prevents division by a vanishing eigenvalue, and τ keeps its seed-17 value. Image rows from the text-target projection were scored against the mapped descriptions, whereas the image-only association control used centered short-prototype–description inner products.

4.2 Design comparisons and reproducibility

The main design comparison used 60 photographs from the seed-17 test partition and three palettes at 128 pixels. The photographs were taken at evenly spaced positions in the sorted list of test photographs, and the first retained crop of each was used, so the selection did not depend on model predictions or design scores. Four soft-penalty settings produced 720 outputs, edge averaging and mirror repetition added 360, and equality projection added 180, for a total of 1,260 evaluated outputs. The 60 photographs came from 60 distinct similarity groups. Results for the three palettes were averaged within each source photograph before the 2,000-resample paired bootstrap. The metrics were opposing-edge mean absolute error, forward-gradient cosine agreement and normalized luminance MAE. All were measured after 8-bit palette rendering and inverse endpoint-luminance normalization, which leaves a small quantization floor even at μ = 0.

Opposing-edge MAE averaged the left–right and top–bottom boundary differences. Gradient agreement was the cosine similarity between the concatenated horizontal and vertical forward differences of the recovered and source signals, and luminance MAE averaged their absolute pixel differences. With a = (0.299, 0.587, 0.114) and rendered RGB value c, the normalized luminance was recovered as

$r=\frac{a^T(c / 255)-a^T d}{a^T(\ell-d)}$          (9)

All design metrics compared r from Eq. (9) with the normalized source f.

The native-resolution check used all six experimental source crops whose original width and height were at least 512 pixels. Each crop was recomputed at 128 and 512 pixels with Lanczos resizing, three palettes and five methods, giving 180 metric rows; no image was chosen on the basis of its design score. The boundary strip had a relative width of 1/32 at both resolutions. The native-resolution systems were solved by diagonally preconditioned conjugate gradients with a relative tolerance of 10⁻⁸, zero absolute tolerance and at most 1,000 iterations, and the convergence status and relative residual of every solve were recorded. The model revision, data hashes, split assignments, parameters, source coordinates and result arrays are kept in the reproduction materials.

5. Results and Analysis

5.1 Recognition improves under targeted color variation

Among the principal comparisons, feature fusion gave the best clean-image recognition, with a mean Macro-F1 of 0.6464, against 0.5377 for image-only ridge and 0.3320 for the texture-only model. Table 2 also reveals different sensitivities to the transformations. Texture-only performance stayed close to 0.332 for all three inputs, whereas fused ridge dropped to 0.3974 on grayscale images. The paired decorrelated-text model reached 0.4918 on grayscale and 0.5895 under the color transform, so its gains over fused ridge were concentrated in the conditions targeted by the penalty.

The same comparison also exposes a measurable tradeoff. The paired decorrelated-text model reached a clean-image Macro-F1 of 0.6258, lower than fused ridge, whereas its independently selected paired one-hot counterpart reached 0.6315. Pairing thus improved color stability without making the model preferable at every operating point. Raw text targets yielded much lower recognition than decorrelated targets. Since these formulations differ in target geometry and effective representation, the parameter-matched analysis below complements this comparison. Together, these comparisons describe the contribution of prototype conditioning within the evaluated archive.

Table 2. Recognition Macro-F1 across five partitions

Model

Original

Color shift

Grayscale

Frozen zero-shot

0.0249 ± 0.0070

0.0245 ± 0.0071

0.0228 ± 0.0034

Image ridge

0.5377 ± 0.0135

0.4509 ± 0.0215

0.2065 ± 0.0091

Texture ridge

0.3320 ± 0.0109

0.3303 ± 0.0071

0.3323 ± 0.0072

Fused ridge

0.6464 ± 0.0210

0.5514 ± 0.0216

0.3974 ± 0.0110

Raw text

0.5276 ± 0.0111

0.4276 ± 0.0161

0.3288 ± 0.0081

Raw text + paired

0.5076 ± 0.0225

0.4654 ± 0.0167

0.3922 ± 0.0221

Decorr. text

0.6432 ± 0.0164

0.5494 ± 0.0197

0.4006 ± 0.0125

One-hot + paired

0.6315 ± 0.0222

0.5888 ± 0.0222

0.4828 ± 0.0355

Decorr. text + paired

0.6258 ± 0.0217

0.5895 ± 0.0195

0.4918 ± 0.0261

Note: Values are means ± sample standard deviations across five group-separated partitions.

Figure 3 compares selected recognition models under the three image conditions; error bars denote sample standard deviations across the five partitions.

Figure 3. Recognition performance under controlled image changes

Table 3 examines three further image conditions with the seed-17 model held fixed. Under the reverse color transform, the paired text model outperformed fused ridge, and the conditional interval lay above zero. For JPEG compression, the interval spanned zero, and blur favored fused ridge. The improvement is therefore specific to photometric changes and is not a uniform response to all image degradations.

Table 3. Fixed-model classification on additional conditions

Condition

Fused

Paired One-Hot

Paired Text

95% CI for ΔMacro-F1

Reverse color

0.5481

0.5712

0.5740

[+0.0012, +0.0515]

JPEG quality 25

0.5454

0.5342

0.5352

[-0.0292, +0.0117]

Gaussian blur

0.5609

0.5171

0.5220

[-0.0639, -0.0135]

Note: ΔMacro-F1 denotes paired text minus fused ridge. Intervals used 1,000 paired resamples of 195 test similarity groups.

5.2 Retrieval gains repeat across group-separated partitions

The retrieval analysis carried the recognition representation over to reference ranking, and Table 4 reports all six representation choices. Compared with supervised fusion, paired decorrelated-text projection raised mean mAP from 0.4761 to 0.5309 under color shifts and from 0.3986 to 0.4879 under grayscale conversion, corresponding to absolute gains of 0.0548 and 0.0893, respectively. The paired difference was positive in every partition under both conditions. Class-macro mAP pointed in the same direction, so the improvement is not limited to an aggregate weighted by query frequency.

Table 4. Retrieval mAP means and sample standard deviations

Representation

Original

Color Shift

Grayscale

Frozen image

0.1852 ± 0.0037

0.1583 ± 0.0027

0.1131 ± 0.0011

Texture descriptors

0.2009 ± 0.0057

0.1986 ± 0.0058

0.2009 ± 0.0057

Standardized fusion

0.2258 ± 0.0051

0.1940 ± 0.0037

0.1361 ± 0.0024

Supervised fusion

0.5589 ± 0.0122

0.4761 ± 0.0114

0.3986 ± 0.0124

Paired one-hot

0.5532 ± 0.0072

0.5279 ± 0.0150

0.4793 ± 0.0275

Paired text

0.5521 ± 0.0105

0.5309 ± 0.0139

0.4879 ± 0.0232

Figure 4 shows how retrieval varied across the five group-separated partitions; error bars denote sample standard deviations.

Figure 4. Retrieval stability across five partitions

On original queries, supervised fusion remained strongest, with mean mAP of 0.5589. The paired text model reached 0.5521, and the independently selected paired one-hot model 0.5532. The practical advantage therefore lies in more stable ranking when color information changes. The much lower scores for frozen, texture-only and standardized-fusion similarity also show that supervised class structure contributes substantially to this closed-set task, although these comparisons do not place methods with different training requirements on an equal footing.

A resolution check on the frozen backbone used the same seed-17 original-image gallery and queries at 224 pixels, without projection fitting or retrieval tuning. The 112-pixel result was first reproduced from its saved embeddings. Query-weighted mAP was 0.1867 at 112 pixels and 0.2027 at 224 pixels; class-macro mAP was 0.1232 and 0.1295, respectively. This check concerns only the frozen original-image interface and is separate from the five-partition results of the projected models.

5.3 Parameter matching identifies the prototype contribution

Keeping α and η identical within each partition isolates the effect of changing the target matrix within the same regularized fit. Table 5 shows positive mean gains for the text targets under all three conditions: 0.001971 for original queries, 0.002435 for color-shifted queries and 0.003568 for grayscale queries. All five paired differences were positive in each condition. This is consistent with a small class-metric contribution on top of the paired projection, and it addresses a different question from the comparison with the independently selected baseline in Table 4.

Table 5. Retrieval with identical regularization parameters

Target

Original

Color Shift

Grayscale

Matched one-hot

0.5502 ± 0.0109

0.5285 ± 0.0141

0.4843 ± 0.0236

Matched text

0.5521 ± 0.0105

0.5309 ± 0.0139

0.4879 ± 0.0232

Figure 5 shows the paired target differences under matched regularization.

Figure 5. Paired retrieval gains with matched regularization

The factorization in Eq. (4) was also checked numerically. Direct and factored solutions agreed to within a relative error of 8.71 × 10⁻¹², and orthogonal cosine invariance, tested on 100 query rows and 200 gallery rows per partition, held with a maximum absolute difference of 9.99 × 10⁻¹⁶. These checks support reading the implemented operation exactly as a learned one-hot projection followed by a metric transformation in class space.

The assignment controls sharpen this interpretation. For seed 17, original-query mAP was 0.553680, whereas the ten reassigned-target values ranged from 0.551784 to 0.553647. Under color shifts, the unshuffled value was 0.534403, and the reassigned values ranged from 0.532424 to 0.534596, with two of the ten above the unshuffled result. For grayscale queries, the original assignment reached an mAP of 0.495066, against a range of 0.493450 to 0.495007 for the reassigned targets. The original assignment thus gave a modest geometric advantage in these comparisons. Since a supervised projection can also learn reassigned class targets, the result is interpreted as metric shaping within the trained vocabulary, in line with the distinction between a property of the representation and a general semantic claim [7].

5.4 Description transfer characterizes the linguistic interface

The test with longer descriptions offers a complementary view of the text interface. On original images, the projected text model reached a Macro-F1 of 0.1754, compared with 0.1860 for supervised image fusion followed by text association. On transformed-color and grayscale inputs, its values were 0.1522 and 0.1548, respectively, against 0.1178 and 0.1121 for the association control. The model therefore has an advantage under photometric changes, while the original-image lexical-transfer task remains more demanding. The descriptions come from the same source as the training prompts, the class set is unchanged, and the test does not separate the effects of prompt length, domain vocabulary or input resolution.

The class descriptions supply an indexing vocabulary and shape the retrieval metric, and the description-transfer test separately assesses how sensitive the model is to alternative wording within that vocabulary.

5.5 Boundary constraints improve periodic colorway control

The boundary experiment revealed a direct tradeoff between opposing-edge agreement and image change. Without a boundary penalty, the mean opposing-edge error was 0.2905; it fell to 0.0231 at μ = 10 and to 0.0025 at μ = 100. Equality projection and edge averaging both reached zero opposing-edge error, but Table 6 shows that they behave differently in structural terms: equality projection achieved a gradient agreement of 0.9638, against 0.9340 for edge averaging, while normalized luminance MAE rose from 0.0054 to 0.0079.

Table 6. Colorway metrics at 128 pixels

Method

Edge MAE

Gradient Agreement

Luminance MAE

No boundary penalty

0.2905

0.9996

0.0009

Soft penalty 1

0.1331

0.9881

0.0047

Soft penalty 10

0.0231

0.9688

0.0074

Soft penalty 100

0.0025

0.9643

0.0079

Edge averaging

0.0000

0.9340

0.0054

Equality projection

0.0000

0.9638

0.0079

Mirror repeat

0.0000

-0.0023

0.2957

Note: Metrics were averaged over three palettes within each photograph and then across 60 photographs.

Relative to edge averaging, the source-level mean gradient difference was +0.0298 (paired 95% interval [0.0229, 0.0380]) and the luminance-error difference was +0.00251 (interval [0.00232, 0.00272]). Equality projection thus distributes the boundary correction in a way that better preserves the source gradient field, at the cost of a larger overall pixel change. Mirror repetition also removes edge mismatch but changes scale and orientation relative to the aligned source; its near-zero gradient agreement reflects this change in alignment, not overall creative quality.

All design values in the tables are based on forward differences and rendered 8-bit outputs. Even the unconstrained design shows a small luminance error, because rendering and recovering the endpoints introduces quantization. Boundary equality controls the image values at the seam; slope continuity and the interpretation of repeated symbols are separate properties.

5.6 Native-source designs preserve the numerical tradeoff

Table 7 summarizes the native-source experiment, which recomputed all six eligible large crops at both resolutions. At 512 pixels, equality projection kept the opposing-edge error at zero, with a mean gradient agreement of 0.9856 and a luminance MAE of 0.002765; the corresponding values for edge averaging were 0.9709 and 0.002097. All 36 iterative solves converged (six crops, two resolutions, two soft-penalty settings and one equality-constrained formulation), with a maximum relative residual of about 1.0 × 10⁻⁸. These results show that the method operates numerically on native 512-pixel source crops, rather than on enlarged versions of the earlier 128-pixel outputs.

Table 7. Paired-resolution check on six source crops

Pixels

Method

Edge MAE

Gradient Agreement

Luminance MAE

128

Edge averaging

0.0000

0.9809

0.005492

128

Equality projection

0.0000

0.9889

0.007907

512

Edge averaging

0.0000

0.9709

0.002097

512

Equality projection

0.0000

0.9856

0.002765

Note: The 128- and 512-pixel rows summarize the same six-source subset, with three palettes per crop.

Figure 6. Native source crops and repeated colorways

Figure 6 uses the first two source crops in the predetermined eligible sequence. Panels (a) and (d) show the source crops, (b) and (e) the edge-averaged repeats, and (c) and (f) the equality-projected repeats. Each repeat is a 2 × 2 arrangement of a 512 × 512-pixel tile. Because the source and repeat panels are displayed at different scales, the correction should be compared visually between the two repeat columns. The photographed weave and illumination remain part of the image-derived graphic, so these outputs are reference colorways, not vectorized artwork for manufacturing.

Within the same six-source subset, gradient agreement was higher at 128 pixels, whereas the mean luminance change was smaller at 512 pixels. Because these measures depend on the proportion of boundary pixels and on gradient scale, resolution, continuity and source fidelity should be regarded as distinct properties.

6. Discussion

6.1 Contribution to multimodal signal processing

The framework improves retrieval stability by combining complementary image signals with a controlled transformation model. RGB histograms retain explicit color information, orientation and Fourier descriptors summarize structural content, and the frozen encoder contributes a learned visual representation. The paired penalty limits changes in the projected signal under two defined photometric operations, and the repeated-partition results show that the largest benefit occurs in the conditions for which these operations were designed. Original-image discrimination and sensitivity to blur remain useful criteria when choosing between fused and paired representations.

The class-text component alters retrieval geometry through the explicit metric M = SSᵀ. Equation (4), orthogonal invariance and the matched targets together show where this effect enters the model. A small improvement under identical regularization can coexist with different outcomes when each baseline selects its own parameters: matched parameters isolate the effect of the target matrix, whereas independently selected parameters compare configurations chosen on validation data. The assignment controls and the lexical-transfer task further separate labeled-reference retrieval from a broader text interface.

Building on color–texture retrieval [6] and disentanglement evaluation [7], the framework quantifies photometric stability through repeated group-separated comparisons. Here, feature separation means explicit descriptor branches and measured sensitivity to transformations; recovering independent latent factors is a different goal.

6.2 Implications for rural tourism design workflows

In preparing references for cultural products, the representation can rank related motif crops when the palette changes, and the design branch can produce alternative colorways with controlled repetition. The class-linked vocabulary ties each reference to its documented iconography name. Palette endpoints and boundary weights are explicit inputs, so a designer can inspect and reproduce any variant. The system is therefore suited to serve as a computational support stage between an image archive and subsequent product-development decisions.

The design branch complements learned approaches to colorway and heritage generation [9, 10, 14]. Its strengths are direct traceability to the source and numerical control over a limited family of transformations. The examples retain the structure of the photographed image, including texture that may be useful for reference work. Human creative preference, cultural interpretation and product adoption require other kinds of evidence, as the participatory design literature illustrates [16]. The empirical scope of this study is image processing and computational design; artisan participation, consumer response and the performance of physical products are left to application-specific evaluation.

6.3 Scope and generalizability

The archive comes from a single textile tradition, and the class descriptions are taken from its accompanying article. The similarity groups reduce one documented source of leakage [11], although verified identifiers of physical textiles would allow a stronger material-level partition. The repeated splits summarize sensitivity to data allocation within this archive. External collections and independently written descriptions are a natural next step for evaluating a broader semantic interface. The main projected models operate at 112 pixels with positional interpolation, and the handcrafted branch at 64 pixels. The separate 224-pixel check evaluates frozen original-image retrieval without retraining these models, so the reported comparisons describe this specific computational setting. The native-resolution experiment concerns design synthesis, not encoder recognition at 512 pixels. Classification, retrieval and colorway extension were developed in sequence and are reported as exploratory analyses. These conditions define the reproducible scope of the present study and indicate how future benchmarks can test transfer across acquisition conditions, vocabularies and resolutions.

7. Conclusions

This study developed a multimodal motif-processing framework that combines explicit color and structure descriptors, a frozen image–text representation, paired photometric regularization and boundary-constrained colorway synthesis. Across five group-separated partitions, the paired text representation raised mean retrieval mAP from 0.4761 to 0.5309 under color shifts and from 0.3986 to 0.4879 under grayscale conversion, compared with supervised fusion. Matched regularization revealed a further, smaller contribution from target geometry, and the factorized solution made this contribution analytically explicit.

The design experiments showed that equality-constrained synthesis achieves exact opposing-edge agreement and preserves the source gradient field better than edge averaging, with its larger luminance change quantifying the cost. Native-source recomputation confirmed numerical convergence and periodic control at 512 pixels. Taken together, the recognition and design results offer a reproducible computational route for preparing traditional motif references for the development of rural tourism cultural products. The main contribution lies in improved photometric stability and explicit structural control within an image workflow that remains traceable to its source.

Acknowledgment

This paper was funded by the Anhui Provincial Key Scientific Research Project "Research on the Development of Hui-style Rural Tourism Cultural and Creative Products" (Grant No.: 2024AH052527).

  References

[1] Enriquez, G.F., Peralta, R.A., Cárdenas, E.J.E., Hanco, H.N., Rodas, L.E., Cubas, C.F.M. (2026). CHINTEXDB-PERU28: A unique dataset of traditional textile iconographies from Chinchero, Peru for cultural preservation and image recognition. Data in Brief, 66: 112835. https://doi.org/10.1016/j.dib.2026.112835

[2] Varshney, S., Singh, S., Lakshmi, C.V., Patvardhan, C. (2024). Content-based image retrieval of Indian traditional textile motifs using deep feature fusion. Scientific Reports, 14(1): 1-17. https://doi.org/10.1038/s41598-024-56465-9

[3] He, Z., Ma, Y., Xiang, J., Zhang, N., Pan, R. (2024). Content-based fabric recommendation system integrating image and text information. The Journal of the Textile Institute, 116(4): 613-622. https://doi.org/10.1080/00405000.2024.2348201

[4] Radford, A., Kim, J.W., Hallacy, C., et al. (2021). Learning transferable visual models from natural language supervision. In Proceedings of the 38th International Conference on Machine Learning, PMLR 139, 8748-8763. https://proceedings.mlr.press/v139/radford21a.html

[5] Wu, K., Peng, H., Zhou, Z., et al. (2023). TinyCLIP: CLIP distillation via affinity mimicking and weight inheritance. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), Paris, France. https://doi.org/10.1109/ICCV51070.2023.02008

[6] Wang, M., Wang, J., Zhang, N., Xiang, J., Gao, W. (2024). Fabric image retrieval based on decoupling of texture and color feature. Journal of Engineered Fibers and Fabrics, 19: 1-13. https://doi.org/10.1177/15589250241246074

[7] Carbonneau, M., Zaïdi, J., Boilard, J., Gagnon, G. (2022). Measuring disentanglement: A review of metrics. IEEE Transactions on Neural Networks and Learning Systems, 35(7): 8747-8761. https://doi.org/10.1109/tnnls.2022.3218982

[8] Huang, S., Li, Q., Liao, J., Wang, S., Liu, L., Li, L. (2024). Controllable image synthesis methods, applications and challenges: A comprehensive survey. Artificial Intelligence Review, 57(12): 1-46. https://doi.org/10.1007/s10462-024-10987-w

[9] Shi, X., Tao, Z., Ge, S., Zhao, X., Wang, X., Zhang, W. (2026). OS-CTPIG: Augmenting and constructing a Chinese textile pattern image dataset with center radial layout using one-shot image generation methods. Textile Research Journal. https://doi.org/10.1177/00405175251355955

[10] Schaerf, L., Alfarano, A., Postma, E. (2025). ColorwAI: Generative colorways of textiles through GAN and diffusion disentanglement. In Computer Vision – ECCV 2024 Workshops. ECCV 2024, pp. 137-160. https://doi.org/10.1007/978-3-031-91572-7_9

[11] 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

[12] Liu, Y., Han, R., Guan, C., Gao, J., Li, Y. (2026). Unsupervised pattern image retrieval via dual-encoder architecture with multi-head attention. Neurocomputing, 672: 132723. https://doi.org/10.1016/j.neucom.2026.132723

[13] Lymperaiou, M., Stamou, G. (2024). A survey on knowledge-enhanced multimodal learning. Artificial Intelligence Review, 57(10): 1-80. https://doi.org/10.1007/s10462-024-10825-z

[14] Tian, Y., Yu, T., Cheng, Z., Lee, S. (2025). Advancing traditional dunhuang regional pattern design with diffusion adapter networks and cross-entropy. Entropy, 27(5): 546. https://doi.org/10.3390/e27050546

[15] Zhou, Y., Liu, Y., Shao, Y., Chen, J. (2025). Fine-tuning diffusion model to generate new kite designs for the revitalization and innovation of intangible cultural heritage. Scientific Reports, 15(1): 1-19. https://doi.org/10.1038/s41598-025-92225-z

[16] Liang, J., Li, Y., Xiong, Z., Huang, Q. (2025). Advancing lacquerware design through human-AI collaboration with controllable diffusion models. Scientific Reports, 16(1): 421. https://doi.org/10.1038/s41598-025-33119-y

[17] Ayyurek, E., Marcuzzo, M., Zangari, A., et al. (2026). Repeated pattern detection on fabric: A survey and novel approach. PLOS ONE, 21(2): e0340797. https://doi.org/10.1371/journal.pone.0340797

[18] Zang, Q., Zhang, J., Bo, L., et al. (2024). A fully automatic adjacent key-points localization framework for minimal repeated pattern detection in printed fabric images. Knowledge-Based Systems, 300: 112157. https://doi.org/10.1016/j.knosys.2024.112157

[19] Dalal, N., Triggs, B. (2005). Histograms of oriented gradients for human detection. In 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'05), San Diego, CA, USA. https://doi.org/10.1109/CVPR.2005.177

[20] Hoerl, A.E., Kennard, R.W. (1970). Ridge regression: Biased estimation for nonorthogonal problems. Technometrics, 12(1): 55-67. https://doi.org/10.1080/00401706.1970.10488634

[21] Pérez, P., Gangnet, M., Blake, A. (2003). Poisson image editing. ACM Transactions on Graphics, 22(3): 313-318. https://doi.org/10.1145/882262.882269