Name: Towards AI Legal Name: Towards AI, Inc. Description: Towards AI is the world's leading artificial intelligence (AI) and technology publication. Read by thought-leaders and decision-makers around the world. Phone Number: +1-650-246-9381 Email: pub@towardsai.net
228 Park Avenue South New York, NY 10003 United States
Website: Publisher: https://towardsai.net/#publisher Diversity Policy: https://towardsai.net/about Ethics Policy: https://towardsai.net/about Masthead: https://towardsai.net/about
Name: Towards AI Legal Name: Towards AI, Inc. Description: Towards AI is the world's leading artificial intelligence (AI) and technology publication. Founders: Roberto Iriondo, , Job Title: Co-founder and Advisor Works for: Towards AI, Inc. Follow Roberto: X, LinkedIn, GitHub, Google Scholar, Towards AI Profile, Medium, ML@CMU, FreeCodeCamp, Crunchbase, Bloomberg, Roberto Iriondo, Generative AI Lab, Generative AI Lab Denis Piffaretti, Job Title: Co-founder Works for: Towards AI, Inc. Louie Peters, Job Title: Co-founder Works for: Towards AI, Inc. Louis-François Bouchard, Job Title: Co-founder Works for: Towards AI, Inc. Cover:
Towards AI Cover
Logo:
Towards AI Logo
Areas Served: Worldwide Alternate Name: Towards AI, Inc. Alternate Name: Towards AI Co. Alternate Name: towards ai Alternate Name: towardsai Alternate Name: towards.ai Alternate Name: tai Alternate Name: toward ai Alternate Name: toward.ai Alternate Name: Towards AI, Inc. Alternate Name: towardsai.net Alternate Name: pub.towardsai.net
5 stars – based on 497 reviews

Frequently Used, Contextual References

TODO: Remember to copy unique IDs whenever it needs used. i.e., URL: 304b2e42315e

Resources

Take our 85+ lesson From Beginner to Advanced LLM Developer Certification: From choosing a project to deploying a working product this is the most comprehensive and practical LLM course out there!

Publication

From Vision to Sound: How Meta’s ImageBind is Bridging Modalities in AI
Latest   Machine Learning

From Vision to Sound: How Meta’s ImageBind is Bridging Modalities in AI

Last Updated on July 17, 2023 by Editorial Team

Author(s): Sriram Parthasarathy

Originally published on Towards AI.

Unleashing the Power of Combined Senses: How ImageBind could redefine AI Experiences

Combine an audio clip of a tractor and an image of a beach to generate a merged image where a tractor is driving on the seashore

Meta’s ImageBind is an open-source artificial intelligence model that can learn from many different kinds of information all at once, like images, sound, and movement. It creates a shared understanding of how different things are connected, like linking objects in a photo with the sounds they might make, their 3D shape, how warm or cold they are, and how they move. It can help machines to better understand information from the world around them and can be used in many different industries, like healthcare, finance, and manufacturing, to help solve problems and make tasks easier.

One example of ImageBind is using it to generate images from audio. For instance, if you have an audio recording of a rainforest, ImageBind can use the sounds to create an image that looks like what the rainforest might look like. Another example could be using ImageBind in the real estate industry to create virtual tours of properties. The model could use images, sound, and movement data to create an immersive experience that gives potential buyers a better understanding of the property.

What is ImageBind

ImageBind is an advanced technology that brings together six different types of data into one shared space. These types of data include visuals like images and videos, thermal information from infrared images, text, audio, depth details, and movements captured by an IMU sensor. IMUs are commonly found in devices like phones and smartwatches, and they help detect movements and activities. With ImageBind, all these diverse data types can be combined and understood together, providing a more comprehensive and holistic understanding of the world around us. This unique capability allows ImageBind to bridge the gap between different forms of information and enhance the potential applications of AI.

ImageBind equips machines with a holistic understanding that connects objects in a photo with how they will sound, their 3D shape, how warm or cold they are, and how they move. Source: https://arxiv.org/pdf/2305.05665.pdf

ImageBind is designed to create a shared representation space, or a single embedding, that connects different types of data together. For example, if ImageBind is given an image of a car and an audio recording of a car engine, it can use the shared representation space to connect the image with the sound of the car engine, even without explicitly being trained on paired data. This holistic understanding allows ImageBind to analyze many different forms of information together and generate new content from it, such as creating an image from audio or finding links between different types of data. This capability could potentially lead to new breakthroughs in areas such as content moderation, creative design, and multimodal search functions.

ImageBind in action

Let's see a few examples of using ImageBind in action.

1. Generate audio based on a specific image input

Pair images with corresponding audio to create a more immersive experience. For example, using AI tools like ImageBind, you can generate sound effects that match the image of a dog, such as barking or wagging tail. This adds depth and interactivity to visual content, making it more engaging and realistic for viewers. It allows for the creation of dynamic and captivating experiences that combine both visual and auditory elements seamlessly.

2. Generate an image based on a specific audio input

For example, by using ImageBind, you can create an image that is associated with the sound of a helicopter. The model analyzes the audio data and generates an image that represents or corresponds to the audio input. This capability allows for the exploration of audio-visual connections and provides a unique way to generate visual content based on different sounds.

3. Generate an image + audio based on a specific text input

Create an image and accompanying audio based on a given text input. For instance, if you provide a description of a train, ImageBind can generate a corresponding image of a train and even produce audio that resembles the sound of a train moving on the tracks. This multimodal capability allows ImageBind to bring together different modalities, such as text, images, and audio, providing a more immersive and realistic experience. So, if you were to input a text like “A train chugging through the countryside,” ImageBind can create an image of the steam train in action and generate audio that captures the distinct sounds of its engine and wheels on the tracks.

4. Generate a new merged image based on a specific audio + image input

Create a fresh combined image using a particular audio and image input. For example, you can use a recording of a dog barking and an image of a beach. ImageBind can merge these two inputs together, resulting in a new image that represents the combination of the audio and the beach picture. This innovative feature allows for the generation of unique visuals that are influenced by specific sounds, opening up creative possibilities and offering a novel way to explore the relationship between different forms of media.

Image-Content Binding: A Path to Learning a Single Embedding Space

People are good at learning new things with just a few examples. For example, we can read about an animal and then recognize it when we see it. We can also look at a picture of a car and imagine how it sounds. This is because a single image can bring together different senses and create a complete experience. In the field of AI, it can be challenging to learn from different types of information when we don’t have enough data that is paired together.

Different modalities occur naturally aligned in different data sources, for instance images+text and video+audio in web data, depth or thermal information with images, IMU data in videos captured with egocentric cam. Source: https://arxiv.org/pdf/2305.05665.pdf

However, ImageBind has found a way to overcome this challenge. It uses large-scale models that understand both images and text to create a shared space where different types of data can be combined. ImageBind demonstrates that when paired with images, various modalities can be effectively connected. For instance, ImageBind can associate audio and text even without them being presented together, enabling other models to comprehend new modalities without extensive training. The model enables a comprehensive understanding of content, facilitating communication and linkages between different modalities without requiring direct observation. This allows the model to learn visual features along with other types of information. This flexibility broadens the potential of AI models and opens doors to richer multimodal experiences.

Unlocking the Power of ImageBind: Enhanced Performance with Limited Training

ImageBind has shown remarkable performance in its ability to outperform previous models that were trained for individual modalities, such as audio or depth. For example, when compared to a specialist model for audio classification, ImageBind achieved approximately 40 percent higher accuracy in top-1 accuracy for few-shot classification tasks. Similarly, when compared to specialist models for depth classification, ImageBind achieved improved performance on zero-shot recognition tasks across different modalities.

ImageBind, can improve its performance even with very little training data. As it grows larger, it gains new abilities that were not present in smaller models. For example, it can recognize which sounds go well with specific images or estimate the depth of a scene just from a picture.

Vision model is the key for ImageBind. The performance of ImageBind improves when the image part of the model becomes stronger and more powerful. This means that larger vision models not only help with tasks related to images but also with tasks like classifying sounds.

Though only six types of information were used, additional modalities such as touch, speech, smell, and brain fMRI signals, which connect more senses, will allow for the development of more advanced AI models that are closely aligned with human experiences.

Potential use of this technology: Recreating crime scene

Imagine a detective investigating a suburban home burglary. Using ImageBind, a multimodal AI tool, the detective can recreate the entire crime scene in a video format. By analyzing images from security cameras, aligning them with corresponding audio recordings, and utilizing thermal and motion sensor data, multi-modal support can potentially generate a detailed video reenactment.

Detective collecting evidence from a crime scene. This could be pictures, audio, video and other modalities

This includes synchronized sounds, a realistic living room, and precise locations of individuals involved. The detective gains distinctive opportunities to animate static images by combining them with audio prompts.

Detective has a bulletin board with lot of pictures stapled together with a small map. On his right is a computer with a big monitor which shows a reconstructed image of the crime scene

For example, an image of an alarm clock with the sound of a rooster crowing can segment and animate the clock, while an audio prompt of an alarm sound can segment and animate the rooster. ImageBind empowers the detective to reconstruct the crime accurately, aiding in their investigative efforts and enhancing the efficiency of solving the case.

From Healthcare to Manufacturing: ImageBind’s Potential Applications in Different Sectors

Here are some examples of potential applications of this technology in other industries by making use of the Multimodal capabilities of ImageBind along with other technologies to provide comprehensive solutions.

1. Industry: Life Sciences

  • Potential application: Multimodal analysis of medical images and patient data
  • Example use case: Analyze various types of medical images and patient data, such as radiology images, electronic health records, and biosignal data. Use the information from these different modalities and provide a holistic understanding of the patient’s health status.
  • Pain point it solves: The traditional approach to medical imaging analysis often requires manual interpretation of separate modalities, leading to potential errors or overlooking critical information. Multi-modal input + analysis could address this pain point by enabling a holistic analysis that combines multiple modalities, improving accuracy and supporting better decision-making in healthcare.

2. Industry: Finance

  • Potential application: Fraud detection
  • Example use case: Analyzing data from multiple modalities, including transaction history, audio from customer calls, and video footage from surveillance cameras, to identify potentially fraudulent activity.
  • Pain point it solves: Traditional fraud detection methods can be time-consuming and prone to errors.

3. Industry: Manufacturing

  • Potential application: Quality control
  • Example use case: By integrating visual data with other modalities, such as sensor data and text descriptions, ImageBind could analyze images of manufactured products in real time. Multi-modal input + analysis could identify defects, anomalies, or deviations from the desired specifications. For example, it could assess the surface quality of a product, detect imperfections, and classify them based on severity.
  • Pain point it solves: Traditional quality control methods in manufacturing often rely on manual inspections or limited automation, which can be time-consuming, prone to errors, and subjective. Multi-modal input + analysis could address these pain points by leveraging its ability to combine multiple modalities, resulting in more accurate and efficient defect detection processes, reducing waste, and improving overall product quality.

4. Industry: Oil and Gas

  • Potential application: Asset Inspection and Maintenance
  • Example use case: Analyzing data from multiple sensors, such as vibration sensors and thermal cameras, to identify potential equipment failures before they occur.
  • Pain point it solves: Equipment failures can be costly and cause downtime, leading to decreased productivity and increased maintenance costs. Traditional methods often involve manual inspections or limited use of data, leading to potential risks, costly downtime, and suboptimal maintenance decisions.

5. Industry: Real estate

  • Potential application: Property Maintenance and Management
  • Example use case: By integrating visual data, textual descriptions, and additional sensor data, Multi modal input + analysis could facilitate the assessment and monitoring of properties to highlight specific assets that need attention.
  • Pain point it solves: Property maintenance and management can be complex, involving the manual inspection of various aspects and keeping track of maintenance activities.

Conclusion

In conclusion, ImageBind is a groundbreaking AI model that brings together different types of data to create a comprehensive understanding of content. It has the ability to connect images, text, audio, depth, thermal, and motion data, enabling machines to learn and analyze information holistically. ImageBind’s performance surpasses specialist models and demonstrates its potential in various industries. With its unique capabilities, ImageBind opens doors to innovative applications in fields such as healthcare, finance, manufacturing, oil and gas, real estate, and automobiles. As AI continues to advance, ImageBind paves the way for machines to learn from multiple modalities just as humans do, leading to enhanced creativity, problem-solving, and more immersive experiences.

Join thousands of data leaders on the AI newsletter. Join over 80,000 subscribers and keep up to date with the latest developments in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming a sponsor.

Published via Towards AI

Feedback ↓

Sign Up for the Course
`; } else { console.error('Element with id="subscribe" not found within the page with class "home".'); } } }); // Remove duplicate text from articles /* Backup: 09/11/24 function removeDuplicateText() { const elements = document.querySelectorAll('h1, h2, h3, h4, h5, strong'); // Select the desired elements const seenTexts = new Set(); // A set to keep track of seen texts const tagCounters = {}; // Object to track instances of each tag elements.forEach(el => { const tagName = el.tagName.toLowerCase(); // Get the tag name (e.g., 'h1', 'h2', etc.) // Initialize a counter for each tag if not already done if (!tagCounters[tagName]) { tagCounters[tagName] = 0; } // Only process the first 10 elements of each tag type if (tagCounters[tagName] >= 2) { return; // Skip if the number of elements exceeds 10 } const text = el.textContent.trim(); // Get the text content const words = text.split(/\s+/); // Split the text into words if (words.length >= 4) { // Ensure at least 4 words const significantPart = words.slice(0, 5).join(' '); // Get first 5 words for matching // Check if the text (not the tag) has been seen before if (seenTexts.has(significantPart)) { // console.log('Duplicate found, removing:', el); // Log duplicate el.remove(); // Remove duplicate element } else { seenTexts.add(significantPart); // Add the text to the set } } tagCounters[tagName]++; // Increment the counter for this tag }); } removeDuplicateText(); */ // Remove duplicate text from articles function removeDuplicateText() { const elements = document.querySelectorAll('h1, h2, h3, h4, h5, strong'); // Select the desired elements const seenTexts = new Set(); // A set to keep track of seen texts const tagCounters = {}; // Object to track instances of each tag // List of classes to be excluded const excludedClasses = ['medium-author', 'post-widget-title']; elements.forEach(el => { // Skip elements with any of the excluded classes if (excludedClasses.some(cls => el.classList.contains(cls))) { return; // Skip this element if it has any of the excluded classes } const tagName = el.tagName.toLowerCase(); // Get the tag name (e.g., 'h1', 'h2', etc.) // Initialize a counter for each tag if not already done if (!tagCounters[tagName]) { tagCounters[tagName] = 0; } // Only process the first 10 elements of each tag type if (tagCounters[tagName] >= 10) { return; // Skip if the number of elements exceeds 10 } const text = el.textContent.trim(); // Get the text content const words = text.split(/\s+/); // Split the text into words if (words.length >= 4) { // Ensure at least 4 words const significantPart = words.slice(0, 5).join(' '); // Get first 5 words for matching // Check if the text (not the tag) has been seen before if (seenTexts.has(significantPart)) { // console.log('Duplicate found, removing:', el); // Log duplicate el.remove(); // Remove duplicate element } else { seenTexts.add(significantPart); // Add the text to the set } } tagCounters[tagName]++; // Increment the counter for this tag }); } removeDuplicateText(); //Remove unnecessary text in blog excerpts document.querySelectorAll('.blog p').forEach(function(paragraph) { // Replace the unwanted text pattern for each paragraph paragraph.innerHTML = paragraph.innerHTML .replace(/Author\(s\): [\w\s]+ Originally published on Towards AI\.?/g, '') // Removes 'Author(s): XYZ Originally published on Towards AI' .replace(/This member-only story is on us\. Upgrade to access all of Medium\./g, ''); // Removes 'This member-only story...' }); //Load ionic icons and cache them if ('localStorage' in window && window['localStorage'] !== null) { const cssLink = 'https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css'; const storedCss = localStorage.getItem('ionicons'); if (storedCss) { loadCSS(storedCss); } else { fetch(cssLink).then(response => response.text()).then(css => { localStorage.setItem('ionicons', css); loadCSS(css); }); } } function loadCSS(css) { const style = document.createElement('style'); style.innerHTML = css; document.head.appendChild(style); } //Remove elements from imported content automatically function removeStrongFromHeadings() { const elements = document.querySelectorAll('h1, h2, h3, h4, h5, h6, span'); elements.forEach(el => { const strongTags = el.querySelectorAll('strong'); strongTags.forEach(strongTag => { while (strongTag.firstChild) { strongTag.parentNode.insertBefore(strongTag.firstChild, strongTag); } strongTag.remove(); }); }); } removeStrongFromHeadings(); "use strict"; window.onload = () => { /* //This is an object for each category of subjects and in that there are kewords and link to the keywods let keywordsAndLinks = { //you can add more categories and define their keywords and add a link ds: { keywords: [ //you can add more keywords here they are detected and replaced with achor tag automatically 'data science', 'Data science', 'Data Science', 'data Science', 'DATA SCIENCE', ], //we will replace the linktext with the keyword later on in the code //you can easily change links for each category here //(include class="ml-link" and linktext) link: 'linktext', }, ml: { keywords: [ //Add more keywords 'machine learning', 'Machine learning', 'Machine Learning', 'machine Learning', 'MACHINE LEARNING', ], //Change your article link (include class="ml-link" and linktext) link: 'linktext', }, ai: { keywords: [ 'artificial intelligence', 'Artificial intelligence', 'Artificial Intelligence', 'artificial Intelligence', 'ARTIFICIAL INTELLIGENCE', ], //Change your article link (include class="ml-link" and linktext) link: 'linktext', }, nl: { keywords: [ 'NLP', 'nlp', 'natural language processing', 'Natural Language Processing', 'NATURAL LANGUAGE PROCESSING', ], //Change your article link (include class="ml-link" and linktext) link: 'linktext', }, des: { keywords: [ 'data engineering services', 'Data Engineering Services', 'DATA ENGINEERING SERVICES', ], //Change your article link (include class="ml-link" and linktext) link: 'linktext', }, td: { keywords: [ 'training data', 'Training Data', 'training Data', 'TRAINING DATA', ], //Change your article link (include class="ml-link" and linktext) link: 'linktext', }, ias: { keywords: [ 'image annotation services', 'Image annotation services', 'image Annotation services', 'image annotation Services', 'Image Annotation Services', 'IMAGE ANNOTATION SERVICES', ], //Change your article link (include class="ml-link" and linktext) link: 'linktext', }, l: { keywords: [ 'labeling', 'labelling', ], //Change your article link (include class="ml-link" and linktext) link: 'linktext', }, pbp: { keywords: [ 'previous blog posts', 'previous blog post', 'latest', ], //Change your article link (include class="ml-link" and linktext) link: 'linktext', }, mlc: { keywords: [ 'machine learning course', 'machine learning class', ], //Change your article link (include class="ml-link" and linktext) link: 'linktext', }, }; //Articles to skip let articleIdsToSkip = ['post-2651', 'post-3414', 'post-3540']; //keyword with its related achortag is recieved here along with article id function searchAndReplace(keyword, anchorTag, articleId) { //selects the h3 h4 and p tags that are inside of the article let content = document.querySelector(`#${articleId} .entry-content`); //replaces the "linktext" in achor tag with the keyword that will be searched and replaced let newLink = anchorTag.replace('linktext', keyword); //regular expression to search keyword var re = new RegExp('(' + keyword + ')', 'g'); //this replaces the keywords in h3 h4 and p tags content with achor tag content.innerHTML = content.innerHTML.replace(re, newLink); } function articleFilter(keyword, anchorTag) { //gets all the articles var articles = document.querySelectorAll('article'); //if its zero or less then there are no articles if (articles.length > 0) { for (let x = 0; x < articles.length; x++) { //articles to skip is an array in which there are ids of articles which should not get effected //if the current article's id is also in that array then do not call search and replace with its data if (!articleIdsToSkip.includes(articles[x].id)) { //search and replace is called on articles which should get effected searchAndReplace(keyword, anchorTag, articles[x].id, key); } else { console.log( `Cannot replace the keywords in article with id ${articles[x].id}` ); } } } else { console.log('No articles found.'); } } let key; //not part of script, added for (key in keywordsAndLinks) { //key is the object in keywords and links object i.e ds, ml, ai for (let i = 0; i < keywordsAndLinks[key].keywords.length; i++) { //keywordsAndLinks[key].keywords is the array of keywords for key (ds, ml, ai) //keywordsAndLinks[key].keywords[i] is the keyword and keywordsAndLinks[key].link is the link //keyword and link is sent to searchreplace where it is then replaced using regular expression and replace function articleFilter( keywordsAndLinks[key].keywords[i], keywordsAndLinks[key].link ); } } function cleanLinks() { // (making smal functions is for DRY) this function gets the links and only keeps the first 2 and from the rest removes the anchor tag and replaces it with its text function removeLinks(links) { if (links.length > 1) { for (let i = 2; i < links.length; i++) { links[i].outerHTML = links[i].textContent; } } } //arrays which will contain all the achor tags found with the class (ds-link, ml-link, ailink) in each article inserted using search and replace let dslinks; let mllinks; let ailinks; let nllinks; let deslinks; let tdlinks; let iaslinks; let llinks; let pbplinks; let mlclinks; const content = document.querySelectorAll('article'); //all articles content.forEach((c) => { //to skip the articles with specific ids if (!articleIdsToSkip.includes(c.id)) { //getting all the anchor tags in each article one by one dslinks = document.querySelectorAll(`#${c.id} .entry-content a.ds-link`); mllinks = document.querySelectorAll(`#${c.id} .entry-content a.ml-link`); ailinks = document.querySelectorAll(`#${c.id} .entry-content a.ai-link`); nllinks = document.querySelectorAll(`#${c.id} .entry-content a.ntrl-link`); deslinks = document.querySelectorAll(`#${c.id} .entry-content a.des-link`); tdlinks = document.querySelectorAll(`#${c.id} .entry-content a.td-link`); iaslinks = document.querySelectorAll(`#${c.id} .entry-content a.ias-link`); mlclinks = document.querySelectorAll(`#${c.id} .entry-content a.mlc-link`); llinks = document.querySelectorAll(`#${c.id} .entry-content a.l-link`); pbplinks = document.querySelectorAll(`#${c.id} .entry-content a.pbp-link`); //sending the anchor tags list of each article one by one to remove extra anchor tags removeLinks(dslinks); removeLinks(mllinks); removeLinks(ailinks); removeLinks(nllinks); removeLinks(deslinks); removeLinks(tdlinks); removeLinks(iaslinks); removeLinks(mlclinks); removeLinks(llinks); removeLinks(pbplinks); } }); } //To remove extra achor tags of each category (ds, ml, ai) and only have 2 of each category per article cleanLinks(); */ //Recommended Articles var ctaLinks = [ /* ' ' + '

Subscribe to our AI newsletter!

' + */ '

Take our 85+ lesson From Beginner to Advanced LLM Developer Certification: From choosing a project to deploying a working product this is the most comprehensive and practical LLM course out there!

'+ '

Towards AI has published Building LLMs for Production—our 470+ page guide to mastering LLMs with practical projects and expert insights!

' + '
' + '' + '' + '

Note: Content contains the views of the contributing authors and not Towards AI.
Disclosure: This website may contain sponsored content and affiliate links.

' + 'Discover Your Dream AI Career at Towards AI Jobs' + '

Towards AI has built a jobs board tailored specifically to Machine Learning and Data Science Jobs and Skills. Our software searches for live AI jobs each hour, labels and categorises them and makes them easily searchable. Explore over 10,000 live jobs today with Towards AI Jobs!

' + '
' + '

🔥 Recommended Articles 🔥

' + 'Why Become an LLM Developer? Launching Towards AI’s New One-Stop Conversion Course'+ 'Testing Launchpad.sh: A Container-based GPU Cloud for Inference and Fine-tuning'+ 'The Top 13 AI-Powered CRM Platforms
' + 'Top 11 AI Call Center Software for 2024
' + 'Learn Prompting 101—Prompt Engineering Course
' + 'Explore Leading Cloud Providers for GPU-Powered LLM Training
' + 'Best AI Communities for Artificial Intelligence Enthusiasts
' + 'Best Workstations for Deep Learning
' + 'Best Laptops for Deep Learning
' + 'Best Machine Learning Books
' + 'Machine Learning Algorithms
' + 'Neural Networks Tutorial
' + 'Best Public Datasets for Machine Learning
' + 'Neural Network Types
' + 'NLP Tutorial
' + 'Best Data Science Books
' + 'Monte Carlo Simulation Tutorial
' + 'Recommender System Tutorial
' + 'Linear Algebra for Deep Learning Tutorial
' + 'Google Colab Introduction
' + 'Decision Trees in Machine Learning
' + 'Principal Component Analysis (PCA) Tutorial
' + 'Linear Regression from Zero to Hero
'+ '

', /* + '

Join thousands of data leaders on the AI newsletter. It’s free, we don’t spam, and we never share your email address. Keep up to date with the latest work in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming a sponsor.

',*/ ]; var replaceText = { '': '', '': '', '
': '
' + ctaLinks + '
', }; Object.keys(replaceText).forEach((txtorig) => { //txtorig is the key in replacetext object const txtnew = replaceText[txtorig]; //txtnew is the value of the key in replacetext object let entryFooter = document.querySelector('article .entry-footer'); if (document.querySelectorAll('.single-post').length > 0) { //console.log('Article found.'); const text = entryFooter.innerHTML; entryFooter.innerHTML = text.replace(txtorig, txtnew); } else { // console.log('Article not found.'); //removing comment 09/04/24 } }); var css = document.createElement('style'); css.type = 'text/css'; css.innerHTML = '.post-tags { display:none !important } .article-cta a { font-size: 18px; }'; document.body.appendChild(css); //Extra //This function adds some accessibility needs to the site. function addAlly() { // In this function JQuery is replaced with vanilla javascript functions const imgCont = document.querySelector('.uw-imgcont'); imgCont.setAttribute('aria-label', 'AI news, latest developments'); imgCont.title = 'AI news, latest developments'; imgCont.rel = 'noopener'; document.querySelector('.page-mobile-menu-logo a').title = 'Towards AI Home'; document.querySelector('a.social-link').rel = 'noopener'; document.querySelector('a.uw-text').rel = 'noopener'; document.querySelector('a.uw-w-branding').rel = 'noopener'; document.querySelector('.blog h2.heading').innerHTML = 'Publication'; const popupSearch = document.querySelector$('a.btn-open-popup-search'); popupSearch.setAttribute('role', 'button'); popupSearch.title = 'Search'; const searchClose = document.querySelector('a.popup-search-close'); searchClose.setAttribute('role', 'button'); searchClose.title = 'Close search page'; // document // .querySelector('a.btn-open-popup-search') // .setAttribute( // 'href', // 'https://medium.com/towards-artificial-intelligence/search' // ); } // Add external attributes to 302 sticky and editorial links function extLink() { // Sticky 302 links, this fuction opens the link we send to Medium on a new tab and adds a "noopener" rel to them var stickyLinks = document.querySelectorAll('.grid-item.sticky a'); for (var i = 0; i < stickyLinks.length; i++) { /* stickyLinks[i].setAttribute('target', '_blank'); stickyLinks[i].setAttribute('rel', 'noopener'); */ } // Editorial 302 links, same here var editLinks = document.querySelectorAll( '.grid-item.category-editorial a' ); for (var i = 0; i < editLinks.length; i++) { editLinks[i].setAttribute('target', '_blank'); editLinks[i].setAttribute('rel', 'noopener'); } } // Add current year to copyright notices document.getElementById( 'js-current-year' ).textContent = new Date().getFullYear(); // Call functions after page load extLink(); //addAlly(); setTimeout(function() { //addAlly(); //ideally we should only need to run it once ↑ }, 5000); }; function closeCookieDialog (){ document.getElementById("cookie-consent").style.display = "none"; return false; } setTimeout ( function () { closeCookieDialog(); }, 15000); console.log(`%c 🚀🚀🚀 ███ █████ ███████ █████████ ███████████ █████████████ ███████████████ ███████ ███████ ███████ ┌───────────────────────────────────────────────────────────────────┐ │ │ │ Towards AI is looking for contributors! │ │ Join us in creating awesome AI content. │ │ Let's build the future of AI together → │ │ https://towardsai.net/contribute │ │ │ └───────────────────────────────────────────────────────────────────┘ `, `background: ; color: #00adff; font-size: large`); //Remove latest category across site document.querySelectorAll('a[rel="category tag"]').forEach(function(el) { if (el.textContent.trim() === 'Latest') { // Remove the two consecutive spaces (  ) if (el.nextSibling && el.nextSibling.nodeValue.includes('\u00A0\u00A0')) { el.nextSibling.nodeValue = ''; // Remove the spaces } el.style.display = 'none'; // Hide the element } }); // Add cross-domain measurement, anonymize IPs 'use strict'; //var ga = gtag; ga('config', 'G-9D3HKKFV1Q', 'auto', { /*'allowLinker': true,*/ 'anonymize_ip': true/*, 'linker': { 'domains': [ 'medium.com/towards-artificial-intelligence', 'datasets.towardsai.net', 'rss.towardsai.net', 'feed.towardsai.net', 'contribute.towardsai.net', 'members.towardsai.net', 'pub.towardsai.net', 'news.towardsai.net' ] } */ }); ga('send', 'pageview'); -->