These and other features, aspects, and advantages of the present invention will become better understood with regard to the following description, appended claims, and accompanying drawings where:
The following is a detailed description and explanation of the preferred embodiments and best modes contemplated by the inventors of carrying out the invention along with some examples thereof.
Hereinafter, embodiments of the invention will be described in more detail with reference to the accompanying drawings. In the description with reference to the accompanying drawings, those components are rendered the same reference number that are the same or are in correspondence regardless of the figure number, and redundant explanations are omitted.
The present invention relates to a signal pattern analysis of a multi-channel sensor array. Although the description below describes a signal pattern analysis of a gas sensor array, it should be noted that such a description is not intended to limit the scope of the invention.
The present invention uses a state transition model for modeling, and analyzes a created model with a statistical method.
Multidimensional signals inputted from a sensor array are transformed into a single set of continuous data, and a gas signal pattern is drawn from the transformed data to be modeled.
In the gas signal pattern recognition method, data of a target gas is preprocessed to be stored, so that new data of an input gas can be compared with the stored data value.
In the case of using the state transition model, how the properties of data are reflected affects the effectivness of the gas signal pattern recognition. Therefore, the components of the model should be arranged appropriately to increase the effectiveness of the analaysis.
The state transition model is composed of a number of states, which are related to each other by a temporal deductive relation, spatial positional relation, or input/output relation.
The relation between the states, as a continuous relation, represents features or direction of the transition.
The gas sensor is more required for recognizing a toxic gas than an innocuous gas.
Also, in some cases, promptness may be a key factor in the gas signal pattern recognition. And, the state transition modeling and the analyzing method of the present invention uses a statistical method to analyze the gas signal pattern, thereby analyzing a gas signal pattern promptly.
The time spent for identifying the gas signal pattern depends on the time spent for modeling and analyzing the gas signal pattern. It takes an O(N) of time to perform modeling, and an O(N2) of time to analyze. Here, the N is the number of the states.
According to the present invention, the N is defined as a doubledigit number or a singledigit number, so that the overall process takes short time.
Also, the amount of input data does not affect on the accuracy of the analysis so that the method using the state transition model is more advantageous in accuracy and speed than the neural network method that needs more calculation time as the amount of the data increases.
According to the present invention, a method called ADSTM (Angle Differnce based State Transition Modeling) is introduced, which quantitizes a measured gas signal pattern, and then applies transition relation of angles to modeling.
In order to identify the ingredients of a gas is calculated a similarity between the stored data and newly inputted data.
In the present invention, the similarity is calculated through measuring a spatial similarity between state transition matrices generated by the state transition modeling method.
In the present invention, the signal outputted by the sensor array has multidimensional data measured by a plurality of channels of the sensor array.
In
In general, a relatively simple method is employed to calculate the similarity between common functions or two-dimensional curves. The simplest method for calculating the similarity is to compare by measuring distance between the curves.
And, among the distance measuring methods is widely used a method using the Euclidean space, which compares the distance between each pair of points constituting the curve.
Since data on different components is inputted to each different channel of the sensor array, when measuring two different gases, each two signals measured by the majority of the channels may have similar patterns except by one or two channels.
In such a case, although two gas signal patterns look similar and have a very small value of Euclidean space distance, the two gases should be distinguished because they have different organizions of components.
However, there are possibilities that different gases are mistakenly regonized as the same gas when using the Euclidean distance measurement method.
Thus, for an accurate analysis, the most important is to fully represent characteristics of each gas curve and to model a gas signal pattern easy to identify.
The ADSTM should extract elements satisfying a modeling reference from a sensor array signal as shown in
And, the state transition modeling is applied in analyzing the sensor array signal so that the characteristic and the meaning of signal is reflected on the modeling.
Referring to
Here, the following description focuses on a case where the sensor array 102 is composed of many kinds of gas sensors.
The gas sensor 100 detects reaction heat or a change in electric conductivity, and converts it to an electric signal. The gas sensor 100 includes a semiconductor type, catalytic combustion type, etc.
The preprocessor 104 extracts elements for modeling from values outputted by the sensor array 102. The values detected by the sensor array are measured repeatedly, so that the values are repeatedly inputted into the preprocessor 104, creating a pattern as shown in
In order to generate a model, the preprocessor 104 forms a pattern composed of the average of the measured values repeatedly inputted. Here, the measured values that are highly deviated from normal measured values are excluded when calculating the average. Especially, in most cases, the initial value is erroneous. The preprocessor 104 excludes such an initial value of the gas signal pattern to calculate the average.
Referring to
Accordingly, the meaning section extractor 106 extracts the rising portion as a meaning section. That means, the meaning section extractor 106 continuously monitors values measured by the sensor array 102, and extracts the measured values from when the value begins to increase until when the value reaches to a peak.
The meaning section extracted may be illustrated as shown in
For modeling, the linearizing part 108 converts multidimensional data extracted from the meaning section into linear data. The linearizing part 108 also removes noise in order to enhance the reliability of model.
Multidimensional data of the meaning section is converted into one-dimensional linear data by arranging it in a linear form, thereby facilitating the modeling process. During the converting process, all the channels should be arranged in a fixed order.
The quantizing part 110 classifies the converted data into different states in order to apply to the state transition model, and quantizes the data in order to obtain transition relationships between the states.
The data is measured at a very short interval so that it forms a curved line as shown in
The quantization includes selecting data at an equal interval larger than the measuring interval, and connecting the selected data to form a broken line graph.
In
m=k×1 Mathmatical Formula 1
Here, m is the number of the quatized elements, and the k is the sampling frequency.
As a result of the quantization, an m numbe of points are generated, and each distance between adjacent points along the x axis is the same since the sampling is performed at an equal interval. Assuming that the distance along the x axis is 1, a slope between adjacent points can be obtained by knowing a variation along the y axis.
The quantized i th value is represented as qi.
Although not shown in figures, the ADSTM part 112 may include a transition vector generating unit that generates a plurality of transition vectors by using the quantized data, a section division part that divides a predetermined portion into an n number of sections-each section is defined as one state-, a state array generating part that generates a state array by corresponding the transition vectors with the n number of sections based on angle of the transition vector, and a state transition matrix generating part that generates one or more state transition matrices to correspond to the number of transitions for a reference gas by using the state array.
First, the ADSTM part 112 creates a state transition model by using the relationship between adjacent measured values as a transition factor. The ADSTM is basically composed of states and transition between the states.
Here, a transition vector in a direction from qi to qi+1 is represented as
Also, the angle of the transition vector refers to an angle that the transition vector forms with respect to the x axis.
In the present invention, when creating a model from the sensor array signals, the direction of the transition vector is used as a state of a state transition model.
Here, since all the transition vectors head for a positive direction with respect to the x axis, the transition vector exists in the quadrant I or IV, thereby having an angle between
Here, the range between
is divided into n sections having an equal size, and each section is defined as a state. In order to simplify calculation, the n is selected among even numbers.
The i th state, si, is positioned of which range can be represented by the following Mathmatical Formula 2.
Here, when
the transition vector has a positive angle and when
the transition vector has a negative angle.
The angle of the transition vector can be obtained from y value of the transition vector by using an arctangent function, when the x value of the transition vector is normalized to 1.
Therefore, the angle di of the transition vector in the ith state can be computed by the Mathmatical Formula 3.
d
i=arc tan(qi−qi−1) (1≦i≦m−1) Mathmatical Formula 3
A state transition model for identifying the gas signal pattern is created by using a sequence of the transition vector angles computed as the above.
The state transition model is stored in the model storing part 114.
The range from
is divided into the n number of states, and the transition vector angle in each state can be sequenced as Table 2.
This sequence of the transition vector angles can be converted into an n×n state transition matrix. When a transition from si to sj occurs, aij(1≦i≦n, 1≦j≦n) is obtained, so that a matrix can be created as shown in Table 3.
After the state transition model is created as described above, the analyzing part 116 receives the measured values from the sensor array 102, and analyzes the kind and the density of the detected gas.
Hereinafter, process of applying the ADSTM to the sensor array 102 will be described in detail.
By using the above described modeling method, modeling is performed on data actually measured by the sensor array.
Table 4 shows an example of modeling of a toluene gas. Data is sampled 5 times for each channel to obtain 5 quantized values. The data is ouput voltages of the sensor array.
The values in Table 4 can be represented in a graph as shown in
The range from
is divided into the number of states of the state transition models. In this embodiment, the number of states, n, is 10.
State number of each angle of Table 5 can be obtained by consulting Table 6, and is listed in Table 7.
The state number can be represented as a state sequence as shown in Table 8.
The data in Table 4 is converted into the state sequence through the ADSTM process.
Table 9 a matrix corresponding to the state transition diagram of
Each different gas creates a different state transition matrix. However, even though the number of states or the sampling frequency is changed, but the state transition matrix remains similar when the gas is the same. Therefore, the state transition matrix can be used for analyzing the gas signal pattern.
One part, which is called repository creation process, includes measuring a gas, creating a model for the gas by using the state transition model and storing the model in a repository. The other part, which is called gas recognition process, includes measuring an inputted gas, creating a model for the gas and analyzing the model by comparing it with the models in the repository.
When the same gas is repeatedly measured, data inputted from the sensor array shows a similar pattern as illustrated in
Since different gases have each different pattern, it is important to create a model reflecting unique feature of the gas in order to improve the analysis.
At step 1000, the values of gas signal measured by the sensor array 102 are preprocessed. As described earlier, during the preprocess procedure, average values representing the gas signal pattern are extracted from the values measured by the sensor array.
At step 1002, after preprocessing, meaning section is extracted and quantized. Here, the meaning section refers to the rising portion in the graph of the gas signal pattern, and the quantization is performed for a state transition modeling.
At step 1004, a state transition model is created based on the angle of the transition vectors. In this step, a state transition sequence is generated by using the angle between the transition vector and x-axis, whereupon a state transition matrix is created as a state transition model.
The state transition model is stored in the model storing part 114.
At step 1006, a new gas is measured by the sensor array. And at step 1008, a meaning section is extracted from the measured values of the new gas and is quantized.
At step 1010, the ADSTM procedure is processed for the new gas to create a state transition matrix, and at step 1012, this state transition matrix for the new gas is compared with the state transition matrices stored in the model storing part 114.
The state transition matrix shows how many times transitions occurred between states. For example, the cell (0, 0) tells that the transitions occurred twice from S1 to S1. Each gas has a different state transition matrix, so that a gas can be recognized by comparing its own state transition matrix with the stored transition matrices.
An experiment was conducted according to the present invention. In this experiment, eight different gases were measured to create eight different gas models with an eight-channel gas sensor array.
When an object gas is measured, a state transition matrix of the object gas is generated to compare with the state transition matrices of the 8 different gases. The comparision is performed as follows:
The state sequence in Table 10 is converted to a state transition matrix in Table 11.
The matrix in Table 11 can be converted into the matrix in Table 12 by assigning 1 to a cell where a state transition occurs, and assigning 0 to a cell where no state transition occurs.
And, it is assumed here that the state transition matrix for a new gas is O and the state transition matrix stored in the model storing part 114 is M.
Accordingly, similarity between these two matrices can be computed by Mathmatical Formula 5. Here, n(O) or n(M) is defined as the number of elements of which value is 1.
Here, n(O∩M) means the number of cells, both of which have a value of 1 and are in the same column and row, in either matrix.
Also, n(O∪ M) means the number of cells, either of which has a value of 1 and are in the same column and row, in either matrix.
The above Formula is a useful means to check relative similiarity.
A similarity threshold is determined based on experimental data of eight different gases that are obtained through a number of measurements.
Here, the threshold similarity refers to a minimum value among a number of the similarities that are calculated for the same.
In the case that a similarity for a new gas does not exceed the threshold, the similarity check is repeated a predetermined number of times.
If the maximum similarity value among the similarity values obtained through the repeated similarity checks is smaller than the threshold, then the new gas is determined to be unrecognizable.
The following describes a method verifying the present invention.
In this experiment, eight different hydrocarbon based gases, as listed in Table 14, were detected by a sensor array through eight different channels. Those eight gases are toluene, benzene, ethanol, methanol, 2-propanol, n-hexane, n-heptane and cyclohexane, and were measured under the conditions shown in Table 14.
Data was collected through measuring the eight gases six times. Among six results, four random results were used to determine a threshold value, and the rest two results were used to verify the invention.
In order to obtain an optimal threshold value, the experiment is repeated by varying the number of states n and the sampling frequency k, which are variables of the modeling method of the invention.
The eight gases are analyzed by checking similarity with seven models among eight gas models.
A first experiment was conducted by fixing the sampling frequency k to 13 but varying the number of state transitions n. Under this condition, the number of quantization elements is 104 (m=104) since the number of the channels is 8.
Also, by varying the number of states from 20, 60 to 100, analysis rate and accuracy can be compared, so that the threshold value can be speculated.
A second experiment was conducted by varying the sampling frequency from 7, 13, to 25 but fixing the number of states to 20.
This experiment aims to see the influence of regulating sampling interval on the model and the threshold value.
Next, a new gas is analyzed by using threshold value determined through the above experiment.
It can be known that as the number of states n becomes larger, the similarity decreases.
The process of converting the values measured by the sensors into the state transition model has time complexity O(N) so that almost equal time is spent for creating each model.
However, analyzing has time complexity O(N2), so that analysis time increases by square times of the ratio at which the number of states is increased.
In case of detecting gas leakeage, analysis time is an important factor. Accordingly, it can be concluded that the number of states should be chosen among small numbers that can represent the characteristic of gas pattern.
There are two important points to consider when determining the threshold value for the gas recognition.
One is that when detecting an unknown gas, the threshold value should be larger than the similarity value to the unknown gas.
The other is that the threshold value should be the same as or smaller than the similarity value to the model gas.
For example, when the number of states is 20, the threshold value can be determined using the experimental results in
Since no benzene model is stored in the model repository, benzene gas should not be distinguished.
Referring to
Therefore, in order to prevent benzene from misrecognized as toluene, the threshold value should be lager than 0.446809.
Also, the threshold value should be equal with or smaller than a smallest similarity value among the similarity values of the gases except from the benzene, which is 0.484848 in this experiment.
Therefore, the range of the threshold value can be determined as the Mathmatical Formula 5.
0.446809<threshold≦0.484848 Mathmatical Formula 5
By setting a value within this range as the threshold value, a gas can be recognized through a small number of measurements.
Therefore, the threshold values for seven gas models except for the benzene model are chosen within this range.
In order to decide a threshold value with respect to all the gas models, a largest similarity value should be known among the similarity values of all the cases where one of the eight gases is missed among the eight gas models.
Table 15 shows similarity values of a gas of which gas model is removed from the model repository to the rest seven models under the condition that n=20.
Referring to Table 15, in most cases, the similarity value of a gas decreases when the gas model repository contains no gas model of the same gas.
However, when the gas model for heptane or hexane is removed, the largest threshold value increases, causing an error in recognizing gas.
Therefore, additional process is needed to lower the largest threshold value.
In the foregoing experiment, the number of states was varied while the sampling frequency was fixed. An optimal result was produced when n=20.
Another experiment was conducted under the condition that n is fixed to 20, while the sampling frequency is varied from 7, 13 to 25.
Referring to
For instance, as shown in Table 16 are similarity values of a gas of which gas model is removed under the condition that k=7.
Comparing Table 17 and Table 18, it can be seen that the similarity values of the heptane and the hexane gases that were considerably large under the condition that k=13, are lowered to an appropriate level under the condition that k=7.
Based on the above experiments, it can be concluded that an optimal result can be obtained when k=7 and n=20.
Such a result tells that reducing sampling interval (in other words, increasing the sampling frequency) deteriorates the features of gas signal pattern.
Here, the largest value in Table 16, which is 0.529412, can be determined as a threshold value.
Aother gas was tested twice under the same condition, which verified the reliability of this threshold value, 0.529412.
As shown in
Through the tests as described above, it is confirmed that the modeling method according to the present invention can be applied to recognizing signal pattern and also to distinguishing the gases.
Also, by using state transition model, this modeling method requires less resource and time.
While the invention has been described with reference to the disclosed embodiments, it is to be appreciated that those skilled in the art can change or modify the embodiments without departing from the scope and spirit of the invention or its equivalents as stated below in the claims.
| Number | Date | Country | Kind |
|---|---|---|---|
| 10-2006-0079597 | Aug 2006 | KR | national |