A Gaussian function model for simulation of complex environmental sensing
© Chaudhry. 2015
Received: 3 September 2015
Accepted: 5 November 2015
Published: 14 November 2015
Sensors can be used to sense not only simple behavior but also complex ones. Previous work has demonstrated how agent-based modeling can be used to model sensing of complex behavior in Complex Environments.
Here, we propose a mathematical model using Gaussian function for the previously developed Agent Based Model (ABM) for Sensing of Emergent behavior in Complex Adaptive System (SECAS). The goodness of the fitted curve was observed by using standard tools, e.g. by determining SSE, SSM, ASSM and RMSE.
Our proposed model provides a good fit for data obtained from the earlier model. Also the developed model provides a bench mark against the data obtained from a former Agent Based Model.
KeywordsComplex Adaptive System Environmental sensing Gaussian function Mathematical model
Wireless sensors are a growing area of research focus. In previous works Niazi and Hussain (2011a, b), a formal model of wireless sensor networks has been given along with an agent-based simulation model. The idea was to use sensing to examine and identify complex behavior such as flocking. The papers also presented a formal specification model is based on the Z formal specification language. While the idea was interesting, these papers did not present a traditional mathematical model. In the current paper, I expand the ideas presented in the earlier papers and present an alternative mathematical model in the form of a Gaussian model for the results of sensing presented earlier in Niazi and Hussain (2011a).
Mathematical modeling of curve fitting
Curve fitting provides an ample opportunity to capture nicely the trend in the data by assigning a single function across the entire range. There are many possible ways to do this e.g. using Gaussian function, smoothing spine, sum of the trigonometric function or weibull function etc. Ordinary and partial differential equations are also helpful in determining the trend beautifully. In this paper, I have used Gaussian function.
In order to fit the data, mathematical model was developed using Gaussian function as given in Eq. 1. All the simulation work was performed using (Matlab 2011; Curve Fitting Toolbox 2011) . The validation data was taken on the basis of the original simulation model presented in (Niazi and Hussain 2011a). To find the optimal values of the coefficients of the given equation, Trust-region algorithm was used. This algorithm is not only very useful in the evaluation of constraint coefficients but also in handling the complex nonlinear problems more efficiently than the other algorithms. The goodness of the fitted curve was observed by determining of the sum of the squares of residuals (SSE), summed squares about the mean (SSM), adjusted summed squares about the mean (ASSM) and root mean squared error (RMSE). SSE represents the sum of squares due to the error of the fit where a value in the vicinity of zero indicates a fit which is more useful for prediction. SSM represents the square of the correlation between response and predicted response values, where ASSM depends on the adjusted residual degrees of freedom. RMSE is quite commonly used and requires no debate on it.
Results and discussion
Fitted parameters for the Gaussian equation models
For data set I
For data set II
95 % confidence bounds
95 % confidence bounds
Conclusion and future work
In this paper, I have presented a mathematical model using Gaussian function for Sensing of Emergent behavior in Complex Adaptive System (SECAS). This work is actually an extension of the formal model presented earlier by Niazi and Hussain for the sensing of complex behavior. The lack of a traditional mathematical model motivated me to do this. In the future, it would be interesting to couple formal models with formal specification models in other domains such as in the domain of the Internet of Things, networks of consumer electronics and more.
Agent Based Model
sensing of emergent behavior in Complex Adaptive System
sum of the squares of residuals
summed squares about the mean
adjusted summed squares about the mean
root mean squared error
The author of this paper acknowledge the support given by University of Engineering and Technology, Lahore. However, UET has no role in writing this paper.
The author declares that they have no competing interests.
Open AccessThis article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
- Curve Fitting Toolbox, The MathWorks Inc. MATLAB 188.8.131.525 (R2011a), 2011
- Jonsson P, Eklundh L (2002) Seasonality extraction by function fitting to time-series of satellite sensor data. IEEE Trans Geosci Remote Sens 40:1824–1832View ArticleGoogle Scholar
- Niazi MA, Hussain A (2011a) Sensing emergence in complex systems. Sens J IEEE. 11:2479–2480View ArticleGoogle Scholar
- Niazi MA, Hussain A (2011b) A novel agent-based simulation framework for sensing in complex adaptive environments. Sens J IEEE 11:404–412View ArticleGoogle Scholar
- The MathWorks Inc. MATLAB 184.108.40.2065 (R2011a), 2011