<?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 Neurond AI on Medium]]></title>
        <description><![CDATA[Stories by Neurond AI on Medium]]></description>
        <link>https://medium.com/@neurondai?source=rss-25cde322085b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qZyNXSpPrqZ-EOrqVylKng.png</url>
            <title>Stories by Neurond AI on Medium</title>
            <link>https://medium.com/@neurondai?source=rss-25cde322085b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 11:05:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@neurondai/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[Top Prevalent Uses of AI in Business Nowadays]]></title>
            <link>https://neurondai.medium.com/top-prevalent-uses-of-ai-in-business-nowadays-a136f9bf9af4?source=rss-25cde322085b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a136f9bf9af4</guid>
            <category><![CDATA[ai-applications]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[recruitment]]></category>
            <category><![CDATA[healthcare]]></category>
            <dc:creator><![CDATA[Neurond AI]]></dc:creator>
            <pubDate>Fri, 11 Aug 2023 03:18:36 GMT</pubDate>
            <atom:updated>2023-08-11T03:18:36.875Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s world, we can easily point out an example of AI-driven tools in daily life. Recently, <a href="https://chat.openai.com/"><strong>ChatGPT</strong> </a>— one of the most fashionable AI models — has sent the Internet into a frenzy. This technology enables people to do what they have never dreamed of doing before in real life. But what about its uses in the business world? Can AI help businesses to succeed and stay competitive? The answer is yes. Businesses of all sizes, notably the traditional ones, have started to implement AI in their activities and use it for different purposes, with the ultimate goal of catching up with the fast pace of <a href="https://www.salesforce.com/products/platform/what-is-digital-transformation/"><strong>digital transformation</strong></a>. Let’s figure out what AI is capable of doing in the business landscape.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-OqtCKfj9p3ZAQTCFRkVsw.png" /></figure><h3>A Quick Recap on Artificial Intelligence</h3><p>Artificial intelligence, commonly known as AI, refers to the simulation of human intelligence processes conducted by machines, especially computer systems. Such processes include learning (the acquisition of info and rules for using the information), reasoning (applying the rules to reach approximate or define conclusions), and self-correction.</p><p>There are two core types of artificial intelligence: Narrow AI, designed to perform narrow tasks, such as voice recognition, and general AI, which can understand, learn, and apply knowledge in a broad range of tasks at the level of a human being.</p><p>AI technologies have been developed and improved over several decades. They have made significant advancements in areas like natural language processing, image and speech recognition, predictive analytics, and autonomous vehicles.</p><p>AI has been integrated into numerous applications, from Siri and Alexa to Google Search and autonomous vehicles. It’s also used in sectors like healthcare, where it helps in diagnosing diseases, and in finance, where it’s used for fraud detection and customer service.</p><p>However, there is surely a wide range of <a href="https://www.orientsoftware.com/blog/ai-challenges/"><strong>AI problems and solutions</strong></a> awaiting business owners on this technological adventure, and <a href="https://www.unesco.org/en/artificial-intelligence/recommendation-ethics/cases#:~:text=AI%20is%20not%20neutral%3A%20AI,Rights%20and%20other%20fundamental%20values."><strong>AI also raises ethical and societal concerns</strong></a>. Issues like job displacement due to automation, privacy concerns, and biases in AI systems are topics of ongoing debate.</p><h3>The Rising Role of Artificial Intelligence</h3><p>AI technology, in general, has seen significant growth and development in the past few decades. Let’s look at a brief recap of its journey so far:</p><h4>1950s-1960s: Early Days</h4><p>The terminology “Artificial Intelligence” was coined by John McCarthy in 1956 for the first time. During this period, researchers developed the first AI programs which could play checkers and solve word problems.</p><h4>1970s-1980s: AI Winter</h4><p>AI research faced skepticism and disappointment due to a lack of progress. Funding and interest in AI dipped during this period, leading to what is known as the “AI Winter.”</p><h4>1990s: Revival</h4><p>AI started to become part of everyday technology. It was used in logistics, data mining, medical diagnosis, and many other areas. The development of the Internet also played a key role in gathering large amounts of data on which AI systems could be trained.</p><h4>2000s: AI Explosion</h4><p>With the advent of big data and significant improvements in computational power and storage, AI saw a massive explosion. Machine learning, particularly a subset called deep learning, started to deliver on AI’s promise.</p><h4>2010s: Mainstream Adoption</h4><p>AI began to drive many popular services, such as recommendation engines on e-commerce websites, voice assistants like Siri and Alexa, and self-driving car technology. Tech giants like Google, Amazon, and Facebook invested billions in AI research and development.</p><h4>Since 2020s: The Future</h4><p>AI continues to advance at a fast pace. It’s being applied in more sophisticated and diverse fields, from creating art and music to diagnosing diseases and fighting climate change. There are also ongoing discussions about the ethical implications of AI and how to ensure it’s used for the benefit of all.</p><p>In summary, AI has come a long way from its early days, and its journey is far from over. As we continue to innovate, AI is expected to play an even bigger role in our lives.</p><h3>The Invasion of AI Technologies in Different Industries</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A9CKt6LQbSwmUkakJhFMCQ.png" /></figure><p>In time, AI has been rapidly evolving, and its role in various industries is becoming increasingly significant. Here are some key areas where AI’s role is on the rise:</p><h3>Healthcare</h3><p><a href="https://www.neurond.com/blog/potential-benefits-ai-in-healthcare"><strong>AI is transforming healthcare</strong></a> with predictive analytics, personalized medicine, and robotic surgery. It’s being used to predict disease outbreaks, diagnose conditions, and even develop new drugs. For example, Google’s DeepMind created an AI that is capable of predicting acute kidney injury up to 48 hours before it happens.</p><h3>Transportation</h3><p>Now, self-driving cars are no longer just science fiction, thanks to AI. Companies like Tesla and Waymo are using AI models to revolutionize transportation, making it safer and more efficient.</p><h3>E-commerce</h3><p>AI is playing a crucial role in personalizing the online shopping experience. It’s used for product recommendations, customer service, and inventory management. Amazon’s recommendation engine, which suggests products based on past purchases and browsing history, is a prime example.</p><h3>Finance</h3><p>In the financial aspect, AI is being used for fraud detection, credit scoring, algorithmic trading, and customer service in the finance industry. Many banks are using AI-powered chatbots to provide 24/7 customer service.</p><h3>Climate and Environment</h3><p>AI can aid in fighting climate change by optimizing energy use, predicting weather patterns, and monitoring deforestation. For instance, Google’s DeepMind has developed an AI system that reduces the amount of energy used in its data centers by 40%.</p><h3>Entertainment</h3><p>From Netflix’s recommendation system to Spotify’s Discover Weekly, AI is changing how we consume content. It’s also being used to create content, such as music, art, and even scripts for movies.</p><h3>The Most Common Uses of AI in Business</h3><p>These are just a few of the most prevalent uses of AI in business nowadays. <a href="https://www.euronews.com/next/2023/03/29/forget-chatgpt-these-top-ai-tools-will-revolutionise-the-way-you-work"><strong>With further development and advancements in AI technology, businesses will be able to take advantage of even more opportunities that will help them to stay ahead of their competition</strong></a>. The most popular applications of AI in business nowadays are:</p><h4>Automation</h4><p>Businesses can automate routine tasks and more complicated operations, such as customer support or data analysis, that would take a lot of time if done manually. AI-driven automation tools enable businesses to streamline their operations and save precious resources.</p><h4>Predictive Analytics</h4><p>AI-powered predictive analytics can help businesses to make more informed decisions about the future of their business. By analyzing past data, AI models can detect patterns, trends, and other important information that would otherwise be hard to see. These insights can help businesses to identify potential risks and opportunities in the long run.</p><h4>Customer Service</h4><p>Customer support is the first and foremost essential thing that every business has to take care of to keep their customers happy. Many companies are now using AI-powered chatbots that act as virtual assistants to provide 24x7 customer support. Chatbots are incredibly effective in resolving customer issues quickly without requiring any human intervention. They can understand customers’ natural language queries and respond in real time. Chatbots also gather data on customer preferences and behavior, which allows businesses to improve their overall customer experience.</p><h4>Marketing</h4><p>Marketing is another area where businesses have already started leveraging AI to its fullest. AI can help businesses better gain insights into their customers, classify them into different groups, and develop customized marketing strategies. For instance, AI algorithms can analyze customer data and purchase history to suggest complementary products/services or recommend personalized offers. AI-powered tools like Google Analytics, AdWords, and Facebook Ads can optimize targeted marketing campaigns for maximum efficiency.</p><h4>Inventory Management</h4><p>AI-powered inventory management allows businesses to manage their inventory efficiently and cost-effectively. AI algorithms can look at the purchasing history of customers, monitor trends, and identify the products that are selling well. They can also forecast demand and adjust inventory levels accordingly. Moreover, AI can provide real-time data to optimize the procurement process and reduce stockouts.</p><h4>Fraud Detection</h4><p>Typically, fraud detection is a major concern for businesses of all sizes. However, AI-powered fraud detection systems can mitigate the risk of fraud and unauthorized access. AI algorithms can monitor user behavior patterns, detect anomalies, and identify suspicious activity before any significant loss occurs. These systems can help businesses save significant time and money while minimizing reputational damage.</p><h4>Recruitment</h4><p>Recruitment is a vital process in every organization, but it is not an easy task. AI can aid businesses in streamlining their recruitment process. AI helps businesses to identify the most relevant candidates by analyzing their resumes, social media profiles, and other relevant data sources. Advanced tools like AI-powered interview bots can autonomously screen candidates and conduct initial interviews, saving time and effort for recruiters.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a136f9bf9af4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vietnamese Automatic Speech Recognition Using NVIDIA — QuartzNet Model]]></title>
            <link>https://neurondai.medium.com/vietnamese-automatic-speech-recognition-using-nvidia-quartznet-model-7d38be438f65?source=rss-25cde322085b------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d38be438f65</guid>
            <category><![CDATA[transfer-learning]]></category>
            <category><![CDATA[speech-recognition]]></category>
            <category><![CDATA[text-to-speech]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Neurond AI]]></dc:creator>
            <pubDate>Wed, 01 Feb 2023 02:08:42 GMT</pubDate>
            <atom:updated>2023-02-01T02:08:42.891Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Vietnamese Automatic Speech Recognition Using NVIDIA — QuartzNet Model</strong></h3><p>In this article, we demonstrate the efficacy of transfer learning automatic speech recognition (ASR) tasks. We start with a pre-trained English ASR model and show that transfer learning can be effectively and easily performed in a different language (for example, Vietnamese), even if the dataset for fine-tuning is small.</p><p>Index Terms — Vietnamese, automatic speech recognition, transfer learning, text to speech Vietnamese</p><h3><strong>Related Works</strong></h3><p>Transfer learning for ASR was originally used for <a href="https://www.researchgate.net/publication/292496357_Hidden_Markov_modelGaussian_mixture_models_HMMGMM_based_voice_command_system_A_way_to_improve_the_control_of_remotely_operated_robot_arm_TR45#:~:text=Robust%20Hidden%20Markov%20Model%20(HMM,spotted%20words%20and%20recognize%20them.">Gaussian Mixture Model — Hidden Markov Model (GMM-HMM)</a> systems. It relied on the idea that phoneme representation can be shared across different languages.</p><p>Anderson et al. applied this idea to acoustic modeling using the International Phonetic Alphabet (IPA). The cross-language acoustic model adaptation was explored in depth in the GlobalPhone project. It was based on two methods:</p><ul><li>Partial model adaptation for languages with limited data.</li><li>Boot-strapping, where the model for a new target is initialized with a model for another language and then completely re-trained on the target dataset.</li></ul><p>Hybrid Deep Neural Network (DNN) — HMM models also made use of TL. Basically, the features learned by DNN models tend to be language-independent at low layers. So, all languages can share these low-level layers.</p><p>This hypothesis was experimentally confirmed by TL between ASR models for Germanic, Romance, and Slavic languages. Kunze et al. applied TL to DNN-based end-to-end ASR models and adapted an English ASR model for German. In their experiments, they used a Wav2Letter model and froze the lower convolutional layers while retraining the upper layers.</p><p>Similarly, Bukhar et al. adapted a multi-language ASR model for two new low-resource languages (Uyghur and Vietnamese) by retraining the network’s last layer. Tong et al trained a multilingual CTC-based model with an IPA-based phone set and then adapted it for a language with limited data.</p><p>They compared three approaches for cross-lingual adaptation:</p><ul><li>Retraining only an output layer</li><li>Retraining all parameters</li><li>Randomly initializing weights of the last layer and then updating the whole network.</li></ul><p>They found that updating all the parameters performs better than only retraining the output layer.</p><h3><strong>Dataset</strong></h3><p>The dataset we use in this article is the VIVOS dataset, which contains a speech corpus by recording speech data from more than 50 native Vietnamese volunteers.</p><p>For training, 46 speakers (22 males and 24 females) help record 15 hours of speech with 11,660 utterances. While for testing, another set of 19 speakers (12 males and 7 females) recorded 50 minutes of speech with 760 utterances in total.</p><p>This dataset has two features:</p><ul><li>Audio files in .wav</li><li>Text file that contains all the transcriptions of audio files.</li></ul><h3><strong>Walk-Through the Code</strong></h3><p>We recommend using Google Colab for this training section. But if you have all the dependencies and GPU, you can run it in your local.</p><p>First, open a new Python 3 notebook and follow the instructions below.</p><h4><strong>Install Dependencies</strong></h4><pre>!pip install wget <br><br>!apt-get install sox libsndfile1 ffmpeg libsox-fmt-mp3 <br><br>!pip install unidecode <br><br>export BRANCH=‘main’ <br><br>!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[all] </pre><h4><strong>Download Dataset</strong></h4><pre>import glob <br><br>import os <br><br>import subprocess <br><br>import tarfile <br><br>import wget <br><br>data_dir = &#39;.&#39; <br><br># Download the dataset <br>print(&quot;******&quot;) <br><br>if not os.path.exists(data_dir + &#39;/vivos.tar.gz&#39;): <br><br>    vivos_url = &#39;https://ailab.hcmus.edu.vn/assets/vivos.tar.gz&#39; <br><br>    vivos_path = wget.download(vivos_url, data_dir) <br><br>    print(f&quot;Dataset downloaded at: {vivos_path}&quot;) <br><br>else: <br><br>    print(&quot;Tarfile already exists.&quot;) <br><br>    vivos_path = data_dir + &#39;/vivos_sphere.tar.gz&#39;  <br><br>if not os.path.exists(data_dir + &#39;/vivos/&#39;): <br><br>    # Untar and convert .sph to .wav (using sox) <br><br>    tar = tarfile.open(vivos_path) <br><br>    tar.extractall(path=data_dir) <br><br>     print(&quot;Converting .sph to .wav...&quot;) <br><br>    sph_list = glob.glob(data_dir + &#39;/vivos/**/*.sph&#39;, recursive=True) <br><br>    for sph_path in sph_list: <br><br>        wav_path = sph_path[:-4] + &#39;.wav&#39; <br><br>        cmd = [&quot;sox&quot;, sph_path, wav_path] <br><br>        subprocess.run(cmd) <br> <br><br>print(&quot;Finished conversion.\n******&quot;) </pre><h4><strong>Character Encoding CTC Model</strong></h4><p>Now that we have a processed dataset, we can begin training an ASR model on this dataset. The following section will detail how we prepare a CTC model which utilizes a Character Encoding scheme.</p><p>This section will utilize a pre-trained QuartzNet 15×5, trained on roughly 7,000 hours of English speech base model. We will modify the decoder layer (thereby changing the model’s vocabulary).</p><pre>char_model = nemo_asr.models.ASRModel.from_pretrained(&quot;stt_en_quartznet15x5&quot;) </pre><h4><strong>Train Low-resource Languages</strong></h4><p>If the amount of training data or available computational resources is limited, it might be useful to freeze the encoder module of the network and train just the final decoder layer. This is also useful in cases where GPU memory is insufficient to train a large network, or the model might overfit due to its size. I recommend not doing it in Vietnamese because the vocal of Vietnamese and English speaker is very different. So we need to train its encoder also.</p><pre>freeze_encoder = False #@param [&quot;False&quot;, &quot;True&quot;] {type:&quot;raw&quot;} <br><br>freeze_encoder = bool(freeze_encoder) <br><br><br>if freeze_encoder: <br><br>  char_model.encoder.freeze() <br><br>  char_model.encoder.apply(enable_bn_se) <br><br>  logging.info(&quot;Model encoder has been frozen, and batch normalization has been unfrozen&quot;) <br><br>else: <br><br>  char_model.encoder.unfreeze() <br><br>  logging.info(&quot;Model encoder has been un-frozen&quot;) </pre><h4><strong>Set up Augmentation</strong></h4><p>Remember that the model was trained on several thousands of hours of data, so the regularization provided to it might not suit the current dataset. We can easily change it as we see fit.</p><p>Note: For low-resource languages, it might be better to increase augmentation via SpecAugment to reduce overfitting. However, this might, in turn, make it too hard for the model to train in a short number of epochs.</p><pre>## Uncomment lines below if you want augment your data <br><br># with open_dict(char_model.cfg.spec_augment): <br><br>  # char_model.cfg.spec_augment.freq_masks = 2 <br>  <br>  # char_model.cfg.spec_augment.freq_width = 25 <br>  <br>  # char_model.cfg.spec_augment.time_masks = 2 <br>  <br>  # char_model.cfg.spec_augment.time_width = 0.05 <br><br> char_model.spec_augmentation = char_model.from_config_dict(char_model.cfg.spec_augment) </pre><h4><strong>Set up Metrics</strong></h4><p>Originally, the model was trained on an English dataset corpus. When calculating <strong>Word Error Rate</strong>, we can easily use the “space” token as a separator for word boundaries. On the other hand, certain languages such as Japanese and Mandarin do not use “space” tokens, instead opting for different ways to annotate the end of the word.</p><p>In cases where the “space” token is not used to denote a word boundary, we can use the <strong>Character Error Rate</strong> metric instead, which computes the edit distance at a token level rather than a word level.</p><p>We might also be interested in noting model predictions during training and inference. As such, we can enable logging of the predictions.</p><pre>use_cer = True #@param [&quot;False&quot;, &quot;True&quot;] {type:&quot;raw&quot;} <br><br>log_prediction = True #@param [&quot;False&quot;, &quot;True&quot;] {type:&quot;raw&quot;} <br><br>char_model._wer.use_cer = use_cer <br><br>char_model._wer.log_prediction = log_prediction </pre><p>And that’s it! We can train the model using the Pytorch Lightning Trainer and NeMo Experiment Manager, as always.</p><h3><strong>Result and Conclusion</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*ppWqSkEn490YZ59NYZ8lQQ.png" /><figcaption>NeurondAI streamlit demo for ASR</figcaption></figure><p>We have tried several voice records in .wav format and got a good result. However, it still maintains some weaknesses:</p><ul><li>The model predicted not very well on different vocals not included in the dataset.</li><li>It still can’t be ready for real-time ASR because of a very small dataset (about 15 hours of audio) respectively to its pre-trained datasets (roughly 7000 hours of English audio).</li></ul><p>A transfer learning approach based on reusing a pre-trained QuartzNet network encoder turns out to be very effective for various ASR tasks. In all our experiments, we observed that fine-tuning a good baseline performs good results on a small dataset and small model.</p><p>We introduce this method to implement Vietnamese Automatic Speech Recognition (ASR) using QuartzNet 15×5 model. This model was based on a deep neural network with 1D time-channel separable convolutional layers. The small model (about 18,9M parameters) opens new possibilities for speech recognition on mobile and embedded devices.</p><p>Resources:</p><ul><li><a href="https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/asr/models.html#quartznet">https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/asr/models.html#quartznet</a></li><li><em>Cross-Language Transfer Learning, Continuous Learning, and Domain<br>Adaptation for End-to-End Automatic Speech Recognition,</em> <a href="https://arxiv.org/pdf/2005.04290.pdf">https://arxiv.org/pdf/2005.04290.pdf</a></li><li><em>QUARTZNET: DEEP AUTOMATIC SPEECH RECOGNITION WITH 1D TIME-CHANNEL SEPARABLE CONVOLUTIONS,</em> <a href="https://arxiv.org/pdf/1910.10261.pdf">https://arxiv.org/pdf/1910.10261.pdf</a></li></ul><p>Read the original and latest article at: <a href="https://www.neurond.com/blog/vietnamese-automatic-speech-recognition-vietasr">https://www.neurond.com/blog/vietnamese-automatic-speech-recognition-vietasr</a></p><p>NeurondAI is a transformation business.</p><p>Website: <a href="https://www.neurond.com/">https://www.neurond.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d38be438f65" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fascinating Information Extraction Tactics to Grow Your Business]]></title>
            <link>https://neurondai.medium.com/fascinating-information-extraction-tactics-to-grow-your-business-517a7ebc8ad?source=rss-25cde322085b------2</link>
            <guid isPermaLink="false">https://medium.com/p/517a7ebc8ad</guid>
            <category><![CDATA[information-extraction]]></category>
            <category><![CDATA[resume-parser]]></category>
            <category><![CDATA[named-entity-recognition]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[spacy]]></category>
            <dc:creator><![CDATA[Neurond AI]]></dc:creator>
            <pubDate>Mon, 26 Sep 2022 01:50:59 GMT</pubDate>
            <atom:updated>2022-09-26T02:12:33.708Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pd9PYCF_hSNcHyjqMrqnZg.png" /></figure><p>Working with a large amount of text data definitely exhausts you in some ways. That’s why many companies prefer Information Extraction techniques to reduce human error and improve efficiency.</p><p>In this article, we’ll aim at building information extraction algorithms on unstructured data using text extraction, Deep Learning, and Natural Language Processing (NLP) techniques.</p><h4><strong>Table of contents:</strong></h4><ul><li>What is information extraction?</li><li>How does information extraction work?</li><li>Challenges in information extraction</li></ul><h3><strong>What Is Information Extraction?</strong></h3><p>Information extraction is how we automatically extract unstructured and/or semi-structured machine-readable documents and other electronically represented sources to a structured format.</p><p>It’s possible for us to manually search for the required information from a few documents. However, we can easily and automatically convert this data with the help of information extraction NLP algorithms.</p><p>There are many ways you can apply to pull out information and the most common one comes to Named Entity Recognition. It depends on your business niche and market that you own different types of data, from recipes to resumes and medical reports or invoices. So this method can ensure the deep learning model is specific to a suitable use case.</p><h3><strong>How Information Extraction Works</strong></h3><p>As mentioned, you should be clear about the kind of data you are working on. For example, for medical reports, you should define extracting patient names, drug information, sick information, etc. In terms of recruitment, it’s necessary to extract data based on Name, Contact Info, Skills, Education, and Working Experience attributes.</p><p>After that, we’ll start applying the information extraction to process and build a deep learning model around the data. We’ll show you how to do it with NER Spacy as follows.</p><blockquote>NER WITH SPACY LIBRARY</blockquote><p>Spacy is a free and open-source advanced Natural Language Processing (NLP) in python.</p><p>It’s designed specifically for production use and helps you build applications that process and “understand” large volumes of text. You can make the most of spacy to build Information Extraction or natural language understanding systems or to pre-process text for deep learning.</p><p>Here is an example of how to use spacy to extract information:</p><p>First, use a terminal or command prompt and type in the following command to download the spacy pre-trained model after installing the latest version of spacy.</p><pre>python -m spacy download en_core_web_trf</pre><p>Code:</p><pre># import spacy library</pre><pre>import spacy</pre><pre>from spacy import displacy</pre><pre># load pre-trained spacy model</pre><pre>nlp = spacy.load(&quot;en_core_web_trf&quot;)</pre><pre>#load data</pre><pre>doc = nlp(&quot;NASA awarded Elon Musk’s SpaceX a $2.9 billion contract to build the lunar lander.&quot;)</pre><pre>#predict entities in sentence above</pre><pre>for ent in doc.ents:</pre><pre>    print(ent.text,  ent.label_)</pre><pre>displacy.render(doc, style=&quot;ent&quot;, jupyter =True)</pre><p>Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*GkvEzY1cy913Gqaf-Z77Dg.png" /><figcaption>Output for example code above</figcaption></figure><p>It works!! Let’s dive deep into how spacy performs it.</p><p>In the example above, we’ve imported the spacy module into the program. Then, we load the pre-trained spacy model and after that, we load data into the model and store it in a doc variable. Now we iterate over the doc variable to find the entities that the pre-trained model has been learned.</p><h3>Challenges of Information Extraction in Resume Parser</h3><p>A standard resume contains various information related to the Experience, Education Background, Skills, and Personal Information of a candidate. The information can be presented in multiple ways, or not present at all. So, making an intelligent resume parser tool to look for information became a huge challenge.</p><p>The reason we mentioned above proves that statistical methods like Naïve Bayes don’t work here. Therefore, the NER algorithm rescues and allows everyone on the team to search and analyze important details across business processes.</p><p>You must stay careful in some steps while creating a deep learning model for the Resume parser:</p><p>First, dataset preparation was the most important process. Anyone who wants to build their deep learning model should start thinking about this part from the very early stage. We then prepare unlabeled training data and search for tools to help us perform the manual annotation.</p><p>Next, choosing a suitable model mostly depends on the types of data you’re working with. The spacy library does support many state-of-the-art models that we could use. However, utilizing the pre-trained models and fine-tuning them based on our data should be a challenge for researchers. They will need to experiment on the hyperparameters and fine-tune the model correctly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*4xeSlAQb-CeVNCtDCmsWvw.png" /><figcaption>NLP pipelines for building models with Spacy</figcaption></figure><p>Plus, tracking the model with the right evaluation metrics enables you to find out which models are suitable for your business. In our resumes parser system, by tracking the model performance using the F-1 score, the model had crossed our benchmark of 85%.</p><p>READY FOR NLP INFORMATION EXTRACTION?</p><p>We’ve walked you through the basic knowledge about information extraction techniques from text data. And then, we’ve seen how important NER is, especially when working with many documents</p><p>Read the original and latest article at: <a href="https://www.neurond.com/blog/information-extraction-tactics">https://www.neurond.com/blog/information-extraction-tactics</a></p><p>NeurondAI is a transformation business.</p><p>Website: <a href="https://www.neurond.com/">https://www.neurond.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=517a7ebc8ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Extract Text from a PDF Using PyMuPDF and Python]]></title>
            <link>https://neurondai.medium.com/how-to-extract-text-from-a-pdf-using-pymupdf-and-python-caa8487cf9d?source=rss-25cde322085b------2</link>
            <guid isPermaLink="false">https://medium.com/p/caa8487cf9d</guid>
            <category><![CDATA[resume-parser]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[document-extraction]]></category>
            <category><![CDATA[text-extraction]]></category>
            <category><![CDATA[resume-parser-software]]></category>
            <dc:creator><![CDATA[Neurond AI]]></dc:creator>
            <pubDate>Mon, 12 Sep 2022 02:48:35 GMT</pubDate>
            <atom:updated>2022-09-12T02:48:35.918Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://www.neurond.com/blog/information-extraction-tactics">Text Extraction</a> refers to the process of automatically scanning and converting unstructured text into a structured format. It’s one of the most important tasks in natural language processing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*L5zVN_jPtO8CMqNYO6rlug.png" /><figcaption>Figure 1 — Extract the text from a document</figcaption></figure><p>Reading or scanning many documents manually involves a lot of time and effort, especially when you have to look through thousands of PDF files.</p><p>Fortunately, this issue can be easily tackled by programming with the help of the PyMuPDF library.</p><h3>Installation</h3><p>We’ll assume that you already have a Python environment (with Python &gt;=3.7). If you are a beginner, please follow this <a href="https://www.tutorialspoint.com/python/python_environment.htm">Python — Environment Setup</a> tutorial to set up a proper programming workspace. A virtual environment is preferable since we can manage our Python packages.</p><p>We also recommend installing the jupyter notebook (<a href="https://jupyter.org/install">Project Jupyter</a>), which is great for showcasing your work. It allows you to see the code and the results at the same time.</p><p>Let’s dive into PyMuPDF, the library needed for text extraction. You can install it by typing in the terminal.</p><p>With pip:</p><pre>pip install pymupdf</pre><p>And start using the library by importing the installed module:</p><pre>import fitz</pre><p>Bear in mind that the top-level Python import name of the PyMuPDF library is fitz. This is due to historical reasons — according to the author</p><p><strong>Note:</strong> In this post, we only work with searchable PDF files. To check whether your PDF is legit, open it with a PDF reader and try to copy text or search for some words. A searchable PDF file enables you to do the mentioned work, while a scanned PDF cannot. The PyMuPDF library cannot work with scanned PDF either.</p><h3>Extract Text from PDF</h3><p>First of all, we need to set a variable to contain the path to our pdf file. Please replace the ‘PATH_TO_YOUR_AWESOME_RESUME_PDF’ with your path:</p><pre>my_path = ‘PATH_TO_YOUR_AWESOME_RESUME_PDF”</pre><p>Here is an example of our working PDF. This is a typical Resume PDF containing a candidate’s information such as contact details, summary, objective, education, skills, and work experience sections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*bkFAWj0lL2Fhd6W1QgK9SA.png" /><figcaption>Figure 2 — Sample Resume PDF file from an Applicant</figcaption></figure><p>Let’s open with fitz:</p><pre>doc = fitz.open(my_path)</pre><p>The “doc” is a PyMuPDF’s Document class representing the whole document. We will get every necessary information from it, including the text. To extract the text, type the following and run in your jupyter notebook or python file:</p><pre>for page in doc:</pre><pre>    text = page.get_text()</pre><pre>    print(text)</pre><p>In case we get a multi-page document, we will loop all the pages to get the text plain from the document. Here is the result when we print the output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*7UEMITb4IhAnkZ3DyJaM6A.png" /><figcaption>Figure 3 — The output text from PyMuPDF</figcaption></figure><p>The output is quite pretty since the PyMuPDF knows how to read the text in a natural order. However, what if you want to separate particular text blocks? It can be done by passing the parameter “blocks” to the get_text() method.</p><pre>output = page.get_text(“blocks”)</pre><p>The output is a list of tuple items, each item will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*ZLjH5W-iNWyrJRwYlH0XIQ.png" /><figcaption>Figure 4 — Screenshot by the Author</figcaption></figure><p>The x0, y0, x1, y1 is the coordinate of the text line in the document. The next element is the text itself. “block_no” is the block number and “block_type” indicate this block is a text or image.</p><p>From now we only care about the text and block number. All the blocks with the same block_no value will be grouped, so we can start printing the text as follow:</p><pre>for page in doc:</pre><pre>    output = page.get_text(&quot;blocks&quot;)</pre><pre>    previous_block_id = 0 # Set a variable to mark the block id</pre><pre>    for a block in output:</pre><pre>        if block[6] == 0: # We only take the text</pre><pre>            if previous_block_id != block[5]:</pre><pre>                # Compare the block number<br>                print(&quot;\n&quot;)</pre><pre>            print(block[4])</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*5zHQ_Vm9epVwEKaSlW_SOg.png" /><figcaption>Figure 5 — Extract each text block from a document</figcaption></figure><p>You can notice some strange symbols. This is because sometimes we get text data in Unicode, but we need to represent it in ASCII. To fix this, we use <a href="https://pypi.org/project/Unidecode/">Unidecode</a> library and pass the string into the unidecode function.</p><pre>from unidecode import unidecode</pre><pre>output = []</pre><pre>for page in doc:</pre><pre>    output += page.get_text(&quot;blocks&quot;)</pre><pre>previous_block_id = 0 # Set a variable to mark the block id</pre><pre>for block in output:</pre><pre>if block[6] == 0: # We only take the text</pre><pre>    if previous_block_id != block[5]: # Compare the block number</pre><pre>       print(&quot;\n&quot;)</pre><pre>       plain_text = unidecode(block[4])</pre><pre>       print(plain_text)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*nXEEQUwMSRZXuG4my7kdLw.png" /><figcaption>Figure 9 — Structure of text blocks</figcaption></figure><p>To get the spans from the PDF file, pass the parameter “dict” into the get_text() method of the doc object that we have before.</p><pre>block_dict = {}</pre><pre>page_num = 1</pre><pre>for page in doc: # Iterate all pages in the document</pre><pre>    file_dict = page.get_text(&#39;dict&#39;) # Get the page dictionary</pre><pre>    block = file_dict[&#39;blocks&#39;] # Get the block information</pre><pre>    block_dict[page_num] = block # Store in block dictionary</pre><pre>    page_num += 1 # Increase the page value by 1</pre><p>The “block_dict” is a dictionary containing detailed information of all spans in a document. Let’s retrieve the spans and store them in a DataFrame as follow:</p><pre>import re</pre><pre>spans = pd.DataFrame(columns=[&#39;xmin&#39;, &#39;ymin&#39;, &#39;xmax&#39;, &#39;ymax&#39;, &#39;text&#39;, &#39;tag&#39;])</pre><pre>rows = []</pre><pre>for page_num, blocks in block_dict.items():</pre><pre>    for block in blocks:</pre><pre>        if block[&#39;type&#39;] == 0:</pre><pre>            for line in block[&#39;lines&#39;]:</pre><pre>                for span in line[&#39;spans&#39;]:</pre><pre>                    xmin, ymin, xmax, ymax = list(span[&#39;bbox&#39;])</pre><pre>                    font_size = span[&#39;size&#39;]</pre><pre>                    text = unidecode(span[&#39;text&#39;])</pre><pre>                    span_font = span[&#39;font&#39;]</pre><pre>                    is_upper = False</pre><pre>                    is_bold = False</pre><pre>                    if &quot;bold&quot; in span_font.lower():</pre><pre>                        is_bold = True</pre><pre>                    if re.sub(&quot;[\(\[].*?[\)\]]&quot;, &quot;&quot;, text).isupper():</pre><pre>                        is_upper = True</pre><pre>                    if text.replace(&quot; &quot;,&quot;&quot;) !=  &quot;&quot;:</pre><pre>                        rows.append((xmin, ymin, xmax, ymax, text,                              is_upper, is_bold, span_font, font_size))</pre><pre>                        span_df = pd.DataFrame(rows, columns=[&#39;xmin&#39;,&#39;ymin&#39;,&#39;xmax&#39;,&#39;ymax&#39;, &#39;text&#39;, &#39;is_upper&#39;,&#39;is_bold&#39;,&#39;span_font&#39;, &#39;font_size&#39;])</pre><p>Just a little insight, the code above tries to loop over the page, blocks, and lines in a document. Then we will get every span in a line. Although there are some properties in the spans, we care about the bbox (the bounding box), size, font, and text only. You can check our result in the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*LxDWLAS4x8Lvez3n8H1zpA.png" /><figcaption>Figure 10 — The Span Dataframe</figcaption></figure><p>We can create more features from these, such as finding the tag for the text. The tag is very significant since it gives you a helping hand in distinguishing between <strong><em>headings </em></strong>and <strong><em>content</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*IwIv3ApvKXYQBaXKksz1tw.png" /><figcaption>Figure 11 — Heading and its content in a document</figcaption></figure><p>We will define three types of tag: h, p, and s.</p><ul><li>The ‘h’ tag denotes the text which is bigger and more important than normal paragraphs. The text with the ‘h’ tag is usually in the <em>upper case</em> and has the <em>bold style</em>.</li><li>The ‘p’ tag stands for paragraph, or the normal content in the document. We can find the proper text with ‘p’ tag by counting the number of occurrences of each text size in a document, and then choose the text size which occurs most.</li><li>The ‘s’ tag will be used for less important text, which is smaller than ‘p’ text.</li></ul><p>Following this idea, we will start by gathering all the font sizes and styles in the span DataFrame. We will use the term “score” to emphasize the importance of a text span. The base score of each text span is the font size itself, and increase the score by 1 if it is in the upper case or has the bold style. Note that we also want to avoid increasing the score for the text with special symbols.</p><p>After applying some processing techniques by font size, locations, font information, we will be able to extract decent result below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*ICgF24Pxq6iSZC5cg1P8pA.png" /><figcaption>Figure 11 — All the headings and their content</figcaption></figure><h3>Deal with Multi-columns Document</h3><p>We can’t always get a beautiful one-column document since it may result in two or more columns. Fortunately, the PyMuPDF knows how to deal with this problem and permits us to read each column one by one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*5wSDD9epZ_8uey_FasBoiQ.png" /><figcaption>Figure 12— Reading two columns document with PyMuPDF</figcaption></figure><h3>Conclusion</h3><p>We’ve walked you through how PyMuPDF and Python help us with text extraction. The method frees you from copying single text lines manually or using a PDF reader. Hundreds of documents can be auto-extracted and organized in a structured format.</p><p>There is still a lot of work to do in the future, like how can we process a scanned PDF file. This requires implementing OCR (Optical Character Recognition) to read and extract the text from images.</p><p>Read original and latest article at: <a href="https://www.neurond.com/blog/extract-text-from-pdf-pymupdf-and-python">https://www.neurond.com/blog/extract-text-from-pdf-pymupdf-and-python</a></p><p>NeurondAI is a transformation business.</p><p>Website: <a href="https://www.neurond.com/">https://www.neurond.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=caa8487cf9d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What’s Wrong inside These Devices? Defect Detection in X-ray Images]]></title>
            <link>https://neurondai.medium.com/whats-wrong-inside-these-devices-defect-detection-in-x-ray-images-f5e50b354afd?source=rss-25cde322085b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5e50b354afd</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[image-binarization]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[image-processing]]></category>
            <dc:creator><![CDATA[Neurond AI]]></dc:creator>
            <pubDate>Fri, 18 Mar 2022 08:45:47 GMT</pubDate>
            <atom:updated>2022-03-26T02:57:03.213Z</atom:updated>
            <content:encoded><![CDATA[<p>Defect detection has become an essential demand for the production line to check whether the products meet standards. Although we consider that problem through image processing, we always have different approaches to detect what we need for every product in different industrial areas.</p><p>In this blog post, we will introduce some technologies for defect detection with X-ray images — a usual and popular case used in many factories.</p><h3>Mask RCNN Neural Network</h3><p>In recent years, mask RCNN has proven its efficiency, performance, and accuracy in solving object detection and object segmentation problems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*-hE9KSwf6LnMuiBciGMh6w.png" /><figcaption>Mask RCNN</figcaption></figure><p>When considering the defects of objects from X-ray images, we’ve divided them into two cases:</p><ul><li>Cases that can use Mask RCNN: The defects of the objects need to be visible, big “enough,” have almost the same particular pattern, and don’t need to be pre-processed. We can label these cases and train them with Mask RCNN if we have enough datasets for the objects.</li><li>Cases that cannot use Mask RCNN: In some cases, the defects could be very difficult to determine, whether they’re too small, invisible, have unclear patterns, or need image preprocessing.</li></ul><p>For example, there is a defect in a casting wheel under X-ray. If the defect is visible and has a particular pattern, we can train it with Mask RCNN to detect that defect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*MLZyfTJO80w6yicuun05-w.png" /><figcaption>Image of defect that seems to be unique and good for masking.</figcaption></figure><h3>Edge Detection</h3><p>Edge detection includes a variety of mathematical methods that aim at identifying edges and curves, at which the image’s brightness changes sharply. In our project, we focus on two algorithms:</p><ul><li><strong>Sobel Edge Detection:</strong> this is a very common edge extraction filter, which is an approximation to a derivative of an image. We can use the Sobel filter for both directions x and y. In the image processing field, using Sobel edge detection means we do a convolution with 2 matrixes for x direction and y direction.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*VnkCxT9eqjFeCJ-1ZYKHSA.png" /></figure><p>Here is an example of using Sobel edge detection for the horizontal and vertical direction:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*4XH6EOvxm988miqEUgpZtQ.png" /><figcaption>Sobel filter takes advantage when we look for black-to-white and white-to-black regions</figcaption></figure><ul><li><strong>Canny Edge Detection:</strong> This is an upgrade from Sobel Edge Detection which shows better results by enhancing the computation’s complexity. This filter consists of 5 steps in the whole process.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*RWEtUXrKuuIr9TqUKlAsjw.png" /></figure><p>Here is an example of using Canny Edge detection with the same image above. We can easily see that the edges of any part are present better and thinner than using Sobel Edge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*5huSyFqIWrcynTXePXUuIg.png" /></figure><h3>Threshold</h3><p>In the OpenCV Library, there are two kinds of thresholding: <strong>simple </strong>and <strong>adaptive</strong>.</p><p><strong>Simple Thresholding</strong>: If the pixel value is smaller than the threshold, it is set to 0, otherwise it is set to a maximum value. There are at least 5 algorithms for threshold. For X-ray images, we will use BINARY and TOZERO thresholds to detect the faults in products.</p><ul><li><strong>BINARY:</strong> this filter will check if the pixel is over or under a threshold value. If this value is bigger, the pixel will be changed to white. Otherwise, it is black.</li><li><strong>TOZERO:</strong> this filter has the same comparison mechanism as BINARY, but the rules for the pixel over the threshold value are different. Any pixel under this value will be changed to black, the others will remain unchanged.</li></ul><p>Here is an example of applying those thresholds, using the same parameters to control the quality of the output image (remember to convert the image to gray before using threshold).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*zXWWqRex6C-is9R7ukm1xw.png" /></figure><p>In this example, both filters help us check the basic detail of the object. However, we found that TOZERO threshold will be more useful than BINARY if we want to detect any defects in the gray pixel.</p><p><strong>Adaptive Thresholding </strong>is applied to deal with different lighting conditions, which is the tough case for normal thresholding. With adaptive thresholding, the algorithm determines the threshold for a pixel based on a small area around it. So, we get different thresholds for different areas of the same image, from which we will get a better result.</p><p>There are two kinds of adaptive thresholding: <strong>THRESH MEAN</strong> (mean value of pixel in an area) and <strong>THRESH GAUSSIAN</strong> (gaussian weighted sum). Let’s check out an example where we apply the adaptive thresholding for the sample image above using the same parameters.</p><h3>Conclusion</h3><p>As mentioned earlier, every product has multiple approaches to deal with defects checking problems in the image field. What we have done is an approach for this kind of X-ray sample. To adapt to the project’s requirements, we should combine different techniques and adjust the parameters till we get a better detection result. We hope this article has provided you with useful techniques to handle fault detection on devices from X-ray images.</p><h3>References</h3><p>Mask RCNN Lib: <a href="https://github.com/ayoolaolafenwa/PixelLib">ayoolaolafenwa/PixelLib: Visit PixelLib’s official documentation https://pixellib.readthedocs.io/en/latest/ (github.com)</a></p><p>Image enhancing: <a href="https://towardsdatascience.com/measuring-enhancing-image-quality-attributes-234b0f250e10">https://towardsdatascience.com/measuring-enhancing-image-quality-attributes-234b0f250e10</a></p><p>Line detection: <a href="https://www.geeksforgeeks.org/line-detection-python-opencv-houghline-method/">https://www.geeksforgeeks.org/line-detection-python-opencv-houghline-method/</a></p><p>Image thresholding: <a href="https://docs.opencv.org/4.x/d7/d4d/tutorial_py_thresholding.html">OpenCV: Image Thresholding</a></p><p>Edge detection: <a href="https://learnopencv.com/edge-detection-using-opencv/">Edge Detection Using OpenCV | LearnOpenCV #</a></p><p>SKIMAGE filter: <a href="https://scikit-image.org/docs/stable/auto_examples/applications/plot_thresholding.html">Thresholding — skimage v0.19.2 docs (scikit-image.org)</a></p><p>Sample images: <a href="http://dmery.ing.puc.cl/index.php/material/gdxray/">http://dmery.ing.puc.cl/index.php/material/gdxray/</a></p><p>Read our original article at: <a href="https://www.neurond.com/blog/defect-detection-in-xray-images">https://www.neurond.com/blog/defect-detection-in-xray-images</a></p><p>NeurondAI<em> </em>is a transformation business. Contact us at:</p><p><em>Website</em>: <a href="https://www.neurond.com/">https://www.neurond.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5e50b354afd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Will Reinforcement Learning Based Recommendation System Be In The Future — Part 3…]]></title>
            <link>https://neurondai.medium.com/how-will-reinforcement-learning-based-recommendation-system-be-in-the-future-part-3-288c8c5df380?source=rss-25cde322085b------2</link>
            <guid isPermaLink="false">https://medium.com/p/288c8c5df380</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[recommender-systems]]></category>
            <dc:creator><![CDATA[Neurond AI]]></dc:creator>
            <pubDate>Mon, 14 Jun 2021 02:17:41 GMT</pubDate>
            <atom:updated>2022-04-07T07:15:09.596Z</atom:updated>
            <content:encoded><![CDATA[<h3>How Will Reinforcement Learning Based Recommendation System Be In The Future — Part 3: Reinforcement Learning based Recommendation System</h3><h4>Reinforcement Learning based Recommendation System is increasing in both algorithm and application.</h4><p>This is the third blog from out series, you can always check other posts in series to understand more about our work.</p><ul><li><a href="https://neurondai.medium.com/how-will-reinforcement-learning-based-recommendation-system-be-in-the-future-part-1-recommender-34ab562ab257">Part 1: Recommender system</a></li><li><a href="https://neurondai.medium.com/how-will-reinforcement-learning-based-recommendation-system-be-in-the-future-part-2-92d153ae71c4">Part 2: Reinforcement Learning in Recommendation system</a></li></ul><h3><strong>Reinforcement Learning based Recommendation System</strong></h3><p><strong>Development Process</strong></p><p>As we mentioned above, in the nature of Reinforcement Learning(RL), the agents try to maximize the reward when interacting with the environment. This is similar to the problem of Recommendation System that the Recommendation System algorithm tries to recommend the best items to the users and maximize the satisfaction of users. In a big picture, we can consider the Recommendation System system as an agent, and anything outside the agent as environment. But in the real-life, because the data is huge result in the enormous faction and state spaces, some RL algorithms cannot carry on. Beside some appropriate RL algorithms for Recommendation System, the trend of Deep RL algorithm is becoming emerging and considered strictly in some relevant aspects. The table below from the survey shows us the algorithms used in many research papers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ov3qdtEWIi7uhCqybZg6FA.png" /><figcaption>Summarize from “<em>Reinforcement Learning based Recommender Systems: A Survey”</em> — <a href="https://arxiv.org/pdf/2101.06286.pdf">(arxiv.org)</a></figcaption></figure><p>In the bar chart below, RL have been applied in Recommendation System from 1996 till 2020. However, before 2018, there are not much research papers about this topic in those year, which only stay less than 5. This is maybe because the RL have been developed and tested so just small number of researches pay attention to this topic. Besides, we also lacked of huge datasets, online testing environment and unified/standard evaluation method. From 2018 till now, there is a burst in researching that topic with many algorithms from both RL and Deep Reinforcement Learning(DRL). From the result of those research papers, we have some dominant algorithms with frequently used datasets to train and metrics to evaluate Recommendation System. Those will be explained in next part.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*iHjdfqcuHJunnTVgK-iFNg.png" /><figcaption>Source: Reinforcement Learning based Recommender Systems: A Survey — <a href="https://arxiv.org/pdf/2101.06286.pdf">2101.06286.pdf (arxiv.org)</a></figcaption></figure><h3><strong>Reinforcement Learning Algorithms</strong></h3><p>From the table below, the reinforcement learning algorithms has been applied in RS in the early days. Beginning with temporal difference method (Q-Learning/SARSA) and dynamic programming (Policy iteration), researchers have less change in method they used to conduct the research. From it till now, although they are developing many new algorithms, temporal difference with Q-Learning and SARSA still is a popular method due to its advantages presented below. Moreover, more datasets — especially real-life dataset such as Amazon and MovieLens — are trustworthy to used due to their structured data and metadata providing more information for each items/users. However, most evaluation procedures are offline by building a simulation environment and using some metrics that have changes through each research papers. Then we have a list of popular metrics:</p><ul><li>Precision: ratio of true positive over total positive</li><li>Recall: ratio of true positive over real positive (include true positives and false negative)</li><li>F1 Score: Harmonic mean of Precision and Recall</li><li>NDCG: Normalized Discounted Cumulative Gain, a measure of raking quality of recommendation system.</li><li>CTR: Click through rate, which is the ratio of clicks by user on a specific detail of recommendation over the total user who see the recommendation.</li><li>RMSE: Root Mean Square Error</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lha6lJpKf9s5hR-INsGnUg.png" /><figcaption>Summarize from “<em>Reinforcement Learning based Recommender Systems: A Survey”</em> — <a href="https://arxiv.org/pdf/2101.06286.pdf">(arxiv.org)</a></figcaption></figure><p>Each method has its own algorithms with those advantage and disadvantage.</p><ul><li>Dynamic Programming (DP): Among the tabular methods, DP methods are not popular and impractical due to their huge computational expense and the need to understand widely about the environment. Although this algorithm has the large number of states, it is often infeasible when conducting even one iteration of policy or value iteration methods.</li><li>Monte Carlo (MC): This tabular method does not require more knowledge of the environment, just only need sampled experience such as interactions with the environment. However, MC methods still have some limitations. They do not bootstrap and they update value function only after completing episode, so their convergence is slow. An upgrade of MC, which called MCTS, is used enhance the efficiency of MC.</li><li>Temporal Difference: Those methods have been very popular in most of development period of RS because they are simple, model-free and need minimal amount of computation and can be expressed by a single equation. The preventative of those method are Q-Learning and SARSA.</li><li>Fitted-Q: a flexible framework that can fit any approximation architecture to Q-function but its limitation is high computational and memory overhead.</li></ul><h3><strong>Deep Reinforcement Learning Algorithms</strong></h3><p>Coming later than the original RS algorithms, but Deep Reinforcement Learning Methods has proved to the researchers about their feasibility and efficiency, but still having small drawbacks for each method. In the table below, in 6 years, there are more research has been conducted which dominant methods are Deep Q-Learning and Actor — Critic, but the trending in 2020 till now are combining two or more methods whose advantages can support to solve the drawbacks of other methods. The datasets also become more diverse which tend to use some popular datasets in entertainment and e-commerce. Although evaluation procedures still is in offline, but some researches have built up a online evaluation having good initial results. The metrics to evaluate the RS with DRL also still the same as ones of RL above such as precision, recall, NDCG, F1, hit-ratio… We have some short description about those methods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bdDHNXdzSunzfpyUklQN5g.png" /><figcaption>Summarize from “<em>Reinforcement Learning based Recommender Systems: A Survey”</em> — <a href="https://arxiv.org/pdf/2101.06286.pdf">(arxiv.org)</a></figcaption></figure><ul><li>DQN: This method modified the original Q-learning algorithm in three aspects to improve the stability. Firstly, it uses experience replay and a method keeping agent’s experiences over various time steps in a replay memory, then uses them to update weights in the training phase. Secondly, to reduce the complexity in updating weights, current updated weights are kept fixed and fed into a duplicate network whose outputs are used as the Q-learning targets. Third, to limit the scale of error derivatives, the reward function is simplified. However, DQN has three problems. Firstly, it overestimates action values in some certain cases, making learning inefficient and lead to sub-optimal policies. Secondly, DQN select experiences randomly uniformly to replay without considering its significant, making the learning process slow and inefficient. Third, DQN cannot handle continuous, which has computational expense and high infeasibility.</li><li>REINFORCE: A Monte-Carlo, stochastic gradient method which directly updates the policy weights. However, its problems are its high variance and slow learning result from the nature of MC when it takes samples. In current, there are some different technique which have been developed to deal with high variance problem.</li><li>Actor — Critic: This algorithm uses a critic to criticize the policy generated by actor by computing the value of the state-action pair given by the actor and proving feedback on the selected action, which deals with problems of REINFORCE through reducing variance and accelerates learning.</li><li>Compound: The combination of many DRL algorithm is considered and developed by many researchers because they can take advantage of each method and reduce or their drawbacks. One example we can tell is DDPG, an algorithm combining DQN and DGP (both are DRL methods), have proved its enhancement over single method and potential efficiency. In future, many researchers will consider more compound methods to find the best combination satisfying some continuously updated criteria.</li></ul><h3><strong>Obstacles and Improvement in Future</strong></h3><p>Single Items to multiple items recommendation: RL algorithms have been developed to select one action from many different actions around. But in the RS field, the system has tendency to generate a list of items. In many researches, the vast number of reviewed research paper consider the problem of single item recommendation. In recent years, the researching trending is about recommending a list of items. However, the researchers have to face with the problem of huge combinatorics action space, because when the action space is larger, there are more demand on exploration, generalization and optimization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*dcD0Cmwn2R8aFQCaCqPETA.png" /><figcaption>Spotify recommends more type of mix-tape/mood/music content with many songs for users</figcaption></figure><p><strong>Architecture of algorithm: </strong>At the moment, most of existing RS using DRL method have been developed and tested in many environments. However, those methods are designed based on physics processes, not based on sophisticate and dynamic nature of users. So that we should have more creative method to deal with that problem. Besides having some RL algorithms popular among RS, the combination of Deep Learning and RL (compound) is becoming a valuable research direction for the future trending algorithm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*itjHYavYRDyfr0iIjaryCw.png" /><figcaption>Although still having been developed and tested, but Deep Reinforcement Learning will be a dominant method for Recommendation Systems in futures</figcaption></figure><p><strong>Explainable recommendation:</strong> The ability of an RS not only to provide a recommendation for user but also to explain the reason why the system recommend those items. Explanation about recommendation could improve user experience, boost the system’s trust and help RS make better/accurate decisions. Over more, this criterion help developer to track the operation of RS, then find and fix the bug or have changes in algorithm structure in need. However, this criterion still do not receive enough attentions in spite of its potential contribution in enhancing quality of RL. So that, more researchers should focus on this aspect in future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*B0q7O-7LyliqNqzMjM5Gbg.png" /><figcaption><em>Researchers still need to agree on a common evaluation standard on some aspects such as efficiency or performance</em></figcaption></figure><p><strong>Improving evaluation method for RL in Recommendation System:</strong> Evaluation for RL in Recommendation System should be improved. In the RL process, the agent interacts with the environment to learn what to do, which have similarity with online evaluation that RS generates the recommendations and receives the user feedback in real-time. However, most of the reviewed research papers just use offline evaluation because conducting online evaluation costs a huge price and deploying RL in Recommendation System is very risky in real businesses. On the other hand, many researchers develop the simulations for offline evaluation with the available datasets such as MovieLens, Amazon, any real business database, … But most of user models in those simulations are too simple and cannot reflect the behaviors of real users. Although there are some methods to simulate user’s behaviors, we have to develop a powerful simulator and an evaluation framework for RL in Recommender System in futures.</p><p>Read original and latest article at:</p><p><a href="https://www.neurond.com/blog/reinforcement-learning-based-recommendation-system-part-3">https://www.neurond.com/blog/reinforcement-learning-based-recommendation-system-part-3</a></p><p>NeurondAI<em> </em>is a transformation business. Contact us at:</p><p><em>Website</em>: <a href="https://www.neurond.com/">https://www.neurond.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=288c8c5df380" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Will Reinforcement Learning Based Recommendation System Be In The Future — Part 1: Recommender…]]></title>
            <link>https://neurondai.medium.com/how-will-reinforcement-learning-based-recommendation-system-be-in-the-future-part-1-recommender-34ab562ab257?source=rss-25cde322085b------2</link>
            <guid isPermaLink="false">https://medium.com/p/34ab562ab257</guid>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <dc:creator><![CDATA[Neurond AI]]></dc:creator>
            <pubDate>Tue, 08 Jun 2021 03:30:59 GMT</pubDate>
            <atom:updated>2022-04-07T07:15:38.092Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>How Will Reinforcement Learning Based Recommendation System Be In The Future — Part 1: Recommender System</strong></h3><h4>Every day, we always face with the huge amount of information available on many means leading to information overloading problem, which make people feel difficult to make right decision.</h4><p>When we surf a shopping website, we have to pass through many more items in the main page. The more items in the list, the harder it become to select among them. Understanding the demand, and with the development of many information platform such as YouTube, Amazon, Netflix or e-commerce, Recommendation System has been established and improved with the development of machine learning and artificial intelligent.</p><p>You can also check posts in series:</p><ul><li><a href="https://neurondai.medium.com/how-will-reinforcement-learning-based-recommendation-system-be-in-the-future-part-2-92d153ae71c4">Part 2: Reinforcement Learning in Recommendation system</a></li><li><a href="https://neurondai.medium.com/how-will-reinforcement-learning-based-recommendation-system-be-in-the-future-part-3-288c8c5df380">Part 3: Reinforcement Learning based Recommendation System</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*5Wc2Jwwrgygj_8ygGlgV0w.png" /><figcaption><strong><em>Wanna watch a film, but look at that…. How can we choose…</em></strong></figcaption></figure><h3><strong>Recommendation System</strong></h3><h4><strong>Definition</strong></h4><p>Recommender System (RS) are software tool and algorithms that have been developed to help users find their interested items based on the prediction of their item preferences or their rating on the items. RS is established to deal with <strong>the “long tail problem”</strong> that when users just only have attention on the highlighted items in a specific domain, they left behind many items that may be useful for them and the number of those item is very huge. This situation happens frequently in supermarket or in e-commercial website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*-sZk7zObllkeQkzMzRc40g.png" /><figcaption><strong><em>Just like when you go to super market, what you see is just a small part, and the others still in the freezing storage.</em></strong></figcaption></figure><h4><strong>Method</strong></h4><p>The method for recommender system is divided into three type as the taxonomy below: content-based methods, collaborative filtering methods and hybrid methods which is the combination of two previous method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*7oJf8keIwxExvrfD2m3kdw.png" /><figcaption><strong><em>Taxonomy of Recommender systems</em></strong></figcaption></figure><p><strong><em>Content-based methods: </em></strong>These methods make the recommendations based on a description of the item, a profile of the user’s preferences and the relation between them. This method can be used to a large number of user because it doesn’t any data from other users and each recommendation is specific user. However, this method needs a huge knowledge about a domain (for example, information about rating of user for an items), which mean that we need to handle knowledge-crawling by hand.</p><p><strong><em>Collaborative filtering methods: </em></strong>There are two types of this methods: memory-based and model-based. While the memory-based method is based on the similarities between users or items in the interaction observation (user-user or item-item), model-based method uses some algorithms such a Clustering algorithms, Matrix Factorization-based algorithm and Deep-Learning methods to learn the users/items behavior from the interaction matrix. Different with the above methods, this model no need a huge domain knowledge and it can help use discover more about their interest by recommending an item from a similar user interested with it. However, this model cannot deal with the new items, or cold-start problem, but there are some ways to address this problem or using content-based method. Other problem is that this system is hard to include some side-feature for items that can help the recommender system is more trustworthy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*goMNOYXkrRexKrWMso2iOQ.png" /><figcaption><strong>Collaborative Filtering vs Content-based Filtering</strong></figcaption></figure><p><strong><em>Hybrid methods:</em></strong> The combination between Content-based methods, and collaborative filtering methods, which takes advantage of the advantages of each method to minimize the drawbacks of them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*Q-WbsQZ95dmylmUUmlyTUw.png" /><figcaption><strong><em>Netflix recommendation system takes advantage of hybrid recommendation system</em></strong></figcaption></figure><p><em>Useful resources:</em></p><p>1) Introduction to recommender systems</p><p><a href="https://towardsdatascience.com/introduction-to-recommender-systems-6c66cf15ada">Introduction to recommender systems | by Baptiste Rocca</a></p><p>2) Recommender Systems with Python</p><p><a href="https://heartbeat.fritz.ai/recommender-systems-with-python-part-i-content-based-filtering-5df4940bd831">Recommender Systems with Python series | by Nikita Sharma</a></p><p>Read original and latest article at:</p><p><a href="https://www.neurond.com/blog/reinforcement-learning-based-recommendation-system-part-1">https://www.neurond.com/blog/reinforcement-learning-based-recommendation-system-part-1</a></p><p>NeurondAI<em> </em>is a transformation business. Contact us at:</p><p><em>Website</em>: <a href="https://www.neurond.com/">https://www.neurond.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34ab562ab257" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Will Reinforcement Learning Based Recommendation System Be In The Future — Part 2…]]></title>
            <link>https://neurondai.medium.com/how-will-reinforcement-learning-based-recommendation-system-be-in-the-future-part-2-92d153ae71c4?source=rss-25cde322085b------2</link>
            <guid isPermaLink="false">https://medium.com/p/92d153ae71c4</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[recommendation-system]]></category>
            <dc:creator><![CDATA[Neurond AI]]></dc:creator>
            <pubDate>Tue, 08 Jun 2021 03:30:11 GMT</pubDate>
            <atom:updated>2022-04-07T07:15:56.627Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>How Will Reinforcement Learning Based Recommendation System Be In The Future — Part 2: Reinforcement learning in </strong>Recommendation system</h3><h4>Reinforcement learning is how to make the actions to maximize the reward we will receive based on the situation (environment). It is exactly like the user react to recommendation system.</h4><p>You can also check posts in this series:</p><ul><li><a href="https://neurondai.medium.com/how-will-reinforcement-learning-based-recommendation-system-be-in-the-future-part-1-recommender-34ab562ab257">Part 1: Recommender system</a></li><li><a href="https://neurondai.medium.com/how-will-reinforcement-learning-based-recommendation-system-be-in-the-future-part-3-288c8c5df380">Part 3: Reinforcement Learning based Recommendation System</a></li></ul><p>In reinforcement environment, the learner must discover which way to achieve the highest reward by trying the actions without being told what to do. This action may affect not only the immediate reward but also the situation, then it will change the way to choose the action for our next choice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*FS2Hz67xpQ2IUzVYRTU5ZQ.png" /><figcaption><strong><em>An example about how the kid practice to reach parents and receive a gift, whose nature is as same as Reinforcement Learning</em></strong></figcaption></figure><p>We can easily imagine that the reinforcement learning is similar to a baby trying to start walking. If he can walk step by step to his parents, he will receive compliments or gift, which is called positive reward. On the contrary, if he falls, he will feel pain and start to cry, which is called negative reward. However, because he was tempted by the parent’s gifts, the baby retries again and again till he gets the goal and continue to go farther. This is also the aim of a reinforcement learning system: trials-false till it can maximize its reward and continue to develop further. From the example of baby, we can model the reinforcement learning process like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*vE_50zQ3OaS6YO0_d9g7Yw.png" /></figure><p>This process includes:</p><ul><li>Agent: like a baby, the agent will give out the action to the environment and then observe the state from the environment and receive the reward for its action.</li><li>Environment: where the agent interacts with and return the reward and state.</li><li>Action: like how the way baby choose to walk (short step or long step, step to right or step to left), this is agent’s decision to interact with the environment</li><li>Reward: a result the agent receives from Environment, this result may be negative or positive.</li><li>State: the agent will observe the state of it after interacting with the environment, just like a baby observe his position whether it is still far from his parents.</li></ul><p>But other than agent and the environment, we can identify four main sub elements of RL.</p><ul><li>Policy: a core of agent that itself is sufficient to determine the behavior, mapping the states of the environment to actions to be taken when in those states.</li><li>Reward: On each time step, the environment sends to the agent a single number called reward. The agent’s objective is to maximize the total reward it receives in long run. Thus, the reward signal defines what are the good and the bad signals for agent.</li><li>Value Function: specifies the value of a state is the total amount of reward an agent can expect to accumulate over the future, starting from that state.</li><li>Model of Environment: this mimics the behavior of the environment, that allows inferences to be made about how the environment will behave.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*Cx4oux1srcS2gxCOJxI8KA.png" /><figcaption><strong><em>Playing game requires human a lot of skills and a keen reflex to deal with situation and give out a decision. But now Reinforcement Learning AI can do that in DOTA games in 2018. Source: Two Minute Paper</em></strong></figcaption></figure><h3><strong>Reinforcement Taxonomies</strong></h3><p>Algorithms of reinforcement learning is divided into two groups: Model-Free and Model-Based.</p><ul><li>Model-based RL uses experience to construct an internal model of the transitions and immediate outcomes in the environment. Appropriate actions are then chosen by searching or planning in this world model.</li><li>Model-free RL uses experience to learn directly one or both of two simpler quantities (state/ action values or policies) which can achieve the same optimal behavior but without estimation or use of a world model. Given a policy, a state has a value, defined in terms of the future utility that is expected to accrue starting from that state.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*BjdNEQ465qgTBpyM_1X9WQ.png" /><figcaption><strong>Taxonomy of reinforcement</strong></figcaption></figure><p>The picture above presents the summary of RL algorithms taxonomy. In the model-free side we have two type of algorithms are Policy Optimization (PO) and Q-Learning. Some algorithms of the first are Policy Gradient, Advanced-Actor-Critic (A2C), Asynchronous Advanced Actor-Critic (A3C), Proximal Policy Optimization (PPO) and Trust Region Policy Optimization (TRPO). With the latter, we have Deep Q-Learning (Q-Learning with Deep Learning) and some variants of DQN. However, we also have three algorithms which are the interference of PO and Q-Learning are Deep Deterministic Policy Gradient (DDPG), Soft Actor-Critic (SAC) and Twin Delay DDPG (TD3). About the Model-based RL, we now have some model from Deep Mind such as AlphaZero and some ideal model such as World Model (based on Variance Auto Encoder), Imagination-Augmented Agents (I2A, using LTSM with encoder)…, and more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*8s6xHJX39Io-bmlG3P3cSQ.png" /><figcaption><strong><em>Alpha Zero — An Reinforcement Learning Product of Deep Mind — which defeat not only professional chess players but also the best AI at current to become a new king of games</em></strong></figcaption></figure><p><em>Useful resources:</em></p><p><a href="https://www.freecodecamp.org/news/an-introduction-to-reinforcement-learning-4339519de419/">An introduction to Reinforcement Learning</a></p><p><a href="https://neurondai.medium.com/reinforcement-learning-apply-ai-in-open-environment-d84d150a9ef2">Our old blog post about Reinforcement Learning</a></p><p>Read original and latest article at:</p><p><a href="https://www.neurond.com/blog/reinforcement-learning-based-recommendation-system-part-2">https://www.neurond.com/blog/reinforcement-learning-based-recommendation-system-part-2</a></p><p>NeurondAI<em> </em>is a transformation business. Contact us at:</p><p><em>Website</em>: <a href="https://www.neurond.com/">https://www.neurond.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92d153ae71c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What are the secret ingredients of Pinterest’s fashion recommendations? — Part 2]]></title>
            <link>https://neurondai.medium.com/what-are-the-secret-ingredients-of-pinterests-fashion-recommendations-part-2-6715213f1713?source=rss-25cde322085b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6715213f1713</guid>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[recommender-systems]]></category>
            <category><![CDATA[neurond]]></category>
            <category><![CDATA[complete-the-look]]></category>
            <dc:creator><![CDATA[Neurond AI]]></dc:creator>
            <pubDate>Mon, 19 Apr 2021 07:51:28 GMT</pubDate>
            <atom:updated>2022-04-07T07:16:33.863Z</atom:updated>
            <content:encoded><![CDATA[<h3>What are the secret ingredients of Pinterest’s fashion recommendations? — Part 2</h3><h4>An effort of reimplementing Pinterest’s recommender system</h4><h3>Overview</h3><p>In my last post about Complete The Look, I tried to explain what Pinterest did with their fashion recommender system. If you did not see this post, you could follow this link to get the main ideas to accomplish this task.</p><p>Complete The Look is a promising approach in the attempt to overcome the limitation of traditional fashion recommender systems. The old-fashioned systems often use images of products on a plain white background, whereas what the customers want to see is the way these products complement each other in daily scenes such as in street photos, travel lookbooks, and selfies.</p><p>This challenge makes Pinterest seek a solution to measure the compatibility between the products and the scenes, which is the core idea of Complete The Look.</p><p>When reaching the end of this tutorial, I hope you could understand:</p><ul><li>How the Complete The Look dataset is organized and processed</li><li>How to reimplement this recommender system</li></ul><p>The original paper could be found on <a href="https://arxiv.org/abs/1812.01748">Arxiv</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*99v613-xUVCXcFGzuKY5uQ.png" /><figcaption>The idea of Complete The Look task</figcaption></figure><h3>Dataset Explanation</h3><p>Before diving into the system, let’s explore the data.</p><p>Currently, there is no available dataset on the Internet for Complete The Look task. Pinterest team used the dataset of the similar task called Shop The Look to implement the system. We could find the dataset from this <a href="https://github.com/kang205/STL-Dataset">Github repository</a>.</p><p>There are lots of things to talk about this dataset, but I will focus on important points.</p><p>We can see several JSON files on the repository. The two files <em>fashion-cat.json</em> and <em>fashion.json </em>contain all we need<em>.</em> The product signatures and its categories are in fashion-cat.json, and fashion.json give the signatures of the scene-product pair.</p><p>Later, we will mentioned to category images, in fact, these images are the product image in the scene-product pair.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*VHAB6o_uufF5VMBMmPf80g.png" /><figcaption>Example of a scene-product image pair</figcaption></figure><p>To generate a dataset for Complete The Look, the authors suggest to crop the scene images so that they could exclude the correct products.</p><p>For the sake of convenience, I already processed the data and publish it <a href="https://trongthect-my.sharepoint.com/:f:/g/personal/tai_phung_orientsoftware_com/Eu6U3fXCYsxCmdwVSA3Qc6cBYiPsGv0rTmbDVD_Hsg7L8g?e=zjztaV">here</a>. You just need to download this. The dataset I published is a set of scene-positive image-negative image triples, which is ready for the training in the next part.</p><h3>Fashion Recommender System</h3><p>Complete The Look requires two inputs from users.</p><p>First, we should provide the scene image, in which we appear wearing some items that need to find other products to complement them. These images could be anything we posted on social networks. Next, the category is important for the system to know which products meet our needs. The most common categories are shirt, pants, and shoes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wLSsOBpDAzlFL7pmyct0uA.png" /><figcaption>Fashion Recommender System with Complete The Look</figcaption></figure><p>The recommender system a two major parts. The Style Embedding is a neural network that has the responsibility to measure how well each product in the category could go with the scene image.</p><p>Based on the compatibility distance given by the Style Embedding, the Product Ranking part arrange the products in ascending order. The recommend products are on top of this ranking.</p><h3>Style Embedding</h3><p>Style Embedding is a neural network that try to learn a good way to represent the scene and the products in the same space. Pinterest get image features from ResNet50 intermediate layers, then pass these features to some feed forward networks. The intermediate layers I chose are <em>avg_pool</em> and <em>conv4_block6_out.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UH1OIFqzbSRGAEcm7sFQOA.png" /><figcaption>Style Embedding</figcaption></figure><p>This is how I get the features from ResNet50. The features should not be trainable.</p><pre>class StyleEmbedding(object):<br>    def __init__(self):<br>        self._num_crop = 4<br>        self.model = keras.applications.ResNet50(weights=&#39;imagenet&#39;, input_shape=(224, 224, 3))<br>        self.model.trainable = False<br>        self.avg_pool = self.model.get_layer(&#39;avg_pool&#39;).output<br>        self.conv4_6 = self.model.get_layer(&#39;conv4_block6_out&#39;).output</pre><p>Based on the original paper, we may need at least 3 new feed forward networks.</p><pre>class StyleEmbedding(object):</pre><pre># code</pre><pre>	def build_g_model(self):<br>	        x = keras.layers.Dense(units=512)(self.avg_pool)<br>	        x = keras.layers.BatchNormalization()(x)<br>	        x = keras.layers.Activation(&#39;relu&#39;)(x)<br>	        x = keras.layers.Dropout(rate=0.1)(x)<br>	        x = keras.layers.Dense(units=128)(x)<br>	        x = keras.layers.Lambda(lambda x: tf.math.l2_normalize(x,axis=-1))(x)<br>	        <br>	        return keras.Model(inputs=self.model.inputs, outputs=x, name=&#39;g_model&#39;)<br>	<br>	    def build_l_model(self):      <br>	        x = keras.layers.Flatten()(self.conv4_6)<br>	        x = keras.layers.Dense(units=256)(x)<br>	        x = keras.layers.BatchNormalization()(x)<br>	        x = keras.layers.Activation(&#39;relu&#39;)(x)<br>	        x = keras.layers.Dropout(rate=0.1)(x)<br>	        x = keras.layers.Dense(units=128)(x)<br>	        x = keras.layers.Lambda(lambda x: tf.math.l2_normalize(x,axis=-1))(x)<br>	        return keras.Model(inputs=self.model.inputs, outputs=x, name=&#39;local_model_1&#39;)<br>	<br>	    def build_lh_model(self):<br>	        x = keras.layers.Flatten()(self.conv4_6)<br>	        x = keras.layers.Dense(units=128)(x)<br>	        x = keras.layers.BatchNormalization()(x)<br>	        x = keras.layers.Activation(&#39;relu&#39;)(x)<br>	        x = keras.layers.Dropout(rate=0.1)(x)<br>	        x = keras.layers.Dense(units=128)(x)<br>	        x = keras.layers.Lambda(lambda x: tf.math.l2_normalize(x,axis=-1))(x)<br>	        return keras.Model(inputs=self.model.inputs, outputs=x, name=&#39;local_model_2&#39;)</pre><p>To measure the compatibility, there are several types of distances we need to care about: global distance, local distance and hybrid distance.</p><h3>Global Distance</h3><p>The global distance is simply the difference between the scene image and the product image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KBt77yo8ywhdv2zyspysog.png" /></figure><p>To compute this distance, we need to implement the global distance layer.</p><pre>class GlobalDistanceLayer(keras.layers.Layer):<br>    def __init__(self):<br>        super(GlobalDistanceLayer,self).__init__()<br>      <br>    def call(self, inputs):<br>        n = tf.norm(inputs[0]-inputs[1], axis=-1)<br>        n = tf.math.square(n)<br>        return n</pre><h3>Local Distance</h3><p>The local distance is an attention-based metric to measure the compatibility.</p><p>We will the cropping layer to crop the scene into some local regions.</p><pre>class CroppingLayer(keras.layers.Layer):<br>    def __init__(self, offset_height, offset_width, target_height, target_width, size=[224,224]):<br>        super(CroppingLayer,self).__init__()<br>        self.trainable = False<br>        self._offset_height = offset_height<br>        self._offset_width = offset_width<br>        self._target_height = target_height<br>        self._target_width = target_width<br>        self._size = size</pre><pre>    def call(self, inputs):<br>        cropped = tf.image.crop_to_bounding_box(inputs, offset_height=self._offset_height, offset_width=self._offset_width, target_height=self._target_height, target_width=self._target_height)<br>        return tf.image.resize(cropped, size=self._size)</pre><p>The attention weights help the system focus on where the items is likely to appear. These weights are computed by computing the difference of the category image and each region of the scene image. Then we need to scale the weights to range (0,1)(0,1) by the softmax function.</p><p>The local distance is the weighted sum of the difference between the product image and each region of the scene.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kWqHsHl5uh04PDiWLY7YNw.png" /></figure><pre>class AttentionLayer(keras.layers.Layer):<br>    def __init__(self):<br>        super(AttentionLayer,self).__init__()<br><br>    def call(self, inputs):<br>        a = tf.math.reduce_euclidean_norm(inputs[0]-inputs[1][tf.newaxis],axis=-1)<br>        a = tf.math.square(a)<br>        a = tf.nn.softmax(a,axis=0)<br>        return a<br><br>class LocalDistanceLayer(keras.layers.Layer):<br>    def __init__(self):<br>        super(LocalDistanceLayer,self).__init__()<br>    <br>    def call(self, inputs):<br>        d = tf.norm(inputs[0]-inputs[1][tf.newaxis],axis=-1)<br>        d = tf.math.square(d)<br>        d = tf.math.multiply(d,inputs[2])<br>        d = tf.math.reduce_sum(d,axis=0)<br>    <br>        return d</pre><p>Here are some results of our attention weights.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*OHz1MLJ6coZqqKu-v6AZfw.png" /><figcaption>Visualization of attention</figcaption></figure><h3>Hybrid Distance</h3><p>The compatibility should depend on how the products could with the local regions and the entire scene. Therefore, the hybrid distance is the mean of the global distance and the local distance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mdCTrACwTQ0gR7zjXPpYrQ.png" /></figure><p>Here is the implementation of the hybrid distance layer.</p><pre>class HybridDistanceLayer(keras.layers.Layer):<br>    def __init__(self,name=None):<br>        super(HybridDistanceLayer,self).__init__(name=name)</pre><pre>    def call(self,inputs):<br>        d = 0.5*(inputs[0]+inputs[1])<br>        return d</pre><p>It’s time to build the final model.</p><pre>class StyleEmbedding(object):<br>	def __call__(self):<br>	        scene_inputs = keras.Input((224,224,3),name=&#39;scene_input&#39;)<br>	        pl_inputs = keras.Input((224,224,3),name=&#39;positive_input&#39;)<br>	        mn_inputs = keras.Input((224,224,3),name=&#39;negative_input&#39;)<br>	        <br>	       <br>	        g_model = self.build_g_model()<br>	        lh_model = self.build_lh_model()<br>	        l_model = self.build_l_model()<br>	<br>	        fs = g_model(scene_inputs)<br>	        fpp = g_model(pl_inputs)<br>	        fpm = g_model(mn_inputs)<br>	        c = lh_model(pl_inputs)<br>	       <br>	   <br>	        regions = []<br>	        step = 224//self._num_crop<br>	        for i in range(self._num_crop):<br>	            for j in range(self._num_crop):<br>	                regions.append(CroppingLayer(offset_height=i*step, offset_width=j*step, target_height=step, target_width=step)(scene_inputs))<br>	        <br>	        fis = []<br>	        fihs = []<br>	        for i in range(self._num_crop*self._num_crop):<br>	            fis.append(l_model(regions[i]))<br>	            fihs.append(lh_model(regions[i]))<br>	        fis = tf.stack(fis)<br>	        fihs = tf.stack(fihs)<br>	        <br>	        a = AttentionLayer()([fihs,c])<br>	        pld = LocalDistanceLayer()([fis,fpp,a])<br>	        mld = LocalDistanceLayer()([fis,fpm,a])<br>	        pgd = GlobalDistanceLayer()([fs,fpp])<br>	        mgd = GlobalDistanceLayer()([fs,fpm])<br>	        pd = HybridDistanceLayer(name=&#39;y_positive&#39;)([pgd,pld])<br>	        md = HybridDistanceLayer(name=&#39;y_negative&#39;)([mgd,mld])<br>	        outputs = tf.stack([pd,md])<br>	   <br>	        return keras.Model(inputs=[scene_inputs,pl_inputs,mn_inputs], outputs=outputs)</pre><h3>Triplet loss</h3><p>Complete The Look uses the triplet loss to train the model. Triplet loss is a common loss function in machine learning that takes 3 inputs. These are the correct product, the compatible product, and the incompatible product.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ulVfLjOUSsGw7SMBIfMS-w.png" /></figure><pre>@tf.function<br>def compat_loss(y_true,y_pred):<br>    x = y_pred[0] - y_pred[1] + 0.2<br>    x = tf.math.maximum(x,0.0)<br>    x = tf.math.reduce_sum(x)<br>    return x</pre><h3>Product Ranking</h3><p>After achieve the compatibility distance, product ranking show us which product is the most compatible to the scene.</p><p>Here is how I try to implement the product ranking.</p><pre>index = 76 # image index in the test set<br><br>scene = data[&#39;scene&#39;][index].numpy()<br>positive = data[&#39;positive&#39;][index].numpy()<br>negative = data[&#39;negative&#39;][index].numpy()<br>category_label = data[&#39;category&#39;][index]<br>scene_input = keras.applications.resnet.preprocess_input(scene.reshape((1,224,224,3)))<br>positive_input = keras.applications.resnet.preprocess_input(positive.reshape((1,224,224,3)))<br>negative_input = keras.applications.resnet.preprocess_input(negative.reshape((1,224,224,3)))<br><br>sign_idx = np.where(np.array(data[&#39;category&#39;]) == category_label)[0]<br>sign = np.unique(np.array(data[&#39;positive_sign&#39;])[sign_idx])<br>product_idx = []<br><br>for i in range(len(sign)):<br>    product_idx.append(np.where(np.array(data[&#39;positive_sign&#39;])==sign[i])[0][0])<br>product_idx = np.array(product_idx)<br>products =  np.array(data[&#39;positive&#39;])[product_idx]<br>product_inputs = keras.applications.resnet.preprocess_input(products)<br>scene_inputs = np.array(tf.repeat(scene_input,repeats=len(product_idx),axis=0))<br>negative_inputs = np.array(tf.repeat(negative_input,repeats=len(product_idx),axis=0))<br>pred = distance_model.predict([scene_inputs,product_inputs,negative_inputs],batch_size=1)<br><br>top_idx = np.argsort(pred)</pre><p>Let&#39;s see how well our recommender system is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*T50zTJxCd9uM0T8yQ4IAQw.png" /><figcaption>The scene image and the ground truth</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*AkVj86jXGemV5UsggYVURg.png" /><figcaption>The recommended products</figcaption></figure><h3>Conclusion</h3><p>Finally, we could reach the end of this article. Hope that my efforts could help you understand how the fashion recommender system work. Fashion recommendation is still a challenging task because of its subjective nature. We don’t have the any exact quantitative metric to measure how items could match each other. Pinterest team just showed us a very interesting way by using attention weights to solve this problem. However, the game is not over yet. Probably, one day, the final winner is you.</p><p>Read original and latest article at:</p><p><a href="https://www.neurond.com/blog/secret-ingredients-of-pinterests-recommendations-part-2">https://www.neurond.com/blog/secret-ingredients-of-pinterests-recommendations-part-2</a></p><p>NeurondAI<em> </em>is a transformation business. Contact us at:</p><p><em>Website</em>: <a href="https://www.neurond.com/">https://www.neurond.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6715213f1713" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What are the secret ingredients of Pinterest’s fashion recommendations? — Part 1]]></title>
            <link>https://neurondai.medium.com/what-are-the-secret-ingredients-of-pinterests-fashion-recommendations-part-1-2f73c80b37ed?source=rss-25cde322085b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f73c80b37ed</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-for-fashion]]></category>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[complete-the-look]]></category>
            <dc:creator><![CDATA[Neurond AI]]></dc:creator>
            <pubDate>Mon, 05 Apr 2021 10:03:06 GMT</pubDate>
            <atom:updated>2022-04-07T07:16:54.026Z</atom:updated>
            <content:encoded><![CDATA[<h3>What are the secret ingredients of Pinterest’s fashion recommendations? — Part 1</h3><h4>An effort to explain the main idea of Complete The Look.</h4><h3>Overview</h3><p>Pinterest’s Engineering team has recently posted their research in fashion recommendation, which capture my attention because of its practicality. In this <a href="https://medium.com/pinterest-engineering/introducing-complete-the-look-a-scene-based-complementary-recommendation-system-eb891c3fe88">post</a>, they showed a new task in fashion recommendation called Complete The Look. Attempting to explore this task is great for any machine learning practitioner. There are some ambiguous terms that could make readers misunderstand. I will try to explain these terms in Part 1 and show how I reimplement the fashion recommender system in the next part.</p><p>When reaching the end of this tutorial, I hope you could understand:</p><ul><li>What is Complete The Look</li><li>What is Style Embedding Architecture</li><li>What is the compatibility distance</li></ul><p>You can read the original paper <a href="https://arxiv.org/pdf/1812.01748.pdf">here</a>.</p><h3>What is Complete The Look?</h3><p>The first thing I want to notice is that Complete The Look is not a method, this is the new efficient approach for fashion recommendation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*99v613-xUVCXcFGzuKY5uQ.png" /><figcaption>Image by author. Illustration of how Complete The Look work</figcaption></figure><p>According to Pinterest team, we have the definition of Complete The Look as follows:</p><blockquote>Given a scene image and a product image, compute a quantitative measure of distance such that the distance measure reflects visual complementarity between the scene and the product. Such a distance measure can be used either by a binary classifier or by a re-ranker</blockquote><p>To say few words for this definition, we should understand Complete The Look is a task that find the compatible products with a scene rather than among products. This is an intuitive reason why we called this task “Complete The Look”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*Zwam9_Ig4bzBtahE2MkZWw.png" /><figcaption>Image by author. Does this product “complete” the scene?</figcaption></figure><p>Traditional approaches have a big disadvantage is that they only compare the product images in the store. These products are often on a blank background so that they do not show us how the products look like in real life. Moreover, it could be a hug waste if we can not take advantage of the images that users post on social networks. Complete The Look is the task Pinterest proposed to resolve this problem.</p><h3>Style Embedding</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UH1OIFqzbSRGAEcm7sFQOA.png" /><figcaption>Image by author. Style Embedding</figcaption></figure><p>To measure the compatibility between products and scenes, Pinterest proposed a new neural network call Style Embedding. After the training, Style Embedding will us the unified representation of scene and products.</p><p>Style Embedding uses the features from intermediate layers of ResNet50. The reason why we should use ResNet50 is said to be transferable and strong at capturing local features.</p><p>ResNet50 features are passed through a feed forward network to map the scene and the products to the same space. There are several things we need to know the embedding. These are the entire scene image, the local regions of the scene and the product image.</p><p><em>There are 3 types neural networks that give us 3 types of embedding. They have similar as the image above but with different hyperparameters.</em></p><h3>Compatibility Distance</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*5FxUSz7Q0QHwl_ugMz-ztQ.png" /><figcaption>How attention mechanism works. Source: <a href="https://arxiv.org/pdf/1812.01748.pdf">https://arxiv.org/pdf/1812.01748.pdf</a></figcaption></figure><p>After achieving the visual embedding of images, we should compute the compatibility distance.</p><p>There are some types of distance we need to consider:</p><ul><li>Global distance</li><li>Local distance</li><li>Hybrid distance</li></ul><h4>Global Distance</h4><p>First, we need to see how the product is compatible with the scene globally. This is similar to put the two images side by side and then give them a glimpse. The global distance is simply the difference between the scene image and the product image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KBt77yo8ywhdv2zyspysog.png" /><figcaption>Image by author. Global distance</figcaption></figure><p>Here s, p are denoted for scene and product images. <strong>fs</strong>​, <strong>fp</strong>​ are the embedding of the scene and the product.</p><h4>Local Distance</h4><p>After see two images globally, we should look at the detail.</p><p>The local distance is an attention-based metric to measure the compatibility.</p><p>We will the cropping layer to crop the scene into some local regions.</p><p>The attention weights help the system focus on where the items is likely to appear. These weights are computed by computing the difference of the category image and each region of the scene image. Then we need to scale the weights to range (0,1) by the softmax function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ywM-w4TT1DMhsr42zCNcLQ.png" /><figcaption>Image by author. Softmax</figcaption></figure><p>One thing we should notice is that <em>ê</em> is the embedding the correct product image.</p><p>The local distance is the weighted sum of the difference between the product image and each region of the scene.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kWqHsHl5uh04PDiWLY7YNw.png" /><figcaption>Image by author. Local distance</figcaption></figure><h4>Hybrid Distance</h4><p>The compatibility should depend on how the products could with the local regions and the entire scene. Therefore, the hybrid distance is the mean of the global distance and the local distance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mdCTrACwTQ0gR7zjXPpYrQ.png" /><figcaption>Image by author. Hybrid distance</figcaption></figure><h4>Triplet Loss</h4><p>Pinterest use a triplet loss to train the Style Embedding neural networks. This loss is described as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ulVfLjOUSsGw7SMBIfMS-w.png" /><figcaption>Image by author. Triplet loss</figcaption></figure><p>To train the Style Embedding model, we need a triplet of scene image, positive image, and negative image. Positive image means the compatible product with the scene, whereas negative image is the incompatible product. The training process tries to minimize the distance between the scene and the positive product, and move the negative image far from the scene. The margin <em>α</em> let us know the gap between the positive distance and the negative distance. This loss should not be less than zero.</p><h3>Conclusion</h3><p>This is all for the first part. I hope that you understood basically how the Pinterest solve the problem of Complete The Look. Fashion recommendation is an active topic now, and this is a pie for only one person. The playground is still waiting for more efficient methods. Complete The Look is the new attempt of Pinterest. In the next part, I will show you how to implement the fashion recommender of Pinterest.</p><p>Read original and latest article at:</p><p><a href="https://www.neurond.com/blog/secret-ingredients-of-pinterests-recommendations-part-1">https://www.neurond.com/blog/secret-ingredients-of-pinterests-recommendations-part-1</a></p><p>NeurondAI<em> </em>is a transformation business. Contact us at:</p><p><em>Website</em>: <a href="https://www.neurond.com/">https://www.neurond.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f73c80b37ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>