TMCnet News

The Study of Sensors Market Trends Analysis Based on Social Media [Sensors & Transducers (Canada)]
[April 22, 2014]

The Study of Sensors Market Trends Analysis Based on Social Media [Sensors & Transducers (Canada)]


(Sensors & Transducers (Canada) Via Acquire Media NewsEdge) Abstract: The study aimed at analyzing the sensors related tweets on twitter in order to comprehend the market trend. The contribution of the study included the following two points. First, the study used the text mining method in order to explore the content of sensors related tweets. Second, the study applied the classification analysis to explore the relationship of the keywords. Copyright © 2013 IFSA.



Keywords: Sensors, Twitter, Random forests, AdaBoost algorithm, Text mining, Classification.

1. Introduction In this study, the author applied to the text mining analysis in the beginning. The study analyzed the sensors related tweets from twitter in order to get keywords and grasp the trend of sensors market trend.


The rest of the paper was organized as follows. First, the study began with the introduction to text mining method. Second, the overall research design was outlined, the research sites were described and data collection methods were exposed. Third, the text mining results were then presented. Fourth, in order to comprehend the relationship between keywords of the policy addresses, the study applied the classification analysis to the text mining results. The paper concluded with implications and future research avenues.

2. Methodology In the beginning, the study purposed to use the text mining method to analyze the keywords of the sensors related tweets. Text mining is one of the data mining methods, which leam from samples of past experience. In the text mining method, the text will be processed and transformed into a numerical representation. The text mining method is widely applied to information management on websites, biological data and customer relationship management [1].

2.1. Research Design The research steps were as follows, The study used the "tm" (text mining) and "twitteR" packages of the R language to explore the keywords of sensors related tweets from one of the famous social media twitter (http://twitter.com) according to the keywords frequencies.

The study got 220 sensors related tweets and found the keywords of sensors related tweets were'future','internet','track','amp', 'technology','d ata', 'diabetes', hcare','iot','iphone','GIS', 'infrared', 'weightless', 'techzone', 'wearable tech', 'digikey', 'innovation', 'webforms','blood'and 'servicesphere'. The goal was to make the classification of keywords and attempted to find the market trend of sensors on the twitter.

Step 2: The study categorized the first 110 keywords' idf (inverse document frequencies) data and categorized as "Type 0", and the following 110 keywords data as "Type 1".

Then the study used different algorithms to make the classification analysis in order to comprehend the relationship among keywords and the importance ranking of keywords.

2.2. Random Forests Classification Analysis The study also applied the random forests classification analysis to explore the relationship of Type 0 and Type 1 data and the importance of keywords. The random forests classification included the following steps [2, 3], Step (1): Draw the ntree bootstrap samples from the original data.

Step (2): For each of the bootstrap samples grow an unpruned classification or regression tree, with the following modification: at each node, rather than choosing the best split among all predictors, randomly sample m^y of the predictors and choose the best split from among those variables.

Step (3): Predict new data by aggregating the predictions of the n^e trees (i.e., majority votes for classification, average for regression).

The study categorized the keywords idf data and made the first 110 tweets keywords data as "Type 0", the following 110 tweets keywords data as "Type 1". The number of trees was set as 500, and the number of variables tried at each split was set as 4. The "rattle" package of the R software randomly chose 33 validated keywords data as the test data (18 Type 0 data, 15 Type 1 data) and 187 keywords data as the training data. The error matrix of the random forests model for test data is shown in Table 1.

The study also used the ROC (Receiver Operating Characteristic) curve to determine whether the model is the suitable model. The ROC curve plots the true positive rate against the false positive rate. The method is to consider the square measures of areas under the ROC curves. If the square measure approaches to 0.5, it would be the less corresponding model. If the square measure equals to 1, it would bet the model with perfect accuracy. According to the calculation, the square measure of the area under the ROC curve was 0.7556. The ROC curve of the random forests model in the study is shown in Fig. 1.

The random forests model calculated the variable importance, mean decrease accuracy and mean decrease Gini of keywords which were listed as Table 2 and Fig. 2.

2.3. AdaBoost Algorithm Classification Analysis AdaBoost model is a machine learning algorithm which builds a strong classifier from a small set of efficient but weak classifiers. The idea is to choose the weak classifiers in such a way that when combined they perform much better. In the result, the final strong classifier builds a model that is able to predict the class of a new observation given a data set [4, 5]. Viola and Jones (2001) also developed the AdaBoost algorithm further to boost the classification performance by combining collections of weak classifiers to form a stronger classifier. In the beginning, a set of weak classifiers are chosen with the lowest classification error. Then the sequence of machine learning problems is solved and the final strong classifier which takes a weighted combination of the weak classifiers is determined. The final strong classifier determines the optimal threshold classification function for each feature [6].

The general procedure of AdaBoost algorithm is shown as Fig. 2 [7].

The study also applied the AdaBoost classification analysis to make the classification analysis. The "rattle" package of the R software randomly chose 33 data as the test data (18 Type 0 data, 15 Type 1 data) and 187 keywords data as the training data. The maximized depth was set as 30, the minimum split was set as 20 and the iterations were set as 50. The error matrix of the AdaBoost model for test data is as Table 3.

According to the calculation, the square measure of the area under the ROC curve was 0.6630. The ROC curve of the AdaBoost model classification is shown in Fig. 4.

2.4. Decision Tree Classification Analysis Decision tree analysis is useful for logical induction in the data mining process. Decision tree induction is the learning of decision trees from classlabeled training tuples. A decision tree is a flowchartlike tree structure, where each internal node represents a test on an attribute, each branch represents an outcome of the test, and each leaf node (terminal node) holds a class label. The topmost node is the root node [8]. The "rattle" package of the R software randomly chose 33 data as the test data (18 Type 0 data, 15 Type 1 data) and 187 keywords data as the training data. The configuration parameters is originally set by the Rattle 2.6.26 software, including min. split=20, max. depth=30 and min. bucket=7. The error matrix of the AdaBoost model for test data was as Table 4. And the decision tree model classification was shown as Fig. 5.

In the beginning, the study applied the text mining method to get the keywords from sensors related tweets, and then used the random forests model, the AdaBoost Model, the decision tree model to analyze the classification results and major keywords in the classification process. The major results are listed below: According to the calculation, the square measure of the area under the ROC curve was 0.5981. The ROC curve of the decision tree model in the study is shown in Fig. 6.

3. Discussion (i) The study found the top five major keywords in the random forests model classification were technology, webforms, innovation, track and diabetes. The random forests model had the best classification performance with the lowest error percentage and the largest square measure of the area under the ROC curve.

(ii) n the AdaBoost classification results, the study found the top five keywords were diabetes, health care (hcare), webforms, GIS(Geographic Information System) and serviceshpere. The classification performance of the AdaBoost model was the second best in three models according to the overall error percentage and the square measure of the area under the ROC curve.

(iii) As for the Decision Tree model, the top four terminal node were webforms, technology, track and future, while the model had the worst performance according to the overall error percentage and the square measure of the area under the ROC curve.

4. Conclusions The contributions of the study were as follows. First, the study developed a new literature survey method to explore the sensors related tweets to comprehend the market trend of sensors on the social media. From the study, the study found the random forests classification had the best performance in three models of classification. The study also found the major keywords in sensors related tweets including the realm of web technologies (such as technology, webforms, innovation, track) and health issues (such as health care and diabetes). It offers more insights on further research.

Acknowledgements The authors were gratitude for the sponsorship of Faculty Research Grant funded by the Macau University of Science and Technology.

References [1]. S. Weiss, N. Indukhya, T. Zhang, and F. Damerau, Text Mining: Predictive Method for Analyzing Unstructured Information, Springer, 2005.

[2] . A. Liaw and M. Wiener, Classification and Regression from Random Forest, The R Journal, Vol. 2, No. 3,2002, pp. 18-22.

[3] . L. Breiman, Random Forests, Machine Learning, Vol. 45, No. 1,2001, pp. 5-32.

[4] . Y. Freund, R. E. Schapire, A short introduction to boosting, Journal of Japanese Society for Artificial Intelligence, Vol. 14, No. 5, 1999, pp. 771-780.

[5] . Y. Shin, D. W. Kim, S. W. Yang, H. H. Cho, K. I. Kang, Decision Support Model using the AdaBoost Algorithm to Select Formwork Systems in High-Rise Building Construction, in Proceedings of the 25th International Symposium on Automation and Robotics in Construction, 2008, pp. 644-649.

[6] . P. Viola, M. Jones, Rapid Object Detection using a Boosted Cascade of Simple Features, in Proceedings of the IEEE International Conference on Computer Vision and Pattern Recognition, 2001, pp. 511-518.

[7] . X. Wu, V. Kumar (eds.), The Top Ten Algorithms in Data Mining, Taylor & Francis, 2009.

[8] . J. Han, M. Kamber, Data Mining: Concepts and Techniques, Elsevier, 2006.

1 Shianghau Wu,2 Jiannjong Guo Faculty of Management and Administration, Macau University of Science and Technology, Avenida Wai Long, Taipa, Macau, China Graduate Institute of Mainland China Studies, Tamkang University, No. 151 Xuefu Road, 251,New Taipei City, Taiwan 1 Tel.: (853)88972399, fax: (853)28823281 E-mail: [email protected] Received: 30 October 2013 /Accepted: 20 November 2013 /Published: 30 November 2013 (c) 2013 International Frequency Sensor Association

[ Back To TMCnet.com's Homepage ]