Numerical integration algorithm based on cosine basis neural network | Статья в журнале «Молодой ученый»

Отправьте статью сегодня! Журнал выйдет 28 декабря, печатный экземпляр отправим 1 января.

Опубликовать статью в журнале

Автор:

Рубрика: Математика

Опубликовано в Молодой учёный №8 (112) апрель-2 2016 г.

Дата публикации: 18.04.2016

Статья просмотрена: 159 раз

Библиографическое описание:

Чжун, Жуйюй. Numerical integration algorithm based on cosine basis neural network / Жуйюй Чжун. — Текст : непосредственный // Молодой ученый. — 2016. — № 8 (112). — С. 30-34. — URL: https://moluch.ru/archive/112/28521/ (дата обращения: 17.12.2024).



In this paper, we present a neural network approach based on the cosine basis functions to solve highly oscillatory integration. The main idea was to use a Fourier series to approximate a function by training the weights of neural networks, then use integration of Fourier serie to approximate integration of unknown function. This paper also gives the examples of numerical integration based on neural networks, and compares with results of another algorithm of numerical integration.

1. Introduction

In practice, we usually consider the entire family integration, and not just a single integral, so we can use this model

(1.1)

To be the general form of highly oscillatory integrals, where and are non-oscillating functions, parameter represents the oscillation frequency of the integrand, is called amplitude function,is called oscillation factor.

When the frequency is large, the classic integration methods for solving integral fail. Like Newton-Cotes type, Guass classic type integral methods are based on polynomial interpolation, and they are not suited oscillating function’s approximation, this is because the classical method for calculating the integral (1.1) always calculating by complex integration [1]. In order to eliminate the influence of oscillation, the number of subinterval of integration interval [a, b] have to be commensurate with the oscillation frequency .It means the number of integral nodes are related with frequency, so the larger frequency, the more calculating works, further the method of integral will generate more error. So we have to look for other methods to compute highly oscillatory integrals. In this paper, we present a neural network approach based on the cosine basis functions to solve highly oscillatory integration. Then we will compare this method’s values of integral with some classic algorithms, like Composite Trapezoidal Rule and Composite Simpson’s Rule[2–5], to prove our point of view.

2. Neural network model of cosine basis function

The main characteristic of artificial neural network is ability of nonlinear mapping. This ability makes neural network can approach any continuous functions. From application point of view, an artificial neural network is structured according to a 'goal', usually this kind of goal is a multivariate function or unary function, it called 'objective function', through learning the weights, it can make objective function as possible approach ideal function which is people wants. Based on this thinking, the model of cosine basis neural network is shown as Figure 1.

Figure 1 The Model of Neural Network

And are weights of cosine basis neural networkare activation functions of hidden layer neurons, and . Assume weights matrix of cosine basis neural network is , activation matrix is, then the output of network:

(2.1) And the error cost function:

Where: m---the number of training samples, --- non-oscillating function of integrand.

Assume the error vector is:. Then the performance indicators:

Where: --- The square of the Euclidean norm. According to learning rules of the gradient descent method, the formulas for adjusting weights as following:

Where: u is learning rate, and 0 < u < 1.

3The convergence of cosine basis neural network algorithm

Lemma 1[6]:

Assume u is learning rate, and when , the algorithm of neural network is convergent, and n is the number of hidden layer neurons.

In the process of learning in neural network, the selection of size of learning rate greatly affect the convergence speed of neural network algorithm. If it's too big or too small, the convergence speed of neural network algorithm will be too slow. The practical experience shows that choosing learning rate is , the convergence speed of neural network algorithm is fastest.

Theorem 1 [7]:

Assume a, b are upper and lower limits of integral, and , is weight of neural network.

Then

I = (b)

Proof:

I

(b)

(b)

According to Theorem 1, we can obtain three inferences as following:

Inference 1

If a 0, b , then

I = b

Inference 2

If a 0, b , then

I

Inference 3

If a 0, b , then

I ()

Attention: If upper and lower limits of integral a, b beyond , that is , Then you need to transform variable x: . At this moment, function f(x) should be corrected: .

4. Algorithm Steps

The goal of neural network learning is weights learning. Refer to learning process of normal neural network. Then the steps for algorithm of numerical integration method for oscillating functions based on cosine basis neural network as following:

Step 1. Obtain the training sample set of the neural network:

Make sure the learning rate . Randomly generate the weights matrix of neural network W = randn(n, 1). Give error accuracy .Calculate activation matrix: .Let performance indicators J = 0.

Step 2. Calculate output of neural network: .

Step 3. Calculate error function: .

Step 4. Calculate performance indicators: .

Step 5. Update the weights: .

Step 6. If the sample were not fully trained, return to step2, or else if J > , let J = 0 and go to step2. Repeat above steps. If , stop training of neural network. Output of network weights W = [w0, w1, w2, …, wn-1].

5. Examples of Numerical Integration

Example 1 We calculated those integrals by MATLAB, their intervals of integration are [0, 1], and their integrands are , , . Then we compared values of integral with method which this paper proposed, and compared with their numbers of subinterval (n).The Table 1 as following:

Table 1

Exact value

0.90933067

0.00073815

0.07154431

Composite Trapezoidal Rule

0.90818527

(n=18)

0.00164847

(n=21)

0.06878611

(n=58)

Composite Simpson’s Rule

0.90933064

(n=15)

0.00073803

(n=57)

0.07150236 (n=120)

Method proposed

0.90933017

(n=16)

0.00072176

(n=16)

0.07151104

(n=18)

We can get some conclusions from Table 1. If the integrand is oscillatory. The error of Composite Trapezoidal Rule is quite large. So Composite Trapezoidal Rule is not suitable for solving integral with oscillatory integrand. Another result is if the integrand is getting more oscillatory, the numbers of subinterval in Composite Simpson’s Rule is raising much faster than the method proposed. It means the Composite Simpson’s Rule needs much calculation to keep its values. It’s not an effective algorithm.

Example 2 Compute the following approximation to

The integrand of above integral is highly oscillatory. The Figure 2 shows this function.

C:\Users\Nadya\Desktop\untitled.jpg

Figure 2

We used Composite Simpson’s Rule and method proposed to compute this integral by MATLAB. Then we compared their values and numbers of subinterval (n) in Table 2 as following:

Table 2

Exact value

0.07073553

Composite Simpson’s Rule

-0.3247595(n=108)

Method proposed

0.07067063 (n=17)

The result is obvious. So the Composite Simpson’s Rule is not suitable for solving integral with highly oscillatory function. And the method proposed which based on cosine basis neural network can be suitable for solving it with effective calculation.

6. Conclusion

In this paper, the algorithm of the neural network to compute numerical integral was researched. Its main idea is to make the outputs of neural networks fit the function by training weights of neural network based on the cosine basis functions using recursive least square algorithm. Since quadrature of cosine basis functions is very easy, the numerical integral of any functioncan be approximately considered as the integration of the cosine basis functions. The method effectively solves the numerical integration of the functions that modeling is difficult, or the unknown functions.

References:

  1. Li Yi-fu. A new type of highly efficient method for the numerical integration of oscillating functions [J]. Mathematica Numerica Sinica,14(4): 506–512, 1992.
  2. Wang Neng-chao. Numerical Analysis. Higher Education Press, Beijing, China,pages 66–96, 1997.
  3. Richard L. Burden, J. Douglas Faires. Numerical Analysis(Seventh Edition).Thomson Learning, Inc., pages 186–226, 772, 2001.
  4. Shen Jian-hua. Foundation of Numerical Method. TongJi University Press, Shanghai, China, pages 73–109, 1999.
  5. Liu Cheng-zhi, Cui Dou-xing. An Efficient Step-Size Control Method in Numerical Integration for Astrodynamical Equations [J]. ACTA Astronomica Sinica, 43(4): 387–390, 2002.
  6. Zeng Zhe-Zhao, Wang Yao-Nan, Wen Hui, «Numerical Integration Based on a Neural Network Algorithm», Computing in Science & Engineering, vol.8, no. 4, pp. 42–48, July/August 2006, doi:10.1109/MCSE.2006.73
  7. Luo Yu-xiong, Wen Hui. A Numerical Integration Approach Using Neural Network Algorithm [J]. Chinese Journal Of Sensors And Actuators, 19(4): 1187–1194, 2006.
  8. Zhang Yan-hong, Chen Shan-yang, Hu Xiao. A Numerical Integration Method For Structural Analysis. Engineering Mechanics, 22 (3): 39–45, 2005.
  9. M. S. Al-Haik, H.Garmestani, I. M. Navon. Truncated-Newton training algorithm for neurocomputational viscoplastic model. Computer methods in applied mechanics and engineering, Vol.192, 2249–2267, 2003.
  10. Cao Chunhong, Zhang Yongjian, Li Wenhui. A new method for geometric constraint solving-A hybrid genetic algorithm based on conjugate gradient
Основные термины (генерируются автоматически): MATLAB, ACTA.


Похожие статьи

Text Summarization with the use of Recurrent Neural Networks and Reinforcement Learning

Recurrent Neural Networks encoder and decoder systems for text summarization have been achieved high scores on short input or output texts. But for a long texts these systems often produce not coherent phrases, which often repeat themselves. In this ...

Comparison of statistical functions for programs (SAS, SPSS, and MINITAB)

Application of the three software packages on binary response data gave some similar and some other different results for the three link functions, logit, normit, and complementary logo-log functions. Table-2 demonstrate a summary of the main differe...

Opinion monitoring and analysis in social networks

The Web-application for analyzing users opinions in social networks is developed in the thesis. The Spring framework was used as a structure of the program system. The Twitter microblog was chosen as a social network. The purpose of this work is to c...

The Resource-competency approach to the external environment analysis of the trade organisation

The present article contains a review of the current problems concerning the strategic analysis of the commercial organization’s external environment. A processing algorithm for the external environment strategic analysis of the trade organization is...

Guidelines for testing intrusion detection systems in computer systems and networks

This article is proposed guidelines testing, allow to get the evaluation of performance/failure of Intrusion detection systems fixed set of functions defined by any settings, as well as assessing the vulnerability of these funds. Intrusion detection ...

Application of flexible methodology in the development of information systems

The article is devoted to the currently popular topic of the expediency of using an agile development methodology. The author of the study defines this series of approaches to software development, comprehensively characterizes it, and also identifie...

360° degree rotating fire protection system and solar panel cleaning robot

This research paper presents the design and development of a 360-degree rotating fire protection system integrated with a solar panel cleaning robot. The primary objective was to enhance fire safety measures while simultaneously maintaining the effic...

Robotics problems solution with the use of Reinforcement Learning

Design of complex and hardly engineering behaviors in robotics can be approached with the use of Reinforcement learning (RL), which gives framework and certain tools for it. There is strong relationship between these two disciplines: reinforcement le...

Brain-computer interface based brain wave and neural signal detector

The integration of brain-computer interfaces (BCIs) in neuroscience has opened new avenues for understanding and interpreting neural signals. This study focuses on the analysis of frequencies and amplitudes in detecting neural signals, particularly t...

Using java technologies to develop graphical applications

The article is devoted to the consideration of topical issues related to the use of Java technologies for the development of graphical applications. Special attention is paid to graphical capabilities of Java language and used class libraries. The me...

Похожие статьи

Text Summarization with the use of Recurrent Neural Networks and Reinforcement Learning

Recurrent Neural Networks encoder and decoder systems for text summarization have been achieved high scores on short input or output texts. But for a long texts these systems often produce not coherent phrases, which often repeat themselves. In this ...

Comparison of statistical functions for programs (SAS, SPSS, and MINITAB)

Application of the three software packages on binary response data gave some similar and some other different results for the three link functions, logit, normit, and complementary logo-log functions. Table-2 demonstrate a summary of the main differe...

Opinion monitoring and analysis in social networks

The Web-application for analyzing users opinions in social networks is developed in the thesis. The Spring framework was used as a structure of the program system. The Twitter microblog was chosen as a social network. The purpose of this work is to c...

The Resource-competency approach to the external environment analysis of the trade organisation

The present article contains a review of the current problems concerning the strategic analysis of the commercial organization’s external environment. A processing algorithm for the external environment strategic analysis of the trade organization is...

Guidelines for testing intrusion detection systems in computer systems and networks

This article is proposed guidelines testing, allow to get the evaluation of performance/failure of Intrusion detection systems fixed set of functions defined by any settings, as well as assessing the vulnerability of these funds. Intrusion detection ...

Application of flexible methodology in the development of information systems

The article is devoted to the currently popular topic of the expediency of using an agile development methodology. The author of the study defines this series of approaches to software development, comprehensively characterizes it, and also identifie...

360° degree rotating fire protection system and solar panel cleaning robot

This research paper presents the design and development of a 360-degree rotating fire protection system integrated with a solar panel cleaning robot. The primary objective was to enhance fire safety measures while simultaneously maintaining the effic...

Robotics problems solution with the use of Reinforcement Learning

Design of complex and hardly engineering behaviors in robotics can be approached with the use of Reinforcement learning (RL), which gives framework and certain tools for it. There is strong relationship between these two disciplines: reinforcement le...

Brain-computer interface based brain wave and neural signal detector

The integration of brain-computer interfaces (BCIs) in neuroscience has opened new avenues for understanding and interpreting neural signals. This study focuses on the analysis of frequencies and amplitudes in detecting neural signals, particularly t...

Using java technologies to develop graphical applications

The article is devoted to the consideration of topical issues related to the use of Java technologies for the development of graphical applications. Special attention is paid to graphical capabilities of Java language and used class libraries. The me...

Задать вопрос