Blog articleMethodology & analyticsEngineering & technology

Social spider optimisation and the social spider algorithm: two methods, one name, and how to choose

Two different metaheuristics borrow the social spider metaphor, and they are often confused. This article separates them, explains how the social spider algorithm searches, and shows how to choose and benchmark either one honestly in a thesis.

What you will learn

  • Distinguish social spider optimisation (SSO) from the social spider algorithm (SSA)
  • Explain how SSA uses vibrations, masks and random walks to search a solution space
  • Set and report SSA control parameters with a sensitivity check
  • Benchmark a metaheuristic fairly against strong baselines with appropriate statistics
  • Frame a metaphor-based algorithm critically in a dissertation

What you will unlearn

  • SSO and SSA are the same algorithm.They were proposed by different authors, model different spider behaviours and use different search operators.
  • A nature-inspired algorithm that beat others in its first paper is the best choice.No algorithm is best on all problems, and first-paper comparisons often use weak baselines.
  • The biological metaphor explains why the algorithm works.Performance comes from the search operators, which should be described in plain optimisation terms.

Skills you will practise

  • Reading algorithm papers critically
  • Parameter sensitivity analysis
  • Benchmark design
  • Non-parametric comparison of algorithms
  • Reproducible reporting

In brief: two spider-inspired metaheuristics

Metaheuristics are general search strategies for optimisation problems that are too large or irregular for exact methods, such as engineering design, scheduling and parameter tuning. Swarm intelligence methods, a family dating back to the 1990s, coordinate many simple agents that share information. Two of them take their inspiration from social spiders, a small minority of spider species that live in colonies on a shared web.

The names cause confusion. Social spider optimisation (SSO) was proposed by Cuevas et al. (2013). The social spider algorithm (SSA) was proposed separately by Yu and Li (2015a), who state that the two differ in all aspects of their design. It then explains how SSA searches, how to choose between the two, and how to benchmark and report either method so that examiners can trust the results.

Social spider algorithm for global optimisation
Figure 1. Social spider metaphor for global optimisation.

SSO and SSA compared

Differences between SSO and SSA as described by Yu and Li (2015a)
FeatureSocial spider optimisation (SSO)Social spider algorithm (SSA)
AuthorsCuevas et al. (2013)Yu and Li (2015a)
Behaviour modelledMating and cooperation in the colonyForaging through vibrations on the web
PopulationSpiders classified by gender, with different rolesAll spiders identical, same operation
Search operatorsSeveral movement operatorsOne random-walk operator guided by a target vibration
Implementation effortHigher, more operators to code and tuneLower, as its authors note

When you cite either method, name it precisely and cite its founding paper. Many later variants modify one parent or the other, so state which parent your variant builds on. If a paper you rely on calls SSO "the social spider algorithm", say so in a footnote rather than repeating the confusion.

How the social spider algorithm searches

In SSA the search space is treated as a web and each spider's position as a candidate solution (Yu & Li, 2015a). The method can be described without the metaphor:

  1. Evaluate. Each spider evaluates the objective function at its position.
  2. Broadcast. Each spider generates a vibration whose intensity increases with solution quality.
  3. Attenuate. Vibrations weaken with distance between spiders, scaled by the spread of the population and an attenuation parameter ra; this sets how local or global information sharing is.
  4. Choose a target. Each spider keeps the strongest vibration it has received as its target, replacing it when a stronger one arrives.
  5. Mask dimensions. A binary mask decides, dimension by dimension, whether to follow the target or a randomly chosen spider; the mask changes with a probability governed by pc, and pm sets how many dimensions are masked.
  6. Move. Each spider performs a random walk combining momentum from its previous move with a step towards its following position, and is reflected back if it leaves the bounds.

Yu and Li report a sensitivity analysis and suggest ra = 1, pc = 0.7 and pm = 0.1 as starting values, warning against very large pc (Yu & Li, 2015a; Yu & Li, 2015b). They tested SSA on 25 functions built from the CEC 2013 and CEC 2014 benchmark bases in 10, 30 and 50 dimensions, with 51 runs each, against CMA-ES, JADE, SaDE and GL-25, and reported favourable results. These are the authors' results; treat them as a starting point to check, not as settled.

Choosing between SSO, SSA and other methods

Both methods have been adapted to many problems since they appeared, including binary versions for feature selection, multi-objective versions for image analysis and versions for power system scheduling. These variants are where most dissertation ideas come from, but an application paper is not evidence that the parent method suits your problem. Choose by asking four questions.

  • What kind of problem is it? Continuous, binary, combinatorial, constrained or multi-objective problems need different operators and constraint handling, and the original papers were written for continuous global optimisation (Yu & Li, 2015a; Cuevas et al., 2013).
  • How expensive is each evaluation? If one evaluation takes minutes, a method that needs tens of thousands of evaluations may be impractical, whatever its benchmark ranking.
  • What are the strongest existing baselines? Established methods such as CMA-ES and differential evolution variants, which Yu and Li themselves used as comparators, set the bar to beat (Yu & Li, 2015a).
  • What is your contribution? A thesis contributes more by explaining why an operator helps on a class of problems than by adding a new metaphor (Aranha et al., 2022).

If SSA and SSO perform similarly on your problem, prefer the simpler one to implement and explain. If neither beats a well-tuned standard method, that is a legitimate and useful finding to report.

Reading metaphor-based algorithms critically

Two general results should frame any dissertation that uses SSO, SSA or a similar method. First, the no free lunch theorems show that, averaged over all problems, no optimisation algorithm outperforms any other (Wolpert & Macready, 1997). Claims of superiority are only meaningful for a stated class of problems. Second, researchers have shown that several "novel" nature-inspired algorithms are close variants of existing methods presented in new vocabulary (Camacho Villalón et al., 2019; Piotrowski et al., 2014; Tzanetos & Dounias, 2021), and leading researchers have called for metaphor-based methods to be described in standard optimisation terms and tested rigorously (Aranha et al., 2022).

Benchmarking has its own traps. Kudela (2022) showed that many methods perform well on common test functions partly because they are biased towards the centre of the search space, where many benchmark optima lie; shifting the optimum exposes the bias. Your thesis should show that you know these debates.

Worked example (illustrative)

A hypothetical engineering dissertation proposes an SSA variant for a constrained mechanical design problem. A defensible plan would: describe the variant in plain optimisation terms; compare it with the original SSA (Yu & Li, 2015a), with SSO (Cuevas et al., 2013) and with strong general baselines such as CMA-ES; use a documented benchmark platform (Hansen et al., 2016) plus shifted versions of functions to detect centre bias (Kudela, 2022); run each algorithm many times with equal evaluation budgets; and compare results with non-parametric tests such as the Friedman test with post hoc procedures (Derrac et al., 2011).

The number of algorithms, problems and runs affects the conclusions of such comparisons, so the plan should justify them (Veček et al., 2017). A short parameter sensitivity study, reported in an appendix, shows the results are not an artefact of tuning. Finally, code, seeds and raw results are archived so that others can reproduce the tables (Sandve et al., 2013).

What to report

Reporting checklist for a metaheuristic study
ElementWhat to state
Algorithm identitySSO or SSA, founding paper, and the parent of any variant
OperatorsEach operator in plain terms, with pseudocode
ParametersValues, how they were chosen and a sensitivity check
BaselinesStrong, current competitors, not only other metaphor-based methods
BenchmarksSuite, dimensions, shifted or rotated versions, evaluation budget
StatisticsNumber of runs, non-parametric tests, effect sizes
ReproducibilityCode, seeds, software versions and raw results

Common mistakes

  • Citing SSO when describing SSA, or the reverse.
  • Describing the method only through the metaphor.
  • Comparing only with older or weaker metaheuristics.
  • Using default parameters for your method while leaving baselines untuned, or the reverse.
  • Reporting best runs instead of distributions over many runs.
  • Claiming general superiority from results on one benchmark suite.

For the same critical approach applied to another nature-inspired method, see elephant herding optimisation and how to benchmark a metaheuristic; for statistical comparison of algorithms, see using ANOVA to compare algorithms.

Key takeaways

Your next step

Want to apply this to your own study?

  1. 1Tell us your topic, data and deadline
  2. 2A statistician reviews your work with you
  3. 3You get a plan and a quote
Quantitative analysis

References

  1. Aranha, C., Camacho Villalón, C. L., Campelo, F., Dorigo, M., Ruiz, R., Sevaux, M., Sörensen, K., & Stützle, T. (2022). Metaphor-based metaheuristics, a call for action: The elephant in the room. Swarm Intelligence, 16, 1–6. https://doi.org/10.1007/s11721-021-00202-9
  2. Camacho Villalón, C. L., Dorigo, M., & Stützle, T. (2019). The intelligent water drops algorithm: Why it cannot be considered a novel algorithm. Swarm Intelligence, 13, 173–192. https://doi.org/10.1007/s11721-019-00165-y
  3. Cuevas, E., Cienfuegos, M., Zaldívar, D., & Pérez-Cisneros, M. (2013). A swarm optimization algorithm inspired in the behavior of the social-spider. Expert Systems with Applications, 40(16), 6374–6384. https://doi.org/10.1016/j.eswa.2013.05.041
  4. Derrac, J., García, S., Molina, D., & Herrera, F. (2011). A practical tutorial on the use of nonparametric statistical tests as a methodology for comparing evolutionary and swarm intelligence algorithms. Swarm and Evolutionary Computation, 1(1), 3–18. https://doi.org/10.1016/j.swevo.2011.02.002
  5. Hansen, N., Auger, A., Mersmann, O., Tušar, T., & Brockhoff, D. (2016). COCO: A platform for comparing continuous optimizers in a black-box setting (arXiv:1603.08785). arXiv. https://arxiv.org/abs/1603.08785
  6. Kudela, J. (2022). A critical problem in benchmarking and analysis of evolutionary computation methods. Nature Machine Intelligence, 4, 1238–1245. https://doi.org/10.1038/s42256-022-00579-0
  7. Piotrowski, A. P., Napiorkowski, J. J., & Rowinski, P. M. (2014). How novel is the "novel" black hole optimization approach? Information Sciences, 267, 191–200. https://doi.org/10.1016/j.ins.2014.01.026
  8. Sandve, G. K., Nekrutenko, A., Taylor, J., & Hovig, E. (2013). Ten simple rules for reproducible computational research. PLoS Computational Biology, 9(10), e1003285. https://doi.org/10.1371/journal.pcbi.1003285
  9. Tzanetos, A., & Dounias, G. (2021). Nature inspired optimization algorithms or simply variations of metaheuristics? Artificial Intelligence Review, 54, 1841–1862. https://doi.org/10.1007/s10462-020-09893-8
  10. Veček, N., Črepinšek, M., & Mernik, M. (2017). On the influence of the number of algorithms, problems, and independent runs in the comparison of evolutionary algorithms. Applied Soft Computing, 54, 23–45. https://doi.org/10.1016/j.asoc.2017.01.011
  11. Wolpert, D. H., & Macready, W. G. (1997). No free lunch theorems for optimization. IEEE Transactions on Evolutionary Computation, 1(1), 67–82. https://doi.org/10.1109/4235.585893
  12. Yu, J. J. Q., & Li, V. O. K. (2015a). A social spider algorithm for global optimization. Applied Soft Computing, 30, 614–627. https://doi.org/10.1016/j.asoc.2015.02.014
  13. Yu, J. J. Q., & Li, V. O. K. (2015b). Parameter sensitivity analysis of social spider algorithm (arXiv:1507.02491) [Preprint]. arXiv. https://arxiv.org/abs/1507.02491

How to cite this article

Choose your referencing style, then copy. Check your university's or journal's guide for local variations.

PhD Research Lab Academy. (2020, January 21). Social spider optimisation and the social spider algorithm: two methods, one name, and how to choose. PhD Research Lab. https://www.phdassistance.com/blog/dissertation-algorithm-development-ideas-from-existing-recent-research-gaps-in-computer-science-engineering-domain/

PhD Research Lab Academy. “Social Spider Optimisation and the Social Spider Algorithm: Two Methods, One Name, and How to Choose.” PhD Research Lab, 21 Jan. 2020, www.phdassistance.com/blog/dissertation-algorithm-development-ideas-from-existing-recent-research-gaps-in-computer-science-engineering-domain. Accessed [access date].

PhD Research Lab Academy (2020) Social spider optimisation and the social spider algorithm: two methods, one name, and how to choose. PhD Research Lab. Available at: https://www.phdassistance.com/blog/dissertation-algorithm-development-ideas-from-existing-recent-research-gaps-in-computer-science-engineering-domain/ (Accessed: [access date]).

PhD Research Lab Academy. “Social Spider Optimisation and the Social Spider Algorithm: Two Methods, One Name, and How to Choose.” PhD Research Lab. January 21, 2020. https://www.phdassistance.com/blog/dissertation-algorithm-development-ideas-from-existing-recent-research-gaps-in-computer-science-engineering-domain.

PhD Research Lab Academy, ‘Social Spider Optimisation and the Social Spider Algorithm: Two Methods, One Name, and How to Choose’ (PhD Research Lab, 21 January 2020) <https://www.phdassistance.com/blog/dissertation-algorithm-development-ideas-from-existing-recent-research-gaps-in-computer-science-engineering-domain> accessed [access date].

PhD Research Lab Academy. Social spider optimisation and the social spider algorithm: two methods, one name, and how to choose [Internet]. PhD Research Lab; 2020 Jan 21 [cited [access date]]. Available from: https://www.phdassistance.com/blog/dissertation-algorithm-development-ideas-from-existing-recent-research-gaps-in-computer-science-engineering-domain/

PhD Research Lab Academy, “Social spider optimisation and the social spider algorithm: two methods, one name, and how to choose,” PhD Research Lab, Jan. 21, 2020. [Online]. Available: https://www.phdassistance.com/blog/dissertation-algorithm-development-ideas-from-existing-recent-research-gaps-in-computer-science-engineering-domain. [Accessed: [access date]].

@online{dissertation_algorithm_development_ideas_from_existing_recent_research_gaps_in_computer_science_engineering_domain_2020,
  author = {{PhD Research Lab Academy}},
  title = {{Social spider optimisation and the social spider algorithm: two methods, one name, and how to choose}},
  organization = {PhD Research Lab},
  date = {2020-01-21},
  url = {https://www.phdassistance.com/blog/dissertation-algorithm-development-ideas-from-existing-recent-research-gaps-in-computer-science-engineering-domain},
  urldate = {[access date]}
}

This article is for learning. Use it to understand the method and cite the original sources above in your own work; do not copy or submit it as your own.

Social spider optimisation and the social spider algorithmNeed help applying it to your study?
Quantitative analysis