Animal and swarm-inspired algorithmsVerified

Spotted Hyena Optimizer

Spotted Hyena Optimizer (SHO)

Year introduced
2017
Original authors
Gaurav Dhiman; Vijay Kumar
Source of inspiration
Spotted hyenas
Search space
Continuous
Optimization types
Hyperparameter Optimization
Applied research in the repository
0

Overview

It imitates the social behaviour and group hunting of spotted hyenas: searching for prey, encircling it, attacking it and searching for others. It relies on a "group" (Cluster) of the best trusted solutions to guide the rest.

Source of inspiration and mechanism

Image illustrating the source of inspiration of the SHO algorithm: Spotted hyenas
Spotted hyenasImage: Charles J. Sharp · CC BY-SA 4.0 · Wikimedia Commons

Spotted hyenas live in clans and trust each other to track and encircle prey, and they attack together after forming a cohesive group around the target.

Initialization

Random.

Update mechanism

An update with the average of the trusted group.

Exploration

|E| > 1 pushes the hyenas away from the prey to search for others.

Exploitation

|E| < 1 forces them to attack the prey.

Mathematical description

The hyena's distance to the prey is computed as D_h = |B·P_p − P|, and P = P_p − E·D_h is updated, with h decreasing linearly from 5 to 0. A group C_h of solutions close to the best is formed, and the new position is its average.

Encircling

\vec{D}_h = |\vec{B}\cdot\vec{P}_p(x) - \vec{P}(x)|,\quad \vec{P}(x+1) = \vec{P}_p(x) - \vec{E}\cdot\vec{D}_h

B = 2 rd1, E = 2h·rd2 − h.

Coefficient h

h = 5 - \left(Iteration \times \frac{5}{Max_{Iteration}}\right)

Attack

\vec{P}(x+1) = \frac{\vec{C}_h}{N}

C_h is the sum of the positions of the trusted group and N their number.

Computational complexity: O(T\cdot N\cdot (D + C_f))

Flowchart

StartInitialisationRandomEvaluationCompute the objective and find the bestsolutiont ≤ T ?Exploration|E| > 1 pushes the hyenas away from the preyto search for othersExploitation|E| < 1 forces them to attack the preyUpdate ruleAn update with the average of the trustedgroupUpdate bestKeep the best solution and set t = t + 1EndReturn the best solutionYesNo

A simplified chart summarising the algorithm phases as described on its card in the lab; it is not the original figure published in the paper.

Pseudocode

Initialize; Ph = best
for t = 1..T:
    h = 5 - t*(5/T); B = 2*rand; E = 2*h*rand - h
    for each hyena: D = |B*Ph - P|; P_k = Ph - E*D
    cluster C_h of N good solutions; P = mean(C_h)
return Ph

Python implementation

There is currently no tested python implementation of this algorithm in the lab. We did not include untested code so that it is not used as a reference implementation.

Coefficients

ParameterSymbolTypical valueRangeDescription
h start
h
5Decreases to 0

Advantages

Using a group of solutions instead of a single one reduces bias.

Limitations

  • Structural similarity with GWO
  • Determining the group size depends on a tuned distance.

Use in artificial intelligence

Domains documented in the card: Machine learning, hyperparameter tuning

Continuous engineering problems.

Hybridization potential

These are partnerships suggested theoretically in the card; any resulting design is presented as a "proposed hybrid method" until its results are compared with the literature.

Applied research from the repository

An aspect that did not appear in the current search results within the repository. This does not mean there is no published research outside it.

Original reference

Gaurav Dhiman; Vijay Kumar (2017). Spotted hyena optimizer: A novel bio-inspired based metaheuristic technique for engineering applications. Advances in Engineering Software, Elsevier BV.

Verified DOI: 10.1016/j.advengsoft.2017.05.014

The bibliographic data match the Crossref record (checked 2026-11-20). There is no tested Python code for this algorithm in this version.