Data processing device, data processing method, and program
The data processing device addresses the issue of incorrect classification by using a data compression and compaction method to map data onto a compact manifold, enabling accurate abnormality determination by suppressing abnormal data points and improving classification accuracy.
Patent Information
- Application Number
- PCT/JP2024/003609
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-01
- Filing Date
- 2024-02-05
- Publication Date
- 2024-09-06
AI Technical Summary
Existing AI-based data processing techniques fail to accurately determine data abnormalities, as they may incorrectly classify abnormal data as normal due to their inability to handle cases where target data includes information not present in the training samples, leading to high agreement between reconstructed and target data despite the presence of abnormality.
A data processing device and method that includes a data compression unit to reduce data dimensions, a compaction unit to map compressed data onto a compact manifold, and a reconstruction unit to generate reconstructed data, suppressing abnormal data points and enabling clear abnormality determination by comparing input and reconstructed data.
The solution effectively suppresses the appearance of abnormal data points in reconstructed data, allowing for clear identification of abnormalities in input data, thereby improving the accuracy of abnormality determination.
Smart Images

Figure JP2024003609_06092024_PF_FP
Abstract
Description
Data processing device, data processing method and program
[0001] The present disclosure relates to a data processing device, a data processing method, and a program.
[0002] 2. Description of the Related Art Technology has been advancing for determining whether or not any data contains anomalies by using AI (Artificial Intelligence) models and the like.
[0003] For example, Patent Literature 1 discloses a biosignal analysis system that determines arrhythmia based on electrocardiographic information. This system converts the electrocardiographic information to generate determination data, generates restored data by restoring the determination data using a trained model, and determines whether the determination data is normal waveform data or arrhythmia waveform data based on the difference between the restored data and the determination data.
[0004] Furthermore, Patent Document 2 discloses an image clustering method based on an autoencoder. In clustering, the autoencoder projects samples from an original image space into a feature space, and the samples are distributed together for each class in the feature space.
[0005] International Publication No. 2022 / 113792 Chinese Patent Application Publication No. 104933438
[0006] For data such as images, a method is envisioned in which normal data information is compressed to generate compressed data, and the system is trained to reconstruct the data based on the compressed data. During training, normal sample data is input to the system, and training is performed to increase the degree of match between the sample data and the reconstructed data.
[0007] In the inference phase, target data is input into the system, the system compresses the target data, and reconstructs the data based on the compressed data. If the target data and the reconstructed data match closely, it is assumed that the target data does not contain any data other than that contained in the sample data. Therefore, the target data is determined to be normal. However, if the match is low, it is assumed that the target data contains data that is not contained in the sample data. Therefore, the target data is determined to be abnormal.
[0008] However, even after learning, when the target data contains data that is not included in the sample data, it is possible that the degree of match between the data reconstructed by the system and the target data may be high. In this case, the target data may be erroneously determined to be normal, even though it should actually be determined to be abnormal. The technologies disclosed in Patent Documents 1 and 2 do not take such system problems into consideration, but simply disclose techniques for determination or classification, and therefore cannot solve this problem.
[0009] One object of the present disclosure is to provide a data processing device, a data processing method, and a program that can contribute to determining abnormalities in data. Note that this object is only one of multiple objects that the multiple embodiments disclosed herein aim to achieve. Other objects or problems and novel features will become apparent from the description of this specification or the accompanying drawings.
[0010] A data processing device according to one aspect of the present disclosure includes a data compression unit that generates compressed data by reducing the dimensionality of input data, a compaction unit that maps at least a portion of the compressed data onto a compact manifold, and a reconstruction unit that generates reconstructed data in which the input data is reconstructed using the compressed data including data mapped onto the compact manifold.
[0011] A data processing method according to one aspect of the present disclosure is executed by a computer, in which the computer generates compressed data by reducing the dimensionality of input data, maps at least a portion of the compressed data onto a compact manifold, and generates reconstructed data in which the input data is reconstructed using the compressed data including the data mapped onto the compact manifold.
[0012] A program according to one aspect of the present disclosure causes a computer to generate compressed data by reducing the dimensionality of input data, map at least a portion of the compressed data onto a compact manifold, and generate reconstructed data in which the input data is reconstructed using the compressed data including the data mapped onto the compact manifold.
[0013] The present disclosure makes it possible to provide a data processing device, a data processing method, and a program that can contribute to determining abnormalities in data.
[0014] FIG. 1 is a block diagram showing an example of a data processing device according to the present disclosure. FIG. 2 is a flowchart showing an example of representative processing of a data processing device according to the present disclosure. FIG. 3 is a block diagram showing an example of an anomaly determination device according to the present disclosure. FIG. 4 is a diagram showing an example of converting latent variables into values on a compact manifold. FIG. 5 is a diagram showing another example of a compact manifold. FIG. 6 is a diagram showing another example of a compact manifold. FIG. 7 is a diagram showing an example of input data and reconstructed data. FIG. 8 is a flowchart showing an example of representative processing of an anomaly determination device according to the present disclosure. FIG. 9 is a diagram showing processing of determining an anomaly in input data using related technology. FIG. 10 is a diagram showing processing of determining an anomaly in input data using an anomaly determination device according to the present disclosure. FIG. 11 is a block diagram showing an example of a hardware configuration of a device according to the present disclosure.
[0015] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. Note that the following description and drawings in the embodiments have been omitted or simplified as appropriate for clarity of explanation. Furthermore, in this disclosure, unless otherwise specified, when multiple items are defined as "at least one of the multiple items," the definition may mean any one item, or any multiple items including all items. Furthermore, the definitions of various terms in this disclosure use the definitions of terms in mathematics unless otherwise specified.
[0016] 1 is a block diagram showing an example of a data processing device. The data processing device 10 includes a data compression unit 11, a compaction unit 12, and a reconstruction unit 13. Each unit (means) of the data processing device 10 is controlled by a control unit (controller) not shown. Each unit will be described below.
[0017] [Configuration Description] The data compression unit 11 acquires input data and generates compressed data by reducing the dimensions of the input data. The input data may be image data such as still images or videos, text data, or any other type of data. The input data may be data from various fields, such as security data or medical data.
[0018] Reducing the dimensions of input data means reducing the dimensions of the vector when the input data is expressed as a vector. For example, if the input data is a still image, it means reducing the number of pixels. Therefore, by reducing the dimensions of the input data, the amount of information in the input data is compressed.
[0019] The compaction unit 12 maps at least a portion of the compressed data onto a compact manifold. More specifically, when the compressed data is represented as a plurality of points existing in a certain space, the compaction unit 12 converts some of the plurality of points into points on a compact manifold, which is a subset of Euclidean space. A compact manifold is a manifold that has a finite subcover for any open cover.
[0020] When compressed data is represented as a plurality of points existing in a certain space, the compactification unit 12 can map even points having extreme values in the space onto a compact manifold. Points having extreme values in the space refer to, for example, data that do not normally appear in the input data or that appear rarely. Mapping a point onto a compact manifold means, for example, renormalizing a point having extreme values in the space into a certain finite region. Examples of compact manifolds will be described later in the second embodiment.
[0021] The compaction unit 12 may map a part of the compressed data onto a compact manifold, or may map the entire compressed data onto a compact manifold.
[0022] The reconstruction unit 13 generates reconstructed data in which the input data is reconstructed using compressed data including the data mapped onto the compact manifold by the compaction unit 12. The dimensions of this reconstructed data are the same as the dimensions of the original input data. That is, the reconstruction unit 13 serves to restore the dimensions reduced by the data compression unit 11.
[0023] The reconstructed data generated by the reconstruction unit 13 is obtained by converting points having extreme numerical values in space into points on a compact manifold by the compactification unit 12. Therefore, in the reconstructed data, the appearance of abnormal data points that appeared in the input data is suppressed.
[0024] At least one of the blocks of the data compression unit 11, the compaction unit 12, and the reconstruction unit 13 may, for example, constitute an AI (Artificial Intelligence) model, or may be configured by the control unit reading a predetermined algorithm. Specifically, the data compression unit 11 may be configured as an AI (Artificial Intelligence) model such as an encoder network in an autoencoder. The reconstruction unit 13 may be configured as an AI model such as a decoder network in an autoencoder. Hereinafter, the encoder network and the decoder network will also be simply referred to as the encoder and the decoder.
[0025] 2 is a flowchart showing an example of a typical process of the data processing device 10, and this flowchart will be used to explain the process of the data processing device 10. Note that the details of each process have been described above, and therefore will not be explained again.
[0026] First, the data compression unit 11 of the data processing device 10 generates compressed data by reducing the dimensions of input data (step S11: compressed data generation step). Next, the compaction unit 12 maps at least a portion of the compressed data onto a compact manifold (step S12: mapping step). Then, the reconstruction unit 13 uses the compressed data to generate reconstructed data in which the input data is reconstructed (step S13: reconstruction step).
[0027] [Explanation of Effects] Through the above-described processing, the data processing device 10 maps at least a portion of the compressed data used to generate reconstructed data onto a compact manifold. Even points with extreme numerical values in space are mapped onto the compact manifold, so that the reconstructed data suppresses the occurrence of anomalous data points that appeared in the input data. Therefore, by comparing the reconstructed data with the input data, it is possible to clearly identify anomalous data points in the input data.
[0028] Assume that even points with extreme values in space in the compressed data are not mapped onto a compact manifold. When the reconstruction unit 13 generates reconstructed data using this compressed data, there is a possibility that the anomalous data points will be expressed as they are in the reconstructed data. In this case, even if the reconstructed data is compared with the input data, it is not possible to clearly determine the anomalous data points in the input data.
[0029] However, for the reasons described above, the data processing device 10 can generate reconstructed data that makes it possible to clearly determine the location of abnormal data in the input data, and therefore the data processing device 10 can contribute to determining abnormalities in the input data.
[0030] The processing executed by the data processing device 10 may be distributed and executed by multiple computers. In other words, the processing of the data processing device 10 may be realized in a distributed system. In the distributed system, part or all of the data processing device 10 may be implemented on a cloud. However, the functions of the data processing device 10 may be installed in a single device.
[0031] In the following, in the second embodiment, a specific example of the data processing device 10 described in the first embodiment will be disclosed. However, the specific example of the data processing device 10 described in the first embodiment is not limited to the following. Furthermore, the configuration and processing described below are merely examples, and are not limited to these.
[0032] 3 is a block diagram showing an example of an abnormality determination device 20. The abnormality determination device 20 is a device that determines an abnormal portion in input data, and includes a preprocessing unit 21, a data compression unit 22, a compaction unit 23, a reconstruction unit 24, and an abnormality determination unit 25.
[0033] The abnormality determination device 20 is used in both the learning phase and the inference phase. The data compression unit 22, the compaction unit 23, and the reconstruction unit 24 are each blocks that make up an AI model, and each block is made up of one or more layers. The preprocessing unit 21 to the reconstruction unit 24 are blocks used in the learning phase. In particular, the data compression unit 22 to the reconstruction unit 24 are blocks that are trained as an AI model in the learning phase. In the learning phase, an autoencoder technique is used.
[0034] After learning, in the inference phase, input data to be subjected to anomaly determination is input to the preprocessing unit 21. In this inference phase, the preprocessing unit 21 to the anomaly determination unit 25 are used to determine whether the input data is abnormal. Details of the processing in the learning and inference phases will be described later. Details of the processing in each unit of the anomaly determination device 20 will be described below.
[0035] The preprocessing unit 21 acquires input data. The method by which the preprocessing unit 21 acquires the input data is arbitrary. For example, the preprocessing unit 21 may receive input data from a device other than the abnormality determination device 20, such as a camera, or may acquire input data stored in storage of the abnormality determination device 20.
[0036] In this example, the input data acquired by the preprocessing unit 21 is a still image of a pedestrian-only area. However, the input data is not limited to this, and may be any data such as a moving image.
[0037] The preprocessing unit 21 performs preprocessing on the acquired input data so as to reduce the time required for processing performed by the data compression unit 22 and subsequent units or to enable accurate abnormality determination processing. For example, the preprocessing unit 21 may convert color image input data into a grayscale image. Alternatively, the preprocessing unit 21 may convert large-sized input data into a small size suitable for processing.
[0038] The data compression unit 22 corresponds to the data compression unit 11 according to the first embodiment. The data compression unit 22 acquires an image of input data and generates compressed data by reducing the dimensions of the input data. For example, if the original input data image contains tens of thousands of pixels, the input data is expressed in vector format as information on a sequence of tens of thousands of numbers. The data compression unit 22 can compress this sequence of numbers into information on a sequence of, for example, several hundred numbers. Each number in this information is defined as a latent variable, and the space to which the latent variables are mapped is defined as a latent space. In this process, the data compression unit 22 compresses the latent space into a low-dimensional space.
[0039] The compaction unit 23 corresponds to the compaction unit 12 according to the first embodiment. The compaction unit 23 converts points in the latent space of part of the compressed data generated by the data compression unit 22 into points on a compact manifold in Euclidean space. The definition of the compact manifold is as described in the first embodiment.
[0040] In the latent space of the compressed data generated by the data compression unit 22, the values of each latent variable lie on an infinitely extending number line. That is, the latent variables can take on very large or small values (extreme values). Even for such latent variables, the compaction unit 23 can convert them into values on a compact manifold.
[0041] Figure 4 shows an example of converting latent variables into values on a compact manifold. In this example, the compact manifold is defined as follows: ...(1) (1) indicates a circumference with a radius of 1 in two-dimensional Euclidean space. FIG. 4 shows that when a value on the number line L1 is θ, the compactification unit 23 converts θ into a point (cos θ, sin θ) on the circumference M1, which is a compact manifold in two-dimensional Euclidean space. As a specific example, FIG. 4 shows that the values of latent variables A1 (value: 0.451) and A2 (value: 2.021) on the number line L1 are converted into B1 (cos(0.451), sin(0.451)) and B2 (cos(2.021), sin(2.021)) on the circumference shown in (1), respectively.
[0042] Furthermore, the compact manifold to which the values in the latent space are converted is not limited to the above definition, and various other definitions are possible. Examples of such definitions are described below.
[0043] Another example of a compact manifold is shown in Figure 5. In this example, the compact manifold is defined as follows: ...(2) (2) shows the circumference of an ellipse in two-dimensional Euclidean space. In FIG. 5, the circumference of (2) is shown as M2. Here, the circumference of the ellipse shown in (2) is a manifold that is homeomorphic to the circumference shown in (1). Note that the compaction unit 23 is not limited to the examples shown in (1) and (2), and can use any manifold that is homeomorphic to the circumference as the compact manifold.
[0044] Another example of a compact manifold is shown in Figure 6. In this example, the compact manifold is defined as follows: ...(3) (3) represents a closed disk with a radius of 1 in two-dimensional Euclidean space. In Fig. 6, the circumference of (2) is shown as M3. Note that the compactification unit 23 is not limited to the example shown in (3), and can use a manifold that is homeomorphic to a closed disk as the compact manifold.
[0045] The compactification unit 23 may perform a mapping transformation using a compact manifold that does not necessarily satisfy the injective condition, or may perform the injective condition. However, in order to reliably renormalize the values of the latent space into a finite region by the transformation, it is preferable that the variables in the destination of the transformation are allowed to overlap. Therefore, it is preferable that the mapping transformation using a compact manifold does not satisfy the injective condition.
[0046] The reconstruction unit 24 corresponds to the reconstruction unit 13 according to the first embodiment. The reconstruction unit 24 generates reconstructed data in which the input data is reconstructed using compressed data including data mapped onto a compact manifold by the compaction unit 23. For example, if an image of the input data is expressed as information on a string of tens of thousands of numbers, and this string of numbers is compressed by the data compression unit 22 into information on a string of several hundred numbers, the reconstruction unit 24 generates reconstructed data of an image expressed as information on a string of tens of thousands of numbers. In this way, the reconstructed data reproduces the same amount of information as the preprocessed input data, and is data that can be compared with the input data.
[0047] The data compression unit 22 and the reconstruction unit 24 respectively constitute the encoder and decoder of the autoencoder.
[0048] (Learning Phase) In the learning phase, sample input data for learning is input as input data to the pre-processing unit 21, whereby the AI models of the data compression unit 22 to the reconstruction unit 24 are simultaneously trained and the parameters constituting each AI model are optimized. Here, learning is performed so that the reconstructed data output from the reconstruction unit 24 becomes closer to the sample input data preprocessed by the pre-processing unit 21.
[0049] That is, in this learning phase, edge weights in the layers of the data compression unit 22 and the reconstruction unit 24 are set as unsupervised learning so that the preprocessed sample input data and the reconstructed data match as closely as possible. In this learning phase, the data compression unit 22 is trained to extract information necessary for image reconstruction from the input data. And the reconstruction unit 24 is trained to reconstruct an image from the compressed data that is close to the input data.
[0050] In this example, the sample input data is a still image of a pedestrian-only area. The image contains pedestrians, buildings, and other objects that are not unusual for a pedestrian-only area, but does not contain vehicles such as cars and bicycles, which are unusual for a pedestrian-only area.
[0051] By learning using this sample input data, the trained AI model from the data compression unit 22 to the reconstruction unit 24 becomes able to accurately restore pedestrians and other objects captured in the input data in the reconstructed data. However, vehicles are not included in the learning. Therefore, even if the trained AI model from the data compression unit 22 to the reconstruction unit 24 acquires input data in which a vehicle is captured in an image, it is expected that the trained AI model will not be able to accurately restore the vehicle in the reconstructed data.
[0052] (Inference Phase) Next, in the inference phase, an image of input data to be subjected to anomaly detection is input to the preprocessing unit 21. Each of the AI models in the preprocessing unit 21 to the reconstructing unit 24 performs the above-described processing on this input data. As a result of the processing, the reconstructing unit 24 generates reconstructed data corresponding to the input data.
[0053] Here, if no abnormal object is captured in the input data image, the reconstruction unit 24 can generate reconstructed data that is similar to the input data. Specifically, assume that the difference between the pixel value of a pixel in the input data image and the pixel value of the pixel in the reconstructed data image corresponding to that pixel is calculated. When the difference is added for all or part of the pixels in the input data (or reconstructed data) image, if no abnormal object is captured in the input data image, the sum of the calculated differences will be less than a predetermined threshold. This sum of differences is also referred to as the reconstruction error.
[0054] On the other hand, if an abnormal object is captured in the image of the input data, it is assumed that the reconstruction unit 24 cannot accurately restore the abnormal object in the reconstructed data. In this case, the reconstruction error between the input data and the reconstructed data is equal to or greater than a predetermined threshold.
[0055] 7A and 7B are diagrams showing examples of input data and reconstructed data. Fig. 7A shows that when a person P appears in an image of input data I1, the person P is accurately reconstructed in reconstructed data I2. In contrast, Fig. 7B shows that when a person P and a vehicle V appear in an image of input data I1, the person P is accurately reconstructed in reconstructed data I2, but the vehicle V is not accurately reconstructed. Therefore, the reconstruction error is small in the example of Fig. 7A, whereas the reconstruction error is large in the example of Fig. 7B.
[0056] The anomaly determination unit 25 calculates the reconstruction error described above for the input data and the reconstructed data and compares the calculated reconstruction error with a predetermined threshold. Details of the comparison calculation performed by the anomaly determination unit 25 to determine the magnitude relationship between the reconstruction error and the predetermined threshold are as described above. If the reconstruction error is less than the predetermined threshold, the anomaly determination unit 25 determines that the image of the input data does not contain an abnormal object, as does the sample input data. That is, the anomaly determination unit 25 determines that the image of the input data shows a normal scene. However, if the reconstruction error is equal to or greater than the predetermined threshold, the anomaly determination unit 25 determines that the image of the input data contains an abnormal object that was not present in the sample input data. That is, the anomaly determination unit 25 determines that the image of the input data shows an abnormal scene. In this example, the anomaly determination unit 25 utilizes the characteristics of the trained AI model to function as a block that determines an anomaly, i.e., the presence or absence of an object such as a vehicle, in an image captured of a pedestrian-only zone.
[0057] The target for which the abnormality determination unit 25 calculates the reconstruction error may be a partial region of the input data or the reconstructed data, or the entire region. Furthermore, the parameter used by the abnormality determination unit 25 when determining the presence or absence of an abnormal object in the input data is not limited to the reconstruction error, as long as it reflects the difference between corresponding pixel values in the input data and the reconstructed data.
[0058] Furthermore, the abnormality determination device 20 may further include an alarm unit having a display capable of displaying information and a speaker capable of audio notification, etc. When the abnormality determination unit 25 determines that the image of the input data shows a normal scene, it controls the alarm unit not to issue an alarm or to issue an alarm that the image of the input data shows a normal scene. On the other hand, when the abnormality determination unit 25 determines that the image of the input data shows an abnormal scene, it controls the alarm unit to issue an alarm or to issue an alarm that the image of the input data shows an abnormal scene.
[0059] 8 is a flowchart showing an example of a typical process of the abnormality determination device 20, and this flowchart will be used to explain the process of the abnormality determination device 20. Note that the details of each process are as described above, and therefore will not be explained again.
[0060] First, the preprocessing unit 21 of the abnormality determination device 20 acquires input data and performs preprocessing on the input data (step S21: preprocessing step). The data compression unit 22 compresses the preprocessed input data to generate compressed data (step S22: compressed data generation step).
[0061] Next, the compaction unit 23 maps a portion of the compressed data onto a compact manifold (step S23: mapping step).The reconstruction unit 24 uses the compressed data to generate reconstructed data in which the input data is reconstructed (step S24: reconstruction step).
[0062] The above steps S21 to S24 are performed in common in both the learning phase and the inference phase. In the inference phase, the following step S25 is further performed.
[0063] The abnormality determination unit 25 determines whether or not there is an abnormality in the image of the input data by comparing the input data preprocessed in step S21 with the reconstructed data generated in step S24 (step S25: reconstruction step).
[0064] [Explanation of Effect] In recent years, there has been a demand for a system that automatically detects abnormal events captured in images by analyzing images taken by surveillance cameras, etc. Specific examples of abnormal events include a car entering a pedestrian-only area, an object falling onto a highway, or incorrect work being performed at a manufacturing site.
[0065] When a system automatically determines whether an event captured in an image is normal or abnormal using an AI model, a large number of images capturing normal or abnormal events must be input during training of the AI model. However, if various types of abnormal events are anticipated, it is difficult to comprehensively prepare image data capturing abnormal events. For example, in the specific example of the abnormal event described above, not only cars but also other types of vehicles such as bicycles and objects such as skateboards may be expected to enter pedestrian-only areas. Furthermore, when an object falls onto a highway, various objects may be expected to fall. As such, it is considered practically difficult to train an AI model to determine abnormal events.
[0066] For the reasons stated above, it is considered practically preferable to input a large number of images capturing normal events into an AI model when training it. When an image to be judged is input to this trained AI model, if the AI model can accurately reproduce the image, it is assumed that a normal event is captured in the image, and if the AI model cannot accurately reproduce the image, it is assumed that an abnormal event is captured in the image.
[0067] However, such a trained AI model may be able to accurately reproduce an image even if the image contains an abnormal event. Specifically, when an AI model compresses image data, it is believed that in the latent space of the compressed data, the latent variables of the data representing the abnormal event exist at positions distant from the latent variables of the data representing the normal event. However, when the data representing this abnormal event is reconstructed, the original image to be judged may be reproduced with high accuracy (e.g., with a small reconstruction error). For example, if the image to be judged contains an event of a car entering a pedestrian-only area, the AI model may be able to accurately reproduce the car in the reconstructed image. This is also referred to as the AI model having excessive expressive power.
[0068] The problem of AI models having excessive expressive capabilities arose from the fact that the latent space was infinitely large, making it difficult for the AI model to control the behavior of abnormal event data in areas where normal event data did not appear.When the AI model accurately reproduced abnormal events, the difference between the image to be judged and the reconstructed image became small, which could result in abnormal events being overlooked.
[0069] In contrast, the anomaly detection device 20 includes a compaction unit 23 as a block that suppresses excessive expressive capabilities of the AI. The compaction unit 23 converts points with extreme numerical values in the latent space into points on the compact manifold by mapping a portion of the compressed data onto a compact manifold. That is, the compaction unit 23 suppresses points representing data on abnormal events from being present in an area of the latent space that is distant from an area where points representing data on normal events exist. Therefore, the reconstructed image suppresses the reproduction of abnormal events that occurred in the image to be detected. This increases the difference between the image to be detected and the reconstructed image. By comparing the two, abnormal events can be detected.
[0070] 9A and 9B respectively show the degree of abnormality of an image when a moving image to be judged is judged using related technology and the degree of abnormality of an image when a moving image to be judged is judged using the abnormality judgment device 20. The horizontal axis of Figures 9A and 9B indicates time in the moving image, and the vertical axis indicates the degree of abnormality, which is the reconstruction error. Furthermore, section A1 in Figure 9A and section A2 in Figure 9B each indicate a section in which an abnormal event occurred in the moving image.
[0071] In the related art, the compaction unit 23 is not provided in the anomaly determination device 20, and learning is performed by executing the unsupervised learning described in the second embodiment on the anomaly determination device 20. FIG. 9A shows an inference result using the anomaly determination device 20. In FIG. 9A, even when the degree of anomaly in section A1 is compared with the degree of anomaly in sections other than section A1, no significant difference can be found between the two. Therefore, if the reconstruction error threshold for determining whether something is normal or abnormal is increased, all scenes in the video are determined to be normal, whereas if the reconstruction error threshold is decreased, not only abnormal scenes but also scenes that are actually normal are determined to be abnormal.
[0072] 9B , when the degree of abnormality in section A2 is compared with the degree of abnormality in sections other than section A2, it can be said that the degree of abnormality in section A2 tends to be higher than the degree of abnormality in sections other than section A2. Therefore, by setting the reconstruction error threshold to an appropriate value, it is possible to distinguish between normal and abnormal scenes. In the example of FIG. 9B , by setting the reconstruction error threshold to around 0.294, it is possible to prevent normal scenes from being determined to be abnormal and to determine abnormal scenes as abnormal.
[0073] The abnormality determination device 20 may also include an abnormality determination unit 25 that determines an abnormality in the input data by comparing the preprocessed input data with the reconstructed data generated by the reconstructing unit 24. This allows the abnormality determination device 20 to determine an abnormality in the input data by itself.
[0074] Furthermore, the compaction unit 23 may map only a part of the compressed data onto a compact manifold, rather than all of the compressed data, thereby enabling the abnormality determination device 20 to further suppress the occurrence of abnormal events in the reconstructed data.
[0075] Furthermore, the compactification unit 23 may use a manifold that is homeomorphic to a circle as the compact manifold. As another example, the compactification unit 23 may use a manifold that is homeomorphic to a closed disk as the compact manifold. This allows the abnormality determination device 20 to perform characteristic processing using a relatively simple definition, making it easier for the user to configure the abnormality determination device 20.
[0076] In the above-described embodiments, this disclosure has been described as a hardware configuration, but this disclosure is not limited to this. This disclosure can also be realized by having a processor in a computer execute a computer program to perform the processing of the inspection management device or each device in the inspection management system described in the above-described embodiments.
[0077] 10 is a block diagram showing an example of the hardware configuration of an information processing device 90 that executes the processes of the above-described embodiments. Referring to FIG. 10, the information processing device 90 includes a signal processing circuit 91, a processor 92, and a memory 93.
[0078] The signal processing circuit 91 is a circuit for processing signals in accordance with the control of the processor 92. Note that the signal processing circuit 91 may include a communication circuit that performs at least one of receiving a signal from a transmitting device and transmitting a signal to a receiving device.
[0079] The processor 92 is connected to the memory 93, and performs the processing of the device described in the above embodiment by reading and executing a computer program from the memory 93. As an example of the processor 92, one of a CPU (Central Processing Unit), an MPU (Micro Processing Unit), an FPGA (Field-Programmable Gate Array), a DSP (Demand-Side Platform), and an ASIC (Application Specific Integrated Circuit) may be used, or a plurality of these may be used in parallel.
[0080] The memory 93 may be a volatile memory, a nonvolatile memory, or a combination thereof. The memory 93 is not limited to one, and may be provided in multiple units. The volatile memory may be, for example, a random access memory (RAM) such as a dynamic random access memory (DRAM) or a static random access memory (SRAM). The nonvolatile memory may be, for example, a read only memory (ROM) such as a programmable random only memory (PROM) or an erasable programmable read only memory (EPROM), a flash memory, or a solid state drive (SSD).
[0081] The memory 93 is used to store one or more instructions. Here, the one or more instructions are stored as programs in the memory 93. The processor 92 can perform the processes described in the above embodiments by reading and executing these programs from the memory 93.
[0082] The memory 93 may include a memory provided outside the processor 92, as well as a memory built into the processor 92. The memory 93 may also include a storage device located away from the processors constituting the processor 92. In this case, the processor 92 can access the memory 93 via an I / O (Input / Output) interface.
[0083] As described above, one or more processors included in each device in the above-described embodiments execute one or more programs including instructions for causing a computer to execute the algorithms described using the drawings. This processing enables the information processing described in each embodiment to be realized.
[0084] The program includes instructions or software code that, when loaded into a computer, causes the computer to perform one or more functions described in the embodiments. The program may be stored in a non-transitory computer-readable medium or a tangible storage medium. By way of example and not limitation, computer-readable media or tangible storage media include random-access memory (RAM), read-only memory (ROM), flash memory, solid-state drive (SSD) or other memory technologies, CD-ROM, digital versatile disk (DVD), Blu-ray disc or other optical disk storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage device. The program may also be transmitted on a transitory computer-readable medium or communication medium. By way of example and not limitation, transitory computer-readable media or communication media include electrical, optical, acoustic, or other forms of propagated signals.
[0085] Some or all of the above embodiments may also be described as, but are not limited to, the following supplements. Furthermore, some or all of the elements (e.g., configurations and functions) described in Supplements 2 to 7 that are dependent on Supplement 1 may also be dependent on Supplements 8 and 9 in the same dependency relationship as Supplements 2 to 7. In this way, some or all of the elements described in any supplement may be applied to various hardware, software, and recording means, systems, and methods for recording software. (Supplement 1) A data processing device comprising: a data compression unit that generates compressed data by reducing the dimension of input data; a compaction unit that maps at least a portion of the compressed data onto a compact manifold; and a reconstruction unit that generates reconstructed data in which the input data is reconstructed using the compressed data including data mapped onto the compact manifold. (Supplement 2) The data processing device according to Supplement 1, further comprising: a determination unit that determines an anomaly in the input data by comparing the input data with the reconstructed data. (Supplementary Note 3) The data processing device according to Supplementary Note 2, wherein the determination unit calculates a difference between a pixel value of a predetermined pixel in the image of the input data and a pixel value of a pixel in the image of the reconstructed data corresponding to the predetermined pixel, compares a sum value obtained by adding the difference for each pixel in all or part of an area of the image of the input data with a predetermined threshold, and determines that the image of the input data has an abnormality if the sum value is equal to or greater than the predetermined threshold. (Supplementary Note 4) The data processing device according to Supplementary Note 2 or 3, further comprising: a notification unit that issues a notification depending on whether or not there is an abnormality in the input data. (Supplementary Note 5) The data processing device according to any one of Supplements 1 to 4, wherein the compaction unit maps a part of the compressed data onto the compact manifold. (Supplementary Note 6) The data processing device according to any one of Supplements 1 to 5, wherein the compaction unit uses a manifold that is homeomorphic to a circle as the compact manifold. (Supplementary Note 7) The data processing device according to any one of Supplementary Notes 1 to 5, wherein the compactification unit uses a manifold homeomorphic to a closed disk as the compact manifold.(Supplementary Note 8) A computer-implemented data processing method comprising: generating compressed data by reducing the dimensionality of input data; mapping at least a portion of the compressed data onto a compact manifold; and generating reconstructed data in which the input data is reconstructed using the compressed data including data mapped onto the compact manifold. (Supplementary Note 9) A program causing a computer to execute the steps of: generating compressed data by reducing the dimensionality of input data; mapping at least a portion of the compressed data onto a compact manifold; and generating reconstructed data in which the input data is reconstructed using the compressed data including data mapped onto the compact manifold.
[0086] The drawings referenced in the above embodiments are merely examples for describing one or more embodiments. Each drawing may not be related to only one particular embodiment, but may also be related to one or more other embodiments. As will be understood by those skilled in the art, various features or steps described with reference to any one drawing can be combined with features or steps shown in one or more other drawings to create, for example, an embodiment not explicitly shown or described. Not all features or steps shown in any one drawing are necessarily required to describe an exemplary embodiment, and some features or steps may be omitted. The order of steps described in any drawing may be changed as appropriate.
[0087] Although the present disclosure has been described above, the present disclosure is not limited to the above-described embodiments. Various modifications that can be understood by those skilled in the art can be made to the configuration and details of the present disclosure within the scope of the disclosure. Furthermore, each embodiment can be combined with other embodiments as appropriate.
[0088] This application claims priority based on Japanese Patent Application No. 2023-031025, filed March 1, 2023, the disclosure of which is incorporated herein in its entirety.
[0089] REFERENCE SIGNS LIST 10 Data processing device 11 Data compression unit 12 Compaction unit 13 Reconstruction unit 20 Abnormality determination device 21 Preprocessing unit 22 Data compression unit 23 Compaction unit 24 Reconstruction unit 25 Abnormality determination unit
Claims
1. A data processing device comprising: a data compression means for generating compressed data by reducing the dimensionality of input data; a compaction means for mapping at least a portion of the compressed data onto a compact manifold; and a reconstruction means for generating reconstructed data in which the input data is reconstructed, using the compressed data including the data mapped onto the compact manifold.
2. The data processing device according to claim 1, further comprising: determination means for determining an abnormality in said input data by comparing said input data with said reconstructed data.
3. A data processing device as described in claim 2, wherein the judgment means calculates the difference between a pixel value of a specified pixel in the image of the input data and a pixel value of a pixel in the image of the reconstructed data corresponding to the specified pixel, compares the sum of the difference for each pixel in all or part of the area of the image of the input data with a specified threshold value, and judges that there is an abnormality in the image of the input data if the sum value is equal to or greater than the specified threshold value.
4. The data processing device according to claim 2 or 3, further comprising: a notification means for issuing a notification depending on the presence or absence of an abnormality in the input data.
5. A data processing apparatus according to any one of claims 1 to 4, wherein said compacting means maps a portion of said compressed data onto said compact manifold.
6. A data processing device according to any one of claims 1 to 5, wherein said compactification means uses a manifold that is homeomorphic to a circle as said compact manifold.
7. A data processing device according to any one of claims 1 to 5, wherein said compactification means uses a manifold that is homeomorphic to a closed disk as said compact manifold.
8. A computer-implemented data processing method, comprising: generating compressed data by reducing a dimensionality of input data; mapping at least a portion of the compressed data onto a compact manifold; and generating reconstructed data in which the input data is reconstructed using the compressed data including data mapped onto the compact manifold.
9. The data processing method according to claim 8, wherein the computer determines an anomaly in the input data by comparing the input data with the reconstructed data.
10. The data processing method according to claim 9, wherein the computer calculates the difference between a pixel value of a specified pixel in the image of the input data and a pixel value of a pixel in the image of the reconstructed data corresponding to the specified pixel, compares the sum of the difference for each pixel in all or part of the area of the image of the input data with a specified threshold value, and determines that the image of the input data has an abnormality if the sum value is equal to or greater than the specified threshold value.
11. The data processing method according to claim 8 or 9, wherein the computer issues an alert depending on whether or not there is an abnormality in the input data.
12. The data processing method according to any one of claims 8 to 11, wherein the computer maps a portion of the compressed data onto the compact manifold.
13. The data processing method according to any one of claims 8 to 12, wherein the computer uses a manifold that is homeomorphic to a circle as the compact manifold.
14. The data processing method according to any one of claims 8 to 12, wherein the computer uses a manifold that is homeomorphic to a closed disk as the compact manifold.
15. A program that causes a computer to execute the following steps: generate compressed data by reducing the dimensionality of input data; map at least a portion of the compressed data onto a compact manifold; and generate reconstructed data in which the input data is reconstructed using the compressed data including the data mapped onto the compact manifold.
16. The program according to claim 15, which causes the computer to determine an anomaly in the input data by comparing the input data with the reconstructed data.
17. The program according to claim 16, which causes the computer to calculate the difference between a pixel value of a specified pixel in the image of the input data and a pixel value of a pixel in the image of the reconstructed data corresponding to the specified pixel, compare the sum of the difference obtained by adding up the difference for each pixel in all or part of the area of the image of the input data with a specified threshold value, and determine that the image of the input data has an abnormality if the sum value is equal to or greater than the specified threshold value.
18. The program according to any one of claims 15 to 17, further comprising causing the computer to map a portion of the compressed data onto the compact manifold.
19. The program according to any one of claims 15 to 18, causing the computer to use a manifold that is homeomorphic to a circle as the compact manifold.
20. The program according to any one of claims 15 to 18, which causes the computer to use a manifold that is homeomorphic to a closed disk as the compact manifold.
Citation Information
Patent Citations
Abnormality detector, learning device, abnormality detection method learning method, abnormality detection program and learning program
JP2018049355A
Abnormality detection device, abnormality detection method, and program
JP2020013449A
Program, method for creating learned model, information processing method and information processing device
JP2021140739A
Abnormality detection method, abnormality detection device, and abnormality detection program
JP2022037623A
