A Study of Pattern Prediction in the Monitoring Data of Earthen Ruins with the Internet of Things
Abstract
:1. Introduction
- (1)
- It is difficult to describe the complex and interesting hidden relationship between internal earthen ruin parameters and external environmental parameters. For example, Figure 2 shows a plot of air temperature (line with ○) and rammed earth temperature of an earthen ruin (line with ×) sequences. As shown in the figure, in the area indicated by the left dashed box, both air temperature and rammed earth temperature values decrease. However, in the area indicated by the right dashed box, although the air temperature falls, the rammed earth temperature shows no significant change. In order to predict the rammed earth temperature trend based on the air temperature, we must know what kind of change in temperature is meaningful for earthen ruins conservation experts. However, not all the air temperature changes are interesting; for instance, earthen ruins conservation experts may only pay attention to air temperature changes that would cause damage in earthen ruins.
- (2)
- With the increase in the number of IoT nodes, as well as the continuous monitoring, we will face dealing with huge amounts of time-series data. For example, the Ming Dynasty Great Wall ruins are more than 6000 km in length; if monitoring nodes were deployed every meter along the Ming Dynasty Great Wall, the number of nodes would be more than 6 million. Faced with large amounts of time-series data, we expect algorithms to provide prediction results efficiently.
- (3)
- There is a hysteresis effect in rammed earth temperatures relative to air temperatures. Therefore, in the monitoring data of earthen ruins, a change in the rammed earth temperature has a certain delay relative to the change in air temperature. The delay parameter needs to be studied to be able to predict the exact rammed earth temperature trends with time.
- (1)
- Some terms for interesting patterns for earthen ruin monitoring are formalized. Terms, such as interesting pattern, direction, delay and variation of rule, are properly defined to precisely describe the patterns and changes in IoT data.
- (2)
- The air temperature and rammed earth temperature are used as examples to show how the hidden relationships between the two earthen ruin monitoring data are discovered. Since dramatic temperature change is one major cause for the destruction of earthen ruins, we focus on the rising and falling of the temperature. PPER searches the whole dataset to find the rising and falling pattern and obtains the predictive rules to predict the rammed earth temperature.
- (3)
- Two pruning rules are proposed to reduce the number of computations. At the same time, a new data structure version based on the R-tree [14] data structure is used to group similar patterns. Both techniques can significantly reduce the time complexity when processing huge amounts to IoT data.
- (4)
- A set of experiments were conducted on the monitoring data of the Ming Dynasty Great Wall to demonstrate the effectiveness and efficiency of PPER. Interesting relationships between the air temperature and the rammed earth temperature were discovered to predict the rammed earth temperature pattern.
2. Related Work
2.1. Destructive, Nondestructive and Micro-Destructive Measurements for Earthern Site Monitoring
2.2. IoT Technology in Culture Heritage Domain
2.3. Time-Series Prediction
3. Definitions and Notations
4. The PPER Algorithm
4.1. Finding Intersting Patterns
4.1.1. Identifying the Candidate Pattern Set
Algorithm 1. FindCandPatterns Algorithm. |
FindCandPatterns (Dataset, Window Size, , Overlapping Length) |
Input: Dataset, Window Size, Output: candidate pattern set CandSet 1: Initiate variables and parameters CandSet = , = Window Size , o = Overlapping Length; 2: For each Set i related to variable i in the dataset 3: For each S in Set i 4: start = 0; 5: While(start < S.length) 6: SW = ; // initiating sliding window 7: If SW.variance > 8: new = SW ∪ ; // adding the next data point in S to SW 9: while and slope(new) = = slope(SW) 10: SW = SW ∪ ; 11: EndWhile 12: P = {SW,SID }; 13: CandSet = CandSet ∪ P; 14: start = start + P.length; 15: Else 16: start = start + o; 17: EndIf 18: EndWhile 19: EndFor 20: EndFor 22: Return CandSet |
4.1.2. Grouping Similar Patterns
Data Structure
Pruning-Based Calculation of Distance Matrix
- (1)
- Pruning rule 1. If two similar patterns and do not appear in the area of the sequences, then the distance of the two patterns is infinity. is a user specified parameter. Pruning rule 1 is based on the fact that two similar patterns, far from each other, are considered to be two distinct patterns. As a result, there is no need to calculate their distance, and we can simply fill the corresponding matrix element by infinity.
- (2)
- Pruning rule 2. If pattern is falling (negative slope) and pattern is rising (positive slope), then the distance of the two patterns is infinity. Pruning rule 2 uses for pruning the slope of the patterns. If one pattern is falling (negative slope) and the other one is rising (positive slope) they cannot be considered as similar and therefore we do not need to calculate their similarity. That is, we just simply fill the corresponding matrix element by infinity.
Algorithm 2. CalDistMatrix Algorithm. |
CalDistMatrix (Pattern set P) |
Input: Pattern set P Output: distance matrix DistanceMatrix 1: Initiate DistanceMatrix with infinty; 2: Rtree patternTree = P.index(); 3: root = patternTree.getRoot; 4: childrenList = root.getChildren(); 5: For each (ch1 , ch2) in childrenList 6: If ch1,ch2 are not patterns 7: getChildren(ch1); 8: do 9: If the children i and j of ch1 are in same area and with same slope 10: DistanceMatrix[chi.id][ chj.id] = dist(chi,chj); 11: EndIf 12: While patterns are found; 13: getChildren(ch2); 14: do 15: If the children k and l of ch2 are in same area and with same slope 16: DistanceMatrix[chk.id][ chl.id] = dist(chk,chl); 17: EndIf 18: While patterns are found; 19: If MBRdist(ch1,ch2)< and ch1 and ch2 are in same area and with same slope 20: DistanceMatrix[ch1.id][ch2.id] = dist(ch1,ch2); 21: EndIf 22: EndIf 23: EndFor 24: Return DistanceMatrix |
Finding Similar Patterns
Algorithm 3. FindSimilarPatterns Algorithm. |
FindSimilarPatterns( Pattern set P,) |
Input: Pattern set P, Output: filteredPatternList 1: filteredPatternList = P; 2: For i = 0 to P.size 3: For j = 0 to P.size 4: If DistanceMatrix(i,j) < 5: If P(i).similarlist.size() > P(j).similarlist.size() 6: P(i).similarlist.add(P(j)); 7: filteredPatternList.remove(P(j)); 8: Else 9: P(j).similarlist.add(P(i)); 10: filteredPatternList.remove(P(i)); 11: EndIf 12: EndIf 13: EndFor 14: EndFor 15: Return filteredPatternList |
4.2. Generating Predictive Rules
- If and
- then with delay = 3 h
4.3. Predicting with Predictive Rules
5. Experiments
5.1. Parameter Setting
5.2. Experiment on the Performance of Pruning Rules
5.3. Experiments on the Performance of Prediction
Algorithm 4. Predictive Rules. |
Predictive Rules |
1: If and then with delay = 3 h 2: If and then with delay = 3 h 3: If and then with delay = 3 h 4: If and then with delay = 3 h 5: If and then with delay = 3 h 6: If and then with delay = 3 h |
6. Conclusions
Acknowledgments
Author Contributions
Conflicts of Interest
References
- Shu, L. Research of Seismic Stability on Earthen Ruins of Camels City. Master’s Thesis, Lanzhou Jiaotong University, Lanzhou, China, 2011. [Google Scholar]
- Matero, F. Mud brick metaphysics and the preservation of earthen ruins. Conserv. Manag. Archaeolog. Sites 2015, 17, 209–223. [Google Scholar] [CrossRef]
- Zhao, H.; Li, Z.; Han, W.; Wang, X.; Chen, W. Main diseases and their causes of earthen ruins in arid region of Northwestern China. Chin. J. Rock Mech. Eng. 2003, 22, 2875–2880. [Google Scholar]
- Yao, X.; Zhao, F.; Sun, M. On the temperature variation patterns and forecast model of the enclosed earthen site museum. Dunhuang Res. 2014, 6, 69–74. [Google Scholar]
- Abrardo, A.; Balucanti, L.; Belleschi, M.; Carretti, C.M.; Mecocci, A. Health monitoring of architectural heritage: The case study of San Gimignano. In Proceedings of the IEEE Workshop on Environmental Energy and Structural Monitoring Systems (EESMS), Taranto, Italy, 9 September 2010. [Google Scholar]
- Rodriguez-Sanchez, M.; Borromeo, S.; Hernández-Tamames, J. Wireless sensor networks for conservation and monitoring cultural assets. IEEE Sens. J. 2011, 11, 1382–1389. [Google Scholar] [CrossRef]
- D’Amato, F.; Gamba, P.; Goldoni, E. Monitoring heritage buildings and artworks with wireless sensor networks. In Proceedings of the IEEE Workshop on Environmental Energy and Structural Monitoring Systems (EESMS), Perugia, Italy, 28 September 2012. [Google Scholar]
- Chianese, A.; Piccialli, F. Designing a smart museum: When cultural heritage joins IoT. In Proceedings of the 2014 Eighth International Conference on Next Generation Mobile Apps, Services and Technologies (NGMAST), Oxford, UK, 10–12 September 2014. [Google Scholar]
- Chianese, A.; Piccialli, F. Improving user experience of cultural environment through IoT: The beauty or the truth case study. In Intelligent Interactive Multimedia Systems and Services; Springer International Publishing: Cham, Switzerland, 2015; pp. 11–20. [Google Scholar]
- Marulli, F. IoT to enhance understanding of cultural heritage: Fedro authoring platform, artworks telling their fables. In Future Access Enablers of Ubiquitous and Intelligent Infrastructures; Springer International Publishing: Cham, Switzerland, 2015; pp. 270–276. [Google Scholar]
- Alletto, S.; Cucchiara, R.; Del Fiore, G.; Mainetti, L.; Mighali, V.; Patrono, L.; Serra, G. An indoor location-aware system for an iot-based smart museum. IEEE Internet Things J. 2016, 3, 244–253. [Google Scholar] [CrossRef]
- Cuomo, S.; De Michele, P.; Piccialli, F.; Galletti, A.; Jung, J.E. IoT-based collaborative reputation system for associating visitors and artworks in a cultural scenario. Expert Syst. Appl. 2017, 79, 101–111. [Google Scholar] [CrossRef]
- Xiao, Y.; Chen, X.; Wang, L.; Li, W.; Liu, B.; Fang, D. An immune theory based health monitoring and risk evaluation of earthen sites with internet of things. In Proceedings of the IEEE International Conference on Green Computing and Communications (GreenCom) and Internet of Things (iThings) and IEEE Cyber, Physical and Social Computing (CPSCom), Bejing, China, 20–23 August 2013. [Google Scholar]
- Guttman, A. R-trees: A dynamic index structure for spatial searching. In Proceedings of the 1984 ACM SIGMOD International Conference on Management of Data, Boston, MA, USA, 18–21 June 1984. [Google Scholar]
- Zhang, H.; Liu, P.; Wang, J.F.; Wanget, X.D. Generation and detachment of surface crust on ancient earthen architectures. Rock Soil Mech. 2009, 30, 1883–1891. [Google Scholar]
- Sun, B.; Zhou, Z.; Zhang, H.; Zhang, Y.; Zheng, L. Characteristics and prediction model of surface temperature for rammed earthen architecture ruins. Rock Soil Mech. 2011, 3, 867–871. [Google Scholar]
- Cheng, H.; Tan, P.-N.; Gao, J.; Scripps, J. Multistep-ahead time series prediction. In Proceedings of the Pacific-Asia Conference on Knowledge Discovery and Data Mining, Singapore, 9–12 April 2006. [Google Scholar]
- Box, G.E.P.; Jenkins, G.M.; Reinsel, G.C.; Ljung, G.M. Time Series Analysis: Forecasting and Control, 5th ed.; John Wiley & Sons: Hoboken, NJ, USA, 2015; pp. 1–17. [Google Scholar]
- Holt, C.C. Forecasting seasonals and trends by exponentially weighted moving averages. Int. J. Forecast. 2004, 20, 5–10. [Google Scholar] [CrossRef]
- Brown, R.G. Smoothing, Forecasting and Prediction of Discrete Time Series, 1st ed.; Dover Publications: New York, NY, USA, 2004; pp. 97–104. [Google Scholar]
- Pegels, C.C. Exponential forecasting: Some new variations. Manag. Sci. 1969, 12, 311–315. [Google Scholar]
- Sodanil, M.; Chatthong, P. Artificial neural network-based time series analysis forecasting for the amount of solid waste in Bangkok. In Proceedings of the Ninth International Conference on Digital Information Management, Phitsanulok, Thailand, 29 September–1 October 2014. [Google Scholar]
- Babu, C.N.; Reddy, B.E. A moving-average filter based hybrid ARIMA–ANN model for forecasting time series data. Appl. Soft Comput. 2014, 23, 27–38. [Google Scholar] [CrossRef]
- Yoon, H.; Jun, S.C.; Hyun, Y.; Bae, G.O.; Lee, K.K. A comparative study of artificial neural networks and support vector machines for predicting groundwater levels in a coastal aquifer. J. Hydrol. 2011, 396, 128–138. [Google Scholar] [CrossRef]
- Chen, T.-T.; Lee, S.-J. A weighted LS-SVM based learning system for time series forecasting. Inf. Sci. 2015, 299, 99–116. [Google Scholar] [CrossRef]
- Lin, A.; Shang, P.; Feng, G.; Zhong, B. Application of empirical mode decomposition combined with K-nearest neighbors approach in financial time series forecasting. Fluct. Noise Lett. 2012, 11, 1250018. [Google Scholar] [CrossRef]
- Höppner, F. Knowledge Discovery from Sequential Data. Ph.D. Thesis, Technical University Braunschweig, Braunschweig, Germany, 2003. [Google Scholar]
- Lee, A.J.T.; Wu, H.-W.; Lee, T.-Y.; Liu, Y.-H.; Chen, K.-T. Mining closed patterns in multi-sequence time-series databases. Data Knowl. Eng. 2009, 68, 1071–1090. [Google Scholar] [CrossRef]
- Allen, J.F. Maintaining knowledge about temporal intervals. Commun. ACM 1983, 26, 832–843. [Google Scholar] [CrossRef]
- Chakraborty, K.; Mehrotra, K.; Mohan, C.K.; Ranka, S. Forecasting the behavior of multivariate time series using neural networks. Neural Netw. 1992, 5, 961–970. [Google Scholar] [CrossRef]
- Jain, A.; Kumar, A.M. Hybrid neural network models for hydrologic time series forecasting. Appl. Soft Comput. 2007, 7, 585–592. [Google Scholar] [CrossRef]
- Han, M.; Fan, M. Application of neural networks on multivariate time series modeling and prediction. In Proceedings of the American Control Conference, Minneapolis, MN, USA, 14–16 June 2006. [Google Scholar]
- Moerchen, F. Algorithms for time series knowledge mining. In Proceedings of the 12th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Philadelphia, PA, USA, 20–23 August 2006. [Google Scholar]
- Singh, S. Noisy time-series prediction using pattern recognition techniques. Comput. Intell. 2000, 16, 114–133. [Google Scholar] [CrossRef]
- Alvarez, F.M.; Troncoso, A.; Riquelme, J.C. Energy time series forecasting based on pattern sequence similarity. IEEE Trans. Knowl. Data Eng. 2011, 23, 1230–1243. [Google Scholar] [CrossRef]
- Mörchen, F.; Ultsch, A. Efficient mining of understandable patterns from multivariate interval time series. Data Min. Knowl. Discov. 2007, 15, 181–215. [Google Scholar] [CrossRef]
- Kothuri, R.K.V.; Ravada, S.; Abugov, D. Quadtree and R-tree indexes in oracle spatial: A comparison using GIS data. In Proceedings of the 2002 ACM SIGMOD International Conference on Management of Data, Madison, WI, USA, 2–6 June 2002. [Google Scholar]
- Han, J.; Han, I.; Micheline, K. Data Mining: Concepts and Techniques, 2nd ed.; Elsevier: San Francisco, CA, USA, 2006; pp. 234–272. [Google Scholar]
© 2017 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Xiao, Y.; Wang, X.; Eshragh, F.; Wang, X.; Chen, X.; Fang, D. A Study of Pattern Prediction in the Monitoring Data of Earthen Ruins with the Internet of Things. Sensors 2017, 17, 1076. https://doi.org/10.3390/s17051076
Xiao Y, Wang X, Eshragh F, Wang X, Chen X, Fang D. A Study of Pattern Prediction in the Monitoring Data of Earthen Ruins with the Internet of Things. Sensors. 2017; 17(5):1076. https://doi.org/10.3390/s17051076
Chicago/Turabian StyleXiao, Yun, Xin Wang, Faezeh Eshragh, Xuanhong Wang, Xiaojiang Chen, and Dingyi Fang. 2017. "A Study of Pattern Prediction in the Monitoring Data of Earthen Ruins with the Internet of Things" Sensors 17, no. 5: 1076. https://doi.org/10.3390/s17051076
APA StyleXiao, Y., Wang, X., Eshragh, F., Wang, X., Chen, X., & Fang, D. (2017). A Study of Pattern Prediction in the Monitoring Data of Earthen Ruins with the Internet of Things. Sensors, 17(5), 1076. https://doi.org/10.3390/s17051076