TWI439952B - Method for neuro-fuzzy system modeling - Google Patents

Method for neuro-fuzzy system modeling Download PDF

Info

Publication number
TWI439952B
TWI439952B TW100140114A TW100140114A TWI439952B TW I439952 B TWI439952 B TW I439952B TW 100140114 A TW100140114 A TW 100140114A TW 100140114 A TW100140114 A TW 100140114A TW I439952 B TWI439952 B TW I439952B
Authority
TW
Taiwan
Prior art keywords
fuzzy
subroutine
fuzzy rule
corresponding data
value
Prior art date
Application number
TW100140114A
Other languages
Chinese (zh)
Other versions
TW201319958A (en
Inventor
Chen Sen Ouyang
Rong Ching Wu
Ching Tai Chiang
Jong Ian Tsai
Original Assignee
Univ Ishou
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Univ Ishou filed Critical Univ Ishou
Priority to TW100140114A priority Critical patent/TWI439952B/en
Publication of TW201319958A publication Critical patent/TW201319958A/en
Application granted granted Critical
Publication of TWI439952B publication Critical patent/TWI439952B/en

Links

Landscapes

  • Feedback Control In General (AREA)

Description

模糊類神經系統建構方法Fuzzy neural system construction method

本發明係關於一種系統建構方法,尤其是一種模糊類神經系統建構方法。The invention relates to a system construction method, in particular to a fuzzy neural system construction method.

模糊類神經系統(Neuro-Fuzzy System)即為一種常見的機器學習系統。透過一訓練資料定義出一模糊規則庫,並藉由函數近似(function approximation)方法為該模糊規則庫找出一套近似的函數,使該近似函數得以詮釋有限取樣之該訓練資料,並根據不同的輸入值,產生相對應之輸出值。當找出該模糊規則庫之近似函數後,該近似函數便能運用於自動控制或系統判斷等工程領域,使系統的運作方式能更貼近使用者的要求。The Neuro-Fuzzy System is a common machine learning system. A fuzzy rule base is defined by a training data, and a set of approximate functions is found for the fuzzy rule base by a function approximation method, so that the approximation function can interpret the limited sampling of the training data, and according to different The input value produces a corresponding output value. When the approximate function of the fuzzy rule base is found, the approximation function can be applied to engineering fields such as automatic control or system judgment, so that the operation mode of the system can be closer to the user's requirements.

一般建構該模糊類神經系統時,主要分為二個學習部分,分別為架構鑑別(structure identification)與參數鑑別(parameter identification),該架構鑑別主要針對該訓練資料定義初始系統模型,定義出該系統模型後,該參數鑑別再利用一學習演算法,將該模糊類神經系統進行微調。因此,對該模糊類神經系統而言,由於該架構鑑別可決定該系統之初始模型,故當該初始模型建構不佳時,也會連帶影響該參數鑑別之效果。Generally, when constructing the fuzzy neurological system, it is mainly divided into two learning parts, namely, structure identification and parameter identification. The architecture identification mainly defines an initial system model for the training data, and defines the system. After the model, the parameter is identified and reused by a learning algorithm to fine-tune the fuzzy-like nervous system. Therefore, for the fuzzy-like nervous system, since the architecture identification can determine the initial model of the system, when the initial model is poorly constructed, the effect of the parameter identification is also affected.

針對架構鑑別的部分,習知大多以分群為基礎。透過分群的方式將該訓練資料區分成數個群集,其中每一群集可表示成一條模糊規則,並由該數模糊規則組成一模糊規則庫,再由該模糊規則庫建構出初始的類神經網路。對於該模糊規則庫所包含之數模糊規則,較常見的一種為TSK型式(Takagi-Sugeno-Kang type),其中第j 條模糊現則可定義如下:For the part of architecture identification, the conventional knowledge is mostly based on clustering. The training data is divided into several clusters by clustering, wherein each cluster can be represented as a fuzzy rule, and the fuzzy rule rule is composed of a fuzzy rule base, and then the fuzzy rule base constructs an initial neural network. . For the fuzzy rule contained in the fuzzy rule base, the more common one is the TSK type (Takagi-Sugeno-Kang type), wherein the j-th fuzzy now can be defined as follows:

其中,x i :第i 個系統輸入變數,y :系統輸出變數,A j,i :模糊歸屬函數,c j,i :係數,n :輸入維度。Where x i : the i- th system input variable, y : system output variable, A j,i : fuzzy attribution function, c j,i : coefficient, n : input dimension.

然而,習知模糊類神經系統在進行架構鑑別時,對於模糊規則中的係數c j,i ,往往僅能先求出c j,0 ,其餘係數再藉由參數鑑別來求得。如此一來,在架構鑑別之學習階段,容易產生學習效果不佳,導致該模糊類神經系統之近似函數與該學習資料之原始函數產生較大的差距。However, when the fuzzy-like neural system is used for architecture identification, for the coefficient c j,i in the fuzzy rule, c j,0 can only be obtained first , and the remaining coefficients are obtained by parameter identification. As a result, in the learning phase of architecture identification, it is easy to produce poor learning effects, resulting in a large gap between the approximation function of the fuzzy neurological system and the original function of the learning material.

本發明之主要目的係提供一種系統建構方法,該系統建構方法可建構出較接近原始函數之模糊類神經系統。The main object of the present invention is to provide a system construction method which can construct a fuzzy-like nervous system closer to the original function.

為達到前述發明目的,本發明所運用之技術手段包含有:In order to achieve the foregoing object, the technical means used in the present invention include:

一種模糊類神經系統建構方法,係包含:一定義模糊規則庫主程序,係將一學習資料進行分群,以定義該學習資料之一模糊規則庫,該定義模糊規則庫主程序係包含:子程序(a):由該學習資料中,讀取一組未經處理之該對應資料,並執行子程序(b);子程序(b):判斷該模糊規則庫中是否已存在任何模糊規則,若不存在任何模糊規則,則執行子程序(c);若存在至少一模糊規則,則執行子程序(e);子程序(c):將該對應資料透過函數近似方法,定義該模糊規則,並執行子程序(d);子程序(d):判斷該學習資料中,是否存在未經處理之該對應資料,若不存在未經處理之該對應資料,即完成該定義模糊規則庫主程序,若存在未經處理之該對應資料,則執行子程序(e);子程序(e):求出該對應資料與各該模糊規則之一輸入歸屬值與一輸出差異值,並判斷該輸入歸屬值及輸出差異值,是否分別通過一歸屬門檻值及一差異門檻值,若沒通過,則執行該子程序(c),若有通過,則將該對應資料分群至具有最大輸入歸屬值之該模糊規則,再更新該模糊規則係數,並執行該子程序(d);及一建立類神經網路主程序,係以該定義模糊規則庫主程序中之模糊規則庫為基礎,建構出一模糊類神經網路。A fuzzy neural system construction method comprises: a main program for defining a fuzzy rule base, wherein a learning data is grouped to define a fuzzy rule base of the learning data, the definition fuzzy rule library main program system comprises: a subroutine (a): from the learning material, reading a set of unprocessed corresponding data, and executing the subroutine (b); subroutine (b): determining whether there is any fuzzy rule in the fuzzy rule base, if If there is no fuzzy rule, the subroutine (c) is executed; if there is at least one fuzzy rule, the subroutine (e) is executed; the subroutine (c): the corresponding data is defined by the function approximation method, and the fuzzy rule is defined, and Executing subroutine (d); subroutine (d): judging whether there is unprocessed corresponding data in the learning material, and if there is no unprocessed corresponding data, the main program of the definition fuzzy rule base is completed, If there is unprocessed corresponding data, execute subroutine (e); subroutine (e): find the corresponding data and one of the fuzzy rules, input attribution value and an output difference value, and determine the input attribution value Outputting the difference value, whether to pass a home threshold value and a difference threshold value respectively, if not, executing the subroutine (c), if yes, grouping the corresponding data into the fuzzy rule having the largest input attribution value And updating the fuzzy rule coefficient, and executing the subroutine (d); and establishing a class-like neural network main program, constructing a fuzzy class neural based on the fuzzy rule base in the main program of the definition fuzzy rule base network.

本發明之模糊類神經系統建構方法,其中該子程序(e)係包含:步驟(i):以一輸入歸屬公式分別計算該對應資料與各該模糊規則之輸入歸屬值,且當各該輸入歸屬值皆小於一歸屬門檻值時,便執行子程序(c),當至少存在一輸入歸屬值大於或等於該歸屬門檻值時,便執行一步驟(ii);步驟(ii):以一輸出差異公式分別計算該對應資料與各該模糊規則之輸出差異值,且當各該輸出差異值皆大於該差異門檻值時,便執行子程序(c),當至少存在一輸出差異值小於或等於該差異門檻值時,便執行一步驟(iii);步驟(iii):比較該對應資料與各該模糊規則之輸入歸屬值,且將該對應資料分群至具有最大輸入歸屬值之模糊規則,並執行步驟(iv);及步驟(iv):更新重新分群後之模糊規則係數,並執行該子程序(d)。The fuzzy neural system construction method of the present invention, wherein the subroutine (e) comprises: step (i): respectively calculating an input attribute value of the corresponding data and each of the fuzzy rules by an input attribution formula, and when each input When the attribution value is less than a home threshold, the subroutine (c) is executed. When at least one input attribution value is greater than or equal to the home threshold, a step (ii) is performed; step (ii): an output The difference formula respectively calculates an output difference value of the corresponding data and each of the fuzzy rules, and when each of the output difference values is greater than the difference threshold, the subroutine (c) is executed, when at least one output difference value is less than or equal to When the difference threshold is used, a step (iii) is performed; step (iii): comparing the input data of the corresponding data with each of the fuzzy rules, and grouping the corresponding data into a fuzzy rule having a maximum input attribution value, and Step (iv) is performed; and step (iv): the fuzzy rule coefficient after regrouping is updated, and the subroutine (d) is executed.

本發明之模糊類神經系統建構方法,其中該輸入歸屬值之公式為:The fuzzy neural system construction method of the present invention, wherein the formula of the input attribution value is:

其中(t )表示第t 筆輸入向量,m 與σ分別為歸屬值函數G 的參數,代表平均值與標準差。among them ( t ) represents the t-th input vector, m and σ are parameters of the attribution value function G , respectively, representing the mean and standard deviation.

本發明之模糊類神經系統建構方法,其中該輸出差異之公式為:The fuzzy neural system construction method of the present invention, wherein the formula of the output difference is:

其中b (t )為(t )所對應之期望輸出。本發明之模糊類神經系統建構方法,其中子程序(c)之函數近似方法為一遞迴式奇異值分解法。Where b ( t ) is ( t ) the desired output corresponding to it. The fuzzy neural system construction method of the present invention, wherein the function approximation method of the subroutine (c) is a recursive singular value decomposition method.

為讓本發明之上述及其他目的、特徵及優點能更明顯易懂,下文特舉本發明之較佳實施例,並配合所附圖式,作詳細說明如下:The above and other objects, features and advantages of the present invention will become more <RTIgt;

請參照第1圖所示,本發明模糊類神經系統建構方法,係包含一定義模糊規則庫主程序S1及一建立類神經網路主程序S2,並以至少一電腦作為執行該模糊類神經系統建構方法的運算處理器。Referring to FIG. 1, the fuzzy neural system construction method of the present invention comprises a definition fuzzy rule base program S1 and a built-up neural network main program S2, and at least one computer is used to execute the fuzzy type nervous system. The arithmetic processor that constructs the method.

該定義模糊規則庫主程序S1係將一學習資料進行分群,以定義該學習資料之一模糊規則庫。該學習資料包含數組對應資料,各該對應資料皆具有相對應之輸入值與輸出值。該數組對應資料可透過分群分成數個資料群集,且各該資料群集皆具有一模糊規則,並藉由一函數近似方法,求出該模糊規則之一近似函數,再以代表各該群集之模糊規則組成該模糊規則庫。完成該模糊規則庫之建立後,再執行該建立類神經網路主程序S2,以決定一模糊類神經系統之初始系統模型。如第2圖所示,該定義模糊規則庫主程序S1係包含以下子程序:The definition fuzzy rule base main program S1 groups a learning material to define a fuzzy rule base of the learning material. The learning material includes an array corresponding data, and each corresponding data has a corresponding input value and an output value. The corresponding data of the array can be divided into several data clusters by clustering, and each data cluster has a fuzzy rule, and a function approximation method is used to obtain an approximation function of the fuzzy rule, and then the fuzzy representative of each cluster is represented. The rules make up the fuzzy rule base. After the establishment of the fuzzy rule base, the establishment of the neural network main program S2 is performed to determine an initial system model of the fuzzy neural system. As shown in Figure 2, the definition fuzzy rule base main program S1 contains the following subroutines:

子程序S11,係由該學習資料中,讀取一組未經處理之該對應資料,並執行子程序S12。為使本發明之解說更為詳盡,以下係以一數學方程式解說運算過程。在本實施例中,由該學習資料中所讀取之一對應資料可表示為:The subroutine S11 reads a set of unprocessed corresponding data from the learning material, and executes the subroutine S12. In order to make the explanation of the present invention more detailed, the following is a mathematical equation to explain the operation process. In this embodiment, the corresponding data read by the learning material can be expressed as:

該對應資料之b(t) 代表第t 筆的期望輸出值,(t )代表第t 筆包含n 個維度之輸入向量。The b(t) of the corresponding data represents the expected output value of the t-th pen, ( t ) represents the t-th pen containing input vectors of n dimensions.

子程序S12,係判斷該模糊規則庫中是否已存在任何模糊規則,若不存在任何模糊規則,則執行子程序S13;若存在至少一模糊規則,則執行子程序S15。在本實施例中,於最初始狀態下,該模糊規則庫並不存在任何模糊規則,故經由子程序12的判斷後,首先執行該子程序S13。The subroutine S12 determines whether there is any fuzzy rule in the fuzzy rule base. If there is no fuzzy rule, the subroutine S13 is executed; if there is at least one fuzzy rule, the subroutine S15 is executed. In the present embodiment, in the initial state, the fuzzy rule base does not have any fuzzy rules, so after the judgment of the subroutine 12, the subroutine S13 is first executed.

子程序S13,係將該對應資料透過函數近似方法,定義該模糊規則,並執行子程序S14。該函數近似方法在此並不設限,較佳可如本實施例中,利用一遞迴式奇異值分解法(Recursive Singular Value Decomposition,RSVD)求出該對應資料之最佳解,並得到一模糊規則。該第t 筆對應資料如方程式(1)所述,並可透過該遞迴式奇異值分解法得到一第j 條之模糊規則,該第j 條之模糊規則可表示為:The subroutine S13 defines the fuzzy rule by the function approximation method, and executes the subroutine S14. The function approximation method is not limited herein. Preferably, in this embodiment, a recursive Singular Value Decomposition (RSVD) is used to find the optimal solution of the corresponding data, and a Fuzzy rules. The data corresponding to the t-th pen as in equation (1), and transmitted through the decomposition of singular values obtained recursively article of a j-th fuzzy rule, the fuzzy rule article j can be expressed as:

其中,該C j ,0C j ,1 ......等係數皆可在子程序S13中,透過該函數近似方法求出。Wherein, the coefficients such as C j , 0 , C j , 1 , etc. can be obtained by the function approximation method in the subroutine S13.

子程序S14,係判斷該學習資料中,是否存在未經處理之該對應資料,若不存在未經處理之該對應資料,即表示該定義模糊規則庫主程序S1已完成,並執行該建立類神經網路主程序S2;若存在未經處理之該對應資料,則執行該子程序S11,再次讀取一組未經處理之該對應資料。在本實施例中,該學習資料仍具有未經處理之該對應資料,故該子程序S14會再度執行該子程序S11,當讀取另一對應資料後,由於該模糊規則庫已具有至少一條模糊規則,故經由子程序S12之判斷後,接著執行該子程序S15。The subroutine S14 determines whether there is any unprocessed corresponding data in the learning material. If there is no unprocessed corresponding data, it means that the definition fuzzy rule base main program S1 is completed, and the establishment class is executed. The neural network main program S2; if there is the unprocessed corresponding data, the subroutine S11 is executed, and a set of unprocessed corresponding data is read again. In this embodiment, the learning material still has the unprocessed corresponding data, so the subroutine S14 will execute the subroutine S11 again, and after reading another corresponding data, since the fuzzy rule base has at least one Since the rule is fuzzy, the subroutine S15 is executed after the judgment of the subroutine S12.

子程序S15,係求出該對應資料與各該模糊規則之一輸入歸屬值與一輸出差異值,並判斷該輸入歸屬值及輸出差異值,是否分別通過一歸屬門檻值及一差異門檻值,若沒通過,則執行該子程序S13;若有通過,則將該對應資料分群至具有最大輸入歸屬值之該模糊規則,再更新該模糊規則係數,並執行該子程序S14。更詳言之,如第3圖所示,該子程序S15係包含以下步驟:The subroutine S15 is configured to determine the input attribution value and an output difference value of the corresponding data and each of the fuzzy rules, and determine whether the input attribution value and the output difference value respectively pass a belonging threshold and a difference threshold. If not, the subroutine S13 is executed; if there is a pass, the corresponding data is grouped to the fuzzy rule having the largest input attribution value, the fuzzy rule coefficient is updated, and the subroutine S14 is executed. More specifically, as shown in FIG. 3, the subroutine S15 includes the following steps:

步驟S151,係以一輸入歸屬公式分別計算該對應資料與各該模糊規則之輸入歸屬值G ,且當各該輸入歸屬值G 皆小於一歸屬門檻值ρ I 時,便執行子程序S13,以形成一個新群集,並將該對應資料透過函數近似方法,定義一條新模糊規則;當至少存在一輸入歸屬值G 大於或等於該歸屬門檻值ρ I 時,便執行一步驟S152,進行下一步的判斷。更詳言之,本實施例中,係讀取一對應資料如方程式(1)所述,並與該第j 條模糊規則(2)比較該輸入歸屬值G ,該輸入歸屬值G 之公式如下所示:Step S151, the input attribution value G of each corresponding fuzzy rule is calculated by an input attribution formula, and when each of the input attribution values G is less than a home threshold value ρ I , the subroutine S13 is executed to execute the subroutine S13. Forming a new cluster, and defining a new fuzzy rule by using a function approximation method; when at least one input attribution value G is greater than or equal to the home threshold value ρ I , performing a step S152 to proceed to the next step Judge. More specifically, in this embodiment, a corresponding data is read as described in equation (1), and the input attribution value G is compared with the j-th fuzzy rule (2). The formula of the input attribution value G is as follows Shown as follows:

其中m 與σ分別為該輸入歸屬函數G 之平均值與標準差參數。當該對應資料為方程式(1)之((t ),b (t ))時,可將該(t )代入該輸入歸屬公式,求得一輸入歸屬值G j ((t ))。該歸屬門檻值ρ I 在此並不設限,可如本實施例中設為0.01。當該輸入歸屬值G j ()與該歸屬門檻值ρ I 具有下列特性:Where m and σ are the mean and standard deviation parameters of the input attribution function G , respectively. When the corresponding data is the equation (1) ( ( t ), b ( t )), this ( t ) substituting the input attribution formula to obtain an input attribution value G j ( ( t )). The hometh threshold ρ I is not limited herein, and may be set to 0.01 as in the embodiment. When the input attribution value G j ( And the attribution threshold ρ I has the following characteristics:

即表示該對應資料與該模糊規則具有較大之輸入相似度。That is to say, the corresponding data has a large input similarity with the fuzzy rule.

步驟S152,係以一輸出差異公式分別計算該對應資料與各該模糊規則之輸出差異值D ,且當各該輸出差異值D 皆大於該差異門檻值ρ O 時,便執行子程序S13,以形成一個新群集,並將該對應資料透過函數近似方法,定義一條新模糊規則;當至少存在一輸出差異值小於或等於該差異門檻值ρ O 時,便執行一步驟S153,進行下一步的判斷。更詳言之,本實施例中,係讀取一對應資料如方程式(1)所述,並與該第j 條模糊規則(2)比較該輸出差異值,該輸出差異值d j (t )之公式如下所示:Step S152, respectively, calculating an output difference value D of the corresponding data and each of the fuzzy rules by an output difference formula, and when each of the output difference values D is greater than the difference threshold value ρ O , executing subroutine S13 to Forming a new cluster, and defining a new fuzzy rule by using the function approximation method; when at least one output difference value is less than or equal to the difference threshold value ρ O , performing a step S153 to perform the next judgment . More specifically, in this embodiment, a corresponding data is read as described in equation (1), and the output difference value is compared with the j-th fuzzy rule (2), and the output difference value d j ( t ) The formula is as follows:

該差異門檻值ρ O 在此並不設限,可如本實施例中設為0.1。且當該輸出差異值d j (t) 與該歸屬門檻值ρ O 具有下列特性:The difference threshold ρ O is not limited herein, and may be set to 0.1 as in the embodiment. And when the output difference value d j (t) and the attribution threshold ρ O have the following characteristics:

d j (t) ρ o  (6) d j (t) ρ o (6)

即表示該對應資料與該模糊規則具有較大之輸出相似度。That is to say, the corresponding data has a large output similarity with the fuzzy rule.

步驟S153,比較該對應資料與各該模糊規則之輸入歸屬值G ,且將該對應資料分群至具有最大輸入歸屬值G 之模糊規則,並執行步驟S154。在該步驟S153中,由於該對應資料皆已通過該步驟S151及該步驟S152之判斷,表示該對應資料與數模糊規則具有較高之相似度,故此時可將該對應資料分群至具有最大輸入歸屬值之模糊規則,假設其為第j * 條,並執行步驟S154。Step S153, comparing the corresponding data with the input attribution value G of each of the fuzzy rules, and grouping the corresponding data into the fuzzy rule having the largest input attribution value G , and executing step S154. In the step S153, since the corresponding data has passed the judgment of the step S151 and the step S152, it indicates that the corresponding data has a high degree of similarity with the number fuzzy rule, so the corresponding data can be grouped to have the maximum input at this time. The fuzzy rule of the attribution value is assumed to be the j * th strip, and step S154 is performed.

步驟S154,係更新重新分群後之第j * 條模糊規則之係數,並執行該子程序S14。由於該對應資料已被分群至該模糊規則內,為使該模糊規則也能詮釋該對應資料之輸入與輸出狀態,故必須更新該模糊規則之平均值及一標準差,進而更新該模糊規則之係數,該更新係數之公式如下所示:In step S154, the coefficient of the j * th fuzzy rule after regrouping is updated, and the subroutine S14 is executed. Since the corresponding data has been grouped into the fuzzy rule, in order for the fuzzy rule to interpret the input and output states of the corresponding data, the average value of the fuzzy rule must be updated. And a standard deviation And then update the coefficient of the fuzzy rule, the formula of the update coefficient is as follows:

其中為第j * 條模糊規則原先所包含的資料數量。此外,......等係數可透過函數近似方法求出,較佳可如本實施例中,利用一遞迴式奇異值分解法。among them The number of materials originally included in the j * fuzzy rule. In addition, The coefficients can be obtained by a function approximation method. Preferably, as in the present embodiment, a recursive singular value decomposition method is utilized.

更新完後便執行子程序S14,再次判斷該學習資料中,是否存在未經處理之該對應資料,若不存在未經處理之該對應資料,即表示該定義模糊規則庫主程序S1已完成,並進入該建立類神經網路主程序S2。After the update, the subroutine S14 is executed to determine whether there is any unprocessed corresponding data in the learning material. If there is no unprocessed corresponding data, it means that the definition fuzzy rule base main program S1 is completed. And enter the establishment of the neural network main program S2.

該建立類神經網路主程序S2,係以該定義模糊規則庫步驟S1中之模糊規則庫為基礎,建構出一模糊類神經網路。該模糊類神經架構在此並不設限,如第4圖所示,較佳如本實施例中具有一輸入層(Input layer)1、一模糊化層(Fuzzification layer)2、一規則層(Rule layer)3、一正規化層(Normalization layer)4、一結論層(Consequent layer)5及一輸出層(Output layer)6。The main neural network main program S2 is constructed based on the fuzzy rule base in the fuzzy rule base step S1, and a fuzzy neural network is constructed. The fuzzy-like neural architecture is not limited herein. As shown in FIG. 4, it is preferable to have an input layer 1, a fuzzification layer 2, and a regular layer as in this embodiment. Rule layer 3, a normalization layer 4, a Consequent layer 5, and an output layer 6.

該輸入層1係對應於該學習資料之維度n ,由n 個節點組成,該輸入層1之對應輸出如下表示:The input layer 1 is composed of n nodes corresponding to the dimension n of the learning material, and the corresponding output of the input layer 1 is expressed as follows:

該模糊化層2係由J 個群集組合而成,每個群集包含了輸入層的n 的節點,故具有J×n 個節點組成該模糊化層,該模糊化層2之數節點之對應輸出如下所示:The fuzzification layer 2 is composed of J clusters, each cluster includes n nodes of the input layer, so that there are J×n nodes to form the fuzzification layer, and the corresponding output of the number of nodes of the fuzzification layer 2 As follows:

其中,該m ij 和σ ij 分別定義為該模糊規則之平均值與標準差,而J 個節點則代表有J 條規則。Where m ij and σ ij are respectively defined as the mean and standard deviation of the fuzzy rule, and J nodes represent J rules.

該規則層3係由n 個節點組成,將每筆資料內各維度作乘積,也可稱為該筆資料所對應之啟動強度。該規則層3之數節點之對應輸出如下所示:The rule layer 3 is composed of n nodes, and the product of each dimension in each data is also referred to as the starting strength corresponding to the data. The corresponding output of the node of the rule layer 3 is as follows:

該正規化層4係接收該規則層3所對應之每條模糊規則之啟動強度,並進行正規化計算。該正規化層4之數節點之對應輸出如下所示:The normalization layer 4 receives the activation strength of each fuzzy rule corresponding to the rule layer 3, and performs normalization calculation. The corresponding output of the number of nodes of the normalization layer 4 is as follows:

該接續層5係接收該正規化層4正規化後之啟動強度,並結合所對應之資料維度,計算出每筆資料對應到各條規則的輸出結果。該接續層5之數節點之對應輸出如下所示:The splicing layer 5 receives the startup intensity after the normalization layer 4 is normalized, and combines the corresponding data dimensions to calculate an output result corresponding to each rule of each data. The corresponding output of the number of nodes of the connection layer 5 is as follows:

該輸出層6主要主要係輸出相對應x 之該輸出值y 。該輸出層6之數節點之對應輸出如下所示:The output layer 6 mainly outputs the output value y corresponding to x . The corresponding output of the number of nodes of the output layer 6 is as follows:

當該建立類神經網路主程序S2完成後,便可建立出一模糊類神經網路。習知模糊規則之建立方式,初期僅能得到一部分係數,後期再推導出其他係數。在本發明之該定義模糊規則庫步驟S1時,在分群的過程中,即不斷的最佳化該模糊規則之所有係數,可使本發明之模糊類神經系統,得到一較接近原始函數之近似函數。When the establishment of the neural network main program S2 is completed, a fuzzy neural network can be established. The establishment of the conventional fuzzy rules can only obtain a part of the coefficients in the initial stage, and further derive other coefficients in the later stage. In the process of defining the fuzzy rule base step S1 of the present invention, in the process of grouping, that is, continuously optimizing all the coefficients of the fuzzy rule, the fuzzy-like nervous system of the present invention can obtain an approximation closer to the original function. function.

為驗證本發明之模糊類神經系統建構方法,該近似函數較為接近原始函數,以下特舉Q. Ren等學者所發表之Type-2 Takagi-Sugeno-Kang fuzzy logic modeling using subtractive clustering(以下簡稱文獻1),以及S.-J. Lee等學者所發表之A neuro-fuzzy system modeling with self-constructing rule generation and hybrid SVD-based learning(以下簡稱文獻2)與本發明進行比較。實驗之原始函數如下所示:In order to verify the fuzzy neurological system construction method of the present invention, the approximation function is closer to the original function, and the following special type-2 Takagi-Sugeno-Kang fuzzy logic modeling using subtractive clustering (hereinafter referred to as document 1) A neuro-fuzzy system modeling with self-constructing rule generation and hybrid SVD-based learning (hereinafter referred to as Document 2) published by S.-J. Lee et al. is compared with the present invention. The original function of the experiment is as follows:

該學習資料具有121筆對應資料,該歸屬門檻值ρ I 設為0.01,該差異門檻值ρ O 設為0.1。並以一效能指標(root mean square error,RMSE)作為效能效能評比方式,該效能指標如下所示:The learning material has 121 corresponding data, the attribution threshold ρ I is set to 0.01, and the difference threshold ρ O is set to 0.1. A performance criterion (root mean square error, RMSE) is used as the performance evaluation method. The performance indicators are as follows:

其中,該q(t) 為期望輸出,該y(t) 為實際輸出,當該期望輸出與實際輸出差異越小時,即表示該架構鑑別之近似函數較為接近原始函數。本發明與文獻1及文獻2之比較如表1所示:Where q(t) is the desired output, and y(t) is the actual output. When the difference between the expected output and the actual output is smaller, it means that the approximate function of the architecture identification is closer to the original function. The comparison between the present invention and literature 1 and document 2 is shown in Table 1:

由表1可知,本發明之模糊類神經系統建構方法,該近似函數與原始函數之誤差較小,相較於文獻1與文獻2,更接近原始函數。It can be seen from Table 1 that the fuzzy-like nervous system construction method of the present invention has a small error between the approximation function and the original function, and is closer to the original function than the literature 1 and the literature 2.

本發明之模糊類神經系統建構方法,可在分群過程中最佳化參數,具有使該類神經系統之近似函數更接近該原始函數之功效。The fuzzy neural system construction method of the present invention can optimize parameters in the grouping process, and has the effect of making the approximate function of the nervous system closer to the original function.

雖然本發明已利用上述較佳實施例揭示,然其並非用以限定本發明,任何熟習此技藝者在不脫離本發明之精神和範圍之內,相對上述實施例進行各種更動與修改仍屬本發明所保護之技術範疇,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。While the invention has been described in connection with the preferred embodiments described above, it is not intended to limit the scope of the invention. The technical scope of the invention is protected, and therefore the scope of the invention is defined by the scope of the appended claims.

[本發明][this invention]

1...輸入層1. . . Input layer

2...模糊化層2. . . Fuzzy layer

3...規則層3. . . Rule layer

4...正規化層4. . . Normalization layer

5...結論層5. . . Conclusion layer

6...輸出層6. . . Output layer

S1...定義模糊規則庫主程序S1. . . Define the fuzzy rule base main program

S2...建立類神經網路主程序S2. . . Establish a neural network main program

第1圖:本發明類神經系統建構步驟。Figure 1: The construction of the nervous system of the present invention.

第2圖:本發明定義模糊規則庫主程序步驟。Figure 2: The present invention defines the main procedure steps of the fuzzy rule base.

第3圖:本發明定義模糊規則庫主程序步驟。Figure 3: The present invention defines the main procedure steps of the fuzzy rule base.

第4圖:本發明模糊類神經網路架構。Figure 4: The fuzzy neural network architecture of the present invention.

S1...定義模糊規則庫主程序S1. . . Define the fuzzy rule base main program

S2...建立類神經網路主程序S2. . . Establish a neural network main program

Claims (5)

一種模糊類神經系統建構方法,係包含:一定義模糊規則庫主程序,係將一學習資料進行分群,以定義該學習資料之一模糊規則庫,該定義模糊規則庫主程序係包含:子程序(a):由該學習資料中,讀取一組未經處理之該對應資料,並執行子程序(b);子程序(b):判斷該模糊規則庫中是否已存在任何模糊規則,若不存在任何模糊規則,則執行子程序(c);若存在至少一模糊規則,則執行子程序(e);子程序(c):將該對應資料透過一函數近似方法,定義該模糊規則,並執行子程序(d);子程序(d):判斷該學習資料中,是否存在未經處理之該對應資料,若不存在未經處理之該對應資料,即完成該定義模糊規則庫主程序,若存在未經處理之該對應資料,則執行子程序(e);子程序(e):求出該對應資料與各該模糊規則之一輸入歸屬值與一輸出差異值,並判斷該輸入歸屬值及輸出差異值,是否分別通過一歸屬門檻值及一差異門檻值,若沒通過,則執行該子程序(c),若有通過,則將該對應資料分群至具有最大輸入歸屬值之該模糊規則,再更新該模糊規則係數,並執行該子程序(d);及一建立類神經網路主程序,係以該定義模糊規則庫主程序中之模糊規則庫為基礎,建構出一模糊類神經網路。A fuzzy neural system construction method comprises: a main program for defining a fuzzy rule base, wherein a learning data is grouped to define a fuzzy rule base of the learning data, the definition fuzzy rule library main program system comprises: a subroutine (a): from the learning material, reading a set of unprocessed corresponding data, and executing the subroutine (b); subroutine (b): determining whether there is any fuzzy rule in the fuzzy rule base, if If there is no fuzzy rule, the subroutine (c) is executed; if there is at least one fuzzy rule, the subroutine (e) is executed; the subroutine (c): the corresponding data is defined by a function approximation method, And executing the subroutine (d); the subroutine (d): determining whether the corresponding data in the learning material is unprocessed, and if there is no unprocessed corresponding data, the main program of the definition fuzzy rule base is completed. If there is unprocessed corresponding data, execute subroutine (e); subroutine (e): find the corresponding data and one of the fuzzy rules, input attribution value and an output difference value, and determine the input Attribution And outputting the difference value, whether to pass a belonging threshold and a difference threshold respectively, if not, executing the subroutine (c), if yes, grouping the corresponding data into the fuzzy with the largest input attribution value Rule, then update the fuzzy rule coefficient, and execute the subroutine (d); and establish a class-like neural network main program, based on the fuzzy rule base in the main program of the definition fuzzy rule base, construct a fuzzy class Neural network. 依申請專利範圍第1項所述之模糊類神經系統建構方法,其中該子程序(e)係包含:步驟(i):以一輸入歸屬公式分別計算該對應資料與各該模糊規則之輸入歸屬值,且當各該輸入歸屬值皆小於一歸屬門檻值時,便執行子程序(c),當至少存在一輸入歸屬值大於或等於該歸屬門檻值時,便執行一步驟(ii);步驟(ii):以一輸出差異公式分別計算該對應資料與各該模糊規則之輸出差異值,且當各該輸出差異值皆大於該差異門檻值時,便執行子程序(c),當至少存在一輸出差異值小於或等於該差異門檻值時,便執行一步驟(iii);步驟(iii):比較該對應資料與各該模糊規則之輸入歸屬值,且將該對應資料分群至具有最大輸入歸屬值之模糊規則,並執行步驟(iv);及步驟(iv):更新重新分群後之模糊規則係數,並執行該子程序(d)。According to the method for constructing a fuzzy nervous system according to claim 1, wherein the subroutine (e) comprises: step (i): respectively calculating an input attribute of the corresponding data and each fuzzy rule by an input attribution formula a value, and when each of the input attribution values is less than a home threshold, the subroutine (c) is executed, and when at least one input attribution value is greater than or equal to the home threshold, a step (ii) is performed; (ii): calculating an output difference value of the corresponding data and each of the fuzzy rules by an output difference formula, and when each of the output difference values is greater than the difference threshold, executing the subroutine (c), when at least When an output difference value is less than or equal to the difference threshold value, a step (iii) is performed; step (iii): comparing the corresponding data with the input attribution value of each of the fuzzy rules, and grouping the corresponding data to have the largest input The fuzzy rule of the attribution value, and performing step (iv); and step (iv): updating the fuzzy rule coefficient after regrouping, and executing the subroutine (d). 依申請專利範圍第2項所述之模糊類神經系統建構方法,其中該輸入歸屬值之公式為: 其中m 與σ分別為該歸屬函數G 之平均值與標準差。According to the fuzzy neural system construction method described in claim 2, wherein the formula of the input attribution value is: Where m and σ are the mean and standard deviation of the attribution function G , respectively. 依申請專利範圍第2項所述之模糊類神經系統建構方法,其中該輸出差異值之公式為: According to the fuzzy neural system construction method described in claim 2, wherein the formula of the output difference value is: 依申請專利範圍第1項所述之模糊類神經系統建構方法,其中子程序(c)之函數近似方法為一遞迴式奇異值分解法。According to the fuzzy neural system construction method described in claim 1, wherein the function approximation method of the subroutine (c) is a recursive singular value decomposition method.
TW100140114A 2011-11-03 2011-11-03 Method for neuro-fuzzy system modeling TWI439952B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW100140114A TWI439952B (en) 2011-11-03 2011-11-03 Method for neuro-fuzzy system modeling

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW100140114A TWI439952B (en) 2011-11-03 2011-11-03 Method for neuro-fuzzy system modeling

Publications (2)

Publication Number Publication Date
TW201319958A TW201319958A (en) 2013-05-16
TWI439952B true TWI439952B (en) 2014-06-01

Family

ID=48872549

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100140114A TWI439952B (en) 2011-11-03 2011-11-03 Method for neuro-fuzzy system modeling

Country Status (1)

Country Link
TW (1) TWI439952B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI628935B (en) * 2016-01-29 2018-07-01 中華電信股份有限公司 Request traffic grouping method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI628935B (en) * 2016-01-29 2018-07-01 中華電信股份有限公司 Request traffic grouping method

Also Published As

Publication number Publication date
TW201319958A (en) 2013-05-16

Similar Documents

Publication Publication Date Title
Bai et al. Evolutionary reinforcement learning: A survey
Candogan et al. Flows and decompositions of games: Harmonic and potential games
Peng et al. Novel prediction and memory strategies for dynamic multiobjective optimization
Lundberg et al. An unexpected unity among methods for interpreting model predictions
Jovanovic et al. Ant colony optimization algorithm with pheromone correction strategy for the minimum connected dominating set problem
Zapotecas Martínez et al. MOEA/D assisted by RBF networks for expensive multi-objective optimization problems
CN111340493B (en) Multi-dimensional distributed abnormal transaction behavior detection method
Wang et al. Approximation-based adaptive fuzzy control for a class of non-strict-feedback stochastic nonlinear systems
CN113169044B (en) Prescriptive Analysis in Highly Collinear Response Spaces
CN116391193B (en) Method and apparatus for energy-based latent variable model based neural networks
Kubalík et al. Toward physically plausible data-driven models: A novel neural network approach to symbolic regression
Pan et al. Collaborative recommendation with multiclass preference context
CN108536844B (en) Text-enhanced network representation learning method
Russo et al. Knowledge discovery in multiobjective optimization problems in engineering via Genetic Programming
Zhang et al. Opinion dynamics in social networks incorporating higher-order interactions
Masood et al. Genetic programming hyper-heuristic with gaussian process-based reference point adaption for many-objective job shop scheduling
TWI439952B (en) Method for neuro-fuzzy system modeling
US8700541B2 (en) Modeling method of neuro-fuzzy system
Banga Computational hybrids towards software defect predictions
Sforni et al. Sparse Data-Driven LQR Via Augmented Lagrangian-Based Policy Search
Kalifullah et al. Retracted: Graph‐based content matching for web of things through heuristic boost algorithm
Soltanshahi et al. Grar: a novel framework for graph alignment based on relativity concept
Grassi et al. SEMdag: Fast learning of Directed Acyclic Graphs via node or layer ordering
CN120338028B (en) Heterogeneous graph neural network training method and system based on community consistency
Yuan et al. Generalized sparse additive model with unknown link function

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees