Keywords

1 Introduction

Microwave passive filters are essential components in the implementation of telecommunications systems. Their main purpose is to pass selected signal and attenuate unwanted signals. Thus, it can clean the communication network by letting only the system band signals to be transmitted or received.

The most popular method for modeling these kinds of filters is the mode matching method (MMM). The mode matching method is often used to solve boundary-value problems involving waveguides. The method consists of decomposing a complex geometrical structure into many regions of simple geometrical form. Hence, in each region, we can find a set of modal functions (or, modes) that satisfy the Maxwell’s equations except at the junctions. The problem is that the expanding all the modes in each region with unknown modal coefficients and solving for these coefficients by applying the boundary conditions at the junction of each region, thus making complex mode matching method.

In the past several years, Artificial Neural Network (ANN) provides fast and accurate models for the modeling, simulation, and optimization of microwave component [1,2,3]. In this paper, we propose a waveguide Filters (Broad-band E-plane filters with improved stop-band and H-plane waveguide filters considering rounded corners) modeling using a multilayer perceptron neural network (MLP-NN) to three layers trained by a recently proposed algorithm called Social-Spiders Optimization (SSO) [4]. Each sub-net in the NN architecture shown in Fig. 1, possesses Ne inputs neurons in accordance with the number of the system geometry parameter of structure, Nc neurons in the hidden layer and one output associated with the value of reflection coefficient S11(fk). The entire network consists of k distinct NNs corresponding to a particular frequency with k determined by the number of points in the frequency interval. Frequency responses of S11 parameters obtained in simulations compose the network database. The connection weight from the neurons of input layer to the neurons of hidden layer is WE and the connection weight from the neurons of hidden layer to the neurons of output layer is WS.

Fig. 1.
figure 1

Neural networks architecture.

The paper is organized as follows. Section 2 describes the social-spiders optimization. Training of neural networks using social-spiders optimization is developed in Sect. 3. Application examples and results are presented in Sect. 4 and finally, Sect. 5 makes conclusions.

2 Social Spiders Optimization

Erik Cuevas et al. [4] proposed a new swarm optimization algorithm called Social-Spiders Optimization (SSO). The (SSO) algorithm is based on the simulation of the cooperative behavior of social-spiders. A (SSO) process consists of two parts: members and communal web. The communal web is used as a mechanism to transmit information among the colony members. This information is encoded as small vibrations depend on the weight and distance of the spider which has generated them, it is calculated according to:

$$ Vib_{ij} = W_{j} *exp \left( { - \left( {d _{ij} } \right)^{2} } \right) $$
(1)

Where d ij is the Euclidean distance between ith and jth spiders and W j indicates the weight of the jth spider dependent on the fitness value; is calculated by the following equation

$$ W_{i} = \frac{{Worst - f \left( {x_{i} } \right)}}{Worst - Best} $$
(2)

Where f (x i ) is the fitness value of the spider (x i ). The values Best and Worst are defined as follows (considering a minimization problem):

$$ Best = \min\nolimits_{ i = 1 \ldots N} \,f \left( {x_{i} } \right)\;{\text{and}}\;Worst = \max\nolimits_{ i = 1 \ldots N} f \left( {x_{i} } \right) $$
(3)

Every spider (x i ) is able to consider three vibrations from other spiders as follows Fig. 2, Where Vib ci the nearest spider subject to having higher fitness, Vib bi the best spider in the swarm and Vib fi the nearest female spider.

Fig. 2.
figure 2

Configuration of each special relation

The spiders members are divided by gender into two types: female spiders represent 65–90% of the entire population and the rest is the male spiders. They are calculated as follows:

$$ Nf = floor \left[ {\left( {0.9 - rand* 0.25} \right) *N} \right] $$
(4)
$$ Nm = N - Nf $$
(5)

With N, N f , Nm are the population, the number of females and the number of male respectively. (floor) rounds each element to the nearest integer, and rand is a random number in the unitary range [0,1]. A female spiders are updates its position as follows:

$$ X_{i} = X_{i} + \alpha \,Vib_{ci} \left( {X_{c} - X_{i} } \right) \, + \beta \,Vib_{bi} \left( {X_{b} - X_{i} } \right) \, + \delta \left( {rand - \, 0.5} \right)\, {\text{with probability}}\,PF $$
(6)
$$ X_{i} = X_{i} - \alpha \,Vib_{ci} \left( {X_{c} - X_{i} } \right) \, - \beta \,Vib_{bi} \left( {X_{b} - X_{i} } \right) \, + \delta \left( {rand - \, 0.5} \right){\text{ with probability}}\,1 - PF $$
(7)

Where α, β, δ and rand are random numbers between [0, 1] whereas PF represents the threshold parameter. The individual X c and X b represent the nearest member to X i that holds a higher weight and the best individual of the entire population, respectively.

The male population divided into two groups: Dominant members D with a weight value above the median value and non-dominant members ND with a weight value under the median value. The change of positions for the male spider can be modeled as follows:

$$ X_{i} = X_{i} + \alpha \left( {\frac{{\mathop \sum \nolimits_{h = 1}^{{N_{m} }} X_{h} W_{{N_{f} + h}} }}{{\mathop \sum \nolimits_{h = 1}^{{N_{m} }} W_{{N_{f} + h}} }} - X_{i} } \right) ,\,{\text{Male D}} $$
(8)
$$ Xi = Xi + \alpha Vibfi \left( {Xf - Xi} \right) + \delta . \left( {rand - 0.5} \right),\;\; {\text{Male ND}} $$
(9)

Where the individual (X f ) represent the nearest female individual to the male member.

After all males and females spiders are update, the last operator is representing the mating behavior where only dominant males will participate with females who are within a certain radius called mating radius given by

$$ R = \frac{{\mathop \sum \nolimits_{d = 1 \ldots n} \left( {X_{d}^{h} - X_{d}^{l} } \right)}}{2 D} $$
(10)

Where Xh and Xl are respectively the upper and lower bound for a given dimension and n is the problem dimension.

Males and females which are under the mating radius generate new candidate spiders according to the roulette method. Each candidate spider is evaluated in the objective function and the result is tested against all the actual population members. If any member is worse than a new candidate, the new candidate will take the actual individual position assuming actual individual’s gender.

3 Training Neural Networks Using Social Spiders Optimization

Training of neural networks is a complex task of great importance in the learning, where it is depends on adaptation of free network parameters, that is, on the proper selection of the neural weight values. The training of neural networks is to find an algorithm for optimized weights of networks to minimize the mean square error (MSE) described as follows

$$ MSE = \frac{1}{PT}*\mathop \sum \limits_{PT} \mathop \sum \limits_{Ns} \left( {Ys - Y} \right)^{2} $$
(11)

Where PT the total number of training samples, Ys is the output of the network and Y is the desired output.

$$ Ys = f_{2} \left( {\mathop \sum \limits_{Nc} Ws*f_{1} \left( {\mathop \sum \limits_{Ne} WE*X} \right)} \right) $$
(12)

With f 2 and f 1 are the activation functions (typically: sigmoid, tanh …), X is the input vector of NN.

Specialized learning algorithms are used for adaptation of these weight values. Among those algorithms, the most popular algorithm is a back-propagation method (BP) [5] based on a gradient descending. Lately, many populations based algorithms were proposed for training a neural network such as Particle Swarm Optimization (PSO) [6], Genetic Algorithms [7].

In this paper, the neural networks are trained by a SSO algorithm. The step-wise procedure for the implementation of SSO-NN can be summarized as follows:

  • Step 1. Define the neural network architecture (number of layers, number of neurons in each layer and the activation functions) and define the parameters of the SSO algorithm (number of population N, the number of female Nf, the number of male Nm, maximum iteration and the threshold PF)

  • Step 2. Define the optimization parameters and the optimization problem:

    • Design variables of the optimization problem: WE and WS the matrixes of input connection weights and output connection weights respectively. WE matrix of Nc rows and Ne columns and WS matrix of Ns rows and Nc columns.

    • Define the optimization problem (fitness function): find the optimal WE and WS which minimizes the mean square error (MSE) Eq. (11).

  • Step 3. Initialize the population and evaluate the corresponding objective function value. For simplification, the population is decomposed into two groups, one represents the inputs weights population WEp and the second one represents the output weights population WSp. Where, each group generates randomly, according to the population female, the population male and the number of neurons as follows:

  • $$ WEp = rand \left( {N * Nc, \,Ne} \right), \, WSp = rand \left( {Ns, \,N*Nc} \right) $$
    (13)
  • Step 4. Locate the best and the worst fitness, then calculate the weight of every spider in terms of its fitness Eq. (2)

  • Step 5. Move female spiders according to the female cooperative operator Eqs. (6) and (7)

  • Step 6. Move male spiders according to the male cooperative operator Eqs. (8) and (9)

  • Step 7. Perform the mating operation.

  • Step 8. If the stopping criteria are reached, the process is finished; otherwise, go back to Step 4.

4 Application Examples and Application

In this section, the ability of neural networks trained with SSO algorithm is assessed by applying it for the modeling of two microwave filters modeling test (Broad-band E-plane filters with improved stop-band [8] and H-plane waveguide filters considering rounded corners [9]) Fig. 3. The dimensions of the first filter and second filters are listed in Table 1.

Fig. 3.
figure 3

(a) Broad-band e-plane filters with improved stop-band, (b) H-plane waveguide filters considering rounded corners

Table 1. The dimensions of the structures

The common parameters of each algorithms are chosen identical (population size = 30 and number of iterations equal 10000), neural network parameters (Number of hidden neurons, input parameter and their limit, and frequency interval) of each structure are presented in Table 2. The activation functions are hyperbolic tangent function (Tansig), and linear function (Purelin) respectively. The other specific parameters of algorithms are given below.

Table 2. Neural network parameters

PSO Settings: c1 and c2 are constant coefficients c1 = c2 = 2, w is the inertia weight decreased linearly from 0.9 to 0.2.

SSO Settings: threshold parameter PF = 0.7

Figure 4 shows the convergence of SSO and PSO algorithms for minimize the MSE of neural networks for two filters above-mentioned. A comparison between the reflection coefficient responses obtained by using the SSO-NN, PSO-NN and the simulation are presented in Fig. 5.

Fig. 4.
figure 4

Convergences of algorithms for minimize the MSE; (a) Broad-band e-plane filters with improved stop-band, (b) H-plane waveguide filters considering rounded corners.

Fig. 5.
figure 5

The approximate reflection coefficient; (a) Broad-band e-plane filters with improved stop-band, (b) H-plane waveguide filters considering rounded corners.

It is observed from Figs. 4 and 5 that, the SSO algorithms perform better in terms of convergence and approximation than the PSO algorithm.

5 Conclusion

In the present work, we propose microwave filters (Broadband E-plane filters with improved stop-band and H-plane waveguide filters considering rounded corners) modeling using neural networks trained by a social spider optimization (SSO) algorithm. For validated this neural network (SSO-NN) we compared them with those obtained using neural networks trained by PSO (PSO-NN). Excellent results of convergence and modeling are obtained.