<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Raghava Urs on Medium]]></title>
        <description><![CDATA[Stories by Raghava Urs on Medium]]></description>
        <link>https://medium.com/@raghavadurs?source=rss-b423227a222f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fXH5ZPK4vemtDSjD_-sVng.jpeg</url>
            <title>Stories by Raghava Urs on Medium</title>
            <link>https://medium.com/@raghavadurs?source=rss-b423227a222f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:55:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@raghavadurs/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Video-Language Pre-training based on Transformer Models]]></title>
            <link>https://raghavadurs.medium.com/video-language-pre-training-based-on-transformer-models-4490316a1d80?source=rss-b423227a222f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4490316a1d80</guid>
            <category><![CDATA[attention-model]]></category>
            <category><![CDATA[video-transformers]]></category>
            <category><![CDATA[video-pretraining]]></category>
            <category><![CDATA[transformers]]></category>
            <dc:creator><![CDATA[Raghava Urs]]></dc:creator>
            <pubDate>Tue, 16 Nov 2021 00:37:48 GMT</pubDate>
            <atom:updated>2021-11-22T20:06:06.351Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*IMNqNr6N2Bs6gqSJRejj0A.jpeg" /></figure><p>In the recent past, transfer-based training has gained widespread in the field of natural language processing and computer vision. The next logical step would be to see how transformers can be useful for pretraining videos. This article provides a summary of various transformer-based training methods available for video-language pre-training. Typically, in the pre-training step of machine learning, the model is trained using a large amount of data referred to as training data. Once this is complete, it is fine-tuned on a smaller dataset. This step eventually helps in the betterment of the downstream tasks. Transformer networks have become popular in the field of Deep Learning by providing precedence in performance. Having a smaller model bias and network structure easy to deepen makes the transformer ideal for training and finetuning. Thus, making transformers superior compared to Multi-Layer Perceptrons (MLP), Convolutional Neural Networks (CNNs), and Recurrent Neural Networks (RNNs). The transformer was applied in the field of Neural language Processing in 2017 and it performed exceptionally. Ever since it has been applied to various fields.</p><p>In this article, we begin with understanding the basic transformer architecture. Then continue to learn about various approaches for pre-training and fine-tuning methods used by transformer-based models for video training. We will also see various datasets available for video training. Then we have an overview of all the notable transformer models used for video training. The article concludes by providing a summary comparison and summary of the discussed models and proxy tasks.</p><h3><strong>Transformer architecture</strong></h3><p>A standard transformer is made up of several blocks of encoder and decoder. Each block contains several encoders and decoders stacked. The encoder layer is consisting of a self-attention or multi-head attention layer and a feed-forward layer. The decoder layer consists of an additional encoder-decoder attention layer with the self-attention and feed-forward layers. The following figure depicts the basic transformer architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uSxZ1eFXB_0U0DQsRrGUsQ.png" /><figcaption>Standard transformer architecture</figcaption></figure><h4><em>Self-Attention</em></h4><p>This is one of the core mechanisms in a transformer that is present in both encoder and decoder blocks. This layer linearly transforms the sequence of entity tokens into three different vectors. The entity tokens can be word sequence in the case of NLP and video clips in the case of the vision domain. The vectors are; Key vector, Query vector, Value vector</p><p>The output is obtained by the following,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qnkEGd-qnu8ywbJrNj3ZmA.png" /></figure><p>The relevance score between the entities is captured by Q.K^T ,</p><p>Reduces the score for gradient stability,</p><p>Softmax normalizes the result for the probability distribution, and multiplying the entire thing with V gives the weighted value matrix.</p><h4>Multi-Head Attention</h4><p>The complex relationships between the token entities can be modeled using multi-head attention. The input sequence X is linearly transformed into h groups. Each group repeats the self-attention process. Projecting the concatenation of the output from h groups with weight matrix produces the final output. The process can be represented as the following,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tzaufu6TSJZ1pVOEnNnC0g.png" /></figure><h4>Position Encoding</h4><p>Unlike CNNs or RNNs, Self-attention does not have the ability to capture order information of the sequence. This problem is solved by position encoding which is added to the input encoding of both encoder and decoder block. Position encoding of tokens can be constructed as follows,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*PtmZP-JyHlmL8haH823Kzw.png" /></figure><p>pos is the token’s position, and i represents the dimension.</p><h3><strong>Pre-training and fine-tuning</strong></h3><p>In transformer-based models, the model is first pre-trained on a large dataset using supervised or unsupervised way. Then the pre-trained model is adapted on a smaller dataset using fine-tuning. This approach helps in avoiding training new models for different tasks. Research shows that training using a large dataset aid in representation at large which in turn provides great performance for downstream tasks. Following are available methods for Pre-training and fine-tuning in the field of Video-Language processing.</p><h4><em>Proxy Tasks</em></h4><p>The proxy tasks determine the models’ learning objectives and hence play an important role in deciding the models’ performance. Proxy tasks can be classified into,</p><ol><li>Completion tasks: These tasks reconstruct masked tokens which provide the ability to build the intra-modal and inter-modal relationship.</li></ol><ul><li><em>Masked Language Modelling (MLM):</em> MLM was first adapted as a proxy for pre-training of BERT. Common MLM randomly masks the fixed percentage of words in the input sequence and then helps in predicting masked words based on other words. In video pre-training, MLM combines the visual information with the generic word occurrence relationship in a sentence.</li><li><em>Masked Frame Modelling:</em> Like MLM, MFM converts sentences into a video sequence. Video is a continuous entity and has no fixed vocabulary hence in the case of MFM, adjustments have been made to the input. MFM can be subdivided into MFMR — MFM with Regression, MFMCE — MFM with Cross-Entropy, MFMCL — MFM with Contrastive Learning. We will see where these MFM tasks are used in various transformer models in future sections.</li><li><em>Masked Token Modeling: </em>MTM combines MLM and MFM with no loss function. This method learns about token embedding for both video and text tokens together.</li><li><em>Masked Modal Modeling: </em>MMM masks the video tokens as a whole or the text tokens as a whole. This helps the model learn based on tokens from a single modality at the same time recover tokens from another modality.</li><li><em>Language Reconstruction: </em>This is a generative task, which helps the pre-trained model to generate video captions. LR generates the sentence from left to right, which is the opposite of what MLM and MMM perform. This means that LR considers previous text and video tokens to predict the next text and video tokens.</li><li><em>Video Language Matching: </em>VLM helps the model to learn by understanding the connection between the video and the language. VLM can be subdivided into LVLM — Local Video Language Matching and GVLM — Global Video Language Matching</li><li><em>Sentence Ordering Modeling: </em>SOC uses the sequential approach to learn the relationship between the text tokens. In this model, 15% of the sentences are selected then split into 3 segments and shuffled randomly in a permuted order. Hence it is referred to as 3! Classification problem.</li><li><em>Frame Ordering Modeling: </em>FOM shuffles the frames randomly and tries to predict their original order.</li></ul><p>2. Matching tasks: These tasks help to learn about the alignments between various modalities originating from Next Sequence Prediction (NSP) of BERT</p><p>3. Ordering tasks: In this step, the input sequence is shuffled which in turn forces the model to recognize the original sequence.</p><h4><em>Video-Language Downstream Tasks</em></h4><p>Downstream tasks play a vital role in evaluating pre-trained models. Commonly used downstream tasks are,</p><p>1. <em>Text-based Video Retrieval</em>: Given an input query, this method retrieves relevant video or video segments. This approach requires a model to map video to text.</p><p>2. <em>Action Recognition</em>: This method classifies the action category of the given video or video segment.</p><p>3. <em>Action Segmentation</em>: For a given video or video segment, this method predicts the action label. Also, this takes in the video only as the input.</p><p>4. Action Step Localization: This method focuses on recognizing the action steps in given instructional videos.</p><p>5. <em>Video Question Answering</em>: Here, given a video, this method tried to automatically answer natural language questions.</p><p>6. <em>Video Captioning</em>: For a given video, this method generates natural language utterances. For a multi-modal, this is one of the typical tasks and also video language pre-training is evaluated using this method.</p><h3><strong>Video-Language Datasets</strong></h3><p>Contrary to the CNNs, frameworks based on transformers depend heavily on huge datasets for pre-training. The quality and quantity of the dataset ultimately decide the performance of the model. Commonly used type of datasets is,</p><ol><li><em>Label Based</em>: These datasets are the datasets that have labels at the video level. They are mostly used for classification problems like action recognition in a video.</li><li><em>Caption Based</em>: For each video, these datasets have descriptions. The captions in the dataset provide enough information about the corresponding video.</li></ol><p>The following table gives a summary of various datasets used for video language pre-training and fine-tuning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fJ_iDImJp6YNsPDiQEAhfw.png" /><figcaption>Various datasets were used for video language pre-training and fine-tuning.</figcaption></figure><h3><strong>Video-language Transformer Models</strong></h3><p>Transformer based models for Video Language pre-training can be divided into two categories,</p><h4><em>Single-Stream Transformers</em></h4><p>These transformers have the different modalities’ features as input to a single transformer. Then the inter and intra modality information is captured.</p><p>1. <em>VideoBERT</em>: This is the first to explore Video-Language representation with a pre-training method based on the transformer. A combination of linguistic sentence and video tokens is the input for training the model which is used to learn a combination between video and text. The correlation is got by predicting tokens that are masked. VideoBERT can learn high-level video representations which capture long-range temporal dependencies and semantic meaning. It uses MLM, MFM, and VLM in the pre-training phase.</p><p>2. <em>HERO</em>: HERO stands for Hierarchical Encoder for Omni representation. This is made of a cross-modal transformer and a temporal transformer. A cross-modal transformer that combines the video frame sequence. The temporal transformer helps to learn contextualized video from a global context video. HERO uses LVLM and FOM proxy tasks for the sequential nature of the videos.</p><p>3. <em>ClipBERT</em>: For video-text representation learning, ClipBERT is a generic framework that could be used to train the model end to end. ClipBERT uses2D CNN to sample a few frames from every video clip. This helps in requiring lower memory while giving a better performance. ClipBERT uses MLM and VLM in the pre-training phase.</p><p>4. <em>DeCEMBERT</em>: It stands for Dense Captions and Entropy Minimization. The captions generated automatically during the pre-training phase have a lot of noise and may not coincide with the content of the video. DeCEMBERT was proposed of overcoming the above problem by using dense captions as an additional input while the model learns. The proposed solution by DeCEMBERT tries to better match the captions with the video by using constrained attention loss which in turn helps the model to select the best-matched caption from a pool of caption candidates. It uses MLM, and VLM to pre-train the model.</p><p>5. <em>VLM</em>: The Video Language Model has BERT-like cross-model transformer and accepts video, text, or video and text as input. VLM makes use of Masked Modality Modeling (MMM) and Masked Token Modeling (MTM). MMM randomly masks the whole modality for a portion of training data. Then masked modality is reconstructed by the encoder based on the masked modality. On the other hand, MTM randomly masks fixed tokens and unifies the losses from MLM and MVM.</p><p>6. <em>VATT</em>: Video Audi Text Transformer helps in learning from raw video, audio, and text. This method partitions the input video into a patch sequence, the input audio waveform is then segmented, and the one-hot vector represents the word token. Next, all these modalities are then transformed using linear projection. This approach is best for large-scale self-supervised modal with pure attention modal and end-to-end training.</p><p>7. <em>VICTOR</em>: Video language understanding via Contrastive multi–Modal Pre-training is trained on the Chinese Video language dataset. It follows the encoder transformer approach to get the cross-modal relationship and a decoder transformer for generative tasks. Also, it has memory queues that save the negative samples which will be used for calculating the contrastive losses. At the same time, it uses a different network symmetry called the Key network which is used to embed negative samples.</p><p>The following figure summarizes various types of Single-Stream Transformers,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mSTsOSY_eeuescMBFggFMg.png" /><figcaption>Single-Stream Transformers</figcaption></figure><h4><em>Multi-stream Transformers</em></h4><p>These transformers have individual modalities as inputs to independent transformers. Then it captures information within the modality and builds a cross-modal relationship using the captured information.</p><ol><li>CBT: It is based on the BERT structure which has a multi-stream structure and verifies the loss effectiveness for cross-modal features. Using contrastive learning, text transformer and visual transformer learn the text and video features respectively. While the third cross-modal transformer combines the modal sequence and computes the similarity score which helps in learning the relationship between the video and the text.</li></ol><p>This model is made of 3 components namely,</p><p><em>Text transformer - </em>This embeds the discrete text features.</p><p><em>Visual transformer -</em> This inputs the continuous video features.</p><p><em>Cross-modal transformer - </em>This forms a connection between the text and the visual transformer.</p><p>2. ActBERT: It is a multi-stream model which has a Tangles Transformer block used to enhance the communication between the sources. ActBERT used a co-attention transformer layer where key-value pairs are passed between modalities. For the pre-training, it uses MLM, MAM, MOM, and VLM.</p><p>3. Univl: This is a one-of-a-kind model which pre-trains the model on understanding and generative proxy tasks. It is made up of two single transformer encoders which embed text and video, one cross-modal transformer which interacts with text and video embeddings, and one decoder for generation tasks. For pre-training, Univl uses VLM, MFM, MLM, and LR. The downstream tasks include text-based video retrieval, multi-modal video captioning, action segmentation, action step localization, and multi-modal sentiment analysis.</p><p>The following figure summarizes various types of Multi-stream Transformers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vgIXVmkEcjydgqDxTTcTFg.png" /><figcaption>Multi-Stream Transformers</figcaption></figure><h3><strong>Summary and Conclusion</strong></h3><p>Considering MSR-VTT and YouCookII as the benchmark, in this section we compare and summarize the discussed models and proxy tasks.</p><p>From a transformer block perspective, in the case of VATT, the sell attention layer eights are distributed across modalities while keeping the tokenization and linear projection independent. While VLM has different attention masks which help with downstream tasks with different modalities. ActBERT builds relationships between various modalities across independent transformer blocks using the Tangles Transformer block. All the other models discussed in this article use the original transformer structure while VATT, VLM, and ActBERT have made some adjustments to the original structure.</p><p>Coming to word and video embedding, VICTOR uses the 2D backbone of Inception-V4 which extracts visual features using ImageNet. While HERO combines 2D features and 3D features. On the other hand, VATT and ClipBERT have end-to-end frameworks without any fixed visual backbone.</p><p>The model training objectives are decided by the way the proxy tasks are designed. Proxy tasks also decide the performance of the downstream tasks. Most of the pre-training tasks derive the masking and matching tasks from BERT. VICTOR and HERO dwell into the sequential structure of videos using the ordering tasks. These ordering tasks are good for tasks that depend on temporal reasoning. VLM and Univl show that rebuilding the modalities helps in retrieval tasks.</p><p>Finally, the standard approach to evaluate pre-trained models is by transferring the pre-trained weight to the downstream task. For retrieval and captioning tasks, VLM has the best performance for Single-Stream models. Univl performs best among the Multi-Stream models.</p><h3>References</h3><p>[1]Ruan, Ludan and Qin Jin. “Survey: Transformer based Video-Language Pre-training.” <em>ArXiv</em> abs/2109.09920 (2021): n. pag.</p><p>[2]Li, Linjie, et al. “Hero: Hierarchical Encoder for Video+Language Omni-Representation Pre-Training.” <em>Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)</em>, 2020, <a href="https://doi.org/10.18653/v1/2020.emnlp-main.161.">https://doi.org/10.18653/v1/2020.emnlp-main.161.</a></p><p>[3]Tang, Yansong &amp; Ding, Dajun &amp; Rao, Yongming &amp; Zheng, Yu &amp; Zhang, Danyang &amp; Zhao, Lili &amp; Lu, Jiwen &amp; Zhou, Jie. (2019). COIN: A Large-Scale Dataset for Comprehensive Instructional Video Analysis. 1207–1216. 10.1109/CVPR.2019.00130.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4490316a1d80" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Learning in Fashion Industry]]></title>
            <link>https://medium.com/analytics-vidhya/deep-learning-in-fashion-industry-dcb897ac3c33?source=rss-b423227a222f------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcb897ac3c33</guid>
            <category><![CDATA[ml-in-fashion]]></category>
            <category><![CDATA[deep-learning-in-fashion]]></category>
            <category><![CDATA[ai-in-fashion]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[fashion-industry]]></category>
            <dc:creator><![CDATA[Raghava Urs]]></dc:creator>
            <pubDate>Wed, 21 Apr 2021 06:20:48 GMT</pubDate>
            <atom:updated>2021-04-28T17:19:47.392Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*QbLcv3D3qg5YUV5uAtbgtg.jpeg" /></figure><p>In the recent past, the fashion industry has emerged as one of the crucial industries for the global economy. The trends change every second and the clothing industry has proved itself to be one the most creative realms. People around the world, irrespective of their financial statuses are willing to spend money to stay in trend. With the advent of the internet and handheld devices, customers can easily shop on the go. While people keep up with fashion trends, machine learning is changing the trends in the fashion industry. Every brand, however big or small utilize machine learning methodologies to increase their growth by luring in customers and always staying ahead of the trend. Daily there are systems keeping track of every sale and the upcoming trends and this gives the companies a vast amount of knowledge as to what a user is interested in. At the same time, there is a lot of cross-platform fashion data accumulated by data shared by influencers on social media, fashion data shared by brands, and much more. People are very concerned about what style is in trend, how they look in new trends, and how they can elevate their confidence and personality; it makes more sense for the brands to utilize the accumulated data and provide apt recommendations to the users. One of the major driving forces for the fashion industry to use machine learning is that customers like personalization.</p><p>In this article, we will look at the available approaches in Deep learning and Computer vision techniques that help brands to stay on top. Also, we will see how aesthetics helps in gaining customer attention. AI-inspired deep learning models can exactly tell which style fits better to a particular customer and also predict how well a new design will be accepted by the consumers.</p><p>The fashion research can be classified into Low-level fashion, Middle-level fashion, and High-level fashion. The following table depicts the classification,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7dK853IlsC8Z3VSa2Si9KA.png" /><figcaption>Taxonomy of Fashion research field</figcaption></figure><p>Now, we shall look in-depth about various classification of fashion research,</p><p><strong>Low-level fashion recognition</strong>: Fashion recognition is nothing but computing and processing fashion images at pixel level. It can be further divided into,</p><ol><li>Clothing/Human parsing</li></ol><ul><li><em>Graphical models: </em>Focuses on constrained parsing problems and handles low-level inconsistencies with a small scope. This method includes models like <strong>Superpixel labeling</strong>, <strong>integrated system of clothing co-parsing</strong>, <strong>weakly supervised fashion parsing,</strong> and <strong>MRF-based color and category inference module</strong>.</li><li><em>Non-parametric models: </em>This does not require a lot of preconceived knowledge but relies on segmentation and pose estimation. It includes models like <strong>Nearest neighbor style retrieval</strong>, <strong>Deep quasi-parametric human parsing framework</strong>, and <strong>Semi-supervised learning</strong>.</li><li><em>Parselets representation: P</em>arselets are used as basic building blocks to overcome the inconsistencies between pose estimates and clothing. This uses <strong>Deformable Mixture Parsing Model</strong> and <strong>Simultaneous human parsing pose estimation</strong>.</li><li><em>CNN models: </em>Convolution neural network works great for clothing/human parsing, but it does ignore micro context pixels and macro context between semantic parts. This method uses <strong>Contextualized CNN architecture</strong>, <strong>Active Template Regression,</strong> and <strong>Self-supervised structure-sensitive learning</strong>.</li><li><em>Adversarial models: </em>This model reduces semantic inconsistency and local inconsistency in results by using adversarial networks. It uses <strong>Macro-Micro Adversarial Network (MMAN)</strong> for human parsing.</li></ul><p><em>2. </em>Landmark detection<em>: </em>Initially, this method used a regression model but then it was found later that the regression model is very non-linear and not easily optimized. So, a knowledge-guided fashion network that was extended over the neural network and global-local embedding module was used for accurate landmark prediction. The models used here are, <strong>three-step deep fashion alignment framework, Deep landmark Network, Knowledge guided fashion network, and Global-local embedding module.</strong></p><p><strong>Middle-level fashion understanding: </strong>Clothing attributes are a compact representation of information representing people. Clothing attributes are way more than basic color and pattern. These attributes include a collar, material, length, and many more. These attributes can be used for recommendation and analysis. But apart from the attributes, fashion styles come from how individuals assemble each outfit. This represents the individual character and aesthetic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*kEBCkic5XwpOD_36IQADBw.jpeg" /><figcaption>Example for clothing attributes</figcaption></figure><ol><li>Clothing attribute prediction</li></ol><ul><li><em>Single task learning: </em>This method focuses on a particular domain in fashion while learning about the attributes. It uses <strong>CRF based approach</strong>, <strong>Random forest approach</strong>, and <strong>Augmented deep CNN</strong>.</li><li><em>Multi-task learning: </em>This method performs multiple tasks like learning clothing attributes and landmark detection simultaneously<em>. </em>Few models used here are <strong>Special-aware concept representations</strong> and <strong>end-to-end deep CNN.</strong></li><li><em>Transfer learning: </em>This method bridges the gap between images from various domains while learning clothing attributes. It uses <strong>Transfer learning model</strong>, and <strong>deep model built on Faster R-CNN model</strong>.</li></ul><p>2. Fashion style prediction</p><ul><li><em>Supervised learning: </em>Fashion style can be predicted using <strong>SVM</strong> using a set of handcrafted features, using discriminative style features by training deep feature extraction network, and lastly by constructing a classification network built on semantic space for clothing styles.</li><li><em>Unsupervised learnin</em>g: By training polylingual topic models on outfit data, the model learns the similarities between various elements and styles in fashion.</li></ul><p><strong>High-level fashion applications:<em> </em></strong>These applications are built with the help of low-level fashion recognition and middle-level fashion understanding. It is used for fashion recommendations, fashion retrieval, fashion image synthesis, fashion compatibility, and fashion data mining.</p><ol><li>Fashion retrieval</li></ol><ul><li><em>Cross-scenario retrieval model: </em>One of the methods here is to use deep learning techniques like <strong>WTBI</strong> and match an online shop item with a real-world item and vice versa, which means it can be unidirectional or bidirectional. Also, a <strong>dual attribute-aware ranking network(DARN)</strong> and <strong>Deep bi-directional</strong> cross triplet embedding algorithm are used for cross scenario retrieval.</li><li><em>Interactive retrieval model: </em>In this method, users can give an image as input for the search to get back several products from all over the world which is similar to the input image.</li></ul><p>2. Fashion recommendation</p><ul><li><em>Complementary recommendation model: </em>Given a piece of clothing, this method recommends the right piece of complimentary clothing to go with it.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*xs6UHRfiOid8zXO7KSnoMw.jpeg" /><figcaption>An example that depicts complimentary cloth matching for given bottom</figcaption></figure><ul><li><em>Personalized recommendation model: </em>Here, a user receives a personalized recommendation based on the items interacted, users’ opinions, feedbacks, and evolving trends. Few of the models used are <strong>Tensor decomposition</strong> and <strong>Tensor factorization</strong>.</li><li><em>Scenario-oriented recommendation model: </em>In this method users are recommended clothes purely based on the occasion presented.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*n1ANyAhBogAQF4FQcyjjRw.jpeg" /><figcaption>An example on how scenario-based recommendation works</figcaption></figure><ul><li><em>Generative model: </em>Here, the users are not only recommended existing items but also generate new fashion clothing which is an improvement over the existing piece of clothing, based on users’ preferences. A few of the models used here are the <strong>Neural co-supervision learning framework</strong> and <strong>Deep image generation neural network</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*YG6P00EnLVgClpwcmhbbLw.jpeg" /><figcaption>An example for outfit recommendation with improvement</figcaption></figure><p>3. Fashion compatibility</p><ul><li><em>Pairwise compatibility learning: </em>This learning category takes in one of the fashion items as input and searches for all other compatible items from different categories.</li><li><em>Outfit compatibility modeling: </em>This learning category searches through all categories and finds best-suited items to form a compatible outfit i.e., this model tries to measure the compatibility of the whole outfit.</li></ul><p>4. Fashion image synthesis</p><ul><li><em>Pose guided generative model: </em>New fashion outfits are generated by keeping the clothing the same as the input with an arbitrary pose. Few of the recent methods proposed are novel architectures or losses to improve the results.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*-V0PKYGUZhww8uWCSr1lFw.jpeg" /><figcaption>Pose guided fashion image generation</figcaption></figure><ul><li><em>Text guided generative model: </em>Outfit images are generated based on textual narrative on how an outfit looks like. This uses <strong>feature-wise linear modulation</strong> to translate visual features with natural language processing.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*62nsy25g5TsJjfJt5_dmpw.jpeg" /><figcaption>Example for text guided fashion outfit generation</figcaption></figure><ul><li><em>Virtual try-on model: </em>As the name suggests, this method transfers a clothing item in an image on the image of a person to virtually view how the outfit looks on the user. <strong>VITON</strong> and <strong>VTNFP</strong> models are used for this purpose.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*DhoRUKKYZwAX8Kc0AAhAiw.jpeg" /><figcaption>Example for virtual outfit try-on</figcaption></figure><ul><li><em>Fashion design model: </em>This method takes in the design images and the cloth material image as input from the user and generates an image of the complete end product.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*N82avXKgj4CoSwAbx7pCrw.jpeg" /><figcaption>Generating outfit image by using outfit design and material image</figcaption></figure><p>Let us now look into the three pillars of machine learning in fashion industry: Recommendation, Aesthetics and Personalization.</p><p>Recommendation systems have certainly become one of the most widely used information filtering systems. In the fashion industry as well, the simplest methodology used is clothes retrieval and recommendations. These systems completely rely on the preferences and ratings given by the user. It is important to note that, recommendation systems just suggest new trends and clothes to the user but do not consider the fashion experts who have more in-depth understanding about a specific style, the right color contrast, or even the sophisticated knowledge obtained by having gone through a dressing course. While a recommendation system fails to consider all of the above factors, an automatic fashion composition system based on deep learning encompasses all of the key factors. The deep learning approach for an outfit composition problem consists of an end-to-end system of encoding visual features through the deep convolutional network which takes in a fashion outfit and predicts user engagement levels. In this method, the outfit is composed by scoring the outfit candidate based on its appearance and other metadata. To make the system context-aware, a multimode Deep learning framework is used; this leverages context from the image itself and it is found to outperform the single model approach. The following architecture depicts a scoring model for an outfit that will be composed and recommended to the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*RmGzSzLtTg7h6gg467UqyQ.png" /><figcaption>Fashion outfit scoring model</figcaption></figure><p>Few other methodologies used in fashion recommendation systems are,</p><ul><li>Implicit Feedback based</li><li>Based on Weak Appearance Feature</li><li>Semantic Attribute Region Guided Approach</li><li>Complementary Recommendations Using Adversarial Feature Transformer</li><li>Neural Compatibility Modeling</li></ul><p>Aesthetics and Fashion go hand in hand. The visual appearance of a piece of clothing plays a vital role in the fashion industry. Apart from describing clothing in terms of words called aesthetic words; party wear, casual, formal, and more, there are visual features that describe the clothing too. One of the approaches is to bridge the gap between the two by formulating a novel three-level framework of visual features, image-scale space, and aesthetic word space. Then Art field image scale-space is used as an intermediate layer; a 2-dimensional image scale-space acts as an intermediate layer. This layer has a deep understanding of the aesthetic words. This approach is based on a theory proposed by Kobayashi where there are 180 keywords in 16 categories of aesthetics and each of these words has coordinate values in image scale space. Euclidean distance is used to determine which aesthetic word aligns with the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nYq1Pa9AXtX0yKcYhEhRcQ.png" /><figcaption>Examples for outfit image and aesthetic words mapping</figcaption></figure><p>Few other methodologies used in fashion aesthetics are,</p><ul><li>Brain-inspired deep network</li><li>Minimalistic approach</li><li>Neuroaesthetics</li></ul><p>Personalization is a key factor in the growth of the fashion industry. Personalization promotes individuality and uniqueness. Every customer would like the one in a million experience. Personalized outfit generation has to gain momentum among the fashion brands. Here, the user preferences regarding individual items and outfits are considered and a new outfit is suggested to the user. A transformer encoder-decoder architecture approach is followed which says every item in an outfit will have a different interaction weight with other items in the same outfit. As and when the user clicks on items, the system starts creating an outfit by adding one item at a time. If more than one similar item is clicked, then the item’s interaction weight is considered and the item with better weight is kept the other is discarded. The process continues until the outfit is complete.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*BAcs2mfPpxTp9Kb4DZFFbw.png" /><figcaption>Architecture for personalized outfit generation</figcaption></figure><p>Few other methodologies used in personalization are,</p><ul><li>Generative Adversarial Training</li><li>Personalization in Unstructured Data</li><li>Item-to-Set Metric Learning Approach</li></ul><blockquote>Conclusion: With more and more researchers invested in the world of fashion and its ever-growing demand to utilize AI, computer vision, and deep learning; the scope for more advanced and sophisticated approaches increases to enable fashion brands to provide excellent customer service and at the same time stay on top of the fashion industry. In unprecedented times like the present, the virtual shopping experience has gained utmost importance. AI and deep learning can help fashion manufacturers with better processes for manufacturing and inventory management. The fashion industry is one such industry where a vast amount of data accumulates every minute of every day and research in this field will benefit the customers and research community.</blockquote><h3>References</h3><p>[1]Gong, Wei and Laila Khalid. “Aesthetics, Personalization and Recommendation: A survey on Deep Learning in Fashion.” <em>ArXiv</em> abs/2101.08301 (2021): n. pag.</p><p>[2]Gu, Xiaoling et al. “Fashion analysis and understanding with artificial intelligence.” <em>Inf. Process. Manag.</em> 57 (2020): 102276.</p><p>[3]All of the images in this article have been taken from the papers mentioned above.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcb897ac3c33" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/deep-learning-in-fashion-industry-dcb897ac3c33">Deep Learning in Fashion Industry</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>