Method and system for identifying an object in an image

By employing modular adapters and knowledge distillation, the method efficiently transforms VFMs into SVMs for edge devices, addressing the challenges of resource-intensive adaptation and deployment, achieving high-performance image analysis and industrial tasks.

WO2026243645A1PCT designated stage Publication Date: 2026-11-26SIEMENS AG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/EP2026/063969
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-22
Filing Date
2026-05-13
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing methods for adapting large AI models to specific industrial tasks are resource-intensive and time-consuming, requiring significant manual effort and retraining, and deploying these models on edge devices with limited computing resources is challenging due to their size and requirements.

Method used

A method using modular architectures and adapters to fine-tune Vision Foundation Models (VFMs) through knowledge distillation, creating smaller, task-specific Small Vision Models (SVMs) by leveraging a proprietary dataset and adapter repository, enabling rapid adaptation and deployment on edge devices.

Benefits of technology

This approach automates the adaptation process, creating lightweight and accurate SVMs that can efficiently perform image analysis and industrial tasks on edge devices with limited resources, optimizing performance and reducing the need for extensive retraining.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure EP2026063969_26112026_PF_FP_ABST
    Figure EP2026063969_26112026_PF_FP_ABST
Patent Text Reader

Abstract

The invention relates to a method for identifying an object in an image, which method is executed by a client-server system having a server (S) and connected clients (C1-C3), wherein the following steps are executed: a) providing a trained basic model (VFM); b) providing a set of adapters (Ax) for the basic model (VFM), wherein the adapters of the set of adapters (Ax) are each designed to adapt the basic model (VFM) for a specific application; c) adapting the basic model (VFM) by means of an adapter which is selected from the set of adapters (Ax) by a provided application declaration for each client (C1-C3); d) generating a relevant application-specific model (SVM1-SVM3) on the basis of the previously adapted basic model (VFM) by means of knowledge distillation; e) transmitting the relevant application-specific model (SVM1-SVM3) as a relevant local model (LM1-LM3) to the relevant client (C1-C3); f) providing an image containing the object to a selected client; g) identifying the object in the image by means of the relevant local model (LM1-LM3) at the selected client.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Method and system for recognizing an object in an image

[0002] The invention relates to a computer-implemented method for recognizing an object in an image, which is executed by a client-server system with a server and connected clients.

[0003] The invention further relates to a computer program product.

[0004] Artificial intelligence (AI) models are frequently used in industrial object recognition in images.

[0005] However, creating and training AI models can be very time-consuming, which is why attempts are being made to adapt existing AI models accordingly.

[0006] The challenge lies in efficiently using, for example, basic models or foundation models (FM) for image processing, so-called "Vision Foundation Models" (VFM), to create task-specific, smaller "Small Vision Models" (SVM) that can perform well on edge devices without extensive retraining.

[0007] These “small” AI models are at least ten orders of magnitude smaller, preferably two or three or even six orders of magnitude smaller in the number of neurons included than a “large” AI model.

[0008] The development of a FM or VFM for visual quality inspection in industry offers several key functions that significantly improve operational efficiency and quality control processes.

[0009] In the current state of the art, it is common to manually adapt large AI models, i.e., models with several billion nodes, for specific tasks, for example by applying appropriate input prompts to the AI ​​model, especially when it comes to different industry requirements.

[0010] This process can require significant manual effort and be resource-intensive, as it involves collecting and labeling large datasets, retraining models, and manually optimizing for the limited computing power of edge devices.

[0011] Fine-tuning VFMs for specific tasks typically requires extensive retraining with specific training data or adapters, and such manual adaptation to different industries is usually resource- and time-consuming. The challenge also lies in automating and streamlining the process to efficiently create task-specific SVMs for edge deployment.

[0012] Deploying VFMs on edge devices is a challenge in the current state of the art due to the large size and computing requirements of these models.

[0013] To solve this problem, the state of the art often uses smaller, task-specific models, which are either trained from scratch or fine-tuned from pre-trained, small models.

[0014] These models are optimized for performance on specific tasks, but lack the generalizability and robustness of larger VFMs.

[0015] Another approach is to compress large models using techniques such as cleanup or quantization to generate a smaller, application-specific model that mimics the behavior of a larger base model.

[0016] However, these methods often require significant manual effort to adapt models for specific edge applications, and they do not fully utilize the comprehensive capabilities of VFMs.

[0017] The aim of the invention is therefore to develop a method that automates and streamlines this adaptation process and enables fast and efficient fine-tuning of VFMs into SVMs that are both lightweight and highly accurate for certain industrial applications.

[0018] In other words, the aim is to enable the creation of application-specific models from generally available datasets, such as large language models or basic models, which can also be operated on devices with limited computing and storage resources in order to efficiently perform tasks such as image analysis, device control, or monitoring of the operation of technical devices.

[0019] The object of the invention is achieved by a computer-implemented method for recognizing an object in an image, which is executed by a client-server system with a server and connected clients, wherein the following steps are performed: a) Providing a trained basic model based on artificial intelligence, which comprises a convolutional neural network (CNN) with layers and thereby forms an image encoder, to the server,

[0020] b) Providing a set of adapters for the base model, in a memory, wherein the adapters of the set of adapters are each configured to adapt the base model for a specific application, and each adapter includes at least one adapter image related to the specific application of the adapter, to the server,

[0021] c) Adapting the base model by an adapter, which is selected from the set of adapters by a provided application declaration for the respective client, by the server,

[0022] d) Generating an application-specific model for each client, based on the previously adapted basic model through knowledge distillation, by the server,

[0023] e) Transmitting the respective application-specific model as a respective local model to the respective client,

[0024] f) Providing an image of the object to a client selected from among the clients,

[0025] g) Recognizing the object in the image using the respective local model on the selected client.

[0026] The application declaration is made in the form of a similarity comparison of the image in step f) with the adapter image of the respective adapter.

[0027] By using modular architectures and adapters to fine-tune VFMs, the process for generating a suitable model can be automated and efficiently integrated for edge applications.

[0028] The approach involves fine-tuning VFMs to optimize SVM edge applications through knowledge distillation.

[0029] This involves using a proprietary dataset (English: "data lake") to...

[0030] To fine-tune VFMs and improve the pre-training of SVMs.

[0031] The use of AI adapters and the proprietary dataset involves utilizing a repository of modular adapter modules and a large proprietary image dataset to efficiently optimize VFMs for specific tasks.

[0032] This integration enables rapid adaptation of VFMs to different applications using existing data and task-specific adapters.

[0033] Furthermore, edge-based fine-tuning feedback is provided, whereby additional fine-tuning options are applied directly on the edge devices, and new data or refinements made to the SVMs at the edge are fed back to improve a VFM decoder adapter and continuously enhance the performance and adaptability of the model. In other words, the invention provides an approach for fine-tuning VFMs to optimize the corresponding software deployment (edge ​​deployments) of SVMs through knowledge distillation.

[0034] The underlying Vision Foundation model, also known as "M_VFM", uses a hybrid architecture that combines a transformer-based encoder with CNN layers (Convolutional Neural Network).

[0035] This approach leverages the strengths of both models, as CNNs excel at extracting local features ("f_C(x)") such as textures and edges, while transformers are effective at capturing global dependencies ("f_T(f_C(x)))" that are crucial for understanding the broader context within an image.

[0036] Formally, the encoder ('E_VFM') of the Vision Foundation model processes an input image ('x') as follows:

[0037] E_VFM(x) = T(C(x))

[0038] Here, "C(x)" represents the CNN layers and "T(C(x))" represents the transformer layers that are applied to the output of the CNN.

[0039] The output of the encoder ('E_VFM(x)') is passed to a mask decoder ('D_VFM') which generates a segmentation mask ('m(x)').

[0040] Depending on the specific industrial application, this mask can be specialized for tasks such as object detection or anomaly detection:

[0041] m(x) = D_VFM(E_VFM(x))

[0042] This architecture enables the "M_VFM" model to efficiently process images for a variety of tasks by combining the local feature extraction capabilities of CNNs with the context-sensitive processing power of Transformers.

[0043] An adapter repository is used, which contains adapters that allow application-specific adaptation or fine-tuning of the VFM, for example, optimization for anomaly detection, recognition of product details in an image, recognition of the operating states of a depicted technical device in an image, or similar. To make the VFM ("M_VFM") adaptable to a variety of industry-specific tasks, the repository is maintained with lightweight adapter modules named "A = {A_1, A_2, ..., A_n}".

[0044] Each adapter ('A_i') in the repository is designed to fine-tune 'M_VFM' for a specific task.

[0045] When a new task (T) is introduced, represented by a series of example images ('l_T = {x_1, x_2, ..., x_k}'), the system searches for an adapter ('A_i') that can be applied to the task.

[0046] The search is based on comparing the sample images with the images assigned to the individual adapters:

[0047] A_match = argmax_{A_i in A} similarity(A_i, l_T)

[0048] If a suitable adapter ('A_match') is found, it is loaded into the VFM, which allows for quick adaptation to the new task without time-consuming retraining.

[0049] If no suitable adapter is available, a new adapter ('A_new') is created, as described below, to perform optimization or adaptation to specific applications, so-called verticals.

[0050] Each adapter therefore includes at least one adapter image related to the specific application of the adapter.

[0051] The adapter image is an image suitable for application-specific adaptation or fine-tuning of the VFM, i.e., it has corresponding features in the adapter image, as previously exemplified for the adapter memory.

[0052] In other words, the application declaration of the respective adapter takes the form of a similarity comparison of the image with the adapter image of the respective adapter.

[0053] To refine the VFM ('M_VFM') for specific vertical domains, a large image dataset ('D_datalake'), also called a "datalake", is used, containing labeled and unlabeled images from various industry sectors.

[0054] For a specific task ("T") within a vertical area ("D_v"), a relevant subset of images ("D_task c D_datalake") is selected.

[0055] A new encoder adapter ('A_new') is trained with both the subset of images ('D_task') and the task-specific example images ('l_T'):

[0056] E_VFM' = fine-tune(E_VFM, l_T u D_task) A new encoder adapter is trained with the provided sample images and similar images from the data lake - for example, at a ratio of 1:10 or 1:100, which greatly reduces the need for a customer to provide sample images.

[0057] In parallel, the decoder ('D_VFM') is fine-tuned using "Parameter-Efficient Fine-Tuning" (PEFT) techniques, with a corresponding decoder adapter ('A A D_new') is created or modified:

[0058] D_VFM' = PEFT(D_VFM, l_T)

[0059] The resulting finely tuned model ('M_VFM' = (E_VFM', D_VFM')') is now optimized for the specific vertical area so that it can recognize and respond to domain-specific features, such as the detection of unique product defects or anomalies in a production line.

[0060] The described process can be described as adapting the basic model according to an application declaration using a corresponding application adapter. The resulting model is usually very large, meaning it has a very high number of neurons or nodes, and therefore requires a large amount of memory and high computing power, which can be provided by a server.

[0061] For execution on a client, which has significantly limited storage and computing capacities compared to a server, the resulting model is far too large.

[0062] To deploy the VFM on edge devices where computing resources are limited, a smaller, more efficient SVM ("M_SVM") is created through knowledge distillation.

[0063] The model size difference between the SVM and the VFM can be, for example, a ratio of 1:1000, 1:1000000 or even smaller.

[0064] First, 'M_SVM' is pre-trained unsupervised with the data set assigned to the encoder adapter:

[0065] M_SVM_pretrain = pre-train(M_SVM, D_task)

[0066] The finely tuned VFM ('M_VFM") then acts as a teacher model and directs the distillation process to produce the final small model ('M_SVM"):

[0067] M_SVM' = distill(M_VFM', M_SVM_pretrain)

[0068] This distilled model is optimized for use on edge devices commonly found in industrial environments, such as quality control stations or robot arms, enabling these devices to perform complex tasks with high efficiency.

[0069] After distillation, the task-specific SVM ('M_SVM") is deployed to edge devices, i.e., the clients.

[0070] These devices, which operate in industrial real-time environments, use the output ("m_SVM(x)") of the SVM - segmentation masks - to perform tasks such as fault detection.

[0071] The masks are then processed with a post-processing script ('P') which may include additional operations such as error localization:

[0072] y_final = P(m_SVM(x))

[0073] If necessary, the SVM can be further fine-tuned at the edge with new sample images ("l_new"):

[0074] M_SVM" = fine-tune(M_SVM', l_new)

[0075] These new images are stored alongside the original data lake images to improve future distillation processes and ensure that the SVM continues to function effectively even when new data is discovered.

[0076] KL adapters work by adding small, trainable layers to the pre-trained architecture, with these layers only slightly adjusting the model's parameters while maintaining the integrity of the original model's functions.

[0077] Adapters are small neural network modules that are inserted into pre-trained base models such as BERT or GPT-4 to adapt them to new tasks or domains.

[0078] Instead of retraining the entire massive VFM, only the simple adapter modules are trained with the new task data.

[0079] Adapters typically consist of a small neural feed-forward network, usually one or two layers, which is injected into the original network.

[0080] An adapter maps the representation of the hidden state of the pretrained model to the specialized representation required for the new task.

[0081] The adapter and the original model are trained together with the data from the downstream task, so that the adapter can learn the new mapping while the original model weights remain largely unchanged.

[0082] This approach preserves the knowledge in the original, pre-trained weights, thus saving considerable resources for retraining. Several different adapters can also be added to the same basic model to enable multitasking learning.

[0083] The adapters allow for targeted, task-specific adaptation of the model without interfering with each other.

[0084] Adapters enable rapid learning of task transfer for large, pre-trained models.

[0085] By adding simple adapters, instead of retraining the model from scratch, they offer an efficient way to adapt these models to new tasks and datasets with limited computing resources.

[0086] An encoder-decoder model is a special type of architecture in AI and machine learning that aims to understand, transform, and generate sequences of data.

[0087] The encoder takes the input data, such as text in the source language during a translation or a digital image of an object, and converts it into a fixed set of data known as context vectors or internal representations.

[0088] The encoder abstracts the main features of the input data in order to capture the relevant information in a condensed form.

[0089] After the encoder has processed the input data, the decoder takes this encoded set of information and converts it back into the desired output data, such as text in the target language or an image of an object, and the decoder learns to generate the best representation of the output data based on the information provided by the encoder.

[0090] The combination of these two components enables the model to perform complex tasks such as language translation, content summarization, and even the generation of human-like speech.

[0091] Knowledge distillation or model distillation, in the context of artificial intelligence (AI), is the process by which knowledge is transferred from a large, pre-trained model to a smaller model through imitation.

[0092] While large models (such as deep neural networks or combinations of several models) have a greater knowledge capacity than small models, this capacity may not be fully utilized.

[0093] Knowledge distillation transfers knowledge from a large model, often called a teacher model, to a smaller model, often called a student model, without significantly losing its explanatory power. Since smaller models with fewer parameters are less expensive to train and use, they can be deployed on less powerful hardware.

[0094] Student models of this type deliver results, so-called "inferences", more quickly than the correspondingly more complex teacher models.

[0095] In other words, knowledge distillation is a machine learning technique that aims to transfer what has been learned from a large pre-trained model, the "teacher model," to a smaller "student model," and is used in deep learning as a form of model compression and knowledge transfer, especially in large deep neural networks.

[0096] The goal of knowledge distillation is therefore to train a more compact model in order to mimic a larger, more complex model.

[0097] While the goal of traditional deep learning is to train an artificial neural network to make its predictions closer to the output examples provided in a training dataset, the main goal of knowledge distillation is to train the student network to match the predictions of the teacher network.

[0098] In a further development of the invention, it is provided that the result of the image encoder is fed to a mask decoder, which is configured to generate segmentation masks for an image, in particular for anomaly detection in a processed image.

[0099] This can further improve the efficiency of image processing on a client and enhance the accuracy of the image analysis task.

[0100] In a further development of the invention, it is provided that the image is provided using a camera.

[0101] This allows an image analysis task to be carried out on a client in a simple and efficient manner.

[0102] In a further development of the invention, it is provided that an anomaly detection is also carried out for the recognized object in the image using the local model.

[0103] This allows an image analysis task to be carried out on a client in a simple and efficient manner.

[0104] The problem according to the invention is also solved by a client-server system for recognizing an object in an image, comprising a server and connected clients, each of which has a computing device with a processor and memory, and the client-server system being configured to execute the method according to the invention. In a further development of the invention, it is provided that an imaging sensor is also included, which is configured to capture a manufactured or processed product as an object using a digital image and to provide it to the method as an image.

[0105] The computing devices of the server and the clients each include a processor with memory, as well as adapter memory.

[0106] The problem according to the invention is also solved by a computer program product comprising commands which, when the program is executed by the client-server system according to the invention, cause it to execute the method / steps of the method according to the invention.

[0107] The following figures show and describe in more detail an embodiment of the invention.

[0108] Fig. 1 shows an embodiment of the invention in the form of a flowchart,

[0109] Fig. 2 shows an embodiment of the invention in the form of a system.

[0110] Fig. 1 shows an embodiment of the invention in the form of a flowchart as a method for recognizing an object in a digital image by a client-server system.

[0111] At least one process step is implemented in a computer.

[0112] The system comprises one server and at least two clients as shown in Fig. 2 below.

[0113] The following steps are performed:

[0114] a) Providing a trained basic VFM model based on artificial intelligence, which includes a convolutional neural network (CNN) with layers and thus forms an image encoder, to server S,

[0115] b) Providing a set of adapters Ax for the base model VFM, in a memory REP, wherein the adapters of the set of adapters Ax are each configured to adapt the base model VFM for a specific application, and each adapter Ax includes at least one adapter image related to the specific application of the adapter Ax, to the server S,

[0116] c) Adapting the base model VFM by an adapter, which is selected from the set of adapters Ax by a provided application declaration for the respective client C1-C3, by the server S; d) Generating a respective application-specific model SVM1-SVM3, for the respective client, based on the previously adapted base model VFM by knowledge distillation, by the server S.

[0117] e) Transmitting the respective application-specific model SVM1-SVM3 as the respective local model LM1-LM3 to the respective client C1-C3,

[0118] f) Providing an image of the object to a client selected from among clients C1-C3,

[0119] g) Recognizing the object in the image using the respective local model LM1-LM3 on the selected client.

[0120] The application declaration takes the form of a similarity comparison of the image with the adapter image of the respective adapter Ax.

[0121] The result of the image encoder is optionally fed to a mask decoder, which is set up to generate segmentation masks for provided images, especially for anomaly detection in a processed image.

[0122] The image can be provided, for example, using a camera CAM1-CAM3.

[0123] Furthermore, anomaly detection can be performed on the detected object in the image using the local model LM1-LM3.

[0124] A client can be a so-called "data catalog owner", i.e., a system for visual quality inspection during the manufacture of products.

[0125] A client can be independent of another client in the system insofar as the inspection systems can be administratively assigned to different manufacturers.

[0126] However, the inspection task should be completed reliably and as little data as possible should be shared with other participants in the system, i.e., other clients.

[0127] The image can include a permissible or an impermissible representation of the object, such as with correct or defective products or anomalies in the product or product environment.

[0128] Learning how to embed representations in images can be achieved, for example, by training a Convolutional Neural Network (CNN) with locally available image datasets. A CNN model is trained to extract one or more meaningful features from the images and capture relevant features for quality control tasks. The adapters in question are AI-based adapters, or AI adapters. When adapting the base model with an AI adapter, the selection of the appropriate AI adapter from the set of AI adapters Ax in memory REP is performed using the application declaration.

[0129] The application declaration for the respective client C1-C3 refers to a specific client configuration, which, for example, defines an image analysis task in combination with image acquisition, and can be made by the respective client C1-C3 itself and accordingly provided to the server S.

[0130] Fig. 2 shows an embodiment of the invention in the form of a system.

[0131] The client-server system for object recognition in a digital image comprises a server s and at least two clients C1-C3, each with its own computing device and connected cameras CAM1-CAM3 for capturing images of manufactured products. The server S and connected clients C1-C3 each have a computing device with a processor and memory.

[0132] Additionally, the server S is connected to an adapter storage REP (English "repository") in which the set of adapters Ax is stored and can be retrieved.

[0133] The adapter memory contains several Kl adapter Ax, each of which allows application-specific adjustment or fine-tuning of the VFM.

[0134] For example, optimization for anomaly detection, detection of product details in an image, detection of operating states of a depicted technical device in an image, or similar tasks can be performed using the adapters, i.e., lightweight adapter modules.

[0135] Each adapter is designed to fine-tune the VFM for a specific task, while essentially maintaining the complexity of the VFM.

[0136] By using the appropriate adapter, a quick adjustment of the VFM is possible without time-consuming retraining.

[0137] The client-server system is configured to execute the inventive method according to Fig. 1.

[0138] The imaging camera sensor CAM1 is designed to capture, for example, a product manufactured by a production plant or a product processed by a machining plant as an object using a digital image. It is clear that the respective client C1-C3 includes a corresponding control device for controlling the respective camera CAM1-CAM3, or that the camera CAM1-CAM3 can be controlled, for example, via a suitable interface such as USB.

[0139] The corresponding sensor data from sensor CAM1 are further processed by client C1 as image data in the procedure. Reference list:

[0140] Ax quantity of application adapters

[0141] C1-C3 Client

[0142] CAM1-CAM3 camera sensor

[0143] LM1-LM3 local model on the client

[0144] S Server

[0145] SVM1-SVM3 application-specific model, “small vision model” VFM basic model, “visual foundation model”

Claims

Patent claims 1. Computer-implemented method for detecting an object in an image, executed by a client-server system with a server (S) and connected clients (C1-C3), wherein the following steps are performed: a) Providing a trained base model (VFM) based on artificial intelligence, which includes a convolutional neural network (CNN) with layers and thus forms an image encoder, to the server (S), b) Providing a set of adapters (Ax) for the base model (VFM) in a memory (REP), wherein the adapters of the set of adapters (Ax) are each configured to adapt the base model (VFM) for a specific application, and each adapter (Ax) includes at least one adapter image related to the specific application of the adapter, to the server (S), c) Adapting the base model (VFM) by an adapter, which is selected from the set of adapters (Ax) by a provided application declaration for the respective client (C1-C3), by the server (S), d) Generating a respective application-specific model (SVM1-SVM3) for each client, based on the previously adapted basic model (VFM) through knowledge distillation, by the server (S), e) Transmitting the respective application-specific model (SVM1-SVM3) as the respective local model (LM1-LM3) to the respective client (C1-C3), f) Providing an image of the object to a client selected from among the clients (C1-C3), g) Recognition of the object in the image using the respective local model (LM1-LM3) on the selected client characterized in that the application declaration takes the form of a similarity comparison of the image with the adapter image of the respective adapter.

2. Method according to the preceding claim, wherein the result of the image encoder is fed to a mask decoder which is configured to generate segmentation masks for an image, in particular for anomaly detection in a processed image.

3. A method according to any one of the preceding claims, wherein the image is provided using a camera (CAM1-CAM3).

4. A method according to any one of the preceding claims, wherein anomaly detection is further performed for the detected object in the image using the local model (LM1-LM3).

5. Client-server system for recognizing an object in an image, comprising a server (S) and connected clients (C1-C3), each of which has a computing device with a processor and a memory, and the client-server system is configured to perform the method according to one of the preceding claims.

6. Client-server system according to the preceding claim, which further comprises an imaging sensor (CAM1-CAM3) which is configured to capture a manufactured product as an object using a digital image and to provide it to the method as a further image.

7. Computer program product, comprising instructions which, when the program is executed by the system according to one of the preceding system claims, cause the system to execute the procedure / steps of the procedure according to one of the preceding procedure claims.