CNNs use small learned filters to detect image features. A filter checks small parts of an image and gives a strong response when it finds a pattern.
That is the main idea behind a convolutional neural network, or CNN. The network does not treat every pixel as a separate fact. It looks at nearby pixels together. This helps it detect shapes and patterns that appear in different parts of an image.
I think the filter is the clearest place to start.
A filter is a small grid of numbers called weights. A common filter covers a small square area, such as three by three pixels. The filter moves across the image, one small step at a time.
At each position, the CNN combines the filter values with the pixel values below them. It then adds the results. This produces one number. A high number means that the image area looks similar to the pattern stored in the filter.
The filter does not begin with a known job. During training, the CNN changes its weights. It learns which filters help with the task.
One filter may respond to a vertical edge. Another may respond to a horizontal edge. Others may respond to a color change, a corner, or a small texture. The network does not need a programmer to write each rule by hand.
The result of applying one filter across an image is called a feature map. It is a grid of numbers. Each number records how strongly the filter responded at one location.
This gives the CNN two useful facts at once. It knows which pattern it found, and it knows where that pattern appeared.
A CNN layer uses many filters. Each filter creates its own feature map. These maps then become the input for the next layer.
Early layers usually detect simple features. They may respond to edges, lines, colors, and small textures. Later layers combine those results. They can respond to corners, curves, parts of objects, and larger shapes.
This is why a CNN can build a useful image representation in stages. A later layer does not need to inspect every raw pixel in the same way. It can use the feature maps made by earlier layers.
Consider a simple image of a bicycle. An early filter may detect short lines. Another may detect dark-to-light edges. A later layer may combine those signals into circles or thin bars. A deeper layer may respond to a wheel, handlebar, or frame shape.
The network is not following a written list of bicycle parts. It learns numeric patterns that help separate bicycles from other images. Those patterns can be hard to name in plain language.
The filter also moves across the image with shared weights. The same filter checks every location. This matters because an edge is still an edge when it appears near the left side or the right side.
A fully connected network could connect every pixel to every neuron. That creates many weights. It also ignores the fact that nearby pixels often work together.
A CNN uses local connections instead. Each filter sees a small region at a time. The same weights are reused across the image. This reduces the number of learned values and keeps the spatial layout.
The filter size and movement affect the result. The step between positions is called the stride. A larger stride produces a smaller output map. Padding can add a border around the image so that edge information is not lost too quickly.
These details sound small, but they change what the network can see. A filter that covers a small area cannot recognize a large object by itself. It needs later layers to combine local results.
This is where the simple explanation needs care. People often say that CNN filters detect objects. That is usually too broad.
A filter in an early layer often detects a small pattern. It does not understand a whole object. Deeper layers can respond to larger structures because their input comes from earlier feature maps.
The area that affects one later response is called its receptive field. As layers stack, that area can cover more of the original image. The network can then combine small features into larger ones.
The learned filters are also not fixed rules. Their meaning depends on the data, the training task, and the other layers around them. A filter that looks like an edge detector may support several different decisions inside the full model.
This makes CNNs powerful, but it also makes them harder to inspect. Looking at a filter alone does not always explain the model’s final choice.
There is another limit. A CNN can reuse a pattern across locations, but that does not mean it fully understands position. Changes in scale, lighting, angle, background, or object shape can still cause trouble.
Pooling and other design choices can reduce sensitivity to small shifts. They can also remove location detail. That tradeoff may help classification, but it can hurt tasks that need exact positions.
Training data creates another limit. Filters learn from the examples they receive. If the data misses important lighting, camera views, object types, or backgrounds, the learned features may work poorly in those cases.
The filter idea is therefore practical, not magical. A CNN learns useful local patterns and combines them into richer features. It does not gain a complete visual understanding of the world.
When I explain convolutional neural networks, I keep the working picture small:
A filter is a learned grid of weights. It slides across an image. Each position produces a response. The responses form a feature map. Many filters create many maps. Later layers combine them into larger patterns.
That is enough to understand why CNNs work with images.
The hardest part is often the word “detect.” A strong response does not mean the model has named or understood a feature as a person would. It means the numbers in that region match a pattern that helps the network’s task.
That difference matters in real systems. A model can produce a confident result for the wrong reason. It may use a background detail, a lighting pattern, or another signal that happens to match the training data.
CNN filters remain a useful building block because they match a basic property of images: nearby pixels often form meaningful local patterns. The method is efficient, flexible, and easy to extend through deeper layers. Its limits appear when local patterns are not enough.
The practical lesson is simple. CNNs detect image features by learning filters, applying them across local image regions, and passing the resulting feature maps through later layers. The model learns which patterns matter, but the quality of those patterns still depends on its data, design, and task.
That is the kind of idea The Model Log focuses on: one practical AI concept, one working example, and one honest look at what actually works.



