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.
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.
random 3-satisfiability / discrete Hopfield neural networks / synaptic weight / energy function / hybrid firefly algorithm
| [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] |
|
| [3] |
|
| [4] |
|
| [5] |
|
| [6] |
|
| [7] |
|
| [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] |
|
| [11] |
|
| [12] |
|
| [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] |
|
| [15] |
|
| [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] |
|
| [18] |
|
| [19] |
|
| [20] |
|
| [21] |
|
| [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] |
|
| [25] |
|
| [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] |
|
| [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] |
|
| [32] |
|
| [33] |
|
| [34] |
|
| [35] |
|
| [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] |
|
| [40] |
|
| [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] |
|
| [43] |
K. Mourad, R. Boudour, A modified binary firefly algorithm to solve hardware/software partitioning problem, Informatica, 45 (2021). |
| [44] |
|
| [45] |
|
| [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] |
|
| [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] |
|
| [51] |
|
| [52] |
|
| [53] |
|
| [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] |
|
| [57] |
|
| [58] |
|
| [59] |
|
| [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] |
|
| [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] |
|
| [66] |
|
| [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] |
|
/
| 〈 |
|
〉 |