Search by Algolia
Add InstantSearch and Autocomplete to your search experience in just 5 minutes
product

Add InstantSearch and Autocomplete to your search experience in just 5 minutes

A good starting point for building a comprehensive search experience is a straightforward app template. When crafting your application’s ...

Imogen Lovera

Senior Product Manager

Best practices of conversion-focused ecommerce website design
e-commerce

Best practices of conversion-focused ecommerce website design

The inviting ecommerce website template that balances bright colors with plenty of white space. The stylized fonts for the headers ...

Catherine Dee

Search and Discovery writer

Ecommerce product listing pages: what they are and how to optimize them for maximum conversion
e-commerce

Ecommerce product listing pages: what they are and how to optimize them for maximum conversion

Imagine an online shopping experience designed to reflect your unique consumer needs and preferences — a digital world shaped completely around ...

Vincent Caruana

Senior Digital Marketing Manager, SEO

DevBit Recap: Winter 2023 — Community
engineering

DevBit Recap: Winter 2023 — Community

Winter is here for those in the northern hemisphere, with thoughts drifting toward cozy blankets and mulled wine. But before ...

Chuck Meyer

Sr. Developer Relations Engineer

How to create the highest-converting product detail pages (PDPs)
e-commerce

How to create the highest-converting product detail pages (PDPs)

What if there were a way to persuade shoppers who find your ecommerce site, ultimately making it to a product ...

Vincent Caruana

Senior Digital Marketing Manager, SEO

Highlights from GopherCon Australia 2023
engineering

Highlights from GopherCon Australia 2023

This year a bunch of our engineers from our Sydney office attended GopherCon AU at University of Technology, Sydney, in ...

David Howden
James Kozianski

David Howden &

James Kozianski

Enhancing customer engagement: The role of conversational commerce
e-commerce

Enhancing customer engagement: The role of conversational commerce

Second only to personalization, conversational commerce has been a hot topic of conversation (pun intended) amongst retailers for the better ...

Michael Klein

Principal, Klein4Retail

Craft a unique discovery experience with AI-powered recommendations
product

Craft a unique discovery experience with AI-powered recommendations

Algolia’s Recommend complements site search and discovery. As customers browse or search your site, dynamic recommendations encourage customers to ...

Maria Lungu

Frontend Engineer

What are product detail pages and why are they critical for ecommerce success?
e-commerce

What are product detail pages and why are they critical for ecommerce success?

Winter is coming, along with a bunch of houseguests. You want to replace your battered old sofa — after all,  the ...

Catherine Dee

Search and Discovery writer

Why weights are often counterproductive in ranking
engineering

Why weights are often counterproductive in ranking

Search is a very complex problem Search is a complex problem that is hard to customize to a particular use ...

Julien Lemoine

Co-founder & former CTO at Algolia

How to increase your ecommerce conversion rate in 2024
e-commerce

How to increase your ecommerce conversion rate in 2024

2%. That’s the average conversion rate for an online store. Unless you’re performing at Amazon’s promoted products ...

Vincent Caruana

Senior Digital Marketing Manager, SEO

How does a vector database work? A quick tutorial
ai

How does a vector database work? A quick tutorial

What’s a vector database? And how different is it than a regular-old traditional relational database? If you’re ...

Catherine Dee

Search and Discovery writer

Removing outliers for A/B search tests
engineering

Removing outliers for A/B search tests

How do you measure the success of a new feature? How do you test the impact? There are different ways ...

Christopher Hawke

Senior Software Engineer

Easily integrate Algolia into native apps with FlutterFlow
engineering

Easily integrate Algolia into native apps with FlutterFlow

Algolia's advanced search capabilities pair seamlessly with iOS or Android Apps when using FlutterFlow. App development and search design ...

Chuck Meyer

Sr. Developer Relations Engineer

Algolia's search propels 1,000s of retailers to Black Friday success
e-commerce

Algolia's search propels 1,000s of retailers to Black Friday success

In the midst of the Black Friday shopping frenzy, Algolia soared to new heights, setting new records and delivering an ...

Bernadette Nixon

Chief Executive Officer and Board Member at Algolia

Generative AI’s impact on the ecommerce industry
ai

Generative AI’s impact on the ecommerce industry

When was your last online shopping trip, and how did it go? For consumers, it’s becoming arguably tougher to ...

Vincent Caruana

Senior Digital Marketing Manager, SEO

What’s the average ecommerce conversion rate and how does yours compare?
e-commerce

What’s the average ecommerce conversion rate and how does yours compare?

Have you put your blood, sweat, and tears into perfecting your online store, only to see your conversion rates stuck ...

Vincent Caruana

Senior Digital Marketing Manager, SEO

What are AI chatbots, how do they work, and how have they impacted ecommerce?
ai

What are AI chatbots, how do they work, and how have they impacted ecommerce?

“Hello, how can I help you today?”  This has to be the most tired, but nevertheless tried-and-true ...

Catherine Dee

Search and Discovery writer

Looking for something?

facebookfacebooklinkedinlinkedintwittertwittermailmail

A social media user is shown snapshots of people he may know based on face-recognition technology and asked if he wants to add them as his friends in the app.

A self-driving car moving down a city street uses visual recognition technology for object detection, “seeing” that a pedestrian is about to step off the curb and jaywalk in front of it and decides to respond by slowing down.

A doctor confidently diagnoses her patient’s condition and rules out the presence of malignant cancer cells by being able to use technology to compare thousands of comparable healthcare images of X-rayed ligaments.

A police department generates a clear photo of a suspect that officers can keep on hand. But that’s not all: with generative adversarial networks (GANs), images can then be used to train deep-learning models for facial recognition.

An online retailer suggests people “complete the look” of the jeans they’re considering with tops, jackets, and accessories that other people have chosen to wear with them, as evidenced by social-media image data.

Versatile visual image recognition

These are some of the state-of-the art applications of image-recognition systems, more broadly referred to as computer vision: machines ostensibly “seeing” as people do, perceiving the human environment in the same visual way.

What do all of these image-recognition and -classification applications have in common? They’re expertly handled by a subset of machine learning called a convolutional neural network (CNN, or ConvNet for short).

Definition of a convolutional neural network

A standout in the class of neural networks, a convolutional neural network is a network architecture for deep learning that learns from the data it receives. Among the various types of neural networks, CNNs are the best at identifying images (and videos; plus, they excel with speech and audio signals). In fact, with CNNs, the data input is assumed to be image related.

In its image processing cycle, a convolutional network can assess the image, assign levels of importance to various aspects of it, and differentiate among its visual elements. 

The creation of CNN operational structure was inspired by the way neurons are connected in the brain, specifically, the way an animal’s visual cortex is organized. Neurons respond to stimuli only in a certain area — the receptive field. A variety of receptive fields overlap to cover the visual area.

Seeing-eye PCs?

How does an eyeless machine come to expertly master pattern recognition, interpreting images in a convolution operation? You guessed it: with the help of artificial intelligence.

A convolutional neural network architecture comprises a model, a series of statistical functions that calculates and recalculates the pixelated vector of numbers until the image is recognized and classified. It can “see” thanks to the utilization of numbers (weights), statistics, and the processing of data through nodes (neurons or inputs), which have weights and thresholds associated with them. 

The first step in this image recognition technology: converting the image’s pixel values into numerical values called vectors, which allows for interpretation of the image and extraction of patterns. When that’s achieved, the data can be fed in.

A deep-learning CNN has several types of layers of nodes, each of which learns to detect different features of an image. In each layer, a filter (a kernel or feature detector) is applied, moving across the receptive fields of the image, checking whether certain features are there and activating certain features.

All the nodes in one layer are connected to every activation unit or node in the next layer. A node is activated — its data is passed along to the connecting node — if its output is higher than the assigned threshold.

The nodes know

In the initial processing layers, the focus is on deciphering straightforward features in the image, such as its colors and edges of elements. With each successive layer iteration, the filter activity delves into more complexity, recognizing elements that represent the input.

The partially recognized image created in each layer is pushed along as the input for the next layer. With each layer, the CNN identifies larger segments of the image. 

After each scan, a dot product is calculated. Output from the series of dots is known as a feature map.

With multiple scans, the entire image is processed, and the algorithm identifies what’s in the image.

This refinement process can be repeated for dozens, hundreds, or even thousands of layers, making the image progressively better and more detailed.

That feat, in and of itself, is impressive. But there’s more.

As potentially millions of images are processed by the CNN, the model takes note, calibrates, and realigns its weights. Eventually, it gets so visually confident about what it’s seeing that it can recognize almost any image. And across the world of CNNs, all that perfecting of deep-learning processing skills means the field of computer vision has been improving by leaps and bounds.

Multiple layers

The key to a CNN’s identifying an image is increasing levels of complexity from one layer to the next. Different CNN experts cite different numbers of types of CNN layers (some of which are hidden layers). Regardless of these inconsistencies, the outcome is the same: accurate interpretation of the image.

In addition to the baseline input layer and output layer, the building-block layers include:

The convolutional layer

This first layer is where most of the computations are made. A second convolutional layer for additional categorization after the initial one may be included to facilitate extraction of high-level features from the image.

The pooling layer

This layer reduces complexity/dimensionality in the visual representation — the number of parameters in the input — so some information is lost. This downsampling layer improves efficiency and limits the risk of overfitting

There are two types of pooling operation:

  • Max pooling: As the filter scans the input image, it selects the pixel with the maximum value for passing along to the output array. 
  • Average pooling: As the filter scans, it calculates the average value within the receptive field to pass along to the output array. This method is used less often than max pooling.

The fully connected layer

This is the layer in which, based on the extracted features, the image is classified. This last layer is “fully connected” (FC) because its nodes are connected with nodes or activation units in another layer.

CNNs are superior

When it comes to visual perception, why are CNNs better than regular neural networks (NNs)?

Regular neural networks (NNs) can’t scale. They don’t incorporate the computational power and resources that a CNN does. NNs may attempt to learn excessive amounts of detail in the training data (known as overfitting). If you feed millions of photos into a computer and ask it to consider every detail as important in its image recognition work, including what amounts to visual “noise,” this can distort image classification.

A CNN architecture is better for images because it utilizes a method called parameter sharing, which reduces the computational intensity compared with an NN. In each of its layers, each node is connected to another node. As the filters progress across the image in a given layer, the associated weights stay fixed.

How CNNs have improved image recognition in search

Thanks to CNNs accurately processing visual information, classifying images, and improving computer vision, the field of visual search has been exploding. This visual-processing phenomenon is particularly evident in ecommerce, where sites can now offer users the advantages and pleasures of visual shopping.

At Algolia, we help companies make it easy for real-world people to use image search to find exactly the item they want, plus encourage upselling with features such as “Complete the look,” and more.

Want to enhance your site search results with our CNN-aided image search technology? Contact us and we’ll help you see — and pursue — all the possibilities.

About the author
Catherine Dee

Search and Discovery writer

linkedin

Recommended Articles

Powered byAlgolia Algolia Recommend

Visual Shopping & Visual Discovery – How image search reimagines online shopping
ai

Julien Lemoine

Co-founder & former CTO at Algolia

Visual search: how does an image finder search engine work?
product

Catherine Dee
Hamish Ogilvy

Catherine Dee &

Hamish Ogilvy

What is a neural network and how many types are there?
ai

Vincent Caruana

Sr. SEO Web Digital Marketing Manager