This study did not involve human participants, vertebrate animals, human or animal tissues, or identifiable human data. The study used publicly available traditional cultural pattern image datasets and associated cultural metadata, including Motif-Sikka, OS-CTPIG, and CraftMotifDB, for computational analysis, model development, and evaluation. Therefore, institutional ethics approval was not required for this study.
The proposed technique requires a systematic way of ensuring that semantic information can be made available using conventional techniques and intelligent support during the design phase. This is achieved using various datasets such as Motif-Sikka, OS-CTPIG, and CraftMotifDB. Preprocessing techniques involving normalization and noise reduction are applied to the input pattern images, and cultural data are organized for knowledge graphs. After that, EfficientNet-Lite is used to extract computationally efficient visual feature sets from the input images. Knowledge graphs are also generated to represent motif-symbol-region relationships along with cultural meanings.
The obtained visual features are then semantically mapped onto the knowledge graph using GNNs, allowing contextual reasoning and improved interpretation of symbolic connections. Such features are enhanced using multimodal fusion by combining visual features, semantic features, and cultural information. This is followed by pattern retrieval and context extraction using RAG with knowledge filtering to produce culturally meaningful and design-aligned outputs. An interactive design assistance module is also included to provide explainable recommendations to the user. Lastly, the model is trained and optimized using suitable training techniques and evaluated using common evaluation metrics, including accuracy, precision, recall, F1-score, and semantic relevance. Figure 1 shows the overall architecture of the proposed work. Figure 1 illustrates the complete workflow of the knowledge graph-based semantic understanding and intelligent design assistance system for traditional patterns. It begins with multiple input data sources, including pattern image datasets (Motif-Sikka and OS-CTPIG), a cultural knowledge database (CraftMotifDB), and a user query. After the data are processed using preprocessing techniques such as resizing, normalization, denoising, and data augmentation, the processed images are passed through the pretrained EfficientNet-Lite network, which learns visual information such as edges, textures, and structural patterns and encodes them into vectorized features. A knowledge graph is then generated to map relationships among elements such as motifs, regions, symbols, and cultural meanings. Using GNN-based models, message passing integrates knowledge with the visual features and enriches the vectorized features through contextual reasoning. Multimodal fusion is performed by combining the visual features with semantic embeddings and cultural information. Subsequently, retrieval and generation of relevant patterns and knowledge are conducted using the RAG framework. Lastly, the outputs include generated patterns, semantic explanations, design recommendations, and similar retrieved patterns. A knowledge base facilitates the process by providing culturally encoded data, and the system uses user feedback for further improvement. Overall, Figure 1 shows how deep learning, knowledge graphs, and generative artificial intelligence are combined to provide intelligent and culturally informed design support.

Figure 1. Overall architecture of the proposed knowledge graph-based semantic understanding and intelligent design assistance framework. The workflow illustrates the processing of traditional cultural pattern images and associated cultural knowledge through preprocessing, EfficientNet-Lite-based feature extraction, knowledge graph (KG) construction, graph neural network (GNN)-based semantic reasoning, multimodal fusion, and retrieval-augmented generation (RAG). The resulting outputs include generated pattern designs, semantic explanations, design recommendations, and retrieved similar patterns. The knowledge base integrates the Motif-Sikka, OS-CTPIG, and CraftMotifDB datasets and supports retrieval and semantic reasoning throughout the framework. Please click here to view a larger version of this figure.
Data Collection and Integration
The data acquisition and integration procedure is important for ensuring the effectiveness of the proposed knowledge graph-based approach. In the current study, several heterogeneous datasets of traditional pattern images and their cultural metadata are acquired and integrated to establish an extensive database. In particular, Motif-Sikka, OS-CTPIG, and CraftMotifDB are used to address various aspects of traditional patterns, including imagery, symbolism, regional characteristics, and cultural meanings. The acquired data comprise image instances annotated according to their classification, structure, and semiotic meaning.
To ensure consistent data integration, all datasets undergo preprocessing steps, including image resizing, normalization, denoising, and annotation standardization. In addition, metadata from different sources are transformed into a single format for knowledge graph construction. Redundancies and inaccuracies in the data are detected and corrected to improve data quality. Metadata quality was assessed by checking for missing values, duplicate records, inconsistent field formats, conflicting category names, and mismatches between image annotations and their associated metadata. Records containing missing required metadata or corrupted images were excluded, whereas inconsistent categorical labels and metadata fields were standardized according to the common annotation schema for motif type, cultural origin, artistic technique, symbolic meaning, and descriptive features. Duplicate samples were identified using image-level similarity and metadata verification and were removed before dataset integration. These procedures were applied consistently across the Motif-Sikka, OS-CTPIG, and CraftMotifDB datasets to minimize redundancy and maintain consistency within the integrated multimodal dataset. The resulting database serves as a multimodal knowledge repository that is subsequently used for feature extraction, semantic mapping, and model training. Table 1 provides the dataset descriptions.
Table 1: Datasets used for model development and evaluation. The table summarizes the three datasets integrated into the experimental framework, including their original source sizes, numbers of experimental samples used, and training-validation-test partitioning. The experimental samples were first divided into an 80% initial development partition and a 20% independent test set. The development partition was subsequently divided into 90% final training samples and 10% validation samples, corresponding to an overall allocation of 72% training, 8% validation, and 20% testing. The original source size of CraftMotifDB was not specified in the source. Please click here to download this file.
After confirming the dataset versions and annotation formats, the Motif-Sikka, OS-CTPIG, and CraftMotifDB datasets were integrated to create the multimodal dataset. The three datasets were combined into a single multimodal experimental database once the annotation formats and dataset versions were verified. This study distinguishes between the experimental sample counts and the actual source datasets. After preprocessing, label harmonization, and duplicate removal, the retained samples were first divided into development and independent test subsets using an 80:20 split. The development subset was then divided into final training and validation subsets using a 90:10 split. For Motif-Sikka, 4,000 samples were assigned to development, with 3,600 used for final training and 400 for validation, while 1,000 samples were retained for independent testing. For OS-CTPIG, 6,400 samples were assigned to development, with 5,760 used for final training and 640 for validation, while 1,600 samples were retained for independent testing. For CraftMotifDB, 3,600 samples were assigned to development, with 3,240 used for final training and 360 for validation, while 900 samples were retained for independent testing. Data augmentation was subsequently applied only to the final training subsets, resulting in 5,000 augmented training instances for Motif-Sikka and 8,000 augmented training instances for OS-CTPIG. The CraftMotifDB experimental dataset comprised 4,500 samples. The original Motif-Sikka source contained 432 images, whereas the OS-CTPIG source contained more than 3,000 images. The original CraftMotifDB source does not report a fixed total source-image/record count. The 5,000 Motif-Sikka and 8,000 OS-CTPIG counts represent the augmented training instances used in the experiments and should not be interpreted as the original source-dataset sizes. The 4,500 CraftMotifDB samples represent the experimental dataset used in this study. Each experimental sample comprised an image and the available semantic metadata, including motif type, cultural origin, artistic technique, symbolic meaning, and associated annotations. To unify the disparate annotations from Motif-Sikka, OS-CTPIG, and CraftMotifDB, a unified annotation format was created. Motif type, creative technique, cultural origin or location, symbolic significance, period when accessible, and descriptive qualities were among the harmonized fields. Initially, the corresponding common field names were mapped to dataset-specific field names. After that, label strings were standardized for spelling, punctuation, whitespace, and case. Rather than relying solely on visual similarity, labels representing the same semantic concept were mapped to a common category using the meanings provided in the original dataset annotations. Synonyms and comparable terms unique to the dataset were grouped together under the relevant common category. A value was kept as missing and not inferred when a dataset lacked a specific attribute. Free-text descriptive information and symbolic meanings were kept as semantic descriptions and formatted consistently without changing their original meaning. To ensure reproducibility, Supplementary Table 1 contains the full source-label-to-common-category mapping.
Metadata quality was assessed by checking the consistency of motif labels and associated cultural characteristics, including cultural origin, artistic technique, symbolic meaning, and descriptive information. Image-level similarity analysis and metadata verification were used to find possible duplicate samples. The accompanying metadata, such as motif type, cultural origin, artistic technique, and symbolic meaning, were compared to candidate pairs with extremely comparable visual content. Only when the visual content and related information showed that the records represented the same underlying motif instance was a sample eliminated as a duplicate. The experimental record does not provide the precise image-similarity metric and numerical threshold employed in the initial dataset-cleaning procedure. Images that could not be loaded or processed as valid RGB images were considered corrupted and excluded. Samples were also excluded when one or more required metadata fields, including motif type, cultural origin, artistic technique, or symbolic meaning, were missing.
Following preprocessing, label harmonization, and duplicate removal, the integrated dataset was divided into an 80:20 development-to-test split. The development subset was subsequently divided into 90% final training and 10% validation subsets. Accordingly, of the 4,000 samples in the Motif-Sikka development subset, 3,600 were used for final training and 400 for validation. Of the 6,400 samples in the OS-CTPIG development subset, 5,760 were used for final training and 640 for validation. Of the 3,600 samples in the CraftMotifDB development subset, 3,240 were used for final training and 360 for validation. The corresponding independent test subsets contained 1,000, 1,600, and 900 samples, respectively. The validation subset was used only for hyperparameter tuning, training monitoring, and final model-checkpoint selection, whereas the independent test subset was kept separate throughout model development and used only for final performance evaluation. Data augmentation was applied only to the final training subsets; the validation and independent test subsets were not augmented. The dataset composition, source sizes, experimental sample counts, and reported training-validation-test allocations are summarized in Tables 1 and 4. The source datasets contained multiple traditional cultural motif categories. For binary evaluation, the target motif category defined in the corresponding dataset annotation was designated as Label 1 (positive class), whereas all remaining motif categories were grouped as Label 0 (negative class). This binary mapping was applied consistently to the held-out test data for calculation of accuracy, precision, recall, F1-score, and the corresponding confusion matrices. The original multiclass annotations were retained during dataset preparation and were not treated as inherently binary.
Preprocessing
The preprocessing procedure ensures consistency, robustness, and scalability of the input data from the three Motif-Sikka, OS-CTPIG, and CraftMotifDB datasets for subsequent stages of learning. Initially, all input images are resized to a uniform size of 224 × 224 pixels in accordance with the input requirements of EfficientNet-Lite. Pixel values are normalized to the range [0,1], as mathematically defined in Equation S1 (Supplementary File 1). Normalization ensures consistency across the input data. In addition, all images are standardized to the RGB color space. To improve image quality, noise reduction and image enhancement methods are applied. A Gaussian filter is used to reduce image noise, as mathematically defined in Equation S2 (Supplementary File 1). During Gaussian filtering, border pixels were handled using replicated-border padding, in which the values of the nearest edge pixels were extended to the image boundary. This approach maintained the spatial dimensions of the input images while minimizing boundary artifacts. Contrast enhancement through histogram equalization was then applied, as mathematically defined in Equation S3 (Supplementary File 1). Histogram equalization was performed independently on the red, green, and blue (RGB) channels of each image to redistribute pixel intensities and improve contrast. The enhanced channels were subsequently recombined to form the RGB image used for feature extraction. Contrast enhancement through histogram equalization facilitates recognition of fine motifs and their semantic features. Finally, data augmentation and semantic alignment are performed through a series of transformations, as mathematically defined in Equation S4 (Supplementary File 1). The transformations include rotation, flipping, scaling, and translation. At the same time, metadata extracted from CraftMotifDB and Motif-Sikka are normalized and transformed into a format appropriate for knowledge graph construction. Metadata fields from Motif-Sikka, OS-CTPIG, and CraftMotifDB were standardized to maintain consistency across the datasets, including motif category, cultural origin, artistic technique, symbolic meaning, and other available descriptive attributes. The resulting visual representations were associated with their corresponding semantic descriptors and used for subsequent knowledge graph construction and multimodal analysis. The visual representations are associated with semantic descriptors such as motif class, geographical location, and metaphorical meanings. This preprocessing stage prepares the image and textual data for subsequent analysis.
All input images are resized to 224 × 224 pixels using bilinear interpolation and then provided as input to EfficientNet-Lite. Pixel intensity values are normalized to the interval [0,1], and all images are uniformly transformed into the RGB color space. For noise reduction, a Gaussian filter with a kernel size of 5 × 5 and a standard deviation of 1.0 is applied, followed by global histogram equalization to increase contrast and improve the visibility of fine motifs. Data augmentation is performed only on the training dataset to prevent data leakage during evaluation. Random horizontal flipping was applied with a probability of 0.5. Random rotation within ±15°, random scaling within the range of 0.9–1.1, and random translation of up to 10% of the image dimensions were each applied with a probability of 0.5. Bilinear interpolation was used for geometric transformations, and nearest-neighbor filling was used for pixels introduced outside the original image boundaries. The augmentation settings were kept identical across all experimental runs. No augmentation was applied to the validation or test datasets. The augmentation settings were kept consistent throughout the experiments. The validation and test datasets were not augmented.
The data preprocessing flowchart in Figure 2 illustrates the process of transforming the three datasets into an input format suitable for subsequent intelligent reasoning. Raw images from the three datasets enter the preprocessing pipeline with variations in resolution, color, noise, annotations, and other characteristics. Resizing standardizes the image dimensions to 224 × 224 pixels for input into the deep learning algorithm. Color normalization then scales pixel values consistently across the datasets, reducing variations associated with different image conditions. Noise reduction using Gaussian filtering removes image noise. Contrast enhancement using histogram equalization improves the visibility of complex structures. Finally, data augmentation is performed using rotation, flipping, scaling, and translation. In parallel, annotation standardization is performed to unify motif metadata, including type, region, symbolic meaning, technique, and era. Lastly, the preprocessed images and standardized metadata form the normalized dataset used for subsequent operations, including feature extraction, semantic mapping, and knowledge graph reasoning. Figure 2 summarizes each stage of the image preprocessing procedure.

Figure 2. Preprocessing workflow for the traditional cultural pattern datasets. Images from the Motif-Sikka, OS-CTPIG, and CraftMotifDB datasets undergo resizing to 224 × 224 pixels, color normalization, noise reduction, contrast enhancement, and data augmentation. Associated annotations are standardized according to motif type, region, symbolism, technique, and era/period. The resulting preprocessed images and standardized metadata provide the inputs for subsequent feature extraction and knowledge graph (KG) construction. Please click here to view a larger version of this figure.
Feature Extraction Using EfficientNet-Lite
The normalized and enhanced images generated from the Motif-Sikka, OS-CTPIG, and CraftMotifDB datasets are then fed into the EfficientNet-Lite model for feature extraction. The model was selected because of its lightweight architecture and computational efficiency. For an input image of 224 × 224 × 3 pixels, the EfficientNet-Lite model applies several convolutional layers, depthwise separable convolutions, and compound scaling to generate hierarchical feature representations. The network employs Mobile Inverted Bottleneck Convolution (MBConv) blocks to enhance efficiency while preserving spatial and channel information. The implemented model used the Rectified Linear Unit (ReLU) activation function in the convolutional and subsequent neural network layers. Such a configuration enables the network to recognize fine motif details, including curves, edges, and repetitive elements found in traditional patterns. For Motif-Sikka, OS-CTPIG, and CraftMotifDB, the extracted features represent varying degrees of abstraction: Motif-Sikka focuses on motif patterns, whereas OS-CTPIG provides extensive coverage of repetitive and geometric shapes. Additionally, CraftMotifDB contributes culturally relevant textures to the feature representation. Finally, these features are distilled into fixed-length embedding vectors using global average pooling. The mathematical formulations for EfficientNet-Lite feature extraction, the MBConv operation, and global average pooling are provided in Equations S5–S7 (Supplementary File 1).
This operation results in a fixed-length feature vector that can subsequently be used for semantic mapping and incorporation into the knowledge graph. The selected feature vectors from the three data sources are subsequently combined or projected into a common feature space, enabling multimodal learning. In this way, visual information can be integrated with cultural information. This provides the input for the subsequent semantic reasoning and retrieval-augmented generation stages using GNNs. Figure 3 shows the structure of feature extraction using EfficientNet-Lite. Figure 3 illustrates the structural workflow of the EfficientNet-Lite architecture for extracting visual features from Motif-Sikka, OS-CTPIG, and CraftMotifDB. After preprocessing, images from the three datasets are standardized to a fixed shape of 224 × 224 × 3 pixels and provided as inputs to the network. The 3 × 3 stem convolution layer detects low-level features, including edges and shapes. This is followed by MBConv blocks with 3 × 3 and 5 × 5 kernels. These layers support hierarchical representation learning of local and complex structures. The deeper MBConv layers learn abstract features, including repetitive geometric patterns from OS-CTPIG motifs, symmetrically structured motifs from Motif-Sikka, and textures from CraftMotifDB. Moreover, the squeeze-and-excitation (SE) block enhances important feature channels. Shortcut connections between layers facilitate the preservation of spatial information and improve gradient propagation to support stable and effective training. After the convolutional operations, the high-dimensional feature map is reduced through global average pooling to produce a fixed-length visual feature vector. The visual representation is then projected to 128 dimensions and concatenated with the corresponding 128-dimensional semantic and cultural representations to form a 384-dimensional multimodal feature vector. This vector is subsequently passed through a fully connected fusion layer to obtain the final 256-dimensional fused representation. This representation is used in subsequent stages, including semantic mapping, knowledge graph reasoning, and retrieval-augmented design generation. Overall, Figure 3 demonstrates the transformation of preprocessed data into meaningful feature representations using EfficientNet-Lite.

Figure 3. EfficientNet-Lite0 architecture for visual feature extraction. Preprocessed 224 × 224 × 3 images from the Motif-Sikka, OS-CTPIG, and CraftMotifDB datasets are processed through the implemented EfficientNet-Lite0 architecture, comprising the stem convolution, MBConv stages, final convolution, and global average pooling. The resulting visual features are projected to 128 dimensions. The 128-dimensional visual representation is subsequently concatenated with the corresponding 128-dimensional semantic and 128-dimensional cultural representations to form a 384-dimensional multimodal feature vector. This concatenated representation is passed through a fully connected fusion layer to obtain the final 256-dimensional fused representation used for downstream retrieval-augmented generation and design assistance. Please click here to view a larger version of this figure.
Table 2 describes the extraction of visual features from Motif-Sikka, OS-CTPIG, and CraftMotifDB after preprocessing and application of EfficientNet-Lite. Each dataset contains preprocessed input images that have been normalized and enhanced to improve consistency. These images are converted into feature maps representing activation patterns from the convolutional operations. The Motif-Sikka feature maps represent edge and symmetric structure detection associated with its repetitive motifs. The OS-CTPIG feature maps represent texture and geometric repetition associated with large pattern designs. Finally, the CraftMotifDB feature maps represent texture and semantic characteristics associated with culturally rich images. The outputs from these feature maps are compressed into numerical feature vectors using global average pooling, whereby each feature vector (e.g., [0.21, 0.87, 0.65, …]) indicates the strength of features learned from different channels. These numerical values encode visual characteristics, including shapes, textures, and structures. The final column of Table 2 presents the major features represented by each dataset: symmetry and structured motifs for Motif-Sikka; geometric repetition and homogeneous texture for OS-CTPIG; and culturally rich semantic characteristics for CraftMotifDB.
| Dataset | Input Image (Preprocessed) | Feature Map Representation | Feature Vector
(Sample Values) | Key Characteristics |
| Motif-Sikka | Normalized motif image | Edge and symmetry maps | [0.21, 0.87, 0.65, …] | Structured motifs, symmetry |
| OS-CTPIG | Enhanced pattern image | Texture and repetition maps | [0.45, 0.32, 0.91, …] | Geometric repetition |
| CraftMotifDB | Augmented cultural image | Texture and semantic maps | [0.78, 0.56, 0.34, …] | Cultural texture richness |
Table 2: Representative visual features extracted from the three traditional cultural pattern datasets. The table summarizes the preprocessed input image type, feature map representation, representative feature-vector values, and key visual characteristics for the Motif-Sikka, OS-CTPIG, and CraftMotifDB datasets using EfficientNet-Lite.
Knowledge Graph Construction
The constructed cultural knowledge graph includes semantic nodes representing motifs, regions, symbolic meanings, artistic techniques, dataset identifiers, and cultural attributes. The relationships between these nodes include hasType, belongsToRegion, usesTechnique, hasSymbolism, existsInDataset, and similarTo. Each sample is represented as a head-relation-tail triplet in RDF format according to the graph-construction rules. Entity and relation representations are initialized using the TransE embedding model so that semantically related entities can be represented in a common embedding space. Following feature extraction using EfficientNet-Lite, the knowledge graph captures semantic and cultural relationships associated with the traditional patterns in Motif-Sikka, OS-CTPIG, and CraftMotifDB. Information including motif type, pattern characteristics, and associated cultural information is represented as entity-relation triplets. The cultural knowledge graph included semantic relationships such as hasType, belongsToRegion, usesTechnique, hasSymbolism, existsInDataset, and similarTo. The visual feature vectors obtained using EfficientNet-Lite were embedded in the same semantic space as the knowledge graph nodes. TransE was used to represent relationships among head entities, relations, and tail entities and to learn semantic embeddings for the graph entities. During TransE training, valid RDF head–relation–tail triplets were used as positive samples, whereas negative triplets were generated by replacing an entity in a valid triplet with another entity from the knowledge graph entity set. The positive and negative triplets were then used to optimize the TransE embedding objective, encouraging valid semantic relationships to have lower translational distances than corrupted relationships. Visual feature embeddings were subsequently aligned with the knowledge graph nodes using cosine similarity. For each visual feature vector, cosine similarity was calculated against the available knowledge graph node embeddings, and the node with the highest cosine similarity score was selected as the corresponding semantic node. This nearest-node selection established the semantic association between the visual representation and the cultural knowledge graph. The mathematical definitions of the knowledge graph, entity and relation embeddings, TransE representation and loss, and cosine-similarity alignment are provided in Equations S8–S12 (Supplementary File 1).
The most appropriate nodes are then identified, and contextual information is extracted using neighboring links within the graph. This enables reasoning tasks related to symbolic meaning, origin, and pattern relationships. Ultimately, the resulting knowledge graph serves as a semantic basis for GNN reasoning and intelligent design generation in the proposed system. Figure 4 shows the construction and visualization of the cultural knowledge graph. The figure depicts the complete knowledge graph construction process, including node formation, semantic relationship construction, and graph integration. Six semantic relationships—hasType, belongsToRegion, usesTechnique, hasSymbolism, existsInDataset, and similarTo—connect motif nodes, attribute nodes, and dataset nodes to create a unified cultural knowledge graph that supports multimodal fusion, GNN-based semantic reasoning, and retrieval-augmented generation for intelligent traditional pattern understanding and design support.

Figure 4. Construction of the cultural knowledge graph. The workflow illustrates node generation, relationship creation, and integration into the cultural knowledge graph (KG). Motif, attribute, dataset, and symbolism/meaning nodes are connected using six relationship types: hasType, belongsToRegion, usesTechnique, hasSymbolism, existsInDataset, and similarTo. These relationships represent associations among traditional motifs, regions, artistic techniques, symbolic meanings, and source datasets. The resulting KG provides the structured semantic representation used for subsequent graph neural network (GNN)-based reasoning and retrieval-augmented generation (RAG). Please click here to view a larger version of this figure.
Semantic Mapping Using GNN
After building the knowledge graph, the second process is semantic mapping, through which the visual features from EfficientNet-Lite are mapped to nodes of the knowledge graph using a GNN. Semantic mapping bridges the visual information and semantic information associated with motifs, regions, symbols, and cultures. The knowledge graph nodes, including motif, region, symbol, and culture nodes, are represented using initial embedding vectors, whereas the extracted visual feature vectors from Motif-Sikka, OS-CTPIG, and CraftMotifDB are embedded in the same embedding space.
Semantic reasoning was performed using a two-layer Graph Attention Network (GAT) with a hidden representation size of 128 and a ReLU activation function. The GAT learned node embeddings through attention-based neighborhood message passing, in which attention coefficients assigned different weights to neighboring nodes according to their relevance to the target node. The resulting node representations were projected into the semantic embedding space and used for visual–semantic alignment and downstream reasoning. The model was optimized using the Adam optimizer with an initial learning rate of 0.001. The optimization process minimized a combined loss function comprising classification, semantic alignment, and retrieval-generation losses. The GAT architecture and its attention-based message-passing formulation are provided in Supplementary File 1.
The GNN propagates information through the graph topology such that each node aggregates information from neighboring nodes. This procedure facilitates the capture of contextual dependencies, such as symbolic meaning, geographical relationships, and cultural relationships. When a motif is identified in an image, it can acquire semantic information from neighboring nodes, such as region or technique, through the message-passing process. This recursive procedure enhances the node representation and makes it semantically meaningful.
Semantic mapping using the GNN improves the interpretability and reasoning capabilities of the proposed approach. Visual-feature and graph embeddings support similarity matching, classification, and inference tasks, including identifying the culture associated with a pattern, predicting its symbolic meaning, and generating design recommendations. During training, the corresponding ground-truth semantic node for each image was assigned using its standardized metadata, including motif type, cultural origin, artistic technique, and symbolic meaning. During semantic mapping, cosine similarity was calculated between the projected visual feature embedding and the candidate knowledge graph node embeddings, and the node with the highest cosine similarity score was selected as the corresponding semantic node. Thus, node selection was based on a ranking criterion rather than a predefined similarity threshold. The selected node was subsequently used for semantic alignment and downstream GNN-based reasoning. The mathematical formulations for GNN message passing, visual-feature projection, cosine-similarity mapping, and semantic alignment loss are provided in Equations S13–S16 (Supplementary File 1).
Multimodal Fusion
After semantic mapping using the GNN, the proposed framework uses multimodal fusion to combine three information sources into a unified representation: (i) visual features acquired using EfficientNet-Lite, (ii) semantic embeddings generated using the knowledge graph and GNN, and (iii) cultural metadata from Motif-Sikka, OS-CTPIG, and CraftMotifDB. Each modality is transformed into a common latent space through learned linear transformations before fusion. The visual feature vector obtained from EfficientNet-Lite was 128-dimensional, whereas the semantic embedding obtained from the GNN and the cultural metadata embedding were each projected into 128-dimensional feature vectors using fully connected linear projection layers. The three 128-dimensional representations are then concatenated to form a 384-dimensional multimodal feature vector. This concatenated representation is subsequently passed through a fully connected fusion layer to produce a 256-dimensional fused embedding, followed by a ReLU activation function. The resulting fused representation is supplied to the RAG module for subsequent retrieval and generation. No attention-based multimodal fusion is used in the implemented framework. The mathematical formulation of modality projection and concatenation-based multimodal fusion is provided in Equations S17 and S18 (Supplementary File 1).
Retrieval-Augmented Generation (RAG) and Design Assistance Module
After multimodal fusion, the RAG-based approach is used to create context-sensitive and culturally meaningful design outputs. The proposed RAG module consists of a retrieval module and a generation module. The retrieval module uses the semantic embeddings produced by the GNN to query the integrated multimodal dataset and the constructed cultural knowledge graph. The top five most relevant entities are obtained by calculating cosine similarity between the query embedding and the indexed knowledge representations. The generator receives contextual information from the retrieved semantic descriptions, including motif category, symbolic meaning, cultural origin, and artistic technique. The generation module produces design recommendations and semantic explanations by combining the retrieved information with the visual information extracted using EfficientNet-Lite.
The retrieval corpus includes the combined Motif-Sikka, OS-CTPIG, and CraftMotifDB dataset together with the constructed cultural knowledge graph. Visual features extracted using EfficientNet-Lite and semantic embeddings generated using the GNN are indexed for semantic retrieval. During inference, the combined multimodal representation is used as the query, and cosine similarity is calculated between the query embedding and the indexed knowledge representations. The top five (k = 5) cultural entities or pattern descriptions with the highest cosine-similarity scores are retrieved. The retrieved results are subsequently subjected to domain-specific filtering to remove duplicate entries and semantically inconsistent results. Semantic consistency is assessed using relationships represented in the knowledge graph, with consideration of motif type, region, and symbolic relationships. The remaining retrieved information is provided to the generation module together with the input motif description and the user's design objective. Using this contextual information, the generator produces four outputs: (i) a generated cultural pattern design, (ii) a semantic explanation of the generated design, (iii) cultural design suggestions, and (iv) retrieved cultural knowledge.
In this step, the combined representation serves as a query to retrieve the top-k relevant pattern motifs and knowledge in the form of pattern descriptions. In the implemented procedure, k = 5. Relevant pattern motifs and descriptions are retrieved using cosine similarity to select semantically appropriate information. Prior to generation, retrieved results that are redundant or semantically inconsistent based on motif type, region, and symbolic relationships are removed. The mathematical formulations for retrieval probability and conditional generation are provided in Equations S19 and S20 (Supplementary File 1), respectively. Meta AI Llama-3.1-8B-Instruct is used as the language model in the generation module. The model receives the input motif description, retrieved cultural knowledge, and the user's design objective as contextual information and generates culturally informed design recommendations and semantic explanations. The top five retrieved results, selected based on cosine similarity, are provided to the generator. The precise model checkpoint and generation parameters used in the experiments are provided in the Table of Materials and corresponding implementation settings.
Building on this generation step, the proposed Design Assistance Module provides interactive and interpretable outputs to the end user. It provides recommendations for design alternatives, indicates essential semantic features, including motif type and culture, and allows users to adjust the design according to their preferences. Furthermore, the module improves interpretability by tracing generated outputs to knowledge graph entities.
An example of the complete design assistance workflow illustrates the operation of the proposed RAG framework. Based on an input image of a traditional Sikka weaving motif, the retrieval module retrieves semantically relevant information from the cultural knowledge graph. This information includes the motif type (Geometric Spiral), cultural origin (East Nusa Tenggara), symbolic meaning (prosperity and community harmony), and artistic technique (Ikat weaving). The generation module receives this retrieved contextual information and uses it to create a modern textile pattern incorporating contemporary geometric arrangements while maintaining the original spiral motif. The framework also provides a semantic explanation indicating how the new pattern preserves the cultural meaning of prosperity and communal harmony while modifying its visual composition for modern textile applications. Based on the generated output and retrieved knowledge, the framework also provides a design recommendation suggesting application of the generated motif to items such as scarves, wall textiles, and ornamental fabrics while maintaining its original cultural and symbolic context.
Model Training and Optimization
The proposed multimodal framework learns its parameters in an end-to-end manner to capture visual, semantic, and multimodal representations for intelligent pattern generation. First, the EfficientNet-Lite model is fine-tuned using the preprocessed images from the Motif-Sikka, OS-CTPIG, and CraftMotifDB datasets to capture discriminative visual representations. In parallel, the GNN is trained on the constructed knowledge graph to capture semantic representations through information propagation between connected nodes. Subsequently, the multimodal fusion module and RAG framework are trained together to capture visual, semantic, and contextual representations by minimizing a combination of classification, semantic alignment, and generation losses.
The total optimization objective combines the classification, semantic alignment, and generation losses with respective weights of 1.0, 0.8, and 0.6. The classification loss optimizes the motif-classification objective, the semantic alignment loss encourages consistency between the visual and knowledge-graph representations, and the generation loss optimizes the retrieval-augmented generation component. The mathematical formulation of the total optimization objective is provided in Equation S21 (Supplementary File 1). Training is performed using the Adam optimizer with backpropagation across the trainable components. The hyperparameter details are provided in Table 3.
| Component | Hyperparameter | Value Used | Description |
| EfficientNet-Lite | Input Image Size | 224 × 224 | Input image resolution used for feature extraction |
| EfficientNet-Lite | Batch Size | 32 | Number of samples processed in each training batch |
| EfficientNet-Lite | Learning Rate | 0.001 | Initial learning rate used for model optimization |
| EfficientNet-Lite | Optimizer | Adam | Optimization algorithm used during training |
| GAT | Number of Layers | 2 | Number of graph attention layers used for graph-based feature learning |
| GAT | Hidden Dimension | 128 | Dimension of the learned node embedding |
| GAT | Activation Function | ReLU | Nonlinear activation function applied in the GAT layers |
| Multimodal Fusion | Fusion Dimension | 256 | Dimension of the fused multimodal feature representation |
| RAG Module | Top-k Retrieval | 5 | Number of contextual entities or pattern descriptions retrieved for generation |
| RAG Module | Similarity Metric | Cosine similarity | Similarity measure used for semantic retrieval |
| Training | Number of Epochs | 50 | Total number of training epochs |
| Training | Dropout Rate | 0.3 | Dropout probability used for regularization |
| Training | Classification Loss | Cross-Entropy Loss | Loss function used for the motif classification objective |
| Training | Semantic Alignment Loss | Squared Euclidean (L2) Alignment Loss | Loss function used to align visual and knowledge-graph semantic representations |
| Training | Generation Loss | Token-Level Cross-Entropy (Mean Negative Log-Likelihood) | Mean token-level negative log-likelihood used to optimize conditional generation of the reference output given the fused multimodal representation and the top five retrieved contextual results |
| Training | Loss Weights (λ) | (1.0, 0.8, 0.6) | Weights assigned to the classification, semantic alignment, and generation losses, respectively |
Table 3: Hyperparameters and training configuration of the proposed framework. The table summarizes the principal hyperparameters and optimization settings used for EfficientNet-Lite visual feature extraction, Graph Attention Network (GAT)-based semantic representation learning, multimodal feature fusion, retrieval-augmented generation (RAG), and model training. The overall training objective combines classification, semantic alignment, and generation losses with respective weights of 1.0, 0.8, and 0.6. The generation objective is optimized using token-level cross-entropy, expressed as the mean negative log-likelihood of the reference output conditioned on the fused multimodal representation and the top five retrieved contextual results.
The proposed model was optimized using the Adam optimizer with an initial learning rate of 0.001 and a batch size of 32, according to the hyperparameter configuration provided in Table 3. The model was trained for 50 epochs, and the model with the lowest validation loss was selected for the final performance analysis.
The total optimization function comprised classification, semantic alignment, and generation losses, with respective weights of , , and . The model with the minimum validation loss during training was selected as the final checkpoint for testing. Checkpoint selection was performed independently for each of the five experimental runs using only the validation subset corresponding to that run. The selected checkpoint from each run was subsequently evaluated on the held-out test dataset, and the resulting performance measures were used for the five-run evaluation.
For robustness assessment, the experiments were conducted five times under identical training settings, and model parameters were independently initialized for each run. No single fixed random seed was used consistently across all five runs. Performance measures were summarized as the mean ± standard deviation across the five runs. Neither a learning-rate scheduler nor an early-stopping strategy was applied during optimization. The model was trained for the predefined number of epochs using the fixed learning rate specified in Table 3.
The confusion matrices were generated using a binary decision protocol. For each binary evaluation, the predefined target motif category was assigned to Class 1 (positive), whereas all remaining motif categories were grouped into Class 0 (negative). Thus, the original multiclass annotations were retained during dataset preparation, with binary mapping applied specifically for the confusion-matrix analysis. The same positive/negative mapping rule was applied to the held-out test samples used for each reported confusion matrix. Accordingly, the confusion matrices summarize the binary classification outcomes used to calculate accuracy, precision, recall, F1-score, and related evaluation metrics.