scieee AI-readable full text Open interactive document viewer

Visual search image recommendation system

Silva, Luís Filipe Macedo

Abstract

In the ever-evolving world of fashion, staying stylish and well-coordinated is a challenge that many individuals face. Visual Search, a fashion clothes recommendation system, harnesses the power of computer vision and deep learning to address this issue. This research presents an innovative approach to fashion recommendation by focusing on the identification and recommendation of missing clothing items to complete an outfit, developed in collaboration with CITEVE - Technological Center for the Textile and Clothing Industries of Portugal. Visual Search employs state-of-the-art computer vision and deep learning algorithms to analyze an input image of an incomplete outfit. The system recognizes the existing clothing items and then proceeds to identify the most compatible missing piece to enhance the overall outfit coordination. Visual Search is divided into three distinct modules. The initial module is dedicated to image preprocessing, to apply any required image manipulation. Subsequently, the compatibility model, evaluates the extracted features against an extensive dataset of fashion items, pinpointing the most suitable clothing item to complement the ensemble. Moreover, Visual Search integrates a third module to locate the most analogous real-world image to the AI-generated outfit recommendation, ensuring the availability of the suggested item. Lastly, focuses on validation by scrutinizing the system’s predictions against a set of test images, employing the most similar image as a reference point for accuracy and reliability assessment. Users can simply upload multiple photos of their current outfit, and the system swiftly offers suggestions for the missing clothing item. As a result, Visual Search not only serves as a valuable tool for individual fashion enthusiasts but also has the potential to streamline the shopping experience by recommending specific clothing items based on existing choices.

Full text

Luís Filipe Macedo Silva Visual Search Image Recommendation System UMinho | 2024 Luís Filipe Macedo Silva Visual Search Image Recommendation System Universidade do Minho Escola de Ciências july 2024 University of Minho School of Sciences Luís Filipe Macedo Silva Visual Search Image Recommendation System Masters Dissertation Master’s in Math and Computer Science Dissertation supervised by Cláudia Mendes Araújo Ivan Gomes july 2024 Copyright and Terms of Use for Third Party Work This dissertation reports on academic work that can be used by third parties as long as the internationally accepted standards and good practices are respected concerning copyright and related rights. This work can thereafter be used under the terms established in the license below. Readers needing authorization conditions not provided for in the indicated licensing should contact the author through the RepositóriUM of the University of Minho. License granted to users of this work: CC BY-NC-SA https://creativecommons.org/licenses/by-nc-sa/4.0/ i Acknowledgements First and foremost, I would like to express my heartfelt gratitude to my parents and my sister for their support throughout this year. Without their encouragement, this dissertation would not have come to a happy end. I extend my sincere thanks to my mentors, Professor Cláudia Araújo and Master Ivan Gomes, for their invaluable assistance, patience, and guidance over the course of this year. I have gleaned a wealth of knowledge from their wisdom and expertise. I would also like to acknowledge the tremendous support I received from my colleagues at CITEVE. In particular, I am deeply grateful to the development team from DTD, who provided me with essential insights and assistance in grasping the necessary concepts for this project – thank you, Tuna Team! My circle of friends has been a constant source of strength, both in times of joy and not-so-good ones. Special thanks to my girlfriend for being my pillar, providing me with the motivation and encouragement to persevere and successfully complete my academic journey. ii Statement of Integrity I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the University of Minho. University of Minho, Braga, july 2024 Luís Filipe Macedo Silva iii Abstract In the ever-evolving world of fashion, staying stylish and well-coordinated is a challenge that many individuals face. Visual Search, a fashion clothes recommendation system, harnesses the power of computer vision and deep learning to address this issue. This research presents an innovative approach to fashion recommendation by focusing on the identification and recommendation of missing clothing items to complete an outfit, developed in collaboration with CITEVE - Technological Center for the Textile and Clothing Industries of Portugal. Visual Search employs state-of-the-art computer vision and deep learning algorithms to analyze an input image of an incomplete outfit. The system recognizes the existing clothing items and then proceeds to identify the most compatible missing piece to enhance the overall outfit coordination. Visual Search is divided into three distinct modules. The initial module is dedicated to image preprocessing, to apply any required image manipulation. Subsequently, the compatibility model, evaluates the extracted features against an extensive dataset of fashion items, pinpointing the most suitable clothing item to complement the ensemble. Moreover, Visual Search integrates a third module to locate the most analogous real-world image to the AI-generated outfit recommendation, ensuring the availability of the suggested item. Lastly, focuses on validation by scrutinizing the system’s predictions against a set of test images, employing the most similar image as a reference point for accuracy and reliability assessment. Users can simply upload multiple photos of their current outfit, and the system swiftly offers suggestions for the missing clothing item. As a result, Visual Search not only serves as a valuable tool for individual fashion enthusiasts but also has the potential to streamline the shopping experience by recommending specific clothing items based on existing choices. Keywords Fashion recommendation, Compatibility, Deep learning, Shopping experience, outfit iv Resumo No mundo da moda, que está em constante evolução, manter-se elegante e bem coordenado é um desafio que muitas pessoas enfrentam. O Visual Search, um sistema de recomendação de roupas de moda, aproveita o poder da visão computacional e da aprendizagem profunda para resolver este problema. Esta investigação apresenta uma abordagem inovadora à recomendação de moda, centrando-se na identificação e recomendação de peças de vestuário em falta para completar um conjunto, desenvolvido em colaboração com o CITEVE - Centro Tecnológico das Indústrias Têxtil e do Vestuário de Portugal. O Visual Search utiliza algoritmos de visão computacional e de aprendizagem profunda para analisar um conjunto incompleto. O sistema reconhece as peças de vestuário existentes e, em seguida, identifica a peça em falta mais compatível com o respetivo conjunto. O Visual Search está dividido em três módulos distintos. O módulo inicial é dedicado ao pré-processamento de imagem, para aplicar qualquer manipulação de imagem necessária. Posteriormente, o modelo de compatibilidade avalia as características extraídas em relação a um extenso conjunto de dados de artigos de moda, identificando o artigo de vestuário mais adequado para complementar o conjunto. Além disso, o Visual Search integra um terceiro módulo para encontrar uma imagem real mais similar à recomendação de vestuário gerada pelo modelo, garantindo a disponibilidade do artigo sugerido. Por fim, centra-se na validação, examinando as previsões do sistema em relação a um conjunto de imagens de teste, utilizando a imagem mais semelhante como ponto de referência para a avaliação da precisão e da fiabilidade. Os utilizadores podem simplesmente carregar várias fotografias da sua roupa atual, e o sistema oferece rapidamente sugestões para a peça de roupa em falta. Como resultado, o Visual Search não só serve como uma ferramenta valiosa para os entusiastas da moda, mas também tem o potencial de simplificar a experiência de compra, recomendando artigos de vestuário específicos com base nas escolhas existentes. Palavras-chave Recomendação de moda, Compatibilidade, Aprendizagem profunda, Experiência de compra, Conjunto v Contents I Foundation of the study 1 1 Introduction 2 1.1 ContextandMotivation ................................ 2 1.2 Objectives ...................................... 3 1.3 ThesisOrganization.................................. 3 2 Fundamentals of Machine Learning and Deep Learning 5 2.1 MachineLearning................................... 5 2.1.1 Unsupervised Learning . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.1.2 SupervisedLearning............................. 6 2.1.3 Machine Learning Project Workflow . . . . . . . . . . . . . . . . . . . . . . 7 2.2 DeepLearning .................................... 13 2.2.1 Lossfunctions................................ 14 2.2.2 Optimizers.................................. 15 2.2.3 Node .................................... 17 2.2.4 Activation Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.2.5 Layers.................................... 19 2.3 ComputerVision ................................... 28 2.3.1 DataAugmentation.............................. 28 2.3.2 Universal Image Quality Index . . . . . . . . . . . . . . . . . . . . . . . . . 29 2.4 TransferLearning................................... 29 2.5 Relevant Packages and Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 3 Application of Machine Learning to Textile and Fashion 35 3.1 TextileandFashion .................................. 35 vi Part I Foundation of the study 1 Chapter 1 Introduction 1.1 Context and Motivation The phenomenon of e-commerce in recent years, or even decades, has brought disruptions to distribution channels and many opportunities for new business models, but it has not had a significant impact on the traditional Portuguese sector, which is actually lagging behind in terms of online visibility. Another much more recent phenomenon, the COVID-19 pandemic, had a more profound impact. Sales of traditional retail stores plummeted, but online sales of clothing and textiles increased significantly worldwide, leading many Portuguese companies to reconsider direct online sales. For the Portuguese industry, COVID-19 also represented a shift from fashion to Personal Protective Equipment products, such as masks and other personal protective gear, forcing companies to establish digital channels to reach consumers and clients in this new market. A future trend is that the digital realm will offer the greatest growth opportunities for the fashion industry, and consumer engagement is also an opportunity for textile companies because personalization is becoming important for brand differentiation in a highly competitive market. Another trend in the market is that consumers are spending more time on the Internet, utilizing virtual and digital environments. Deeper trends that were already evident and have since accelerated include the growing concern of consumers about sustainability issues, for which Portugal is internationally recognized, and personalization, where consumers want access to something more exclusive. In this context, it is opportune to encourage the Portuguese cluster once again to engage in direct sales and interaction with consumers, allowing the sector to complement its industry with direct sales and distribution to consumers. Furthermore, the Business to Business (B2B) segment should not be neglected. Whether it’s Business to Consumer (B2C) or B2B, many challenges are the same in terms of the product experience, in this case, a digital experience. 2 1.2 Objectives The eCommerce platform, a central component of TEXP@CT workpackage tree, represents the primary development focus of the project that this thesis belongs. The platform supports a digital strategy for B2B and B2C interaction and sales for companies aiming to establish their own brand/label, those possessing industrial facilities, and those integrated into industrial supply chains. This platform is a modular, cloud-based online solution utilizing a multi-tenant architecture and subdivided by microservices, which enhances scalability, flexibility, and security. It aims to facilitate an enhanced mass customization shopping experience, online branding and customer retention strategies, creation of brand communities, social media integration, and simplification of the budgeting, invoicing, and shipping processes. This thesis focuses specifically on developing a recommendation system for fashion compatibility, which will be integrated into the larger platform. The objectives of this recommendation system are to enhance the pre-purchase experience by providing personalized fashion compatibility recommendations to users, helping them to discover and select items that complement their style and preferences. Additionally, it aims to improve the purchase phase by increasing customer satisfaction and conversion rates through suggestions of compatible fashion items during the shopping process, thereby facilitating more informed purchase decisions. Furthermore, it seeks to support post-purchase engagement by encouraging customer retention and repeat purchases through recommendations that align with the customer own outfits. The recommendation system aims to leverage the cloud-based nature of the platform to ensure real-time access to data and recommendations across various devices, providing a seamless and responsive user experience. 1.3 Thesis Organization Below, the main elements that make up the organization of this dissertation are described: • Chapter 2: Machine Learning and Deep Learning delves into the theoretical foundations of the study. It covers key concepts in machine learning, including unsupervised and supervised learning, and details the machine learning project workflow. The chapter then explores deep learning, discussing loss functions, optimizers, nodes, activation functions, and layers. It also addresses computer vision, the Universal Image Quality Index, transfer learning, and relevant packages and tools used in the study. • Chapter 3: Machine Learning applied to Textile and Fashion provides a comprehensive overview of the application of machine learning in the textile and fashion industry. It begins with an analysis of 3 the historical evolution and current landscape of the industry, including sustainable practices and emerging trends. The chapter then focuses on deep learning applied to textile recommendation, reviewing relevant work and specific methodologies. • Chapter 4: Development details the creation of the recommendation system. This chapter includes the development of a Python package with sub-modules for image processing, compatibility, and similarity. Each sub-module is discussed in terms of its functionality and integration into the overall system. • Chapter 5: Case study. This chapter is a examination of the practical application of the developed tools and solutions in a real-world context. The case study explores the methods used, including dataset selection and deep learning models applied. Subsequently, the chapter unveils the results and engages in a discussion of the findings, offering both quantitative and qualitative insights. Throughout this section, the implications and significance of these results in relation to the study’s objectives are carefully examined. The chapter also addresses any encountered limitations or challenges. • Chapter 6: Conclusions and Future Perspectives. In this final chapter, the main conclusions drawn from the conceptualization and implementation of the solution will be presented, highlighting the advancements achieved through product recommendation. Furthermore, future perspectives and areas that require further research and development will be explored. This chapter provides an overview of the document’s contributions to the field of Artificial Intelligence used in recommendation systems and suggests possible directions for subsequent studies and practical implementations. 4 Chapter 2 Fundamentals of Machine Learning and Deep Learning 2.1 Machine Learning Machine learning is an important area of Artificial Intelligence (AI) that has changed the way computers understand and engage with mathematics, fueling innovation and transforming businesses around the world [97,27]. Machine learning is the representation of algorithms and models that computer systems can use, unlike traditional systems, where explicit commands are given and machine learning systems are designed to train on previous recorded data. This allows forecasting, pattern recognition, and data-driven decisions without the need for explicit planning for each task [74,16]. 2.1.1 Unsupervised Learning Unsupervised learning is a subset of machine learning where algorithms are designed to extract patterns and insights from data without explicit oversight or labeled goals[8,97]. The idea behind unsupervised learning is to allow the algorithm to autonomously find inherent structures and relationships within the data itself [8,29]. Unlike supervised learning, which relies on historical data with predefined labels for training [22], unsupervised learning is driven by the intrinsic properties of the data. This makes it particularly valuable for scenarios where obtaining labeled data may be challenging, expensive, or simply not possible[29,36,17]. The main goals of algorithms in unsupervised learning are usually clustering and dimensionality reduction. The main methods in unsupervised learning are k-means clustering, hierarchical clustering, and Principal Component Analysis (PCA), to name a few. These methods empower data scientists and researchers to identify hidden patterns, anomalies and improvements in their data sets [12,47,60]. 5 (a) Clustering Clustering algorithms enable the partitioning of a dataset into clusters, forming groups of similar items [12,60]. The data is segmented in a manner such that a cluster consists of similar points, while points in distinct clusters exhibit dissimilarity. Following the identification of clusters through unsupervised learning, supervised algorithms can classify new samples by assigning them to the closest cluster [22]. (b) Dimensionality reduction Dimensionality reduction enables the summarization of essential characteristics, represented by a small number of features [17,8,29], from a high-dimensional data representation with numerous features. Common motivations for dimensionality reduction include visualization, data compression, and obtaining a more informative representation for further processing. One algorithm employed for this purpose is Principal Component Analysis (PCA).PCA generates novel latent features that capture the most signal [47], with the first PCA explaining the majority of variability in the data. This is achieved through a rotation of the dataset, ensuring that the rotated features are orthogonal. Besides PCA, other methods such as Linear Discriminant Analysis (LDA) and t-Distributed Stochastic Neighbor Embedding (t-SNE)) also offer effective means for dimensionality reduction, each with its unique advantages for specific types of data and applications. 2.1.2 Supervised Learning Supervised learning works on very different principles compared to unsupervised learning. Supervised learning emphasizes training programs that use recorded data to make predictions and present hypothesis [22,16]. This approach is more consistent with traditional computing, where explicit commands are given to programs. The basic idea of supervised learning involves the availability of labeled data, which serves as a training point for the algorithm. Each data point in the data set is associated with a corresponding label or target, essentially providing a blueprint for the model to learn from [22,36]. Through iterative processes and optimization techniques, the algorithm adjusts its parameters to map the input data to the correct output, generalizing from that training data and identifying new, unseen data [59]. Supervised learning is highly reproducible and applicable to a wide range of tasks, including classification and regression [58,80]. In classification, the goal is to classify data points into specific groups or lines, while in regression, the goal is to identify a continuous value [28,25]. This functionality has util- 6 ity in a wide variety of real-world scenarios, such as spam email detection, image classification, medical diagnosis, and stock price prediction. Key algorithms in supervised learning include decision trees, support vector machines, and neural networks with deep learning models [77,25,28]. These systems have made incredible progress in solving complex problems, and their performance is constantly improving due to advances in computing power and data acquisition, supervised learning is central to many aspects of modern technology, powering smart systems, autonomous vehicles and biological organs [22]. (a) Regression Regression is a specific type of supervised learning task where the goal is to predict a continuous numeric output [25,22]. In other words, it deals with estimating relationships between input variables and a continuous target variable. Regression algorithms aim to find the best-fit line, curve, or hyperplane that represents the underlying patterns in the data [81,77]. Common examples of regression tasks include predicting house prices based on features like square footage and location, or forecasting stock prices based on historical data. Popular algorithms for regression include linear regression, gradient boosting, and support vector regression, each suited to different types of data and problem scenarios [22,52]. (b) Classification Classification, another type of supervised learning, involves predicting the category or class label of a given input. Unlike regression, where the output is continuous, classification deals with discrete outcomes [80,77]. The algorithm learns from labeled training data and assigns each new input to one of the predefined classes [28]. Examples of classification are, email spam detection or image recognition. Popular algorithms for classification include logistic regression, decision trees, and support vector machines for classification. 2.1.3 Machine Learning Project Workflow The process of constructing machine learning algorithms involves several distinct steps [97]. Initially, data collection is imperative, followed by the selection of a subset of data attributes deemed relevant to address the problem at hand [97,64]. Subsequently, features are extracted, data undergoes transformation, and a thoughtful selection of features for the model is executed. Additionally, the data must be partitioned into training, test, and independent/validation datasets [61]. The subsequent step entails the actual training of the model, where the training set serves as the foundation for the algorithm to extract knowledge [5]. 7 When applied to the test dataset, this trained model facilitates the calculation of performance metrics by comparing actual and predicted values of the target variable [92]. This phase also allows for the fine-tuning of hyperparameters and overall model optimization [61,5,64,92]. Ultimately, the validated model, having undergone rigorous testing, can be deployed to analyze previously unseen data. An example of a machine learning pipeline is in Figure 1. Figure 1: Machine Learning Pipeline (a) Data collection The initial step in the machine learning pipeline involves the gathering of data and the careful selection of pertinent attributes. A subset of data attributes that are deemed relevant to solving the problem at hand is chosen. The features extracted from an object are akin to a signature that describes the object and is typically organized in a feature vector [97,87]. These features, serving as input variables or attributes, represent the data in a fixed-length vector and can manifest as binary, categorical, or continuous variables [84,87]. A dataset is conceptualized as a matrix of data, where each column signifies an attribute, and each row corresponds to a distinct instance [97,64]. The structure of a dataset typically designates one or more columns as the output attributes, while the preceding columns denote the input attributes. The construction of a benchmark dataset with reliable data assumes importance, as the efficacy of machine learning models is profoundly contingent on the quality of the data. For classification problems, it is imperative that the dataset comprises subsets delineating instances representing class members and non-class members [80]. In the context of training a classifier, a conventional approach involves selecting a positive/negative ratio of 1:1. However, in certain scenarios, employing data re-balancing techniques has been demonstrated to yield superior results [83]. This underscores the critical role of meticulous dataset construction in ensuring the robustness and effectiveness of subsequent machine learning endeavors. 8 (b) Feature selection Feature selection involves automatically identifying and selecting the most pertinent features for model predictions. This process is crucial for eliminating irrelevant and redundant variables from the dataset, enabling the construction of simpler and more accurate models [19]. The utilization of fewer variables on input data is pivotal in mitigating the risk of the model learning from data ”noise,” ultimately preventing overfitting. In addition to fostering the development of a more generalized model, effective feature selection reduces the time required for model training by streamlining algorithmic complexity. Consequently, the primary objectives encompass enhancing accuracy, curtailing overfitting, and expediting training time [19]. There exist three principal methods for feature selection: filter, wrapper, and embedded methods [44]. Filter methods employ statistical measures to assign scores to each feature, subsequently determining whether to retain or discard them from the dataset [69]. These methods are typically employed as a preprocessing step and are independent of specific machine learning algorithms. Notable examples of filter methods include Pearson’s Correlation, ANOVA, and the Chi-squared test [13]. Wrapper methods involve generating distinct sets of features and training the model with each set. The selection of the best combination of features is based on the accuracy of the resulting models. While effective, wrapper methods are computationally intensive [18]. Prominent examples include forward selection and backward elimination. Forward selection initiates with an empty feature set, gradually introducing new features in each iteration based on their contribution to model improvement. Conversely, backward elimination starts with all features and progressively removes the least significant ones until no further enhancement in predictions is observed [56]. Embedded methods, implemented during model training, discern the attributes that significantly influence predictions and contribute to model accuracy [48]. The most prevalent embedded feature selection methods are regularization or penalization methods. These techniques introduce constraints into the optimization process of the learning algorithm, thereby altering bias values and reducing model complexity [89]. (c) Data Partitioning To assess the error of various models accurately, it is crucial to partition our dataset into training and test sets [97,64,5]. The training set serves as the data for training the machine learning model, while the test set is employed to appraise the final model’s performance and validate it. Once trained, the algorithm’s efficacy is evaluated by its ability to accurately predict output data on the test set. To ensure the model generalizes well beyond the training set, it’s imperative to randomize the dataset division [25]. Sampling 9 data at regular or adaptive intervals is essential, and the selected samples must be representative of the entire population. When utilizing the test set for hyperparameter tuning, it’s crucial to recognize that the evaluation of performance may not accurately represent the model’s effectiveness in real-world scenarios [27]. To address this concern, a third set of independent data, referred to as the validation set, is introduced. The validation set serves as the medium for tuning hyperparameters, ensuring a more accurate reflection of the model’s performance on previously unseen data. The test set, distinct from the validation set, is then reserved for the final assessment of the model’s proficiency in handling unencountered data [22]. (d) Model Selection and Development The first step in the model development process is to select the appropriate algorithm to be applied to the pre-existing data set. The choice of algorithm depends on the nature of the data and the specific problem [92,64]. High model robustness can be achieved by using ensemble methods, which involve combining different algorithms or similar algorithms with different parameter values. Once the model is trained, the next most important step is evaluation. This analysis is an important step in optimizing and selecting the most effective model. This requires subjecting the trained model to the test set, in order to evaluate its performance more accurately. The results of this evaluation process play an important role in determining the feasibility and efficiency of the model in solving the identified problem [5]. (e) Performance Metrics In the context of classification problems, performance metrics focus on assessing the accuracy of predicted class labels compared to the true class labels. Common metrics include accuracy, precision, recall, F1 score, and the area under the receiver operating characteristic curve (AUC-ROC) [57,26]. The accuracy is a straightforward measure of overall correctness and is calculated as: Accuracy =Number of Correct Predictions Total Number of Predictions . Precision, also known as positive predictive value, is the ratio of correctly predicted positive observations to the total predicted positives. It is calculated as: Precision =True Positives True Positives+False Positives . Recall, also known as sensitivity or true positive rate, is the ratio of correctly predicted positive observations to the total actual positives. It is calculated as: 10 Adagrad: •Concept: An optimization algorithm that adjusts the learning rates based on the historical gradient information, allowing larger updates for infrequent parameters and smaller updates for frequent parameters. •Formula: θt+1 =θt−α √Gt+ϵ·∇J(θt), where αis the learning rate, Gtrepresents the cumulative sum of squared past gradients, ϵis a small constant added for numerical stability, and ∇J(θt)is the gradient of the loss function at θt. 2.2.3 Node In the context of artificial neural networks, a node is also commonly referred to as a neuron or perceptron. Nodes are the basic building blocks of a neural network and are organized into layers. The three main types of layers in a neural network are the input layer, hidden layer(s), and the output layer [30,71]. The formula for a node in a typical feedforward neural network, where information flows in one direction (from input to output), can be broken down into a few components. Let’s consider a node in a hidden layer for simplicity: Input: Each node receives input signals from the nodes in the previous layer. Each input is multiplied by a weight: Input = n ∑ i=1 (inputi×weighti) + bias. Here inputirepresents the output of the i-th node in the previous layer, weightiis the corresponding weight associated with that connection, and bias is a bias term [75]. Activation Function: The result of the weighted sum is then passed through an activation function, which introduces non-linearity to the network. The purpose of the activation function is to determine the output of the node based on whether the input is above a certain threshold [66,72]: Output =ActivationFunction(Input). The weights and biases in the formula are parameters that the neural network learns during the training process. The network adjusts these parameters to minimize the difference between its predicted outputs and the actual outputs (targets) for a given set of input examples [75,67]. This process is typically performed using optimization algorithms, such as gradient descent. 17 2.2.4 Activation Functions Activation functions are crucial components in neural networks as they introduce non-linearity, allowing neural networks to learn complex patterns in data. In this subsection, there will be a list of activation functions commonly used in neural networks. Heaviside Step Function: •Formula: Heaviside(x) =      0if x < 0 1if x≥0 . •Range: Output values are binary, either 0 or 1. •Characteristics: The Heaviside step function is a binary activation function that outputs 0 for negative input and 1 for non-negative input. While it has theoretical significance, it is rarely used in deep learning due to its lack of differentiability, which is essential for gradient-based optimization. Sigmoid: •Formula: Sigmoid(x) = 1 1+e−x. •Range: Output values are in the range (0,1). •Characteristics: Sigmoid squashes the input values to a range between 0 and 1, which can be interpreted as probabilities. It is often used in the output layer of a binary classification model. ReLU: •Formula: ReLU(x) = max(0, x). •Range: Output is in the range [0,∞). •Characteristics: ReLU is computationally efficient and helps with the vanishing gradient problem. It is widely used in hidden layers of deep neural networks and introduces non-linearity by outputting the input for positive values and zero for negative values. Leaky ReLU: •Formula: Leaky ReLU(x) = max(αx, x), where αis a small positive constant (e.g., 0.01). •Range: Output is in the range (−∞,∞). 18 •Characteristics: Leaky ReLU addresses the “dying ReLU” problem, where neurons can become inactive and stop learning. The small slope for negative values allows a small gradient, preventing complete inactivity. Softmax: •Formula: Softmax(xi) = exi ∑N j=1 exjfor each element xiin the vector x. •Range: Output values are normalized positive values that sum to 1. •Characteristics: Softmax is often used in the output layer for multi-class classification problems. It converts raw scores into probabilities, making it suitable for tasks where the model needs to choose among multiple classes. Tanh: •Formula: tanh(x) = e2x−1 e2x+1 . •Range: Output values are in the range (-1,1). •Characteristics: The hyperbolic tangent function is similar to the sigmoid but with a range from -1 to 1. It is often used in scenarios where the data distribution is centered around zero, as it helps mitigate issues related to vanishing gradients. 2.2.5 Layers The output of a hidden layer is a vector containing the outputs of all nodes in that layer [67]. Outputhidden = [Output1,Output2, . . . , Outputm], where mis the number of nodes in the hidden layer. The weights and biases associated with connections to the hidden layer are learned during the training process. The network adjusts these parameters to minimize the difference between its predicted outputs and the actual outputs for a given set of input examples [63]. In summary, a hidden layer in an artificial neural network takes inputs from the previous layer, computes a weighted sum for each node, applies an activation function to introduce non-linearity, and produces an output vector. The combination of multiple nodes organized into layers forms the neural network, capable of learning complex mappings between inputs and outputs [71]. 19 (a) Recursive Neural Network Recursive Neural Network (RvNN) is a neural network architecture that excels prediction in hierarchical structure and divides its outputs by composition vectors. It takes its main inspiration from Recurrent auto-associative memory (RAAM).RvNN is specifically designed to handle objects with complex, randomly ordered dimensions, such as graphs or trees. This method transforms data structures of variablesized recursive data into fixed-width distributed representations. A backpropagation learning algorithm by structure is used to train the network, which follows a similar approach to the standard backpropagation algorithm but modifies the tree-like structure [34]. RvNN calculates scores to determine the probability of combining two units and based on these scores constructs a syntactic tree. It also calculates a score of the accuracy of the integration for each pair of units. The highest scoring pairs are then combined into the composition vector. After each merger, RvNN generates a region size with multiple categories, a composition vector representing this region, and a class label, for example: if two units are noun phrases, the noun phrase is a class label, composition vector serves as the root of the RvNN tree structure [38]. (b) Recurrent Neural Network Recurrent Neural Network (RNN) is a widely used algorithm in deep learning. It finds common use in tasks related to speech processing and NLP. Unlike traditional networks, RNN is designed to handle sequential data, making it valuable for a variety of applications. For example, like short-term memory, it is necessary to understand the words in a sentence [32]. In a typical unfolded RNN diagram for a given input sequence, you will see the input (x), output (y), and hidden states (s). One of the most important challenges with RNN is its sensitivity to the exploding gradient and vanishing gradient problems during training [70]. These issues occur when the gradients are too large or decrease too fast, affecting the learning ability of the network. To overcome this, Long short-term memory (LSTM) was introduced. LSTM networks use memory blocks with memory cells that store time states and gated units to maintain information flow. It was found that residual connectivity in very deep networks mitigated the vanishing gradient problem. Each LSTM cell receives input signals, typically representing the current time step in a sequence [94]. The input consists of the input sequence at the current time step xtand the hidden state ht−1and cell state ct−1from the previous time step: Inputt= [xt, ht−1, ct−1] 20 At timestep t= 0, the input consists of: Input0= [x0,initial h0,initial c0] where, x0is the input at time step t= 0, and h0and c0are the initial hidden state and cell state, respectively. Operations in an LSTM Cell: •Forget Gate: Determines what information from the cell state should be discarded: ft=σ(Wf·Inputt+bf), where ftis the forget gate output at time step t.σdenotes the sigmoid activation function. Wf, bfare weights and biases specific to the forget gate. Inputtrepresents the input at time t. •Input Gate: Determines what new information should be stored in the cell state: it=σ(Wi·Inputt+bi), where itis the input gate output at time step t.Wi,biare weights and biases specific to the input gate. •Cell State Update: Updates the cell state with new information: ˜ct=tanh(Wc·Inputt+bc), where ˜ctrepresents the candidate cell state at time step t, computed using the hyperbolic tangent function tanh. Wc,bcare weights and biases specific to the cell state update. •Cell State: Combines the information to update the cell state: ct=ft⊙ct−1+it⊙˜ct, where ctis the updated cell state at time step t.⊙denotes element-wise multiplication. ct−1is the previous cell state. ft,it,˜ctare the outputs of the forget gate, input gate, and cell state update respectively. •Output Gate: Determines the output based on the updated cell state: ot=σ(Wo·Inputt+bo), 21 where otis the output gate output at time step t.Wo,boare weights and biases specific to the output gate. Output of an LSTM Layer: The output of an LSTM cell is a combination of the hidden state htand the cell state ct: Outputt= [ht, ct]. An LSTM layer processes input sequences through a series of gates (forget, input, and output gates) to selectively update and output information from the cell state. The cell state allows LSTM to capture long-term dependencies in sequential data, making them effective for tasks that involve data structured as a sequence [35,94]. ABidirectional Long short-term memory (BiLSTM) layer consists of two LSTM layers, one processing the input sequence in a forward direction, and the other processing it in a backward direction. This bidirectional processing allows the network to capture information from both past and future contexts [70,35]. The components of a Bidirectional LSTM layer: Input to a Bidirectional LSTM Layer: The input to a Bidirectional LSTM layer is typically the same as that of a unidirectional LSTM, comprising the input sequence at the current time step xt, the hidden state ht−1, and the cell state ct−1from the previous time step. Forward LSTM Processing: The forward LSTM processes the input sequence from the beginning to the end. Forward Input: Inputforward t= [xt, hforward t−1, cforward t−1] Forward LSTM Operations: Similar to those in a unidirectional LSTM. Backward LSTM Processing: The backward LSTM processes the input sequence in reverse order. Backward Input: Inputbackward t= [xt, hbackward t−1, cbackward t−1] Backward LSTM Operations: Similar to those in a unidirectional LSTM. Timestep 0 serves as the starting point where the LSTM cells begin processing the input sequence. Since there is no previous timestep, the initial hidden and cell states are typically set to zero vectors or initialized through other means (such as learned initial states or constants). Combine Forward and Backward Outputs: The output of the Bidirectional LSTM layer is a combination of the outputs from the forward hforward t, cforward t and backward hbackward t, cbackward tLSTM. 22 Outputt= [hforward t, cforward t, hbackward t, cbackward t] BiLSTM layer processes input sequences in both forward and backward directions, capturing information from both past and future contexts [35]. The outputs are a combination of the hidden states and cell states from both directions, providing a more comprehensive representation of the input sequence. These architectures are particularly useful in tasks where understanding context from both directions is essential, such as in natural language processing and sequence labeling. (c) Convolutional Neural Network In deep learning, Convolutional Neural Network (CNN) stands out as a well-known and widely used algorithm. What sets CNN apart from its predecessors is its remarkable ability to automatically distinguish between relevant features without human intervention. It has made significant gains in fields such as CV, speech processing, and facial recognition, to name a few [51]. The CNN system draws inspiration from the neural systems of the human and animal brain, which are similar to traditional neurons. In a nutshell, CNN mimics the organization of complex layers of cells in the rat brain, which make up the optic nerve [67,33]. Notably, CNN offers three important advantages: uniform representation, sparse correlation, and parameter sharing. Unlike traditional fully connected algorithms, CNN uses shared weights and local connectivity to efficiently process 2D input data, such as image signals. This approach reduces the number of parameters, facilitating training and speeding up the network. This viewpoint aligns with the notion that the visual cortex requires analysis of only small areas rather than the entire scene, akin to using local filters to extract local correlations from the input [2]. Figure 2 is an example of a CNN architecture, illustrating how these networks are structured and organized to process images [3]. Figure 2: CNN Architecture 23 Input to a Convolutional Layer: •Input: A 3D tensor representing the input data, typically with dimensions (height, width, channels). For an image, this might be the pixel values in the RGB channels. •Filter (Kernel): A set of learnable weights used to scan over the input data. 24 Convolution Operation: •Formula: The convolution operation involves taking the dot product of the filter and a local region of the input. This operation is performed at every possible position in the input: Outputi,j,k =∑m∑n∑l(Inputi+m,j+n,l ×Filterm,n,l,k), where Outputi,j,k is the element at position (i, j)in the k-th channel of the output tensor, Inputi+m,j+n,l is the element at position (i+m, j +n)in the l-th channel of the input tensor, Filterm,n,l,k is the element from the filter/kernel at position (m, n)in the l-th channel of the input and k-th channel of the output. The summations ∑m,∑n,∑lare performed over all possible positions m, n and channels lin the input tensor. •Activation Function: Typically, a non-linear activation function (e.g., ReLU) is applied elementwise to introduce non-linearity. Pooling (Subsampling) Operation: •Max Pooling: A common pooling operation involves selecting the maximum value from a local region of the input: Outputi,j,k =max(Input2i,2j,k,Input2i,2j+1,k,Input2i+1,2j,k,Input2i+1,2j+1,k). •Average Pooling: Alternatively, average pooling computes the average value of the local region. Activation Function: • After convolution and pooling, an activation function (e.g., ReLU) is often applied element-wise to the entire feature map. Output of a Convolutional Layer: • The output of a convolutional layer is a set of feature maps, each capturing different aspects of the input data: Output = [Feature Map1,Feature Map2, . . . , Feature MapN]. 25 Fully Connected Layer (Optional): • In some CNN architectures, one or more fully connected layers may follow the convolutional layers to perform classification or regression based on the learned features. A convolutional layer in a CNN performs convolution and pooling operations on the input data, followed by an activation function. This process is repeated to generate multiple feature maps, which are then used to learn hierarchical representations of the input. (d) Flatten Layer Flatten layer acts as a bridge, transforming multi-dimensional tensors into one-dimensional vectors. By concatenating all the values, it ensures that the subsequent layers receive a flattened representation of the learned features [43]. •Input: The input to a Flatten layer is typically a multi-dimensional tensor representing the output of the preceding layer, such as a convolutional layer. •Flattening Operation: The Flatten layer transforms the multi-dimensional tensor into a onedimensional array by reshaping it. All the values from the input tensor are concatenated into a single vector: Output = [Input1,1,1,Input1,1,2, . . . , Inputm,n,p]. where m,n, and prepresent the dimensions of the input tensor. •Output: The output of the Flatten layer is a one-dimensional array containing all the values from the input tensor. (e) Dense Layer Dense layer connects every element of its input to each node in the layer, applying weights, biases, and activation functions to produce a one-dimensional output array [41,23]. •Input: The input to a Dense layer is typically a one-dimensional array (flattened vector) resulting from the previous layers. •Weights and Biases: Each node in the Dense layer is connected to every node in the input. The connections have associated weights and biases: 26 The Python Pillow library is a fork of an older library called PIL. PIL stands for Python Imaging Library, and it’s the original library that enabled Python to deal with images. (d) Deep Learning Packages PyTorch is an open source machine learning library developed by the Facebook AI Research lab. Built around tensors, PyTorch offers a rich set of functions for tensor processing. The Torch.nn module simplifies the creation of neural networks, providing pre-defined levels, loss functions, and optimization algorithms. The PyTorch Autograd library enables the automated calculation of critical gradients for optimization during training. The use of proposition enables immediate task estimation, fostering an interactive development environment. With a strong focus on community and research, PyTorch is popular in both academic and technical environments. It has an ecosystem of libraries and extensions, including TorchVision and TorchText. TensorFlow, an open-source machine learning library developed by the Google Brain team, similar to PyTorch, operates on the concept of computational graphs, where nodes represent mathematical operations and edges represent the data flow between operations. This static computational graph allows for optimizations during model training. Tensors, multi-dimensional arrays, in TensorFlow serve as the primary data structure for representing input data and model parameters. TensorFlow provides a comprehensive set of functions for tensor operations. The tf.keras module in TensorFlow simplifies the process of building and training neural networks. It offers a high-level API for defining models, layers, and loss functions, as well as a variety of optimizers. Figure 4: Illustration of a tensor 33 DeepImageSearch is a Python library that combines state-of-the-art computer vision models for feature extraction with specially optimized algorithms for indexing and retrieval. This combination enables fast and accurate match searching and clustering of dense vectors, providing the ability to visualize analytical systems. DeepImageSearch extends its utility by being able to import pre-trained models such as those from the ResNet or VGG family. (e) Machine Learning Packages Scikit-learn is a useful and robust library for machine learning in Python. It provides a selection of efficient tools for machine learning and statistical modeling including classification, regression, clustering and dimensionality reduction via a consistence interface in Python. This library, which is largely written in Python, is built upon NumPy. (f) Database MongoDB is a versatile NoSQL database software written in C++. It processes large amounts of unstructured data using a scalable, schema-free and document-oriented approach. MongoDB supports features such as indexing, replication, and automatic sharing for dynamic growth, data diversity, and efficient data delivery. Its flexible query language, robust indexing, and support for geospatial queries make it suitable for a variety of applications. With official drivers for programming languages, MongoDB integrates seamlessly across environments, providing a reliable solution for flexible data modeling, scalability and efficient data retrieval. PyMongo is a Python package for MongoDB, offering connection between Python and MongoDB databases. It simplifies tasks like document creation, retrieval, and updates in MongoDB collections. PyMongo supports essential MongoDB features, including indexing, sharding and replication. It uses BSON to ensure efficient communication between Python and MongoDB. 34 Chapter 3 Application of Machine Learning to Textile and Fashion 3.1 Textile and Fashion The textile and fashion industry is one of the most prioritized and important sectors for the Portuguese economy. It is a manifestation of creative, cultural and economic importance. This chapter examines key aspects of the textile and fashion industry, presenting its historical development, current status and emerging trends affecting the design and consumer landscape. 3.1.1 Historical Evolution The historical roots of the textile and fashion industry can be traced back centuries, reflecting changing standards of living, technological advances and artistic expression. Historically, most textiles were woven by hand or by rudimentary machinery. However, the Industrial Revolution in the late 18th century was a pivotal moment as mechanized textiles changed the industry [78]. These changes allowed for more costumes, making them more affordable and accessible to a wider audience. Over time, clothing and textiles began to acquire not only functional but also cultural and aesthetic values. They became expressions of social status, identity and individuality. The influence of leading fashion designers such as Coco Chanel, Christian Dior and Yves Saint Laurent [68] cannot be overstated in shaping the industry and redefining accessories. 3.1.2 Current Landscape Today, the textile and fashion industry is a global powerhouse, characterized by a large and complex network of designers, manufacturers, retailers and customers. The current state of the industry reflects 35 a strong network of diverse entities such as customers demand, technological advances, sustainability concerns expressed and global supply chain. The concept of “instant fashion” has taken center stage, with companies such as Zara and HM producing affordable, fast-changing products to satisfy fashion-conscious consumers This trend has been shortened due to clothing disposal and increase environmental problems [9]. At the same time, haute couture [65] continues to evolve with its focus on craftsmanship, exclusivity and customization. Design houses such as Chanel and Louis Vuitton exemplify this high-end category, emphasizing artistic fashion accessories. The industry is also experiencing a major shift towards sustainability and ethical practices. Increased awareness of the environmental impact of textile manufacturing has led many companies to adopt environmentally friendly products and fair labor practices. 3.1.3 Sustainable Practices in Textile Manufacturing The textile and fashion industry has witnessed a major shift towards sustainability in recent years. Manufacturers are increasingly adopting environmentally friendly practices to address the environmental impact of clothing manufacturing. This section explores key aspects of sustainable practices in textile manufacturing: A key initiative has been the use of environmentally friendly materials, such as organic cotton, recycled polyester, recycled mushroom leather and other building materials replacement. These products aim to reduce the environmental footprint of clothing manufacturing and meet growing consumer demand for sustainable products [39,4]. In response to concerns about fair labor practices, many companies emphasize fair production practices. It ensures that employees are treated fairly, paid fair wages and work in safe working conditions. Ethical manufacturing facilitates more socially responsible and sustainable businesses. The concept of circular fashion encourages a closed system, where clothes are designed with reuse and recycling in mind. This reduces waste and extends the life of fashionable products. Companies are exploring strategies such as recycling programs and recycling to help build a circular and sustainable fashion economy [91,39]. Adopting a sustainable supply chain is critical to reducing the overall environmental impact of the textile industry. Companies are sourcing more responsibly, streamlining logistics and implementing environmentally friendly packaging solutions. Sustainable supply chains contribute to the industry’s commitment to environmental protection [4]. 36 3.1.4 Emerging Trends The textile and fashion industry is in a constant state of flux, responding to cultural changes, technological innovations and environmental challenges. In an AI-powered fashion recommendation system, it is important to stay abreast of trends. One standout feature is new fabrics and sustainable materials such as organic cotton, recycled polyester and reclaimed mushroom leather. As consumers become more aware of their environment, manufacturers are adapting to meet this demand for environmentally friendly products. E-commerce and social commerce have revolutionized the retail landscape. The convenience of online shopping and the influence of social media have changed how consumers perceive and buy fashion. Influencers and fashion bloggers, with their huge followings on social media, have become a powerful force for consumer demand [85]. Additionally, the integration of Augmented Reality (AR) and Virtual Reality (VR) [1] in the shopping experience is an emerging trend. This technology allows consumers to try on clothes in person, enhancing the online shopping experience and reducing returns. 3.1.5 Fashion Trend Fashion trends are dynamic and ever-changing expressions of popular tastes and cultural influences within the fashion industry. These trends include a wide range of products, from styles and colors to accessories and jewelry. Fashion items often come from a variety of sources, including: • Runway shows: High-end designers and houses present their collections during fashion weeks in cities such as Paris, Milan, New York and London. These shows tend to set the tone for upcoming trends. • Street fashion: What people wear in street fashion cities can have a broader impact. Street fashion is heavily influenced by both urban style and casual fashion. • Social Media: The rise of social media platforms has democratized fashion, enabling influencers, bloggers and fashion enthusiasts to share their unique style with a global audience. This increased visibility can quickly turn a particular look into a trend. • Cultural movements: Cultural variables and movements such as sustainability, gender equality, and political activism can drive trends. 37 3.1.6 Outfits An outfit is the sartorial manifestation of personal expression and fashion. It represents the harmonious mixture of various elements, developing a whole and cohesive appearance that reflects someone character’s taste, persona, and the message they want to convey. At its core, an outfit commonly accommodates clothing gadgets like tops, bottoms, clothes, and outerwear. These apparel picks are made with cautious attention of character choices, consolation, and the desired aesthetic, footwear is another essential part of an outfit, imparting both practical and stylistic significance. The choice of shoes can drastically impact the general appearance, ranging from the informal comfort of sneakers to the accelerated beauty of excessive heels. Outfits serve as a canvas via which people explicit their specific fashion, inspired with the aid of traits, cultural elements, and personal creativity. Fashion designers, stylists, and influencers all play a function in shaping the landscape of outfit picks and developments. Outfits are a shape of self-expression, allowing individuals to face out or blend in, make statements and adapt to various activities and environments. Figure 2 shows an example of the constitution of an outfit. Figure 5: Outfit example 3.2 Deep Learning applied to Textile Recommendation Textile recommendation involves the assessment and recommendation of various textile materials based on their distinct characteristics. Deep learning techniques, particularly CNN, have proven to be highly effective in addressing the complexities of this task as seen in [86]. The significance of deep learning in fabric recommendation lies in its capacity to automatically extract intricate and abstract features from images. Deep learning models, like CNN, excel at learning and transforming these features from a diverse set of training samples. 38 CNN are exceptionally well-suited for textile recommendation tasks [35,88]. These networks consist of multiple layers that autonomously learn hierarchical features from raw pixel data. When it comes to textile recommendation, CNN can identify subtle patterns, textures, and colors that may not be catchable to the human eye. Efficient utilization of deep learning in textile recommendation typically commences with the collection of textile samples. This dataset should have a wide variety of fabrics, patterns, and colors to ensure the model’s versatility and adaptability. Data preprocessing steps, such as resizing, normalization, and data augmentation, are essential to enhance the model’s robustness and its ability to handle variations in lighting and orientation. The following table 1 presents an overview of work in textile recommendation systems, highlighting notable examples that utilize various techniques. Among these are Visual Semantic Embedding (VSE), Visual Geometry Group Network (VGGNet),Generative Adversarial Network (GAN),Global Weighted Average Pooling (GWAP) and Multilayer perceptron (MLP). Table 1: Models used in Textile Recommendation Systems Name Architecture Reference Date Dataset Visual Semantic Embedding BiLSTM +VSE [35] 2017 Polyvore Sequence Learning BiLSTM +CNN +VSE [42] 2018 Polyvore Personalized Outfit VGGNet + Softmax [37]2018 Polyvore Context-Aware GNN + Auto-encoder [21] 2019 Polyvore, Fashion-Gen Inception V3 BiLSTM RCNN +BiLSTM [95] 2020 Polyvore. DeepFashion2 CNN System CNN [86] 2020 Own Dataset CCMCK CNN +GNN [88] 2021 Polyvore PAN CNN [54] 2021 Polyvore OutfitGAN CNN +GAN [55] 2022 Polyvore, iFashion Outfit Generation GAN [96] 2022 Maryland Global weighted average pooling CNN +GWAP [73] 2023 dataset-1, dataset-2 Diagnosing Fashion Compatibility Encoder + LSTM [6] 2023 ModAI Template-guided Outfit Generation GNN +MLP [24] 2023 Polyvore, iFashion 39 3.2.1 Relevant Work on Textile Recommendation Advances in fashion recommendation systems have made the way for innovative solutions to better meet customer requirements. The proposed recommendation system in [86] provides an innovative approach to help customers seamlessly choose apparel that matches their preferences and needs. This system uses a hybrid of computer vision and deep learning algorithms to streamline the decision-making process when purchasing textile products. The main function of this recommendation system is for users to upload pictures of their furniture, such as their sofas, to the platform. The system then combines these images with fabric patterns stored in its large database. Subsequently, these merged images are processed using deep learning algorithms. The deep learning model, as an integral part of the system, analyzes images to determine the most appropriate fabric patterns that match the customer’s existing furniture. A distinctive feature of this fashion recommendation process is the identification of differences in consumer preferences. To achieve this, the system incorporates cognitive strategies and preferences into its recommendation models, as highlighted in [86]. By conducting surveys and collecting user feedback, the system classifies models based on customer preferences. Models are sorted and categorized, allowing the system to better address individual interests. Traditionally, recommendation systems tend to rely on prior purchase history and ratings to recommend a product. But this fashion recommendation process goes further by continuously collecting customer feedback and presentations. This feedback loop helps to periodically retrain the CNN model. Leveraging the power of deep learning, the system not only relies on historical data, but also adapts to changing customer preferences, ensuring recommendations stay updated. The primary goal of the study in [50] is to refine the process of setting operational parameters by introducing a system referred to as the Operational Parameters Recommender System (OPRS). The development of OPRS necessitates the extraction of pertinent data from the Enterprise Resource Planning (ERP) system of the Li Peng factory, serving as the foundational data source for training two predictive models. Within this framework, the first model adopts a regression approach, aiming to forecast operation parameters based on yarn properties. By establishing a predictive model that correlates yarn properties with optimal operation parameters, the study seeks to provide a more sophisticated and data-driven methodology for parameter setting. Complementing the regression model is a classification model, the second facet of the predictive approach. This model is designed to predict the quality of production based on the identified operation 40 parameters. Through this classification model, the study analyses the relationship between operational parameters and production quality, contributing to a robust understanding of the impact of process variables on product outcomes. Work presented in [21] tackles the challenge of predicting compatibility between clothing items by introducing a method that considers both visual features and contextual information. Unlike traditional comparison models, this approach employs a Graph Neural Network (GNN) based on the graph autoencoder. The model architecture involves constructing a graph where fashion items serve as vertices, connected by edges representing compatibility. The encoder computes node embeddings, and the decoder utilizes these embeddings to predict compatibility. A distinctive feature is the incorporation of context, defined as the set of items compatible with each clothing item. This addition addresses the limitations of inflexible predictions and factors in individual preferences and evolving fashion trends. Experiments conducted on Polyvore, Fashion-Gen, and Amazon datasets include outfit completion and outfit compatibility prediction tasks. The model outperforms previous methods, showing its effectiveness in leveraging context information. The work evaluates the proposed model in a task referred to as Fill in the blank (FITB). This task involves predicting the most compatible clothe for that context, based on visual features and contextual information, as the name suggests, this task aptly captures the essence of filling in the blank spot. 3.2.2 Fill in the Blank Work The FITB task is a aspect of fashion recommendation systems, specifically designed to enhance the precision and personalization of clothing ensembles. At its core, this task revolves around predicting the optimal clothing item to fill in a missing outfit within a predefined context. The metaphorical ”blank” signifies the absence or omission of a particular element in a given outfit, and the primary objective is to predict the most compatible replacement. The FITB task acknowledges that a complete outfit is a carefully curated combination of various clothing items, each contributing to the overall aesthetic. When a gap exists within this ensemble a missing piece the recommendation system is tasked with identifying the ideal garment that seamlessly integrates with the existing context. What sets the FITB task stands out due to its comprehensive consideration of visual features, including the aesthetic attributes of clothing items such as color, pattern, texture, and style [54]. The synergy of these elements ensures that the predicted replacement is visually coherent. The presented work in [21] tackles the challenge of predicting compatibility between clothing items 41 by introducing a method that considers both visual features and contextual information. Unlike traditional comparison models, this approach employs a GNN based on the graph auto-encoder. The model architecture involves constructing a graph where fashion items serve as vertices, connected by edges representing compatibility. The encoder computes node embeddings, and the decoder utilizes these embeddings to predict compatibility. A distinctive feature is the incorporation of context, defined as the set of items compatible with each clothing item. This addition addresses the limitations of inflexible predictions and factors in individual preferences and evolving fashion trends. Experiments conducted on Polyvore, Fashion-Gen and Amazon datasets include outfit completion and outfit compatibility prediction tasks. The model outperforms previous methods, showing its effectiveness in leveraging context information. The work evaluates the proposed model in the FITB task. In [35] the focus is on addressing the challenges of fashion recommendation in the context of online shopping, specifically in two scenarios: recommending an item that complements an existing set to create a stylish outfit, and generating an outfit based on multimodal inputs (images/text) from users. The proposed approach involves jointly learning a visual-semantic embedding and compatibility relationships among fashion items in an end-to-end fashion. The method employs a BiLSTM model to capture the compatibility relationships among fashion items. The fashion outfit is considered as a sequence, typically arranged from top to bottom and then accessories. The BiLSTM model is trained to sequentially predict the next item in the sequence based on the previous ones, thereby learning the compatibility relationships between items in the outfit. To enhance the learning process, a visual-semantic space is established by regressing image features to their semantic representations. This is intended to inject attribute and category information as a regularization for training the BiLSTM. The proposed framework not only effectively performs fashion recommendations but also predicts the compatibility of a given outfit. The authors conducted extensive experiments on a newly collected Polyvore dataset and compared the results with alternative methods. The outcomes, both qualitatively and quantitatively, indicate that the proposed framework outperforms other approaches in fashion recommendation. Key tasks addressed by the proposed framework include recommending a fashion item that matches the style of an existing set, generating an outfit based on users’ text/image inputs, and predicting the compatibility of a given outfit. The model is trained end-to-end, and the evaluation involves tasks such as FITB recommendations, outfit generation, and compatibility prediction. The work in [88] addresses the importance of personalized recommendation services in the context of user-oriented services and social multimedia networks. It specifically focuses on outfit recommendation 42 done in NLP tasks. Since an outfit is inherently an ordered of items, this approach seemed intuitive for capturing the nuances of how different pieces interact within a given context. By conceptualizing outfits in this sequential manner, there is the possibility to leverage techniques from NLP to extract meaningful patterns and relationships between clothing items. (a) Architecture The model architecture combines convolutional and max-pooling layers to serve as feature extractors. These layers initially apply filters to the input images, systematically extracting relevant features such as patterns, textures, and shapes. By examining the visual data in this manner, the model learns details essential for understanding the composition of each outfit. Following feature extraction, the extracted information is consolidated into a one-dimensional array through a flattening layer. This step condenses the array of features into a format conducive to sequential analysis. Subsequently, the model utilizes a BiLSTM network to process the outfit as a sequential entity. The BiLSTM architecture is focused at capturing dependencies and relationships within sequences, enabling it to understand the order of clothing items within an outfit. A distinguishing aspect of the BiLSTM is its bidirectional nature, allowing it to learn from both the forward and backward sequences of the outfit. The bidirectional nature of the BiLSTM layer is important in the compatibility model because it reveals the duality in how clothing is perceived. Considering the dressing analogy: You can start with your shoes and work your way up to your head, or you can dress from the head down. Both ideas are true, but what remains constant is the importance of order in fashion. By processing clothing in both directions from head to shoes, and from shoes to head, the model embraces this fundamental part of clothing and in the process recognizes that some items must precede others forward to enable a cohesive ensemble. For example, it would be impractical to wear a coat over your head, emphasizing the importance of storing articles of clothing in order. After the BiLSTM layer, the information is further refined through a dense layer, facilitating the extraction of higher-level features crucial for compatibility assessment. Finally, to reshape the one-dimensional array back into the dimensions of the original images (128x128x3), a reshape layer is used, ensuring compatibility with subsequent processing stages. In figure 6, there is an example architecture of the compatibility model. This architecture exemplifies how the features are extracted, the sequence is processed bidirectionally, and the final image information is structured and reshaped to form an actual one. 49 Figure 6: Example architecture of the compatibility model. 4.1.3 Similarity Sub-Module Expanding upon the preceding compatibility model, the similarity module serves as the subsequent stage in our framework, tasked with finding the closest visually matching image from a predefined one, this image will be the one that was drawn from our compatibility model. The implementation of the similarity submodule came from a fundamental realization regarding the outputs generated by the compatibility module. While the compatibility module produces an image representative of the product or item that best suits the outfit, it crucially lacks a physical counterpart. Recognizing this limitation, the necessity arose to seek alternatives for recommendation. Consequently, the concept emerged to treat the image generated by the compatibility module as a representation of the most crucial features required for the missing piece in the outfit. By adopting this perspective, the task shifted towards identifying existing products or images that best encapsulate these essential features, thereby facilitating the recommendations. Hence, the similarity module serves as a bridge between the abstract representation provided by the compatibility module and the tangible recommendations sought by possible future users. A form of transfer learning was employed by utilizing pre-trained models, which had been trained on large datasets for similar tasks, and applying them to our specific dataset. This development involved a structured process to find the best model for recognizing visual similarities in images, starting by exploring various pre-trained models using the Deep Image Search Python package, which offers over 500 models. These models were tested using a set of reference images that belonged to different outfits. Each model was preloaded with the same set of 1356 images, each representing items that the model could potentially select as the most similar to the input it receives. A set of images was taken and provided to each model. The best models utilized were Vision Transformer (ViT), ResNet, Convolutional Network (ConvNet), and EfficientNet, all of which were pretrained on large-scale image datasets. Each model was tasked with finding the top five most similar images 50 for each input image. This search was done among the images that had been preloaded previously. Subsequently, the model would output these five images. To measure the effectiveness of each model’s output, we calculated the similarity between each recommended image and its corresponding input image. This was done using the UQI metric, which measures how close one image is to another. We then computed the mean of these similarity values. The results, including the best-performing model, are presented in table 2. Table 2: Similarity Accuracy Images Resolution ViT ResNet ConvNet EfficientNet 128x128 0.8729 0.8646 0.8634 0.8603 256x256 0.8744 0.8678 0.8659 0.8625 364x364 0.8749 0.8691 0.8662 0.8634 512x512 0.8749 0.8693 0.8674 0.8640 While higher resolutions generally lead to better UQI mean values, it’s essential to note that the improvements in model accuracy may not always justify the increased complexity and time consumption associated with handling those highest resolutions. Notably, the observations indicate that the 512x512 resolution tends to exhibit the highest UQI mean, underscoring the influence of resolution on model performance. However the improvement is not enough to justify the use of higher resolutions since it will slow down the pipeline too much. After testing, we found that the ViT performed the best in terms of UQI score, meaning it could identify visually similar images most accurately. The vit_base_patch16_224.mae model follows the ViT architecture, which represents a departure from CNN. This specific version of ViT, is the one shown in 2, due to its superior performance it was the model used for every recommendation. This variation employs a transformer-based architecture originally designed for natural language processing tasks to process image data. Notably, the model utilizes a patchbased approach, breaking down the input image into smaller patches and treating them as a sequence for processing. Some key characteristics of the vit_base_patch16_224.mae model: •Parameters (M): 85.8 •GMACs: 17.6 •Activations (M): 23.9 51 •trained Images: 224x224 The number of parameters (85.8M) indicates the model’s complexity, while the GMACs (17.6) reflect its computational workload in terms of Giga Multiply-Accumulates. Additionally, the activations (23.9M) represent the total number of activations during inference, offering insights into the model’s computational efficiency. Lastly, the size of trained images (224x224) underscores the scale at which the model operates. One of features of vit_base_patch16_224.mae is its pretraining methodology. The Self-Supervised Masked Autoencoder technique involves training the model to predict masked-out portions of the input image. After the selection process, the ViT model was chosen for the similarity submodule. This submodule operates by taking in the image with the most relevant features from the compatibility model. The ViT model is preloaded with a set of images. When given an input image, the model searches through this preloaded dataset to find the most similar images. Depending on the user’s preference, the model can be configured to output a specified number of recommendations, such as 1, 2, 5, etc. These recommended images represent the closest matches to the input image and serve as the final step in the recommendation pipeline. Furthermore, the similarity submodule offers the flexibility to be utilized independently as a recommendation tool. For instance, if a user has a particular product they highly favor, it’s likely that they would be interested in similar items. In such cases, the similarity model can be employed as a standalone recommendation engine, providing suggestions based on the input image alone. This versatility enhances the applicability of the submodule across various scenarios. 52 Chapter 5 Case study and Evaluation This section will present a comparative analysis to demonstrate the application and performance of the developed pipeline for addressing the fill in the blank task. The comparative analysis will be done with two test cases: Community Pictures [31] and Cleaned Maryland Polyvore [35,99]. The selection of case studies was influenced by the accessibility of datasets and the capability of replication. The deep learning models were constructed using the Tensorflow library. 5.1 Methods 5.1.1 Datasets (a) Maryland The Cleaned Maryland dataset was developed by the Fashion Team at the Laboratory for Artificial Intelligence, and it is a clean version of the Maryland Polyvore dataset. It was also used in [35]. Polyvore, a widely used fashion website, serves as a platform where users share outfits, providing information including images, descriptions, likes, hashtags, and more. The Cleaned Maryland dataset comprises 21,889 outfits carefully extracted from Polyvore, having the fashion items been reorganized into 20 categories. However, for the purpose of our specific study, we adopted a more focused approach. Instead of utilizing all 20 categories, we narrowed down our selection to a more streamlined set of four key categories: ‘top‘, ‘bottom‘, ‘other‘, and ‘feet‘. This reduction was a deliberate choice that aimed to simplify the dataset and transform it into a sequence of items, aligned with the learning capabilities of our BiLSTM model. As a result of this, the outfits in our dataset have been condensed to a more manageable number of 1356. One notable feature of the dataset is the exclusion of background information. By removing unnecessary background details, the dataset minimizes extraneous noise. An example of an outfit in this categories is shown in Figure7. 53 Figure 7: Compatible Outfit from Maryland dataset (b) Community Pictures This dataset comprises 5403 images of 20 categories and was collaboratively constructed by the community, with members contributing images of their clothing items. Created to facilitate various applications in machine learning, such as model training, educational purposes, and content creation. This dataset is openly accessible under the public domain license (CC0), allowing unrestricted use, including for commercial purposes. To compile the dataset, three distinct methods were employed. Firstly, the Toloka crowdsourcing platform contributed 1,400 images, representing 28% of the dataset. Participants were instructed to take pictures of clothing items and upload them, but the submission review process revealed various issues, such as irrelevant images and duplicates, resulting in a significant portion of the images being discarded. Secondly, crowd-sourcing of the network through social media garnered 600 images from 32 participants. A call-for-action article was shared on LinkedIn and Twitter, inviting users to upload their images through Airtable forms, with copies of the ”Machine Learning Bookcamp” awarded to top contributors to incentivize participation. Thirdly, the Tagias Data Collection Company provided 3,000 images, making up 60% of the dataset. Tagias employees took photographs of clothing items, and their internal validation process ensured the authenticity and relevance of the images, with minimal need for further verification. Post-collection, the images were manually labeled using an annotation tool built with IPython widgets. The labeling process included periodic validation steps to correct errors, employing a neural network trained on the dataset to identify discrepancies. This iterative approach helped refine the accuracy of the dataset. The dataset categorizes the images into 20 clothing classes, with the number of items per class varying. It is important to note that the dataset does not include pre-made outfits, so combinations had to be randomly assembled. In some categories, due to the low number of images, certain items had to be used more than once, resulting in them appearing in multiple outfits. An example of some of the categories in this dataset is shown in Figure8. 54 Figure 8: Examples of Comunity Pictures items 5.1.2 Deep Learning Models The deep learning models, for the compatibility part, were constructed using the TensorFlow library. Architectures included CNN followed by RNN layers and purely Dense layer configurations. For RNN,LSTM and BiLSTM layers were tested. Attention mechanisms were also added to the hidden layers during testing. All models used the Adam optimizer, and various activation functions. Mean Squared Error loss function was consistently used to keep track of parameter adaptation. Hyperparameter optimization for layers, units, dropout, and batch size was done heuristically due to computational constraints. Models were trained with early stopping (patience of 50 epochs) and saved the best parameters during training. Training was conducted on GPUs using CUDA and managed with SLURM for better resource management. For the similarity part, transfer learning was utilized from models trained on this task. All models were used with the help of the Deep Image Search package, which imported the pre-trained models from the Hugging Face library. 5.1.3 Evaluation Metric In this thesis, the focus is to develop a system capable of predicting the missing item in an outfit. The system takes three images of existing outfit items as input and outputs an image representing the predicted missing item. Given the nature of the problem, where the generated item does not correspond to a real, existing item, we have devised a multi-step evaluation process to ensure the relevance and quality of our predictions. The primary challenge lies in evaluating the effectiveness of the entire pipeline, which is composed of two models: a compatibility model that creates the missing item as a generated image, and a similarity model that identifies the most visually similar real item from a large dataset. Since the final output of our 55 pipeline is a real item image that closely matches the generated image, we needed a robust method to assess how well this recommended item matches the actual intended item in the outfit. To quantitatively evaluate the similarity between the recommended item and the actual real item that completes the outfit, the UQI was used, since it evaluates the structural distortion and overall quality of the image by comparing luminance, contrast, and structural information. (a) Threshold for Accuracy In the context of fashion, it is often the case that items do not need to be exact matches to be considered suitable or well-predicted. Fashion inherently allows for some degree of flexibility and creativity. To account for this, we define a threshold for the UQI metric to classify predictions as correct. Based on empirical observations and domain knowledge, we set this threshold at 0.65. This means that if the UQI score between the recommended item and the actual item is 0.65 or higher, we consider the prediction to be well predicted. (b) Overall Evaluation Process The evaluation of our pipeline is thus a multi-step process: 1. Generate Missing Item: The model generates an image representing the missing item in the outfit. 2. Find Similar Real Item: Using a pre-trained similarity model, we search a large batch of real images to find the one most similar to the generated image. 3. Compute UQI: Calculate the UQI between the recommended item and the actual item that completes the outfit. 4. Classify Prediction: If the UQI score is 0.65 or higher, classify the prediction as well-predicted. This evaluation metric allows one to monitor whether the model is predicting items that fit the outfits without excluding good predictions simply because they do not match the exact item. This approach allows to accommodate the inherent variability in fashion and assess the model’s performance in a more realistic and flexible manner. 56 5.2 Results and Discussion The development of the compatibility model began with the Community Pictures Dataset, initially focusing only on the feet category. This approach allowed for the adjustment of the model architecture and hyperparameters through a series of iterative changes. The goal was to improve the model’s performance, which was measured using accuracy and MSE. Below, the process is outlined, detailing each step and its impact on the model, along with explanations for the observed results, particularly the recurring accuracy plateau caused by dropout layers. The model performance across every iteration is presented in table 3. Table 3: Accuracy and MSE of the Compatibility Model on the Community Pictures Dataset (Feet Category) CNN + LSTM Accuracy MSE Baseline 73.63%0.0060 Increased CNN Layers 66.81%0.0930 Added Dropout 69.71%0.1200 Changed Activation 69.71%0.1200 Added Val Data 69.71%0.1200 Adjusted Learning Rate 74.07%0.0124 Batch Normalization 73.41%0.0136 Added LSTM layers 69.71%0.1200 Bigger Batch size 69.71%0.1200 Modified Loss Function 69.71%0.1200 Additional Epochs 69.71%0.1200 Increased Dropout 69.71%0.1200 Removed Dropout 80.74% 0.0610 In the first iteration, the number of CNN layers was increased, expecting deeper feature extraction to yield better results. However, this modification led to a significant drop in accuracy to 66.81% and a surge in MSE to 0.0930. This indicated that the model might be overfitting or the additional layers were not effectively learning the features from the dataset. To combat overfitting, dropout layers were introduced in the next iteration. Surprisingly, while dropout usually helps in generalization, the accuracy improved slightly to 69.71%, but the MSE increased to 0.1200. This pattern persisted through several subsequent iterations whether the activation function was changed, 57 added validation data, or adjusted the learning rate the accuracy hovered around 69.71%, and the MSE remained at 0.1200. The model’s stubborn accuracy pointed to a deeper issue. It became apparent that the dropout layers were causing the model to converge on predicting the mean of pixel values for every outfit, leading to a scenario where the model essentially predicted the same image for all inputs. This was evident as modifications like adding LSTM layers, increasing batch size, modifying the loss function, and even training for additional epochs failed to break the accuracy MSE deadlock. An example of this ”mean image” that was being produced by the model can be seen in figure 9. Figure 9: Mean Image of the Feet category An attempt to adjust the learning rate brought a fleeting glimmer of improvement, nudging the accuracy slightly higher to 74.07% and reducing the MSE to 0.0124. However, the overall stagnation persisted, and even batch normalization did not provide a breakthrough, with accuracy and MSE figures not deviating significantly from the earlier observed patterns. The critical turning point arrived when we decided to remove the dropout layers altogether. This change propelled the model’s accuracy to a notable 80.74% and brought the MSE down to 0.0610. The removal of dropout layers allowed the model to learn more distinctive features from the dataset, breaking free from the previous constraint of predicting mean pixel values. Following refinement of the model by removing dropout layers, experiments were conducted to optimize performance by varying the number of training epochs as shown in Table 4. Initially, with 20 epochs, the model achieved an accuracy of 80.74% and an MSE of 0.061. Subsequent increases in epochs saw 58 Chapter 6 Conclusions and Future Prospects This chapter provides a summary of the key findings from this project and explores potential future research directions. The conclusion section will highlight the effectiveness of the proposed approach to fashion compatibility learning. The future prospects section will discuss methods for enhancing the model, including user-specific personalization and expanding the model’s applications beyond fashion. 6.1 Conclusions This project presents an innovative approach to fashion compatibility learning by simultaneously training aCNN and a BiLSTM model. The method treats an outfit as a sequence, with each item serving as a time step. What distinguishes this approach is its focus on generating an image via pixel value prediction, effectively framing the task as a regression problem. Additionally, a similarity model is employed on top of the generated image to recommend a real-world image. To validate the accuracy of this approach, the UQI is used to measure the similarity between the recommended image and the actual image. This metric effectively evaluates how closely the recommendation aligns with real outfits. The results demonstrate the effectiveness of this approach in learning the compatibility of fashion outfits. The use of both CNN and BiLSTM allows one to capture the sequential nature of outfits, leading to improved predictions. Despite the inherent subjectivity in fashion compatibility, this approach provides a robust framework for making accurate and relevant recommendations. However, it is important to note that this approach relies on a complex pipeline involving multiple models and stages, such as using rembg for image processing, followed by the compatibility model and the similarity model. This complexity can lead to the accumulation of errors at each stage, impacting the final accuracy. All the work accomplished in this thesis is detailed in [76]. 65 6.2 Prospect for Future Work Recognizing that fashion compatibility is subjective and varies from one individual to another, future research will explore modeling user-specific compatibility and style preferences. The goal is to construct a more personalized system that takes into account individual tastes and preferences, thereby enhancing the overall user experience. Expanding this approach to include additional keywords such as style, mood, artist, material, texture, and brand will add depth to the model’s decision-making process, improving the latent space of features extracted. This enhancement will make the system more versatile and contextually aware, refining the quality of recommendations. Moreover, this approach holds immense promise in the realm of generative AI, particularly in the domain of image generation. Aspirations extend beyond outfits, as compatibility is not exclusive to fashion. By exploring diverse fashion domains and other industries, the principles guiding this recommendation system can be applied across various sectors. Whether in home goods, technology, or other areas, the potential for compatibility recommendations is vast and promising. 66 Bibliography [1] S. V. Akram, P. K. Malik, R. Singh, A. Gehlot, A. Juyal, K. Z. Ghafoor, and S. Shrestha. Implementation of digitalized technologies for fashion industry 4.0: Opportunities and challenges. Scientific Programming , 2022. [2] S. Albawi, T. A. Mohammed, and S. Al-Zawi. Understanding of a convolutional neural network. In 2017 international conference on engineering and technology (ICET) , pages 1–6. IEEE, 2017. [3] L. Alzubaidi, J. Zhang, A. J. Humaidi, A. Al-Dujaili, Y. Duan, O. Al-Shamma, J. Santamaría, M. A. Fadhel, M. Al-Amidie, and L. Farhan. Review of deep learning: Concepts, cnn architectures, challenges, applications, future directions. Journal of big Data , 8:53, 2021. [4] K. Amutha. Sustainable practices in textile industry: standards and certificates. Sustainability in the textile industry , pages 79–107, 2017. [5] L. Baier, F. Jöhren, and S. Seebacher. Challenges in the deployment and operation of machine learning in practice. In ECIS 2019 - 27th European Conference on Information Systems , volume 1, 2019. [6] C. Balim and K. Özkan. Diagnosing fashion outfit compatibility with deep learning techniques. Expert Systems with Applications , 215:119305, 2023. [7] D. H. Ballard and C. M. Brown. Computer vision . Prentice Hall Professional Technical Reference, 1982. [8] H. B. Barlow. Unsupervised learning. Neural computation , 1(3):295–311, 1989. [9] M. Bau. Fast fashion and disposable item culture: The drivers and the effects on end consumers and environment. Metropolia Ammattikorkeakoulu, 2017. [10] J. Bilmes. Underfitting and overfitting in machine learning. UW ECE course notes , 5, 2020. 67 [11] B. Bischl, M. Binder, M. Lang, T. Pielok, J. Richter, S. Coors, J. Thomas, T. Ullmann, M. Becker, A.-L. Boulesteix, et al. Hyperparameter optimization: Foundations, algorithms, best practices, and open challenges. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery , 13(2):e1484, 2023. [12] H.-H. Bock. Clustering methods: a history of k-means algorithms. Selected contributions in data analysis and classification , pages 161–172, 2007. [13] A. Bommert, T. Welchowski, M. Schmid, and J. Rahnenführer. Benchmark of filter methods for feature selection in high-dimensional gene expression survival data. Briefings in Bioinformatics , 23(1):bbab354, 2022. [14] A. Botchkarev. Performance metrics (error measures) in machine learning regression, forecasting and prognostics: Properties and typology. arXiv preprint arXiv:1809.03006 , 2018. [15] M. W. Browne. Cross-validation methods. Journal of mathematical psychology , 44(1):108–132, 2000. [16] J. G. Carbonell, R. S. Michalski, and T. M. Mitchell. An overview of machine learning. Machine Learning. Symbolic Computation. Springer, Berlin, Heidelberg , 1983. [17] M. E. Celebi and K. Aydin. Unsupervised learning algorithms , volume 9. Springer, 2016. [18] G. Chen and J. Chen. A novel wrapper method for feature selection and its applications. Neurocomputing , 159:219–226, 2015. [19] R.-C. Chen, C. Dewi, S.-W. Huang, and R. E. Caraka. Selecting critical features for data classification based on machine learning methods. Journal of Big Data , 7(1):52, 2020. [20] D. Choi, C. J. Shallue, Z. Nado, J. Lee, C. J. Maddison, and G. E. Dahl. On empirical comparisons of optimizers for deep learning. arXiv preprint arXiv:1910.05446 , 2019. [21] G. Cucurull, P. Taslakian, and D. Vazquez. Context-aware visual compatibility prediction, 2019. [22] P. Cunningham, M. Cord, and S. J. Delany. Supervised learning. In Machine learning techniques for multimedia: case studies on organization and retrieval , pages 21–49. Springer, 2008. [23] P. Dileep, D. Das, and P. K. Bora. Dense layer dropout based cnn architecture for automatic modulation classification. In 2020 national conference on communications (NCC) , pages 1–5. IEEE, 2020. 68 [24] Y. Ding, P. Mok, Y. Ma, and Y. Bin. Personalized fashion outfit generation with user coordination preference learning. Information Processing & Management , 60(5):103434, 2023. [25] L. Fahrmeir, T. Kneib, S. Lang, B. Marx, L. Fahrmeir, T. Kneib, S. Lang, and B. Marx. Regression models . Springer, 2013. [26] C. Ferri, J. Hernández-Orallo, and R. Modroiu. An experimental comparison of performance measures for classification. Pattern recognition letters , 30(1):27–38, 2009. [27] P. Flach. Machine learning: the art and science of algorithms that make sense of data . Cambridge University Press, 2012. [28] A. A. Freitas. Comprehensible classification models: a position paper. ACM SIGKDD explorations newsletter , 15(1):1–10, 2014. [29] Z. Ghahramani. Unsupervised learning. In Summer school on machine learning , pages 72–112. Springer, 2003. [30] I. Goodfellow, Y. Bengio, and A. Courville. Deep learning . MIT press, 2016. [31] A. Grigorev. Clothing dataset: 5,000+ images of clothes in public domain, October 2020. [32] S. Grossberg. Recurrent neural networks. Scholarpedia , 8(2):1888, 2013. [33] J. Gu, Z. Wang, J. Kuen, L. Ma, A. Shahroudy, B. Shuai, T. Liu, X. Wang, G. Wang, J. Cai, et al. Recent advances in convolutional neural networks. Pattern recognition , 77:354–377, 2018. [34] Q. Guo, Z. Yu, Y. Wu, D. Liang, H. Qin, and J. Yan. Dynamic recursive neural network. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition , pages 5147–5156, 2019. [35] X. Han, Z. Wu, Y.-G. Jiang, and L. S. Davis. Learning fashion compatibility with bidirectional lstms. In Proceedings of the 25th ACM international conference on Multimedia , pages 1078–1086, 2017. [36] T. Hastie, R. Tibshirani, J. Friedman, T. Hastie, R. Tibshirani, and J. Friedman. Unsupervised learning. The elements of statistical learning: Data mining, inference, and prediction , pages 485–585, 2009. [37] T. He and Y. Hu. Fashionnet: Personalized outfit recommendation with deep neural network. arXiv preprint arXiv:1810.02443 , 2018. [38] O. Irsoy and C. Cardie. Deep recursive neural networks for compositionality in language. Advances in neural information processing systems , 27, 2014. 69 [39] M. M. Islam, P. Perry, and S. Gill. Mapping environmentally sustainable practices in textiles, apparel and fashion industries: a systematic literature review. Journal of Fashion Marketing and Management , 25(2):331–353, 2021. [40] B. Jähne and H. Haußecker. Computer vision and applications . 2000. [41] A. M. Javid, S. Das, M. Skoglund, and S. Chatterjee. A relu dense layer to improve the performance of neural networks. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) , pages 2810–2814. IEEE, 2021. [42] Y. Jiang, X. Qianqian, and X. Cao. Outfit recommendation with deep sequence learning. In 2018 IEEE Fourth International Conference on Multimedia Big Data (BigMM) , pages 1–5. IEEE, 2018. [43] J. Jin, A. Dundar, and E. Culurciello. Flattened convolutional neural networks for feedforward acceleration. arXiv preprint arXiv:1412.5474 , 2014. [44] A. Jović, K. Brkić, and N. Bogunović. A review of feature selection methods with applications. In 2015 38th international convention on information and communication technology, electronics and microelectronics (MIPRO) , pages 1200–1205. IEEE, 2015. [45] B. Koonce and B. Koonce. Resnet 50. Convolutional neural networks with swift for tensorflow: image recognition and dataset categorization , pages 63–72, 2021. [46] T. Kumar, A. Mileo, R. Brennan, and M. Bendechache. Image data augmentation approaches: A comprehensive survey and future directions. arXiv preprint arXiv:2301.02830 , 2023. [47] T. Kurita. Principal component analysis (pca). Computer Vision: A Reference Guide , pages 1–4, 2019. [48] T. N. Lal, O. Chapelle, J. Weston, and A. Elisseeff. Embedded methods. In Feature extraction: foundations and applications , pages 137–165. Springer, 2006. [49] Q. V. Le et al. A tutorial on deep learning part 1: Nonlinear classifiers and the backpropagation algorithm. Mountain View, CA , 2015. [50] C.-Y. Lee, J.-Y. Lin, and R.-I. Chang. Improve quality and efficiency of textile process using datadriven machine learning in industry 4.0. International Journal of Technology and Engineering Studies , 4(2):4–10004, 2018. 70 [51] Z. Li, F. Liu, W. Yang, S. Peng, and J. Zhou. A survey of convolutional neural networks: analysis, applications, and prospects. IEEE transactions on neural networks and learning systems , 33(12):6999– 7019, 2021. [52] G. Loterman, I. Brown, D. Martens, C. Mues, and B. Baesens. Benchmarking regression algorithms for loss given default modeling. International Journal of Forecasting , 28(1):161–170, 2012. [53] X. Ma, H. Huang, Y. Wang, S. Romano, S. Erfani, and J. Bailey. Normalized loss functions for deep learning with noisy labels. In International conference on machine learning , pages 6543–6553. PMLR, 2020. [54] S. Mishra, Z. Zhang, Y. Shen, R. Kumar, V. Saligrama, and B. A. Plummer. Effectively leveraging attributes for visual similarity supplementary. [55] M. Moosaei, Y. Lin, A. Akhazhanov, H. Chen, F. Wang, and H. Yang. Outfitgan: Learning compatible items for generative fashion outfits. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition , pages 2273–2277, 2022. [56] A. Mustaqeem, S. M. Anwar, M. Majid, and A. R. Khan. Wrapper method for feature selection to classify cardiac arrhythmia. In 2017 39th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC) , pages 3656–3659. IEEE, 2017. [57] M. Naser and A. H. Alavi. Error metrics and performance fitness indicators for artificial intelligence and machine learning in engineering and sciences. Architecture, Structures and Construction , 3(4):499–517, 2023. [58] V. Nasteski. An overview of the supervised machine learning methods. Horizons. b , 4(51-62):56, 2017. [59] A. Niculescu-Mizil and R. Caruana. Predicting good probabilities with supervised learning. In Proceedings of the 22nd international conference on Machine learning , pages 625–632, 2005. [60] F. Nielsen and F. Nielsen. Hierarchical clustering. Introduction to HPC with MPI for Data Science , pages 195–211, 2016. [61] A. Paleyes, R.-G. Urma, and N. D. Lawrence. Challenges in deploying machine learning: a survey of case studies. ACM computing surveys , 55(6):1–29, 2022. 71 [62] S. Park and N. Kwak. Analysis on the dropout effect in convolutional neural networks. In Computer Vision–ACCV 2016: 13th Asian Conference on Computer Vision, Taipei, Taiwan, November 20-24, 2016, Revised Selected Papers, Part II 13 , pages 189–204. Springer, 2017. [63] M.-C. Popescu, V. E. Balas, L. Perescu-Popescu, and N. Mastorakis. Multilayer perceptron and neural networks. WSEAS Transactions on Circuits and Systems , 8(7):579–588, 2009. [64] J. A. Pruneski, R. J. Williams III, B. U. Nwachukwu, P. N. Ramkumar, A. M. Kiapour, R. K. Martin, J. Karlsson, and A. Pareek. The development and deployment of machine learning models. Knee Surgery, Sports Traumatology, Arthroscopy , 30(12):3917–3923, 2022. [65] G. Ranathunga. A qualitative approach to analyse the concept of ‘haute couture’fashion of elite male of the kandyan era of sri lanka. International Journal of Humanities and Social Sciences (IJHSS), 5 (5), 141 , 146, 2016. [66] A. D. Rasamoelina, F. Adjailia, and P. Sinčák. A review of activation function for artificial neural network. In 2020 IEEE 18th World Symposium on Applied Machine Intelligence and Informatics (SAMI) , pages 281–286. IEEE, 2020. [67] N. Rusk. Deep learning. Nature Methods , 13(1):35–35, 2016. [68] S. Sadikhbeyova and V. Abdullayev. 20th century french fashion design. Journal of Pharmaceutical Negative Results , pages 1149–1154, 2023. [69] N. Sánchez-Maroño, A. Alonso-Betanzos, and M. Tombilla-Sanromán. Filter methods for feature selection–a comparative study. In International Conference on Intelligent Data Engineering and Automated Learning , pages 178–187. Springer, 2007. [70] M. Schuster and K. K. Paliwal. Bidirectional recurrent neural networks. IEEE transactions on Signal Processing , 45(11):2673–2681, 1997. [71] M. Sewak, S. K. Sahay, and H. Rathore. An overview of deep learning architecture of deep neural networks and autoencoders. Journal of Computational and Theoretical Nanoscience , 17(1):182–188, 2020. [72] S. Sharma, S. Sharma, and A. Athaiya. Activation functions in neural networks. Towards Data Sci , 6(12):310–316, 2017. 72 [73] R. Shimizu, Y. Saito, M. Matsutani, and M. Goto. Fashion intelligence system: An outfit interpretation utilizing images and rich abstract tags. Expert Systems with Applications , 213:119167, 2023. [74] P. P. Shinde and S. Shah. A review of machine learning and deep learning applications. In 2018 Fourth international conference on computing communication control and automation (ICCUBEA) , pages 1–6. IEEE, 2018. [75] A. Shrestha and A. Mahmood. Review of deep learning algorithms and architectures. IEEE access , 7:53040–53065, 2019. [76] L. Silva, I. Gomes, C. Araújo, T. Cepeda, F. Oliveira, and J. Oliveira. A regression deep learning approach for fashion compatibility. In Proceedings of the 26th International Conference on Enterprise Information Systems , pages 141–148. INSTICC, SciTePress, 2024. [77] A. Singh, N. Thakur, and A. Sharma. A review of supervised machine learning algorithms. In 2016 3rd international conference on computing for sustainable global development (INDIACom) , pages 1310–1315. Ieee, 2016. [78] S. Spoljaric. The emergence of the fashion industry and the development of the consumer market in england during the mid eighteenth and early nineteenth centuries. The Undergraduate Historical Journal at UC Merced , 3(2), 2017. [79] G. Stockman and L. G. Shapiro. Computer vision . Prentice Hall PTR, 2001. [80] F.-R. Stöter, S. Chakrabarty, B. Edler, and E. A. Habets. Classification vs. regression in supervised learning for single channel speaker count estimation. In 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) , pages 436–440. IEEE, 2018. [81] X. Su, X. Yan, and C.-L. Tsai. Linear regression. Wiley Interdisciplinary Reviews: Computational Statistics , 4(3):275–294, 2012. [82] S. Tammina. Transfer learning using vgg-16 with deep convolutional neural network for classifying images. International Journal of Scientific and Research Publications (IJSRP) , 9(10):143–150, 2019. [83] C. Tantithamthavorn, A. E. Hassan, and K. Matsumoto. The impact of class rebalancing techniques on the performance and interpretation of defect prediction models. IEEE Transactions on Software Engineering , 46(11):1200–1219, 2018. 73 [84] G. L. Tietjen and G. L. Tietjen. Categorical data. A Topical Dictionary of Statistics , pages 113–118, 1986. [85] E. Tomovska. The role of instagram influencers as a source of fashion information. Tekstilna industrija , 68(4):58–64, 2020. [86] Ü. Turkut, A. Tuncer, H. Savran, and S. Yılmaz. An online recommendation system using deep learning for textile products. In 2020 international congress on human-computer interaction, optimization and robotic applications (HORA) , pages 1–4. IEEE, 2020. [87] I. Valera and Z. Ghahramani. Automatic discovery of the statistical types of variables in a dataset. In International Conference on Machine Learning , pages 3521–3529. PMLR, 2017. [88] R. Wang, J. Wang, and Z. Su. Learning compatibility knowledge for outfit recommendation with complementary clothing matching. Computer Communications , 181:320–328, 2022. [89] S. Wang, J. Tang, and H. Liu. Embedded unsupervised feature selection. In Proceedings of the AAAI conference on artificial intelligence , volume 29, 2015. [90] Z. Wang and A. C. Bovik. A universal image quality index. IEEE signal processing letters , 9(3):81–84, 2002. [91] R. Warasthe, F. Schulz, R. Enneking, and M. Brandenburg. Sustainability prerequisites and practices in textile and apparel supply chains. Sustainability , 12(23):9960, 2020. [92] S. J. Warnett and U. Zdun. Architectural design decisions for machine learning deployment. In 2022 IEEE 19th International Conference on Software Architecture (ICSA) , pages 90–100. IEEE, 2022. [93] L. Yang and A. Shami. On hyperparameter optimization of machine learning algorithms: Theory and practice. Neurocomputing , 415:295–316, 2020. [94] Y. Yu, X. Si, C. Hu, and J. Zhang. A review of recurrent neural networks: Lstm cells and network architectures. Neural computation , 31(7):1235–1270, 2019. [95] M. Zhao, Y. Liu, X. Li, Z. Zhang, and Y. Zhang. An end-to-end framework for clothing collocation based on semantic feature fusion. IEEE MultiMedia , 27(4):122–132, 2020. [96] D. Zhou, H. Zhang, K. Yang, L. Liu, H. Yan, X. Xu, Z. Zhang, and S. Yan. Learning to synthesize compatible fashion items using semantic alignment and collocation classification: An outfit generation framework. IEEE Transactions on Neural Networks and Learning Systems , 2022. 74