Image segmentation method, system and computer for embedded device
By separating the picture encoding layer and decoding layer of the SAM model, an embedded segmentation model suitable for embedded devices is constructed, which solves the problem of high image segmentation delay in embedded devices and achieves efficient processing and improved accuracy.
Patent Information
- Application Number
- CN202311716466.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-14
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-12-14
AI Technical Summary
Due to limited hardware resources, embedded devices are difficult to support image segmentation through the SAM model, resulting in high image processing delays.
By constructing the initial learning model separately, the picture encoding layer and the picture decoding layer in the SAM model are separated, and the picture encoding layer is distilled separately to form the final learning model, and the amount of parameters is compressed to adapt to the hardware resources of the embedded device to construct embedded segmentation model, and correct the model through secondary training pictures to improve accuracy.
Efficient processing of images in embedded devices is achieved, the parameters are greatly compressed, the processing speed is improved, the delay rate is significantly reduced, and the processing results maintain a high consistency with the SAM model.
Smart Images

Figure CN117409207B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of image data processing, and in particular to an image segmentation method, system and computer for embedded devices. Background Art
[0002] Image segmentation is an important part of image understanding. Specifically, it divides the image into several non-overlapping regions so that the image features in the same region show consistency or similarity, but show obvious differences between different regions.
[0003] Most existing image segmentation methods use the SAM model for image segmentation. The SAM model is a prompting model that has trained more than 1 billion masks on 11 million images and achieved strong zero-sample generalization. Embedded devices refer to devices that use embedded systems. Embedded systems are application-centric, based on computer technology, with customizable software and hardware. They are suitable for special-purpose computer systems that have strict requirements on functions, reliability, cost, volume, and power consumption. For example, AR glasses, smart monitoring, etc. are all embedded devices.
[0004] However, due to the special nature of embedded systems, embedded devices are subject to certain limitations in hardware resources. The SAM model requires a lot of computing power for image segmentation, which is difficult for the hardware resources of embedded devices to support. Therefore, the delay in image processing in embedded devices will be increased. Summary of the invention
[0005] The embodiments of the present application provide an image segmentation method, system and computer for an embedded device to solve the technical problem in the prior art that the hardware resources of the embedded device are limited, making it difficult to support image segmentation through the SAM model, resulting in increased delay when performing image processing in the embedded device.
[0006] In a first aspect, an embodiment of the present application provides an image segmentation method for an embedded device, comprising the following steps:
[0007] Obtain a training picture, and perform pixel extraction on the training picture based on the picture encoding layer of the SAM model to obtain a standard pixel classification result;
[0008] Constructing an initial learning model including an encoder layer, a linear mapping layer, a position encoding layer and a classification layer, cutting the first training image into a plurality of first sub-images, inputting the plurality of first sub-images as input values into the linear mapping layer to convert the plurality of first sub-images into a plurality of vector images, and outputting the plurality of vector images to the encoder layer, assigning position encoding information to the vector images in the encoder layer through the position encoding layer, performing pixel feature extraction on the vector images through the encoder layer to obtain pixel feature information with position encoding information, and outputting the information to the classification layer, and converting the pixel feature information into a recognition pixel classification result through the classification layer;
[0009] Constructing a loss function based on the standard pixel classification result and the identification pixel classification result, and correcting the initial learning model based on the loss function to obtain a final learning model;
[0010] An embedded segmentation model is constructed based on the final learning model, and the embedded segmentation model is corrected through a secondary training picture to obtain a picture to be segmented, and image segmentation is performed on the picture to be segmented through the corrected embedded segmentation model.
[0011] Furthermore, the step of constructing an initial learning model including an encoder layer, a linear mapping layer, a position encoding layer and a classification layer includes:
[0012] Constructing an encoder layer including two encoding layers;
[0013] Constructing a linear mapping layer and a position encoding layer connected to the input end of the encoder layer;
[0014] A classification layer connected to the output of the encoder layer is constructed to form an initial learning model.
[0015] Furthermore, the loss function is:
[0016] ,
[0017] in, represents the loss function, represents the standard pixel classification result, Represents the classification result of the identified pixels.
[0018] Furthermore, the specific steps of constructing the embedded segmentation model based on the final learning model are:
[0019] Constructing a picture segmentation model connected to an input end of the final learning model;
[0020] constructing a decoding model connected to an output end of the final learning model;
[0021] constructing a pixel cueing model connected to the decoding model;
[0022] An output model is constructed that is connected to the output of the decoding model to form an embedded segmentation model.
[0023] Furthermore, the step of correcting the embedded segmentation model through a secondary training picture includes:
[0024] Obtaining a secondary training picture, and inputting the secondary training picture into a SAM model to obtain a plurality of standard segmentation pictures based on pixel category segmentation;
[0025] Inputting the secondary training picture into the picture segmentation model to obtain a plurality of second sub-pictures, and transmitting the plurality of second sub-pictures to the final learning model;
[0026] Obtaining the classification result of the identified pixels of the second sub-image in the final learning model and transmitting it to the decoding model;
[0027] Inputting pixel coordinates to the decoding model through the pixel prompt model, comparing the pixel coordinates with the classification results of the identified pixels of the second sub-image, so as to output the training segmented image through the output model;
[0028] The training segmentation picture is compared with the standard segmentation picture to calibrate the embedded segmentation model.
[0029] In a second aspect, an embodiment of the present application provides an image segmentation system for an embedded device, which is applied to the image segmentation method for an embedded device in the above technical solution, and the system includes:
[0030] A benchmark module, used to obtain a training picture and perform pixel extraction on the training picture based on the picture coding layer of the SAM model to obtain a standard pixel classification result;
[0031] A first construction module is used to construct an initial learning model including an encoder layer, a linear mapping layer, a position encoding layer and a classification layer, cut the first training image into a plurality of first sub-images, input the plurality of first sub-images as input values into the linear mapping layer to convert the plurality of first sub-images into a plurality of vector images, and output them to the encoder layer, assign position encoding information to the vector images in the encoder layer through the position encoding layer, perform pixel feature extraction on the vector images through the encoder layer to obtain pixel feature information with position encoding information, and output it to the classification layer, and convert the pixel feature information into a recognition pixel classification result through the classification layer;
[0032] A correction module, used for constructing a loss function based on the standard pixel classification result and the identification pixel classification result, and correcting the initial learning model based on the loss function to obtain a final learning model;
[0033] The second construction module is used to construct an embedded segmentation model based on the final learning model, and correct the embedded segmentation model through a secondary training picture to obtain the picture to be segmented, and perform image segmentation on the picture to be segmented through the corrected embedded segmentation model.
[0034] In a third aspect, an embodiment of the present application provides a computer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the image segmentation method for an embedded device as described in the first aspect above is implemented.
[0035] In a fourth aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon, which, when executed by a processor, implements the image segmentation method for an embedded device as described in the first aspect above.
[0036] Compared with the prior art, the beneficial effects of the present invention are as follows: by constructing the initial learning model separately, the picture coding layer and the picture decoding layer in the SAM model are separated, the picture coding layer is distilled separately, and the picture coding layer of the SAM model is used as a benchmark, so that the picture coding layer of the SAM model provides additional supervision signals for the initial learning model, completes the functional learning and model compression of the picture coding layer of the SAM model, forms the final learning model, compresses the huge amount of parameters into a smaller amount of parameters, and then can directly deploy the embedded segmentation model composed of the final learning model directly to the embedded device. Since the amount of parameters is greatly compressed, the hardware resources and hardware performance of the embedded device can be adapted to realize efficient processing of images in the embedded device. Further, by correcting the embedded model through the secondary training picture, the accuracy of image processing can be further improved, so that its processing results maintain a high consistency with the processing results of the SAM model.
[0037] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 is a flow chart of an image segmentation method for an embedded device in a first embodiment of the present invention;
[0039] Figure 2 is a schematic diagram of an initial learning model in an image segmentation method for an embedded device in a first embodiment of the present invention;
[0040] Figure 3 A schematic diagram of an embedded segmentation model in an image segmentation method for an embedded device in a first embodiment of the present invention;
[0041] Figure 4 It is a structural block diagram of an image segmentation system for embedded devices in a second embodiment of the present invention;
[0042] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0044] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.
[0045] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0046] See also Figure 1 The image segmentation method for an embedded device provided by the first embodiment of the present invention includes the following steps:
[0047] Step S10: obtaining a primary training picture, and performing pixel extraction on the primary training picture based on the picture encoding layer of the SAM model to obtain a standard pixel classification result;
[0048] The SAM model includes a picture coding layer, a prompt coding layer and a mask decoding layer, which is used to perform image segmentation on a picture. The application of the current SAM model is relatively extensive, and no further description is given here. The picture coding layer of the SAM model is based on an expandable and powerful pre-training method to achieve pixel category extraction of the picture. The standard pixel classification result of the once-trained picture is extracted by the picture coding layer of the SAM model, and its purpose is to provide a basis for subsequent model compression and function learning.
[0049] Step S20: constructing an initial learning model including an encoder layer, a linear mapping layer, a position encoding layer and a classification layer, cutting the first training image into a plurality of first sub-images, inputting the plurality of first sub-images as input values into the linear mapping layer to convert the plurality of first sub-images into a plurality of vector images, and outputting the plurality of vector images to the encoder layer, assigning position encoding information to the vector images in the encoder layer through the position encoding layer, performing pixel feature extraction on the vector images through the encoder layer to obtain pixel feature information with position encoding information, and outputting the information to the classification layer, and converting the pixel feature information into a recognition pixel classification result through the classification layer;
[0050] Preferably, the first training image is cut at a preset ratio, and the preset ratio can be adaptively adjusted according to the needs of image processing and the hardware performance of the embedded device. The linear mapping layer is used as the first layer structure of the initial learning model to perform vector conversion on the first sub-image. The purpose of assigning the position coding information is to make the vector image and the first sub-image correspond one-to-one, so that when the image is segmented based on pixel categories later, the image can be searched through the position coding information.
[0051] See also Figure 2 , the step S20 comprises:
[0052] S210: construct an encoder layer including two encoding layers;
[0053] The encoding layer includes an input layer, a first normalization layer, a multi-head attention layer, a second normalization layer and a multi-layer perceptron layer. The encoder layer is formed by superimposing two layers of the encoding layer.
[0054] S220: constructing a linear mapping layer and a position encoding layer connected to the input end of the encoder layer;
[0055] S230: Constructing a classification layer connected to the output end of the encoder layer to form an initial learning model.
[0056] Step S30: constructing a loss function based on the standard pixel classification result and the identification pixel classification result, and correcting the initial learning model based on the loss function to obtain a final learning model;
[0057] The loss function is:
[0058] ,
[0059] in, represents the loss function, represents the standard pixel classification result, Represents the classification result of the identified pixels.
[0060] The role of the loss function is to make the identified pixel classification results approach the standard pixel classification structure. Even when the image is subsequently segmented based on pixel categories, the output structure of the final learning model maintains a high degree of consistency with the output results of the picture encoding layer of the SAM model.
[0061] Step S40: constructing an embedded segmentation model based on the final learning model, and correcting the embedded segmentation model through a secondary training picture, obtaining a picture to be segmented, and performing image segmentation on the picture to be segmented through the corrected embedded segmentation model.
[0062] See also Figure 3 Specifically, the step S40 includes:
[0063] S410: constructing a picture segmentation model connected to the input end of the final learning model;
[0064] The image segmentation model can be used to segment the acquired image in a preset ratio.
[0065] S420: constructing a decoding model connected to the output end of the final learning model;
[0066] S430: constructing a pixel prompt model connected to the decoding model;
[0067] The pixel hint model is used to provide pixel coordinates for the decoding model, and then perform decoding operations on corresponding pixel categories based on the pixel coordinates.
[0068] S440: constructing an output model connected to the output end of the decoding model to form an embedded segmentation model;
[0069] At this point, the construction of the embedded segmentation model has been completed, and it can be directly deployed in embedded devices to perform image segmentation tasks.
[0070] Taking AR glasses as an example, a camera and a projector are arranged at the frame, and a microprocessor including the embedded segmentation model is arranged at the frame. After the camera completes the image acquisition, the image is transmitted to the microprocessor, and the image is segmented by the embedded segmentation model. Then, the microprocessor transmits the segmented image to the projector to complete the display of the cut image. Preferably, step S40 also includes:
[0071] S450: Obtain a secondary training picture, and input the secondary training picture into a SAM model to obtain a plurality of standard segmentation pictures based on pixel category segmentation;
[0072] That is, the secondary training image is passed through the complete SAM model to obtain the standard segmentation image through the SAM model, and the standard segmentation image is used as the benchmark value.
[0073] S460: Inputting the secondary training image into the image segmentation model to obtain a plurality of second sub-images, and transmitting the plurality of second sub-images to the final learning model;
[0074] S470: Obtaining the classification result of the recognized pixels of the second sub-picture in the final learning model, and transmitting it to the decoding model;
[0075] S480: Inputting pixel coordinates to the decoding model through the pixel prompt model, comparing the pixel coordinates with the classification results of the identified pixels of the second sub-image, and outputting the training segmentation image through the output model;
[0076] S490: Compare the training segmentation picture with the standard segmentation picture to calibrate the embedded segmentation model.
[0077] Based on the difference pixels between the standard segmentation picture and the training segmentation picture, the accuracy of the embedded segmentation model can be readjusted.
[0078] By constructing the initial learning model separately, the picture coding layer and the picture decoding layer in the SAM model are separated, the picture coding layer is distilled separately, and the picture coding layer is used as the benchmark for the first training picture, so that the picture coding layer of the SAM model provides additional supervision signals for the initial learning model, completes the functional learning and model compression of the picture coding layer of the SAM model, forms the final learning model, compresses the huge parameter amount into a smaller parameter amount, and then directly deploys the embedded segmentation model composed of the final learning model to the embedded device. According to the comparison, the parameter amount of the SAM model is 600M, while the parameter amount of the embedded segmentation model constructed in the present application is 10M. Due to the significant compression of the parameter amount, the hardware resources and hardware performance of the embedded device can be adapted to realize the efficient processing of the image in the embedded device. According to the experimental results, the processing speed of the embedded segmentation model in the embedded device for one image is only 0.3 seconds, and its delay rate is greatly reduced. Further, by correcting the embedded model through the second training picture, the accuracy of image processing can be further improved, so that its processing result maintains a high consistency with the processing result of the SAM model.
[0079] See also Figure 4 The second embodiment of the present invention provides an image segmentation system for an embedded device, which is applied to the image segmentation method for an embedded device as described in the above embodiment, and will not be repeated here. As used below, the terms "module", "unit", "subunit", etc. can be a combination of software and / or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0080] The system comprises:
[0081] The reference module 10 is used to obtain a training picture and perform pixel extraction on the training picture based on the picture coding layer of the SAM model to obtain a standard pixel classification result;
[0082] A first construction module 20 is used to construct an initial learning model including an encoder layer, a linear mapping layer, a position encoding layer and a classification layer, cut the first training image into a plurality of first sub-images, input the plurality of first sub-images as input values into the linear mapping layer, so as to convert the plurality of first sub-images into a plurality of vector images, and output them to the encoder layer, assign position encoding information to the vector images in the encoder layer through the position encoding layer, perform pixel feature extraction on the vector images through the encoder layer to obtain pixel feature information with position encoding information, and output it to the classification layer, and convert the pixel feature information into a recognition pixel classification result through the classification layer;
[0083] The first building block 20 comprises:
[0084] A first unit is used to construct an encoder layer including two encoding layers;
[0085] A second unit is used to construct a linear mapping layer and a position encoding layer connected to the input end of the encoder layer;
[0086] A third unit is used to construct a classification layer connected to the output end of the encoder layer to form an initial learning model;
[0087] A correction module 30, configured to construct a loss function based on the standard pixel classification result and the identification pixel classification result, and to correct the initial learning model based on the loss function to obtain a final learning model;
[0088] A second construction module 40 is used to construct an embedded segmentation model based on the final learning model, and correct the embedded segmentation model through a secondary training picture to obtain a picture to be segmented, and perform image segmentation on the picture to be segmented through the corrected embedded segmentation model;
[0089] The second building block 40 comprises:
[0090] A fourth unit is used to construct a picture segmentation model connected to the input end of the final learning model;
[0091] A fifth unit, used for constructing a decoding model connected to the output end of the final learning model;
[0092] A sixth unit, for constructing a pixel prompt model connected to the decoding model;
[0093] A seventh unit, for constructing an output model connected to the output end of the decoding model to form an embedded segmentation model;
[0094] An eighth unit is used to obtain a secondary training picture, and input the secondary training picture into a SAM model to obtain a plurality of standard segmentation pictures based on pixel category segmentation;
[0095] A ninth unit, configured to input the secondary training image into the image segmentation model to obtain a plurality of second sub-images, and transmit the plurality of second sub-images to the final learning model;
[0096] A tenth unit, configured to obtain a classification result of the recognized pixels of the second sub-image in the final learning model, and transmit the classification result to the decoding model;
[0097] an eleventh unit, configured to input pixel coordinates to the decoding model through the pixel prompt model, compare the pixel coordinates with the classification result of the identified pixels of the second sub-image, and output the training segmentation image through the output model;
[0098] The twelfth unit is used to compare the training segmentation picture with the standard segmentation picture to calibrate the embedded segmentation model.
[0099] The present invention also provides a computer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the image segmentation method for embedded devices as described in the above technical solution is implemented.
[0100] The present invention also provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the image segmentation method for an embedded device as described in the above technical solution is implemented.
[0101] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0102] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. An image segmentation method for embedded devices, characterized in that: The following steps are involved: Obtain a training picture, and perform pixel extraction on the training picture based on the picture encoding layer of the SAM model to obtain a standard pixel classification result; Constructing an initial learning model including an encoder layer, a linear mapping layer, a position encoding layer and a classification layer, cutting the first training image into a plurality of first sub-images, inputting the plurality of first sub-images as input values into the linear mapping layer to convert the plurality of first sub-images into a plurality of vector images, and outputting the plurality of vector images to the encoder layer, assigning position encoding information to the vector images in the encoder layer through the position encoding layer, performing pixel feature extraction on the vector images through the encoder layer to obtain pixel feature information with position encoding information, and outputting the information to the classification layer, and converting the pixel feature information into a recognition pixel classification result through the classification layer; Constructing a loss function based on the standard pixel classification result and the identification pixel classification result, and correcting the initial learning model based on the loss function to obtain a final learning model; An embedded segmentation model is constructed based on the final learning model, and the embedded segmentation model is corrected through a secondary training picture to obtain a picture to be segmented, and image segmentation is performed on the picture to be segmented through the corrected embedded segmentation model.
2. The image segmentation method for embedded devices according to claim 1, characterized in that: The steps of constructing an initial learning model including an encoder layer, a linear mapping layer, a position encoding layer and a classification layer include: Constructing an encoder layer including two encoding layers; Constructing a linear mapping layer and a position encoding layer connected to the input end of the encoder layer; A classification layer connected to the output of the encoder layer is constructed to form an initial learning model.
3. The image segmentation method for embedded devices according to claim 1, characterized in that: The loss function is: , in, represents the loss function, represents the standard pixel classification result, Represents the classification result of the identified pixels.
4. The image segmentation method for embedded devices according to claim 1, characterized in that: The specific steps of constructing the embedded segmentation model based on the final learning model are: Constructing a picture segmentation model connected to an input end of the final learning model; constructing a decoding model connected to an output end of the final learning model; Constructing a pixel hint model connected to the decoding model, the pixel hint model being used to provide pixel coordinates for the decoding model so as to perform a decoding operation on a corresponding pixel category based on the pixel coordinates; An output model is constructed that is connected to the output of the decoding model to form an embedded segmentation model.
5. The image segmentation method for embedded devices according to claim 4, characterized in that: The step of correcting the embedded segmentation model through the secondary training picture comprises: Obtaining a secondary training picture, and inputting the secondary training picture into a SAM model to obtain a plurality of standard segmentation pictures based on pixel category segmentation; Inputting the secondary training picture into the picture segmentation model to obtain a plurality of second sub-pictures, and transmitting the plurality of second sub-pictures to the final learning model; Obtaining the classification result of the identified pixels of the second sub-image in the final learning model and transmitting it to the decoding model; Inputting pixel coordinates to the decoding model through the pixel prompt model, comparing the pixel coordinates with the classification results of the identified pixels of the second sub-image, so as to output the training segmented image through the output model; The training segmentation picture is compared with the standard segmentation picture to calibrate the embedded segmentation model.
6. An image segmentation system for embedded devices, applied to the image segmentation method for embedded devices as claimed in any one of claims 1 to 5, characterized in that: The system comprises: A benchmark module, used to obtain a training picture and perform pixel extraction on the training picture based on the picture coding layer of the SAM model to obtain a standard pixel classification result; A first construction module is used to construct an initial learning model including an encoder layer, a linear mapping layer, a position encoding layer and a classification layer, cut the first training image into a plurality of first sub-images, input the plurality of first sub-images as input values into the linear mapping layer to convert the plurality of first sub-images into a plurality of vector images, and output them to the encoder layer, assign position encoding information to the vector images in the encoder layer through the position encoding layer, perform pixel feature extraction on the vector images through the encoder layer to obtain pixel feature information with position encoding information, and output it to the classification layer, and convert the pixel feature information into a recognition pixel classification result through the classification layer; A correction module, used for constructing a loss function based on the standard pixel classification result and the identification pixel classification result, and correcting the initial learning model based on the loss function to obtain a final learning model; The second construction module is used to construct an embedded segmentation model based on the final learning model, and correct the embedded segmentation model through a secondary training picture to obtain the picture to be segmented, and perform image segmentation on the picture to be segmented through the corrected embedded segmentation model.
7. A computer comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the image segmentation method for an embedded device according to any one of claims 1 to 5 is implemented.
8. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the image segmentation method for an embedded device according to any one of claims 1 to 5 is implemented.
