our algorithm, as well as those from other compara-
tive methods. Our algorithm outperforms the other al-
gorithms for all networks, while ABC algorithm ob-
tains the same results for Karate and Dolphins net-
works. This demonstrates the effectiveness of our
BSODCS in real-world network analysis.
Table 1: Modularity results for all datasets.
Methods Football Karate Dolphins Books
PSO 0.5630 0.3690 - 0.4700
ACO 0.6031 0.4165 0.5628 0.5262
BA 0.5960 0.3920 - 0.4790
ABC 0.6009 0.4198 0.5285 0.5116
BSOCD 0.6040 0.4197 0.5140 -
BSODCS 0.6043 0.4198 0.5285 0,5265
If we consider the Zachary’s karate club, which
naturally consists of two communities of equal size,
our BSODCS algorithm splits the network into four
communities as shown in Fig.4, yielding the highest
modularity value of Q=0.4198 given in Table 1.
Figure 4: Karate Club communities using BSODCS.
5 CONCLUSIONS
In this paper, we investigated the applicability of bee
swarm optimization for community detection prob-
lem. The proposed algorithm, BSODCS, uses the
modularity Q as objective function and starts with
an initial reference solution. A search space is cre-
ated from this reference solution, then a group of bees
collaboratively works to maximize the global func-
tion Q. Each bee operates independently within its
neighborhood and communicates its findings through
a dance. To assess the effectiveness of our algo-
rithm, we conducted experiments on four real-world
networks. The results obtained demonstrate the valid-
ity and efficiency of our method for community de-
tection problem. In future work, we aim to extend
our approach to address community detection prob-
lem in dynamic networks, aiming to further enhance
the quality of the obtained results as well as tracking
communities’ evolution.
REFERENCES
Bedi, P. and Sharma, C. (2016). Community detection in so-
cial networks. Wiley Interdisciplinary Reviews: Data
Mining and Knowledge Discovery, 6(3):115–135.
Belkhiri, Y., Kamel, N., Drias, H., and Yahiaoui, S. (2017).
Bee swarm optimization for community detection in
complex network. In Recent Advances in Information
Systems and Technologies: Volume 2 5, pages 73–85.
Springer.
Brandes, U., Delling, D., Gaertler, M., Gorke, R., Hoefer,
M., Nikoloski, Z., and Wagner, D. (2007). On modu-
larity clustering. IEEE transactions on knowledge and
data engineering, 20(2):172–188.
Cai, Q., Gong, M., Ma, L., Ruan, S., Yuan, F., and Jiao, L.
(2015). Greedy discrete particle swarm optimization
for large-scale social network clustering. Information
Sciences, 316:503–516.
Cai, Q., Gong, M., Shen, B., Ma, L., and Jiao, L. (2014).
Discrete particle swarm optimization for identifying
community structures in signed social networks. Neu-
ral Networks, 58:4–13.
Chen, B., Chen, L., and Chen, Y. (2012). Detecting com-
munity structure in networks based on ant colony op-
timization. In Proceedings of the International Con-
ference on Information and Knowledge Engineering
(IKE), page 1. The Steering Committee of The World
Congress in Computer Science, Computer . . . .
Cormen, T. H., Leiserson, C. E., Rivest, R. L., and Stein, C.
(2001). Introduction to algorithms second edition.
Dakiche, N., Benatchba, K., Tayeb, F. B.-S., Slimani,
Y., and Brahmi, M. A. (2022). A hybrid arti-
ficial bee colony algorithm with simulated anneal-
ing for enhanced community detection in social net-
works. In 2022 IEEE/ACM International Conference
on Advances in Social Networks Analysis and Mining
(ASONAM), pages 104–108. IEEE.
Djeffal, M. and Drias, H. (2013). Multilevel bee swarm
optimization for large satisfiability problem instances.
In Yin, H., Tang, K., Gao, Y., Klawonn, F., Lee, M.,
Weise, T., Li, B., and Yao, X., editors, Intelligent Data
Engineering and Automated Learning – IDEAL 2013,
pages 594–602, Berlin, Heidelberg. Springer Berlin
Heidelberg.
Djenouri, Y., Drias, H., and Chemchem, A. (2013). A
hybrid bees swarm optimization and tabu search al-
gorithm for association rule mining. In 2013 World
Congress on Nature and Biologically Inspired Com-
puting, pages 120–125. IEEE.
Drias, H., Sadeg, S., and Yahi, S. (2005). Cooperative bees
swarm for solving the maximum weighted satisfiabil-
ity problem. In International Work-Conference on Ar-
tificial Neural Networks, pages 318–325. Springer.
Fortunato, S. (2010). Community detection in graphs.
Physics reports, 486(3-5):75–174.
BSODCS: Bee Swarm Optimization for Detecting Community Structure
427