A Co-Optimization Algorithm Utilizing Particle Swarm Optimization for Linguistic Time Series
Abstract
:1. Introduction
2. Background
2.1. A Brief Introduction of Hedge Algebras
- The signs of the negative generator c− and the positive generator word c+ are sign(c− = −1 and sign(c+) = +1, respectively;
- Every h ∈ H+ increases the semantic of c+ and has sign(h) = +1, whereas, every h ∈ H- decreases the semantic of c− and has sign(h) = −1;
- If hedge h strengthens the of hedge k, the relative sign between h and k is sign(h, k) = +1. On other hand, if the hedge h weakens the semantic of the hedge k, sign(h, k) = −1. Thus, the sign of a word x = hnhn−1…h2h1c is specified as follows:
- (1)
- ;
- (2)
- , where j ∈ [−q^p] = {j: −q ≤ j ≤ p & j ≠ 0} and
2.2. Linguistic Time Series-Forecasting Model
2.3. Standard PSO
3. Improve the LTS-FM by the Co-Optimization of PSO
Algorithm 1. UWO (Gwmax, Wset, dw, δ)//Used word set-optimization procedure |
Input: Parameters: Gwmax, Wset, dw, δ; // Gwmax is the number of generations, Wset is the word set of , dw is the cardinality of the used word set selected from Wset, δ is a set of FPVs. Output: The optimal word set and the associated best MSE value; Begin Randomly initialize a swarm W0 = { | i = 1, …, M, ||= dw}; // is a subset of index values in interval [0, |Wset|], where |Wset| is the cardinality of Wset, || is the number of elements of . Sort the elements of ; For each particle xi in swarm do begin Implement the LTS forecasting procedure from Step 2 to Step 6 based on δ and ; Evaluate the value of the MSE of xi by Equation (1); Assign the personal best position of xi to the current position; End; Assign the global best position to the best position in current swarm; t = 1; Repeat For each particle xi in swarm do begin Compute new velocity of xi by Equation (5); Compute new position of xi by Equation (4); Sort the elements of ; Implement the LTS forecasting procedure from Step 2 to Step 6 based on δ and ; Evaluate the value of the MSE of xi by Equation (1); If is better than then Update of xi based on the value of MSE; End; End; Update based on the values of MSE; t = t + 1; Until t = Gwmax; Return the best position and its best MSE value; End. |
Algorithm 2. PSCO_FPVO//Fuzziness parameter value optimization |
Input: The designated time-series dataset D; Parameters: N, Gmax, Gwmax, the syntactical semantics of HAs, kmax, dw; //Gmax and Gwmax are the number of generations of outer and inner PSO, respectively; kmax is the maximum word length; dw is the used word set’s cardinality. Output: The optimal FPVs and the best-used word set W*set; Begin Generate the word set Wset of with the maximum word length kmax utilizing HA; Randomly initialize a swarm S0 = { | i = 1, …, N}, where ; // is a set of FPVs //The best used word set W*set and the best MSE value MSE* (W*set, MSE*) = (∅, +∞); For each particle xi do begin (W*set, MSE*) = UWO(Gwmax, Wset, dw, δ = ); //call the inner PSO = MSE*; //Fitness value associated with particle xi Assign the personal best position of xi to the current position; End; Assign the global best position the best position in current swarm; t = 1; Repeat For each particle xi do begin Compute new velocity of xi by Equation (5); Compute new position of xi by Equation (4); (Wtmp_set, MSE) = UWO(Gwmax, Wset, dw, δ = ); //call the inner PSO = MSE; //Fitness value associated with particle i If is better than then begin Update the personal best of xi based on ’s value; If MSE is better than MSE* then begin (W*set, MSE*) = (Wtmp_set, MSE); Update the global best position ; End; End; End; t = t + 1; Until t = Gmax; Return the best position and W*set; End. |
4. Experimental Studies and Discussion
4.1. Forecast the “Enrollments of the University of Alabama”
4.2. Forecast the “Killed in Car Road Accidents in Belgium”
4.3. Forecast the “Spot Gold in Turkey”
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Song, Q.; Chissom, B.S. Fuzzy Time Series and its Model. Fuzzy Sets Syst. 1993, 54, 269–277. [Google Scholar] [CrossRef]
- Song, Q.; Chissom, B.S. Forecasting Enrollments with Fuzzy Time Series–Part I. Fuzzy Sets Syst. 1993, 54, 1–9. [Google Scholar] [CrossRef]
- Song, Q.; Chissom, B.S. Forecasting Enrollments with Fuzzy Time Series–Part II. Fuzzy Sets Syst. 1994, 62, 1–8. [Google Scholar] [CrossRef]
- Zadeh, L.A. Fuzzy Sets. Inf. Control 1965, 8, 338–353. [Google Scholar] [CrossRef] [Green Version]
- Chen, S.M.; Chung, N.Y. Forecasting Enrollments of Students by Using Fuzzy Time Series and Genetic Algorithms. Inf. Manag. Sci. 2006, 17, 1–17. [Google Scholar]
- Uslu, V.R.; Bas, E.; Yolcu, U.; Egrioglu, E. A fuzzy time series approach based on weights determined by the number of recurrences of fuzzy relations. Swarm Evol. Comput. 2014, 15, 19–26. [Google Scholar] [CrossRef]
- Kuo, I.H.; Horng, S.J.; Kao, T.W.; Lin, T.L.; Lee, C.L.; Pan, Y. An improved method for forecasting enrollments based on fuzzy time series and particle swarm optimization. Expert Syst. Appl. 2009, 36, 6108–6117. [Google Scholar] [CrossRef]
- Chen, S.M.; Zou, X.Y.; Gunawan, G.C. Fuzzy time series forecasting based on proportions of intervals and particle swarm optimization techniques. Inf. Sci. 2019, 500, 127–139. [Google Scholar] [CrossRef]
- Ho, N.C.; Wechler, W. Hedge algebras: An algebraic approach to structures of sets of linguistic domains of linguistic truth values. Fuzzy Sets Syst. 1990, 35, 281–293. [Google Scholar]
- Ho, N.C.; Wechler, W. Extended algebra and their application to fuzzy logic. Fuzzy Sets Syst. 1992, 52, 259–281. [Google Scholar] [CrossRef]
- Huy, N.H.; Ho, N.C.; Quyen, N.V. Multichannel image contrast enhancement based on linguistic rule-based intensificators. Appl. Soft Comput. J. 2019, 76, 744–762. [Google Scholar]
- Le, B.H.; Anh, L.T.; Binh, B.V. Explicit formula of hedge-algebras-based fuzzy controller and applications in structural vibration control. Appl. Soft Comput. 2017, 60, 150–166. [Google Scholar]
- Ho, N.C.; Nam, H.V.; Khang, T.D.; Chau, N.H. Hedge Algebras, Linguistic- valued logic and their application to fuzzy reasoning. Int. J. Uncertain. Fuzziness Knowl.-Based Syst. 1999, 7, 347–361. [Google Scholar]
- Ho, N.C.; Son, T.T.; Phong, P.D. Modeling of a semantics core of linguistic terms based on an extension of hedge algebra semantics and its application. Knowl.-Based Syst. 2014, 67, 244–262. [Google Scholar]
- Ho, N.C.; Thong, H.V.; Long, N.V. A discussion on interpretability of linguistic rule based systems and its application to solve regression problems. Knowl.-Based Syst. 2015, 88, 107–133. [Google Scholar]
- Phong, P.D.; Du, N.D.; Thuy, N.T.; Thong, H.V. A hedge algebras based classification reasoning method with multi-granularity fuzzy partitioning. J. Comput. Sci. Cybern. 2019, 35, 319–336. [Google Scholar] [CrossRef] [Green Version]
- Hoang, V.T.; Nguyen, C.H.; Nguyen, D.D.; Pham, D.P.; Nguyen, V.L. The interpretability and scalability of linguistic-rule-based systems for solving regression problems. Int. J. Approx. Reason. 2022, 149, 131–160. [Google Scholar] [CrossRef]
- Ho, N.C.; Long, N.V. Fuzziness measure on complete hedge algebras and quantifying semantics of terms in linear hedge algebras. Fuzzy Sets Syst. 2007, 158, 452–471. [Google Scholar] [CrossRef]
- Hieu, N.D.; Ho, N.C.; Lan, V.N. Enrollment forecasting based on linguistic time series. J. Comput. Sci. Cybern. 2020, 36, 119–137. [Google Scholar] [CrossRef]
- Hieu, N.D.; Ho, N.C.; Lan, V.N. An efficient fuzzy time series forecasting model based on quantifying semantics of words. In Proceeding of 2020 RIVF International Conference on Computing and Communication Technologies (RIVF), Ho Chi Minh, Vietnam, 14–15 October 2020; pp. 1–6. [Google Scholar]
- Phong, P.D.; Hieu, N.D.; Linh, M.V. A Hybrid Linguistic Time Series Forecasting Model combined with Particle Swarm Optimization. In Proceedings of the International Conference on Electrical, Computer and Energy Technologies (ICECET 2022), Prague, Czech Republic, 20–22 July 2022. [Google Scholar]
- Kennedy, J.; Eberhart, R.C. Particle Swarm Optimization. In Proceedings of the IEEE International Conference on Neural Networks, Piscataway, NJ, USA, 27 November–1 December 1995; IEEE Service Center: Piscataway, NJ, USA, 1995; pp. 1942–1948. [Google Scholar]
- Eberhart, R.C.; Kennedy, J. A new optimizer using particle swarm theory. In Proceedings of the Sixth International Symposium on Micro Machine and Human Science, Nagoya, Japan, 4–6 October 1995; IEEE Service Center: Piscataway, NJ, USA, 1995; pp. 39–43. [Google Scholar]
Year | Enrollments | CCO6 [5] | HPSO [7] | Uslu et al. [6] | Chen et al. [8] | Phong et al. [21] | COLTS3 | COLTS4 | COLTS5 |
---|---|---|---|---|---|---|---|---|---|
1971 | 13,055 | ||||||||
1972 | 13,563 | 13,714 | 13,555 | 13,650 | 13,469 | 13,515 | 13,515 | 13,562 | 13,598 |
1973 | 13,867 | 13,714 | 13,994 | 13,650 | 13,952 | 14,001 | 14,001 | 13,759 | 13,900 |
1974 | 14,696 | 14,880 | 14,711 | 14,836 | 14,596 | 14,800 | 14,800 | 14,722 | 14,817 |
1975 | 15,460 | 15,467 | 15,344 | 15,332 | 15,439 | 15,509 | 15,509 | 15,412 | 15,445 |
1976 | 15,311 | 15,172 | 15,411 | 15,447 | 15,241 | 15,509 | 15,509 | 15,464 | 15,487 |
1977 | 15,603 | 15,467 | 15,411 | 15,447 | 15,925 | 15,509 | 15,509 | 15,464 | 15,487 |
1978 | 15,861 | 15,861 | 15,411 | 15,447 | 15,880 | 15,752 | 15,752 | 15,798 | 15,877 |
1979 | 16,807 | 15,831 | 16,816 | 16,746 | 16,801 | 16,693 | 16,693 | 16,799 | 16,805 |
1980 | 16,919 | 17,106 | 17,140 | 17,075 | 17,009 | 16,949 | 16,949 | 16,975 | 16,995 |
1981 | 16,388 | 16,380 | 16,464 | 16,380 | 16,260 | 16,779 | 16,779 | 16,431 | 16,323 |
1982 | 15,433 | 15,464 | 15,457 | 15,504 | 15,435 | 15,553 | 15,553 | 15,412 | 15,445 |
1983 | 15,497 | 15,172 | 15,447 | 15,431 | 15,212 | 15,509 | 15,509 | 15,464 | 15,487 |
1984 | 15,145 | 15,172 | 15,447 | 15,077 | 15,282 | 15,132 | 15,132 | 15,286 | 15,221 |
1985 | 15,163 | 15,467 | 15,332 | 15,297 | 15,344 | 15,132 | 15,132 | 15,312 | 15,241 |
1986 | 15,984 | 15,467 | 16,027 | 15,848 | 15,714 | 15,752 | 15,752 | 15,824 | 15,898 |
1987 | 16,859 | 16,831 | 16,746 | 16,835 | 16,833 | 16,693 | 16,693 | 16,833 | 16,825 |
1988 | 18,150 | 18,055 | 18,211 | 18,145 | 18,016 | 17,888 | 17,888 | 18,193 | 18,205 |
1989 | 18,970 | 18,998 | 19,059 | 18,880 | 18,937 | 18,911 | 18,911 | 18,833 | 18,845 |
1990 | 19,328 | 19,300 | 19,059 | 19,418 | 19,345 | 19,439 | 19,439 | 19,246 | 19,389 |
1991 | 19,337 | 19,149 | 19,059 | 19,260 | 19,147 | 19,307 | 19,307 | 19,143 | 19,253 |
1992 | 18,876 | 19,149 | 19,059 | 19,031 | 19,152 | 19,043 | 19,043 | 18,936 | 18,981 |
MSE | 35,324 | 31,722 | 31,684 | 23,710 | 22,403 | 22,403 | 9755 | 6332 | |
RMSE | 187.95 | 178.11 | 178.00 | 153.98 | 149.68 | 149.68 | 98.77 | 79.57 | |
MAPE | 1.13% | 0.84% | 0.90% | 0.73% | 0.72% | 0.72% | 0.49% | 0.40% |
Maximum Word Length | Evaluation Method | Number of Used Words | Number of Used Words | Number of Used Words |
---|---|---|---|---|
7 | 14 | 16 | ||
3 | MSE | 24,111 | 19,989 | 22,415 |
MAPE | 0.80% | 0.63% | 0.72% | |
4 | MSE | 21,284 | 10,853 | 9758 |
MAPE | 0.74% | 0.50% | 0.49% | |
5 | MSE | 19,795 | 9639 | 6332 |
MAPE | 0.72% | 0.44% | 0.40% |
Year | Actual Data | Uslu et al. [6] | Chen et al. [8] | COLTS3 | COLTS4 | COLTS5 |
---|---|---|---|---|---|---|
1974 | 1574 | |||||
1975 | 1460 | 1506 | 1451 | 1498 | 1495 | 1464 |
1976 | 1536 | 1453 | 1490 | 1500 | 1502 | 1515 |
1977 | 1597 | 1598 | 1622 | 1555 | 1592 | 1610 |
1978 | 1644 | 1584 | 1575 | 1593 | 1638 | 1623 |
1979 | 1572 | 1584 | 1593 | 1579 | 1568 | 1568 |
1980 | 1616 | 1506 | 1585 | 1593 | 1582 | 1610 |
1981 | 1564 | 1584 | 1582 | 1557 | 1560 | 1583 |
1982 | 1464 | 1506 | 1513 | 1485 | 1464 | 1462 |
1983 | 1479 | 1453 | 1494 | 1474 | 1471 | 1474 |
1984 | 1369 | 1375 | 1393 | 1423 | 1367 | 1381 |
1985 | 1308 | 1383 | 1336 | 1352 | 1333 | 1315 |
1986 | 1456 | 1454 | 1419 | 1450 | 1440 | 1462 |
1987 | 1390 | 1453 | 1485 | 1411 | 1417 | 1428 |
1988 | 1432 | 1383 | 1384 | 1419 | 1399 | 1391 |
1989 | 1488 | 1509 | 1459 | 1474 | 1479 | 1483 |
1990 | 1574 | 1598 | 1585 | 1534 | 1572 | 1580 |
1991 | 1471 | 1506 | 1451 | 1498 | 1500 | 1468 |
1992 | 1380 | 1375 | 1369 | 1411 | 1367 | 1381 |
1993 | 1346 | 1383 | 1361 | 1377 | 1333 | 1323 |
1994 | 1415 | 1383 | 1437 | 1400 | 1392 | 1381 |
1995 | 1228 | 1231 | 1217 | 1213 | 1276 | 1250 |
1996 | 1122 | 1135 | 1152 | 1136 | 1139 | 1156 |
1997 | 1150 | 1180 | 1172 | 1134 | 1122 | 1131 |
1998 | 1224 | 1245 | 1211 | 1225 | 1225 | 1187 |
1999 | 1173 | 1135 | 1147 | 1160 | 1158 | 1187 |
2000 | 1253 | 1245 | 1245 | 1249 | 1244 | 1246 |
2001 | 1288 | 1284 | 1280 | 1227 | 1281 | 1253 |
2002 | 1145 | 1143 | 1148 | 1158 | 1130 | 1163 |
2003 | 1035 | 970 | 1028 | 1058 | 1032 | 1032 |
2004 | 953 | 970 | 953 | 964 | 987 | 982 |
MSE | 1731 | 1024 | 794 | 444 | 421 | |
RMSE | 41.61 | 32.00 | 28.18 | 21.07 | 20.52 | |
MAPE | 2.29% | 1.77% | 1.68% | 1.253% | 1.250% |
Date | Actual Spot Gold | Uslu et al. [6] | Chen et al. [8] | COLTS3 | COLTS4 | COLTS5 |
---|---|---|---|---|---|---|
7 December | 30,503 | |||||
8 January | 33,132 | 32,740.18 | 32,341.38 | 32,023.45 | 33,145.28 | 33,317.23 |
8 February | 35,201 | 34,882.78 | 34,479.36 | 34,437.4 | 34,368.77 | 34,748.84 |
8 March | 38,529 | 37,409.66 | 38,605.47 | 38,926.53 | 37,751.7 | 38,047.16 |
8 April | 38,300 | 39,894.23 | 38,203.34 | 39,174.45 | 38,551.01 | 38,697.57 |
8 May | 36,142 | 37,023.88 | 37,406.67 | 36,597.27 | 36,770.38 | 37,115.76 |
8 June | 35,837 | 37,409.66 | 36,749.36 | 35,157.36 | 35,971.07 | 36,465.34 |
8 July | 37,074 | 37,409.66 | 36,452.85 | 37,719.55 | 37,151.04 | 37,608.49 |
8 August | 32,955 | 32,740.18 | 31,805.51 | 33,950.38 | 32,537.23 | 32,693.81 |
8 September | 33,277 | 34,882.78 | 34,335.42 | 34,437.4 | 33,745.95 | 33,755.9 |
8 October | 38,295 | 37,409.66 | 38,120.71 | 37,719.55 | 38,545.47 | 38,720.65 |
8 November | 38,677 | 37,023.88 | 37,402.31 | 37,804.25 | 38,551.01 | 38,697.57 |
8 December | 40,724 | 39,894.23 | 40,726.33 | 40,381.42 | 40,353.8 | 40,187.07 |
9 January | 43,985 | 43,666.21 | 44,515.67 | 43,539.13 | 44,427.03 | 43,640.45 |
9 February | 49,931 | 49,662.4 | 49,800.77 | 47,966.48 | 50,125.47 | 49,223.14 |
9 March | 50,823 | 51,971.99 | 50,962.66 | 51,420.1 | 50,985.28 | 51,307.51 |
9 April | 46,167 | 45,938.07 | 45,869.8 | 46,046.6 | 46,786.96 | 46,273.1 |
9 May | 46,716 | 46,435.4 | 46,548.24 | 46,526.57 | 47,031.66 | 46,568.11 |
9 June | 47,337 | 46,435.4 | 47,067.02 | 46,526.57 | 47,031.66 | 46,568.11 |
9 July | 46,088 | 46,435.4 | 47,653.83 | 46,526.57 | 47,031.66 | 46,568.11 |
9 August | 45,839 | 46,435.4 | 46,473.59 | 46,526.57 | 47,031.66 | 46,568.11 |
9 September | 48,053 | 46,435.4 | 46,238.3 | 47,966.48 | 48,255.15 | 48,043.13 |
9 October | 49,592 | 49,662.4 | 48,330.41 | 50,213.13 | 50,501.27 | 50,458.94 |
9 November | 53,693 | 51,971.99 | 54,338.06 | 52,866.27 | 53,035.95 | 53,317.76 |
9 December | 54,553 | 54,188.41 | 54,509.96 | 54,270.66 | 54,472.2 | 54,596.41 |
10 January | 53,022 | 54,188.41 | 53,663.01 | 53,483.95 | 54,472.2 | 53,323.23 |
10 February | 53,613 | 54,188.41 | 54,183.79 | 54,232.71 | 54,472.2 | 53,031.02 |
10 March | 55,031 | 54,188.41 | 54,471.07 | 54,270.66 | 54,472.2 | 54,304.20 |
10 April | 55,181 | 54,188.41 | 55,887.68 | 55,209.21 | 55,316.72 | 54,836.46 |
10 May | 60,300 | 60,069.32 | 60,030.78 | 60,575.56 | 61,184.06 | 60,631.89 |
10 June | 62,100 | 60,069.32 | 59,888.46 | 61,171.38 | 62,123.95 | 60,829.09 |
10 July | 60,500 | 59,849.5 | 61,610.89 | 61,181.67 | 61,184.06 | 60,914.75 |
10 August | 59,200 | 60,069.32 | 60,079.84 | 59,725.21 | 59,495.78 | 59,526.34 |
10 September | 61,250 | 60,069.32 | 61,520.74 | 61,894.46 | 61,184.06 | 61,480.46 |
10 October | 62,450 | 62,437.15 | 60,797.52 | 62,393.89 | 62,123.95 | 61,339.03 |
10 November | 61,600 | 59,849.5 | 61,945.8 | 61,894.46 | 61,184.06 | 61,339.03 |
MSE | 1,030,692 | 805,291 | 504,909 | 332,503 | 302,749 | |
RMSE | 1015.23 | 897.38 | 710.57 | 576.63 | 550.23 | |
MAPE | 1.80% | 1.55% | 1.38% | 0.98% | 1.00% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Hieu, N.D.; Linh, M.V.; Phong, P.D. A Co-Optimization Algorithm Utilizing Particle Swarm Optimization for Linguistic Time Series. Mathematics 2023, 11, 1597. https://doi.org/10.3390/math11071597
Hieu ND, Linh MV, Phong PD. A Co-Optimization Algorithm Utilizing Particle Swarm Optimization for Linguistic Time Series. Mathematics. 2023; 11(7):1597. https://doi.org/10.3390/math11071597
Chicago/Turabian StyleHieu, Nguyen Duy, Mai Van Linh, and Pham Dinh Phong. 2023. "A Co-Optimization Algorithm Utilizing Particle Swarm Optimization for Linguistic Time Series" Mathematics 11, no. 7: 1597. https://doi.org/10.3390/math11071597
APA StyleHieu, N. D., Linh, M. V., & Phong, P. D. (2023). A Co-Optimization Algorithm Utilizing Particle Swarm Optimization for Linguistic Time Series. Mathematics, 11(7), 1597. https://doi.org/10.3390/math11071597