Spatial Explanations with Occlusions: In computer vision, businesses must grasp the workings of image models to fully leverage visual data. Our simple method called spatial explanations with occlusions, helps achieve a deeper understanding. By employing spatial occlusions across images, this technique unveils critical areas that significantly influence the model’s predictions.”
What to do with these insights, you may ask. Having a deeper understanding of your system is the first step to optimizing your business. You can use these insights for 2 purposes:
Ensure AI Validation: During your initial experiences, you may encounter low-quality data, such as small datasets, biased information, or a lack of representativeness. As a result, your model might focus on areas that you know are irrelevant to your system. This can happen no matter how great the metrics on the test set are. Using visual explanations, you can quickly assess how trustworthy your AI is.
Learn with the AI: Learn from your model which factors are most relevant for decision-making. In this way, you will have more control over your system, quickly reaching business optimization.
How to get clarity from Occlusions?
Spatial explanations rely on the concept of occlusion, where specific areas of an image are masked or occluded to observe their impact on the model’s predictions. To do so, a patch of the original image is replaced with the average values from the dataset in the corresponding location. The original image and the image with the occlusion are analyzed by the predictive model and the difference between those predictions is used as a proxy of the region’s importance. The higher the difference, the greater the impact of the region. By repeating this process with patches from different locations and of different sizes, it is possible to build a heatmap, where the temperature represents the impact on the predictions.
Replacing the occlusion with average values from the dataset is particularly effective in industrial settings, where cameras and most objects remain fixed. In scenarios where the average patch occlusion is not suitable, you can employ alternative methods. Here are some other options:
Occluding with a black patch – We don’t recommend this one since too many zeros on the input might deactivate chains of neural activations, returning odd predictions.
Employing advanced inpainting techniques – Returns more reliable results but creates the need of relying on a third-party tool
Decreasing the resolution – Instead of replacing the patch with different information, add some blur or pixelate that patch, decreasing the volume of information without creating odd edges and textures in the image.
This adaptability allows the spatial occlusions explanation method to be tailored to the specific needs of your business.
Some tricks up your sleeve
Well done! Now you know the rationale behind our method! What about a few more tips to get the best from your explainable heat maps?
Mitigating Grid Patterns: Using larger strides can lead to grid patterns, reducing their interpretability. To overcome this challenge, you have two options. Firstly, you can reduce the stride, which provides clearer explanations but increases computational time. Alternatively, applying a Gaussian Blur to the occluded regions helps to smooth out the patterns, resulting in smoother color transitions.
Weighted Averaging: We also enhanced our spatial explanations by incorporating an inversely proportional weight based on the patch size. This technique ensures that the importance of each patch is appropriately considered, leading to more accurate and reliable explanations.
Addressing Repetitive Explanations: In industrial contexts, explanations can sometimes become repetitive, consistently highlighting the same locations. We recommend comparing the image-based explanation values to the dataset’s average explanation using either the absolute difference. This provides valuable insights into regions that deviate from the norm, enabling a deeper understanding of their distinctiveness.
Spatial explanations offer a powerful approach to interpreting image models and extracting valuable insights from visual data. By employing spatial occlusions, businesses can unravel the inner workings of their models, enabling informed decision-making and enhanced trust. Embrace the power of spatial explanations to unlock the full potential of your image models. Contact us if you’re ready to embark on a journey of comprehensive understanding and actionable insights.
Like this story?
Subscribe to Our Newsletter
Special offers, latest news and quality content in your inbox.
Signup single post
Recommended Articles
Artigo
Perspetivas da IA: melhores práticas de planeamento estratégico para 2026
6 de janeirode 2026 em
“Lista: Resumo
Descubra as melhores práticas de planeamento estratégico para projetos de IA e dados para aumentar o ROI, a eficiência e a tomada de decisões em 2025.
Algoritmos de aprendizagem automática explicados: guia prático para modelos de IA
30 de dezembrode 2025 em
Guia: Explicação
Descubra os algoritmos de aprendizagem automática explicados com exemplos reais e orientações sobre como selecionar e implementar os modelos de IA adequados.
Um guia prático para reduzir o tempo de lançamento no mercado
22 de dezembrode 2025 em
Guia: Como fazer
Descubra como acelerar o seu lançamento com estratégias práticas para reduzir o tempo de comercialização. Aprenda a aproveitar a IA, a automação e os processos enxutos.
Utilizamos cookies no nosso site para lhe proporcionar a experiência mais relevante, lembrando as suas preferências e visitas repetidas. Ao clicar em «Aceitar tudo», concorda com a utilização de TODOS os cookies. No entanto, pode visitar «Definições de cookies» para fornecer um consentimento controlado.
Este site usa cookies para melhorar a sua experiência enquanto navega pelo site. Dentre eles, os cookies classificados como necessários são armazenados no seu navegador, pois são essenciais para o funcionamento das funcionalidades básicas do site. Também usamos cookies de terceiros que nos ajudam a analisar e entender como você usa este site. Esses cookies serão armazenados no seu navegador somente com o seu consentimento. Você também tem a opção de recusar esses cookies. No entanto, recusar alguns desses cookies pode afetar a sua experiência de navegação.
Os cookies necessários são absolutamente essenciais para o funcionamento adequado do site. Estes cookies garantem as funcionalidades básicas e os recursos de segurança do site, de forma anónima.
Cookie
Duração
Descrição
cookielawinfo-checkbox-analytics
11 meses
Este cookie é definido pelo plugin GDPR Cookie Consent. O cookie é usado para armazenar o consentimento do utilizador para os cookies na categoria "Análises".
cookielawinfo-checkbox-funcional
11 meses
O cookie é definido pelo consentimento de cookies do RGPD para registar o consentimento do utilizador para os cookies na categoria «Funcional».
cookielawinfo-checkbox-necessário
11 meses
Este cookie é definido pelo plugin GDPR Cookie Consent. Os cookies são usados para armazenar o consentimento do utilizador para os cookies na categoria «Necessários».
cookielawinfo-checkbox-outros
11 meses
Este cookie é definido pelo plugin GDPR Cookie Consent. O cookie é utilizado para armazenar o consentimento do utilizador para os cookies na categoria «Outros».
cookielawinfo-checkbox-performance
11 meses
Este cookie é definido pelo plugin GDPR Cookie Consent. O cookie é utilizado para armazenar o consentimento do utilizador para os cookies na categoria «Desempenho».
política_de_cookies_visualizada
11 meses
O cookie é definido pelo plugin GDPR Cookie Consent e é usado para armazenar se o utilizador consentiu ou não com o uso de cookies. Ele não armazena nenhum dado pessoal.
Os cookies funcionais ajudam a executar determinadas funcionalidades, como partilhar o conteúdo do site em plataformas de redes sociais, recolher comentários e outras funcionalidades de terceiros.
Os cookies de desempenho são utilizados para compreender e analisar os principais índices de desempenho do site, o que ajuda a proporcionar uma melhor experiência ao utilizador para os visitantes.
Os cookies analíticos são utilizados para compreender como os visitantes interagem com o website. Estes cookies ajudam a fornecer informações sobre métricas, como o número de visitantes, taxa de rejeição, fonte de tráfego, etc.
Os cookies publicitários são utilizados para fornecer aos visitantes anúncios e campanhas de marketing relevantes. Estes cookies rastreiam os visitantes em vários sites e recolhem informações para fornecer anúncios personalizados.