The disclosure relates to a classification device and a classification method based on a neural network.
With the rise of the Internet of things (IoT) technology, more and more users monitor various values of a device by installing various types of sensors on the device. In this way, a large amount of different types of sensing data will be obtained. However, the current machine learning technology cannot train or improve a classification model through the different types of sensing data. Therefore, even if the user collects a large amount of heterogeneous data related to the device, the user is still unable to improve the accuracy of the classification model through the heterogeneous data.
The disclosure provides to a classification device and a classification method based on a neural network, which can generate classification results through heterogeneous data.
A classification device based on a neural network of the disclosure includes a heterogeneous integration module and a recurrent neural network. The heterogeneous integration module includes a convolutional layer, a data normalization layer, a connected layer and a classification layer. The convolutional layer generates a first feature map according to a first image data. The data normalization layer normalizes a first numerical data to generate a first normalized numerical data. The first numerical data corresponds to the first image data. The first image data and the first numerical data correspond to a first time point. The connected layer is coupled to the convolutional layer and the data normalization layer, and generates a first feature vector according to the first feature vector and the first normalized numerical data. The classification layer is coupled to the connected layer, and generates a first classification result corresponding to the first image data and the first numerical data according to the first feature vector. The heterogeneous integration module generates a second classification result according to a second image data and a second numerical data corresponding to a second time point. The second numerical data corresponds to the second image data. The recurrent neural network is coupled to the heterogeneous integration module. The recurrent neural network generates a third classification result corresponding to the second image data and the second numerical data according to the first classification result and the second classification result.
In an embodiment of the disclosure, the connected layer concatenates the first feature map and the first normalized numerical data to generate a concatenation data, and generates the first feature vector according to the concatenation data.
In an embodiment of the disclosure, the first normalized numerical data is normalized to a value from 0 to 1.
A classification device based on a neural network of the disclosure includes a heterogeneous integration module and a recurrent neural network. The heterogeneous integration module includes a convolutional layer, a data normalization layer and a connected layer. The convolutional layer generates a first feature map according to a first image data. The data normalization layer normalizes a first numerical data to generate a first normalized numerical data. The first numerical data corresponds to the first image data. The first image data and the first numerical data correspond to a first time point. The connected layer is coupled to the convolutional layer and the data normalization layer, and generates a first feature vector according to the first feature vector and the first normalized numerical data. The recurrent neural network is coupled to the connected layer. The recurrent neural network generates a first classification result corresponding to the first image data and the first numerical data according to the first feature vector. The heterogeneous integration module generates a second feature vector according to a second image data and a second numerical data corresponding to a second time point. The second numerical data corresponds to the second image data. The recurrent neural network generates a second classification result corresponding to the second image data and the second numerical data according to the first feature vector and the second feature vector.
In an embodiment of the disclosure, the connected layer concatenates the first feature map and the first normalized numerical data to generate a concatenation data, and generates the first feature vector according to the concatenation data.
In an embodiment of the disclosure, the first normalized numerical data is normalized to a value from 0 to 1.
A classification method based on a neural network of the disclosure includes: obtaining a first image data and a first numerical data corresponding to a first time point, wherein the first numerical data corresponds to the first image data; obtaining a heterogeneous integration module, wherein the heterogeneous integration module includes a convolutional layer, a data normalization layer, a connected layer and a classification layers; generating a first feature map according to the first image data by the convolutional layer; normalizing the first numerical data to generate a first normalized numerical data by the data normalization layer; generating a first feature vector according to the first feature map and the first normalized numerical data by the connected layer; generating a first classification result corresponding to the first image data and the first numerical data according to the first feature vector by the classification layer; obtaining a second image data and a second numerical data corresponding to a second time point, wherein the second numerical data corresponds to the second image data; generating a second classification result according to the second image data and the second numerical data by the heterogeneous integration module; obtaining a recurrent neural network; and generating a third classification result corresponding to the second image data and the second numerical data according to the first classification result and the second classification result by the recurrent neural network.
In an embodiment of the disclosure, the connected layer concatenates the first feature map and the first normalized numerical data to generate a concatenation data, and generates the first feature vector according to the concatenation data.
In an embodiment of the disclosure, the first normalized numerical data is normalized to a value from 0 to 1.
A classification method based on a neural network of the disclosure includes: obtaining a first image data and a first numerical data corresponding to a first time point, wherein the first numerical data corresponds to the first image data; obtaining a heterogeneous integration module and a recurrent neural network, wherein the heterogeneous integration module includes a convolutional layer, a data normalization layer and a connected layer; generating a first feature map according to the first image data by the convolutional layer; normalizing the first numerical data to generate a first normalized numerical data by the data normalization layer; generating a first feature vector according to the first feature map and the first normalized numerical data by the connected layer; generating a first classification result corresponding to the first image data and the first numerical data according to the first feature vector by the recurrent neural network; obtaining a second image data and a second numerical data corresponding to a second time point, wherein the second numerical data corresponds to the second image data; generating a second feature vector according to the second image data and the second numerical data by the heterogeneous integration module; and generating a second classification result corresponding to the second image data and the second numerical data according to the first feature vector and the second feature vector by the recurrent neural network.
In an embodiment of the disclosure, the connected layer concatenates the first feature map and the first normalized numerical data to generate a concatenation data, and generates the first feature vector according to the concatenation data.
In an embodiment of the disclosure, the first normalized numerical data is normalized to a value from 0 to 1.
Based on the above, the classification device of the disclosure can generate the classification results according to the heterogeneous data. The recurrent neural network in the classification device can improve the classification results by the timing-related.
In order to make content of the present disclosure more comprehensible, embodiments are described below as the examples to prove that the present disclosure can actually be realized. Moreover, elements/components/steps with same reference numerals represent same or similar parts in the drawings and embodiments.
The classification device 100 is, for example, a deep neural network (DNN) capable of integrating heterogeneous data and timing. The classification device 100 can generate classification results according to the heterogeneous data, such as image data and numerical data. For example, the classification device 100 can be used to determine whether a glue outlet of a die bonder is blocked. In detail, the classification device 100 can determine whether the glue outlet of the die bonder is blocked according to an image of the glue outlet and an air pressure value of the glue outlet. For another example, the classification device 100 can be used to determine whether a drug needs to be injected for a patient with macular disease. In detail, the classification device 100 can determine whether to inject the drug for the patient with macular disease according to an optical coherence tomography (OCT) image and basic information of the patient (e.g., age or Landolt C chart test results). The classification device 100 can also be used to verify a sensor function. For example, when a sensor is added to the process line, the classification device 100 can generate a classification result according to a sensing data of the new sensor. The user can determine whether the sensing data of the new sensor is abnormal according to a correctness of the classification result.
The classification device 100 may include a heterogeneous integration module 110 and a recurrent neural network (RNN) 120.
The convolutional layer 111 may receive an image data a1, and generate (one or more) feature map(s) a3 according to the image data a1. The data normalization layer 112 may receive a numerical data a2 corresponding to the image data a1, and may normalize the numerical data a2 to generate a normalized numerical data a4. In an embodiment, the data normalization layer 112 may normalize the numerical data a2 to a value from 0 to 1, so as to generate the normalized numerical data a4.
The connected layer 113 may generate a feature vector a5 according to the feature map a3 and the normalized numerical data a4. In an embodiment, the connected layer 113 may concatenate the feature map a3 and the normalized numerical data a4 to generate a concatenation data, and generate the feature vector a5 according to the concatenation data. After the feature vector a5 is generated, the classification layer 114 may generate a classification result a6 corresponding to image data a1 and the numerical data a2 according to the feature vector a5.
The recurrent neural network 120 may be coupled to the classification layer 114 of the heterogeneous integration module 110. The recurrent neural network 120 may generate a more accurate classification result based on timing-related data (i.e., the classification result) output by the heterogeneous integration module 110.
Based on similar steps, it is assumed that the heterogeneous integration module 110 may also generate a classification result a6(n+2) according to an image data a1(n+2) and a numerical data a2(n+2) corresponding to a time point t=n+2. The recurrent neural network 120 may receive the classification result a6(n+1) corresponding to the time point t=n+1 and the classification result a6(n+2) corresponding to the time point t=n+2 from the heterogeneous integration module 110, and generate a classification result a7(n+2) corresponding to the image data a1(n+2) and the numerical data a2(n+2) according to the classification result a6(n+1) and the classification result a6(n+2).
The classification device 200 is, for example, a deep neural network capable of integrating heterogeneous data and timing. The classification device 200 can generate classification results according to the heterogeneous data, such as image data and numerical data. For example, the classification device 200 can be used to determine whether a glue outlet of a die bonder is blocked. In detail, the classification device 200 can determine whether the glue outlet of the die bonder is blocked according to an image of the glue outlet and an air pressure value of the glue outlet. For another example, the classification device 200 can be used to determine whether a drug needs to be injected for a patient with macular disease. In detail, the classification device 200 can determine whether to inject the drug for the patient with macular disease according to an optical coherence tomography (OCT) image and basic information of the patient (e.g., age or Landolt C chart test results). The classification device 200 can also be used to verify a sensor function. For example, when a sensor is added to the process line, the classification device 200 can generate a classification result according to a sensing data of the new sensor. The user can determine whether the sensing data of the new sensor is abnormal according to a correctness of the classification result.
The classification device 200 may include a heterogeneous integration module 210 and a recurrent neural network 220.
The convolutional layer 211 may receive an image data b1, and generate (one or more) feature map(s) b3 according to the image data b1. The data normalization layer 212 may receive a numerical data b2 corresponding to the image data b1, and may normalize the numerical data b2 to generate a normalized numerical data b4. In an embodiment, the data normalization layer 212 may normalize the numerical data b2 to a value from 0 to 1, so as to generate the normalized numerical data b4.
The connected layer 213 may generate a feature vector b5 according to the feature map b3 and the normalized numerical data b4. In an embodiment, the connected layer 213 may concatenate the feature map b3 and the normalized numerical data b4 to generate a concatenation data, and generate the feature vector b5 according to the concatenation data.
The recurrent neural network 220 may be coupled to the connected layer 213 of the heterogeneous integration module 210. The recurrent neural network 220 may receive the feature vector b5 from the heterogeneous integration module 210, and generate a classification result b6 corresponding to the image data b1 and the numerical data b2 according to the feature vector b5. In an embodiment, the recurrent neural network 220 may generate the classification result corresponding to the image data b1 and the numerical data b2 based on the timing-related data (i.e., the feature vector) output by the heterogeneous integration module 210.
Based on similar steps, it is assumed that the heterogeneous integration module 210 may also generate a feature vector b5(m+2) according to an image data b1(m+2) and a numerical data b2(m+2) corresponding to a time point t=m+2. The recurrent neural network 220 may receive the feature vector b5(m+1) corresponding to the time point t=m+1 and the feature vector b5(m+2) corresponding to the time point t=m+2 from the heterogeneous integration module 210, and generate a classification result b6(m+2) corresponding to the image data b1(m+2) and the numerical data b2(m+2) according to the feature vector b5(m+1) and the feature vector b5(m+2).
In summary, the classification device of the disclosure can obtain the heterogeneous data including the image data and the numerical data, and generate the classification results based on the heterogeneous data. Compared with the traditional classification technology that only uses the image data, the classification results generated by the disclosed technology are more accurate. On the other hand, the classification device of the disclosure can include the recurrent neural network, which can analyze the timing-related data and use the data to improve the classification results. Therefore, the performance of the classification device will improve over time.
Although the present disclosure has been described with reference to the above embodiments, it is apparent to one of the ordinary skill in the art that modifications to the described embodiments may be made without departing from the spirit of the present disclosure. Accordingly, the scope of the present disclosure will be defined by the attached claims not by the above detailed descriptions.
Number | Date | Country | Kind |
---|---|---|---|
109137445 | Oct 2020 | TW | national |
This application claims the priority benefit of U.S. provisional application Ser. No. 63/091,280, filed on Oct. 13, 2020 and Taiwan application no. 109137445, filed on Oct. 28, 2020. The entirety of each of the above-mentioned patent applications is hereby incorporated by reference herein and made a part of this specification.
Number | Date | Country | |
---|---|---|---|
63091280 | Oct 2020 | US |