A hybrid firefly algorithm for synaptic weight optimization in discrete Hopfield neural networks applied to random 3-satisfiability problems

Xiaoya Chen , Saratha Sathasivam

AIMS Mathematics ›› 2025, Vol. 10 ›› Issue (6) : 14840 -14892.

PDF (2047KB)
AIMS Mathematics ›› 2025, Vol. 10 ›› Issue (6) :14840 -14892. DOI: 10.3934/math.2025667
research-article
A hybrid firefly algorithm for synaptic weight optimization in discrete Hopfield neural networks applied to random 3-satisfiability problems
Author information +
History +
PDF (2047KB)

Abstract

The training phase of the random 3-satisfiability problem in discrete Hopfield neural networks aims to identify more satisfying clauses, enhancing synaptic weight for energy function computation and minimizing network energy. The primary challenge lies in designing synaptic weights that can be dynamically optimized to adapt to various formula structures while ensuring complete clause satisfaction and avoiding local optima. This enables an optimal balance between clause satisfaction and network convergence performance. To address this challenge, this paper first proposes a method for determining synaptic weights during the training phase based on the logical relationships between clauses and variables, simplifying the computation process and improving solution efficiency. Second, the hybrid firefly algorithm is employed during the training phase to optimize the number of satisfied clauses. This is achieved through a balance of global and local search mechanisms and a diversity maintenance strategy, facilitating the identification of more satisfied clauses, thereby leading to the generation of high-quality synaptic weights. Consequently, during the retrieval phase of the network, local field updates are executed based on these synaptic weights to find the optimal neuron states, thereby minimizing the energy function and improving global convergence performance. To evaluate the effectiveness of the hybrid firefly algorithm and the simplification of synaptic weight computation, we employed a comprehensive performance evaluation framework composed of maximum fitness, fitness ratio, entropy-adjusted diversity metrics, weight error, global minima ratio, energy error, similarity indices, and runtime. Experimental results indicate that the proposed model outperforms both traditional discrete Hopfield neural network random 3-satisfiability models and those that combine election algorithms with discrete Hopfield neural network random 3-satisfiability models across multiple performance metrics.

Keywords

random 3-satisfiability / discrete Hopfield neural networks / synaptic weight / energy function / hybrid firefly algorithm

Cite this article

Download citation ▾
Xiaoya Chen, Saratha Sathasivam. A hybrid firefly algorithm for synaptic weight optimization in discrete Hopfield neural networks applied to random 3-satisfiability problems. AIMS Mathematics, 2025, 10 (6) : 14840-14892 DOI:10.3934/math.2025667

登录浏览全文

4963

注册一个新账户 忘记密码

References

[1]

S. Haykin, Neural networks and learning machines, Pearson Education. Inc., New Jersey, 2009. Available from: http://dai.fmph.uniba.sk/courses/NN/haykin.neural-networks.3ed.2009

[2]

Hopfield J. J. (1982) Neural networks and physical systems with emergent collective computational abilities. P. Natl. Acad. Sci. 79: 2554. https://doi.org/10.1073/PNAS.79.8.2554

[3]

Abdullah W. A. T. W. (1992) Logic programming on a neural network. Int. J. Intell. Syst. 7: 513.

[4]

Sathasivam S., Mansor M. A., Kasihmuddin M. S. M., Abubakar H. (2020) Election algorithm for random k satisfiability in the Hopfield neural network. Processes 8: 568. https://doi.org/10.3390/pr8050568

[5]

Bazuhair M. M., Jamaludin S. Z. M., Zamri N. E., Kasihmuddin M. S. M., Mansor M. A., Alway A. (2021) et al., Novel Hopfield neural network model with election algorithm for random 3 satisfiability. Processes 9: 1292. https://doi.org/10.3390/pr9081292

[6]

Guo Y., Zamri N. E., Kasihmuddin M. S. M., Alway A., Mansor M. A., Li J. (2024) et al., Dual optimization approach in discrete Hopfield neural network. Appl. Soft Comput. 164: 111929. https://doi.org/10.1016/j.asoc.2024.111929

[7]

Storn R., Price K. (1997) Differential evolution—a simple and efficient heuristic for global optimization over continuous spaces. J. Global Optim. 11: 341. https://doi.org/10.1023/A:1008202821328

[8]

L. Zhang, L. Liu, X. S. Yang, Y. Dai, A novel hybrid firefly algorithm for global optimization, PloS One, 11 (2016), e0163230. https://doi.org/10.1371/journal.pone.0163230

[9]

X. S. Yang, Nature-inspired metaheuristic algorithms, Luniver press, 2010.

[10]

Fister I., Fister Jr I., Yang X. S., Brest J. (2013) A comprehensive review of firefly algorithms. Swarm Evol. Comput. 13: 34. https://doi.org/10.1016/j.swevo.2013.06.001

[11]

Tilahun S. L., Ngnotchouye J. M. T. (2017) Firefly algorithm for discrete optimization problems: A survey. KSCE J. Civil Eng. 21: 535. https://doi.org/10.1007/s12205-017-1501-1

[12]

Feng C., Sathasivam S., Roslan N., Velavan M. (2024) 2-SAT discrete Hopfield neural networks optimization via Crow search and fuzzy dynamical clustering approach. AIMS Math. 9: 9232. https://doi.org/10.3934/math.2024450

[13]

L. C. Lujano-Hernandez, J. M. Munoz-Pacheco, V. T. Pham, A fully piecewise linear Hopfield neural network with simplified mixed-mode activation function: dynamic analysis and analog implementation, Nonlinear Dynam., 2025, 1−22. https://doi.org/10.1007/s11071-025-11099-y

[14]

Alsadie D., Alsulami M. (2024) Enhancing workflow efficiency with a modified firefly algorithm for hybrid cloud edge environments. Sci. Rep. 14: 24675. https://doi.org/10.1038/s41598-024-75859-3

[15]

Abdullah W. A. T. W. (1993) The logic of neural networks. Phys. Lett. A 176: 202.

[16]

S. Sathasivam, Learning in the recurrent Hopfield network, In: 2008 fifth international conference on computer graphics, imaging and visualization, IEEE, 2008,323−328. https://doi.org/10.1109/CGIV.2008.14

[17]

Sathasivam S., Abdullah W. A. T. W. (2011) Logic mining in neural network: Reverse analysis method. Computing 91: 119. https://doi.org/10.1007/s00607-010-0117-9

[18]

Kasihmuddin M. S. M., Mansor M. A., Sathasivam S. (2016) Bezier curves satisfiability model in enhanced Hopfield network. Int. J. Intell. Syst. Appl. 8: 9.

[19]

Mansor M. A., Kasihmuddin M. S. M., Sathasivam S. (2016) Enhanced Hopfield network for pattern satisfiability optimization. Int. J. Intell. Syst. Appl. 8: 27. http://dx.doi.org/10.5815/ijisa.2016.11.04

[20]

Sathasivam S., Mansor M. A., Ismail A. I. M., Jamaludin S. Z. M., Kasihmuddin M. S. M., Mamat M. (2020) Novel random k satisfiability for k≤ 2 in Hopfield neural network. Sains Malays. 49: 2847. http://dx.doi.org/10.17576/jsm-2020-4911-23

[21]

Karim S. A., Zamri N. E., Alway A., Kasihmuddin M. S. M., Ismail A. I. M., Mansor M. A. (2021) et al., Random satisfiability: A higher-order logical approach in discrete Hopfield neural network. IEEE Access 9: 50831. https://doi.org/10.1109/ACCESS.2021.3068998

[22]

H. Abubakar, M. L. Danrimi, Hopfield type of artificial neural network via election algorithm as heuristic search method for random Boolean k satisfiability, Int. J. Comput. Digital Syst., 2021. https://doi.org/10.12785/ijcds/100163

[23]

H. Abubakar, A. S. Masanawa, S. Yusuf, G. I. Boaku, Optimal representation to high order random Boolean k satisability via election algorithm as heuristic search approach in Hopeld neural networks, J. Nigerian Soc. Phys. Sci., 2021,201−208.

[24]

Abubakar H., Muhammad A., Bello S. (2022) Ants colony optimization algorithm in the Hopfield neural network for agricultural soil fertility reverse analysis. Iraqi J. Comput. Sci. Math. 3: 32.

[25]

Karim S. A., Kasihmuddin M. S. M., Sathasivam S., Mansor M. A., Jamaludin S. Z. M., Amin M. R. (2022) A novel multi-objective hybrid election algorithm for higher-order random satisfiability in discrete Hopfield neural network. Mathematics 10: 1963. https://doi.org/10.3390/math10121963

[26]

S. A. Karim, M. S. M. Kasihmuddin, M. Mansor, S. Z. M. Jamaludin, N. E. Zamri, M. R. Amin, A socio-inspired hybrid election algorithm for random k satisfiability in discrete Hopfield neural network, In: AIP Conference Proceedings, 2895 (2024). https://doi.org/10.1063/5.0194531

[27]

H. Abubakar, S. Sathasivam, M. A. Mansor, M. S. M. Kasihmuddin, Modified election algorithm in accelerating the performance of Hopfield neural network for random k-satisfiability, Preprints, 2020. https://doi.org/10.20944/preprints202001.0365.v1

[28]

S. A. Karim, Multi-objective hybrid election algorithm for random K satisfiability in discrete hopfield neural network, Doctoral dissertation, 2023.

[29]

Kumar V., Kumar D. D. (2021) A systematic review on firefly algorithm: Past, present, and future. Arch. Comput. Method. E. 28: 3269. https://doi.org/10.1007/s11831-020-09498-y

[30]

Y. K. Saheed, A binary firefly algorithm based feature selection method on high dimensional intrusion detection data, In: Illumination of artificial intelligence in cybersecurity and forensics, Cham: Springer International Publishing, 2022,273−288. https://doi.org/10.1007/978-3-030-93453-8_12

[31]

Kumari K., Singh J. P. (2022) Multi-modal cyber-aggression detection with feature optimization by firefly algorithm. Multimedia Syst. 28: 1951. https://doi.org/10.1007/s00530-021-00785-7

[32]

Zhang Y., Song X. F., Gong D. W. (2017) A return-cost-based binary firefly algorithm for feature selection. Inform. Sci. 418: 561. https://doi.org/10.1016/j.ins.2017.08.047

[33]

Najeeb R. F., Dhannoon B. N. (2018) A feature selection approach using binary firefly algorithm for network intrusion detection system. ARPN J. Eng. Appl. Sci. 13: 2347.

[34]

Chandrasekaran K., Simon S. P., Padhy N. P. (2013) Binary real coded firefly algorithm for solving unit commitment problem. Inform. Sci. 249: 67. https://doi.org/10.1016/j.ins.2013.06.022

[35]

Kennedy R. O. N. O. H., Kamucha G. (2020) Comparison of hybrid firefly algorithms for binary and continuous optimization problems in a TV white space network. WSEAS Trans. Commun. 19: 155. https://doi.org/10.37394/23204.2020.19.18

[36]

K. M. Alwan, A. H. AbuEl-Atta, H. H. Zayed, Feature selection models based on hybrid firefly algorithm with mutation operator for network intrusion detection, Int. J. Intell. Eng. Syst., 14 (2021). https://doi.org/10.22266/ijies2021.0228.19

[37]

R. Z. Al-Abdallah, A. S. Jaradat, I. A. Doush, Y. A. Jaradat, A binary classifier based on firefly algorithm, Jordanian J. Comput. Info., 3 (2017). https://doi.org/10.5455/jjcit.71-1501152301

[38]

M. A. Z. A. Sofiane, D. Zouache, Binary firefly algorithm for feature selection in classification, In: 2019 international conference on theoretical and applicative aspects of computer science (ICTAACS), IEEE, 1 (2019). https://doi.org/10.1109/ICTAACS48474.2019.8988137

[39]

Qasim O. S., Noori N. M. (2021) A new hybrid algorithm based on binary gray wolf optimization and firefly algorithm for features selection. Asian-Eur. J. Math. 14: 2150172. https://doi.org/10.1142/S1793557121501722

[40]

Xie W., Wang L., Yu K., Shi T., Li W. (2023) Improved multi-layer binary firefly algorithm for optimizing feature selection and classification of microarray data. Biomed. Signal Proces. 79: 104080. https://doi.org/10.1016/j.bspc.2022.104080

[41]

S. G. Devi, M. Sabrigiriraj, A hybrid multi‐objective firefly and simulated annealing based algorithm for big data classification, Concurr. Comp.-Pract. E., 31 (2019), e4985. https://doi.org/10.1002/cpe.4985

[42]

Costa M. F. P., Rocha A. M. A., Francisco R. B., Fernandes E. M. (2014) Heuristic‐based firefly algorithm for bound constrained nonlinear binary optimization. Adv. Oper. Res. 2014: 215182. https://doi.org/10.1155/2014/215182

[43]

K. Mourad, R. Boudour, A modified binary firefly algorithm to solve hardware/software partitioning problem, Informatica, 45 (2021).

[44]

Goel R., Maini R. (2018) A hybrid of ant colony and firefly algorithms (HAFA) for solving vehicle routing problems. J. Comput. Sci. 25: 28. https://doi.org/10.1016/j.jocs.2017.12.012

[45]

Ezugwu A. E. S., Agbaje M. B., Aljojo N., Els R., Chiroma H., Elaziz M. A. (2020) A comparative performance study of hybrid firefly algorithms for automatic data clustering. IEEE Access 8: 121089. https://doi.org/10.1109/ACCESS.2020.3006173

[46]

M. Y. I. Idris, M. N. B. Ayub, H. A. Shehadeh, U. Ali, Hybrid firefly algorithm and sperm swarm optimization algorithm using Newton-Raphson method (HFASSON) and its application in CR-VANET, arXiv preprint, 2025. https://doi.org/10.48550/arXiv.2502.01053

[47]

Jeroslow R. G., Wang J. (1990) Solving propositional satisfiability problems. Ann. Math. Artif. Intel. 1: 167. https://doi.org/10.1007/BF01531077

[48]

J. Marques-Silva, Practical applications of Boolean satisfiability, In: 2008 9th International Workshop on Discrete Event Systems, IEEE, 2008, 74−80. https://doi.org/10.1109/WODES.2008.4605925

[49]

S. A. Cook, The complexity of theorem-proving procedures, In: Logic, Automata, and Computational Complexity: The Works of Stephen A. Cook, 2023,143−152. https://doi.org/10.1145/800157.805047

[50]

Hopfield J. J., Tank D. W. (1985) "Neural" computation of decisions in optimization problems. Biol. Cybern. 52: 141. https://doi.org/10.1007/BF00339943

[51]

Hopfield J. J. (1984) Neurons with graded response have collective computational properties like those of two-state neurons. P. Natl. Acad. Sci. 81: 3088. https://doi.org/10.1073/pnas.81.10.3088

[52]

Shannon C. E. (1948) A mathematical theory of communication. Bell Syst. Tech. J. 27: 379. https://doi.org/10.1002/j.1538-7305.1948.tb01338.x

[53]

Deb K. (2001) Nonlinear goal programming using multi-objective genetic algorithms. J. Oper. Res. Soc. 52: 291. https://www.jstor.org/stable/254066

[54]

C. H. Papadimitriou, Computational complexity Addison-Wesley reading, Massachusetts Google Scholar, 1994.

[55]

M. R. Gary, D. S. Johnson, Computers and intractability: A guide to the theory of NP-completeness, WH Freman and Co., 1979.

[56]

Ma H., Wei H., Tian Y., Cheng R., Zhang X. (2021) A multi-stage evolutionary algorithm for multi-objective optimization with complex constraints. Inform. Sci. 560: 68. https://doi.org/10.1016/j.ins.2021.01.029

[57]

Zhou A., Qu B. Y., Li H., Zhao S. Z., Suganthan P. N., Zhang Q. (2011) Multiobjective evolutionary algorithms: A survey of the state of the art. Swarm Evol. Comput. 1: 32. https://doi.org/10.1016/j.swevo.2011.03.001

[58]

Osuna-Enciso V., Cuevas E., Castañeda B. M. (2022) A diversity metric for population-based metaheuristic algorithms. Inform. Sci. 586: 192. https://doi.org/10.1016/j.ins.2021.11.073

[59]

Willmott C. J., Matsuura K. (2005) Advantages of the mean absolute error (MAE) over the root mean square error (RMSE) in assessing average model performance. Clim. Res. 30: 79. https://doi.org/10.3354/CR030079

[60]

N. E. Zamri, A. Alway, A. Mansor, M. S. M. Kasihmuddin, S. Sathasivam, Modified imperialistic competitive algorithm in Hopfield neural network for Boolean three satisfiability logic mining, Pertanika J. Sci. Tech., 28 (2020).

[61]

E. De Santis, A. Martino, A. Rizzi, On component-wise dissimilarity measures and metric properties in pattern recognition, PeerJ Comput. Sci., 8 (2022), e1106. https://doi.org/10.7717/peerj-cs.1106

[62]

Karim S. A., Zamri N. E., Alway A., Kasihmuddin M. S. M., Ismail A. I. M., Mansor M. A. (2021) et al., Random satisfiability: A higher-order logical approach in discrete Hopfield neural network. IEEE Access 9: 50831. https://doi.org/10.1109/ACCESS.2021.3068998

[63]

R. M. Karp, Reducibility among combinatorial problems, Springer Berlin Heidelberg, 2010,219−241. Available from: https://www.mendeley.com/catalogue/4a2bffde-6de3-3f46-a030-a9b57f8fd14f/

[64]

S. A. Cook, The complexity of theorem proving procedures, In: Proceedings of the third annual ACM symposium on Theory of computing, New York, 1971,151−158. https://doi.org/10.1145/800157.805047

[65]

Gomes C. P., Selman B., Kautz H. (1998) Boosting combinatorial search through randomization. AAAI/IAAI 98: 431.

[66]

Zhou Z. C., Xu D. Y., Lu L. J. (2016) Strictly regular random (3, s)-SAT model and its phase transition phenomenon. J. Beijing Univ. Aeronaut. Astronaut. 42: 2563. https://doi.org/10.13700/j.bh.1001-5965.2015.0845(inChinese)

[67]

A. Alway, N. E. Zamri, M. S. M. Kasihmuddin, A. Mansor, S. Sathasivam, Palm oil trend analysis via logic mining with discrete hopfield neural network, Pertanika J. Sci. Tech., 28 (2020).

[68]

Xie X., Sathasivam S., Ma H. (2024) Modeling of 3 SAT discrete Hopfield neural network optimization using genetic algorithm optimized K-modes clustering. AIMS Math. 9: 28100. https://doi.org/10.3934/math.20241363

PDF (2047KB)

0

Accesses

0

Citation

Detail

Sections
Recommended

/

〈 〉