Next Article in Journal
Dwarf Kingfisher-Inspired Bionic Flapping Wing and Its Aerodynamic Performance at Lowest Flight Speed
Next Article in Special Issue
Neodymium Selenide Nanoparticles: Greener Synthesis and Structural Characterization
Previous Article in Journal
Inspired by the Nature: A Post-printed Strategy to Efficiently Elaborate Parahydrophobic Surfaces
Previous Article in Special Issue
Novel Motion Sequences in Plant-Inspired Robotics: Combining Inspirations from Snap-Trapping in Two Plant Species into an Artificial Venus Flytrap Demonstrator
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Bio-inspired Machine Learning for Distributed Confidential Multi-Portfolio Selection Problem

1
Department of Computing, The Hong Kong Polytechnic University, Hong Kong 999077, China
2
School of Business, Jiangnan University, Wuxi 213031, China
3
College of Computer Science and Engineering, Jishou University, Jishou 409811, China
4
Faculty of Science and Engineering, Swansea University, Swansea SA1 8EN, UK
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Biomimetics 2022, 7(3), 124; https://doi.org/10.3390/biomimetics7030124
Submission received: 31 July 2022 / Revised: 15 August 2022 / Accepted: 19 August 2022 / Published: 29 August 2022

Abstract

:
The recently emerging multi-portfolio selection problem lacks a proper framework to ensure that client privacy and database secrecy remain intact. Since privacy is of major concern these days, in this paper, we propose a variant of Beetle Antennae Search (BAS) known as Distributed Beetle Antennae Search (DBAS) to optimize multi-portfolio selection problems without violating the privacy of individual portfolios. DBAS is a swarm-based optimization algorithm that solely shares the gradients of portfolios among the swarm without sharing private data or portfolio stock information. DBAS is a hybrid framework, and it inherits the swarm-like nature of the Particle Swarm Optimization (PSO) algorithm with the BAS updating criteria. It ensures a robust and fast optimization of the multi-portfolio selection problem whilst keeping the privacy and secrecy of each portfolio intact. Since multi-portfolio selection problems are a recent direction for the field, no work has been done concerning the privacy of the database nor the privacy of stock information of individual portfolios. To test the robustness of DBAS, simulations were conducted consisting of four categories of multi-portfolio problems, where in each category, three portfolios were selected. To achieve this, 200 days worth of real-world stock data were utilized from 25 NASDAQ stock companies. The simulation results prove that DBAS not only ensures portfolio privacy but is also efficient and robust in selecting optimal portfolios.

1. Introduction

Portfolio optimization is a hot research topic in academia, since it enables investors to make an optimal decision between profit and risk. This refers to the method of making the best investment in numerous stocks [1]. Apart from this, there are several other real-world constraints that researchers have taken care of over time, for instance, cardinality constraint, tax-aware constraint, lower and upper bounds, multiple portfolios, round-lot constraint, stock size, computational and time complexities.
There are several state-of-the-art algorithms that have been proposed over time to tackle these constraints. For instance, an unconstrained portfolio optimization problem can be easily solved using linear or quadratic programming, but constraints make it a complex optimization problem to solve. Ref. [2] showed that the simple addition of a cardinality constraint makes it an NP-complete problem. Therefore, there is no straightforward algorithm to compute the exact optimality of the problem. Techniques that use machine learning algorithms, heuristic algorithms, and black-box optimization are good alternatives to solve such highly complex, computationally and time-consuming problems. Ref. [3] proposed using multiple machine learning modules, i.e., coordinate descent, the proximal gradient, Dykstra, and alternating direction of multipliers. Their algorithm also accounts for several constrained portfolios, i.e., equal risk contribution, diversified, and risk budgeting portfolios. Likewise, Ref. [4] combined several portfolio models, i.e., equal-weighted modeling (EQ), mean-variance model, and Monte Carlo simulation modeling. Furthermore, to improve the portfolio problem based on its time-series nature, they applied a long short-term memory (LSTM) model. However, the major drawback of these methods is the training of hundreds of hyper-parameters, which makes them computationally expensive and slow to compute.
In this paper, we are focused on the multi-portfolio selection problem while considering the investors’ privacy. Since the multi-portfolio problem has only recently gained attention from academia and financial practitioners, no work has been conducted regarding the confidentiality and the secrecy of private databases and individual portfolios. The multi-portfolio selection problem enables the optimization of tens of hundreds of portfolios simultaneously, making it computationally economical and time efficient. There are several proposed methods for multi-portfolio optimization in the literature [5,6,7,8,9,10,11,12,13,14,15,16,17]. The authors of [18,19] were the pioneers of the multi-portfolio optimization domain. The objective was to maximize social welfare, which was the sum of the utility of the individual accounts. For instance, ref. [20] proposed a hybrid model that includes a heuristic and combinatorial framework and solved the multi-portfolio problem under a risk–budget constraint. Ref. [21] proposed a Cournot–Nash equilibrium framework to solve the multi-portfolio problem. The major drawback being that each portfolio was treated individually, assuming that the others gave the best response. Ref. [22] overcame this issue by proposing a joint optimization problem, where the model was able to optimize the portfolio as well as cost splitting among the portfolios. Ref. [23] employed an information pooling game mechanism for the multi-portfolio optimization. Ref. [24] added a risk measurement constraint along with the selection of multi-portfolios. Ref. [25] proposed fairness-aware multi-participant satisfying (FMS) criterion to model a target-oriented strategy which optimized client portfolios by maximizing the returns. The major drawback of these techniques is the lack of privacy for the investors. They also solve the multi-portfolio problem, collectively making asset data exposed, meaning data are not secure or confidential. In order to provide privacy to each investor, i.e., portfolios regarding their investment and portfolio selection, it is necessary to design a distributed framework that optimizes each portfolio locally and optimizes all portfolios collectively. The three types of optimizing models are shown in Figure 1. It shows that in local learning, all portfolios are optimized individually, which is computationally and time-wise inefficient. Likewise, typical swarm learning models do not account for the confidentiality of the data and portfolio, and the particles share critical information about the portfolios to reach the optimal solution. However, in the distributed system, each particle deals with a single portfolio locally, and the particles share the objective function value, i.e., gradients alone to each other. Thus, they efficiently optimize the multi-portfolio selection problem without violating privacy.
In this paper, we propose a swarm variant of a known meta-heuristic algorithm known as Beetle Antennae Search (BAS). It mimics the food-collecting nature of the beetle in order to search for the optimal solution to a problem. BAS is a single particle searching algorithm, where the particle optimizes an objective function by searching the search space iteratively. The utility of BAS has expanded to several real-world problems [26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49], including the portfolio optimization. Ref. [50] employed BAS for the selection of the optimal portfolio under a non-convex cardinality constraint. Ref. [51] proposed a QBAS (Quantum Beetle Antennae Search) variant of BAS and solved the portfolio selection problem under cardinality constraint. Ref. [52] solved the time-varying portfolio selection problem under the transaction cost. Ref. [53] used the mean-variance model of portfolio optimization under two constraints: cardinality and transaction cost constraints. Ref. [54] proposed a hybrid framework of BAS-PSO and used it for portfolio optimization. From these research works, we can see the utility of BAS in portfolio optimization under real-world constraints. However, BAS has never been employed for the multi-portfolio optimization problem because of computational limitations. As mentioned earlier, BAS is a single particle searching algorithm, meaning it would be computationally challenging for BAS to optimize even a single portfolio with over 100 stock companies. Therefore, the efficiency of BAS will drop further if applied to the multi-portfolio selection problem.
We have proposed a swarm or distributed variant of BAS known as DBAS (Distributed Beetle Antennae Search). It is a hybrid variant with the swarm-like nature of Particle Swarm Optimization (PSO) and the BAS updating criteria. Each particle in DBAS will optimize a single portfolio, and collectively, the swarm will optimize all the portfolios without violating portfolio privacy. The DBAS will optimize the multi-portfolio in two stages by optimizing each portfolio locally and then optimizing all the portfolios globally without sharing any private data among portfolios. To the best of our knowledge, no researcher has considered the privacy issue while solving the multi-portfolio problem, since it is a newly emerging portfolio selection challenge. Through our proposed framework, we will optimize the multi-portfolio problem efficiently with low computation and time cost whilst ensuring the privacy of clients and their portfolios.
The rest of the paper is structured as follows: In Section 2, we will formulate the portfolio optimization problem. In Section 3, we will elaborate on the nature of BAS and will drive the DBAS variant. In Section 4, we will discuss the simulation results on a multi-portfolio selection problem with real-world stock data. In Section 5, we will conclude the paper with final remarks.

2. Problem Formulation

In this section, we will discuss the building blocks of the portfolio optimization problem. Later, we will elaborate on different portfolio models and select one for the DBAS algorithm. All the hyper-parameters are mentioned in Table 1.

2.1. Building Blocks of Portfolio Selection

Here, we will discuss the building blocks of portfolio selection, i.e., expected return (profit), risk, total investment, total transaction cost, and cardinality constraint.

2.1.1. Expected Return

The primary factor in portfolio optimization is the maximization of expected return: in other words, the profit that investors are expecting from their investment in stocks. Let us say there are K total stocks and the normalized investment in all K stocks is given as E = [ E 1 , E 2 , E 3 , , E i , E K ] R K , where i is the i-th stock and E i is the the normalized investment in the i-th stock. Now, let us say that the mean return of K stocks based on their past data is given as, ϵ = [ ϵ 1 , ϵ 2 , ϵ 3 , , ϵ i , , ϵ K ] T R K . The objective is to find the optimal E such that it maximizes the expected return, which is given as
max E ξ ( E ) = E ϵ T .
To further consolidate (1) and to ensure that the expected return is above a certain threshold k , the modification to (1) is given as,
max E ξ ( E ) = E ϵ T k 0 .
here, k is a scalar quantity and E ϵ T k = 0 means the break-even point (no profit-loss).

2.1.2. Risk

The maximization of profit (expected return) does not avoid the risk factor. The second objective is to minimize the risk. The risk minimization is given as,
min E υ ( E ) = EQE T ,
where Q is a covariance matrix, and it is given as,
Q = Q 11 Q 12 Q 13 Q 1 j Q 21 Q 22 Q 23 Q 2 j Q 31 Q 32 Q 33 Q 3 j Q i 1 Q i 2 Q i 3 Q i j ,
where Q i j is the variance of the i-th stock with j-th stock in the portfolio.

2.1.3. Total Investment

Now, we will discuss one of the primary constraints: total investment. It ensures the allocation of the total asset in the stocks, and it is given as,
1 E T = 1 ,
where 1 is a unit vector. As mentioned above, E T is a normalized investment, so the sum of the amount invested in the portfolio should be 1 as shown in (5). To ensure this, we need an additional constraint which is given as,
0 E 1 .
It will ensure that E remains positive and within [ 0 , 1 ] .

2.1.4. Total Transaction Cost

The total transaction cost is another essential constraint in portfolio selection. The transaction cost is positive if the investor buys stock and is negative if the investor sells stock. Let us say that Φ ( E ) represents the transaction cost of the portfolio; it is given as,
Φ ( E ) = [ Φ 1 ( E 1 ) , Φ 2 ( E 2 ) , Φ 3 ( E 3 ) , , Φ i ( E i ) ] ,
where i { 1 , 2 , 3 , , K } and Φ i ( E i ) represent the transaction cost of the i-th stock. The total transaction cost refers to the sum of all the individual stocks, which is given as
Φ t ( E ) = i = 1 K Φ i ( E i ) .
If Φ t ( E ) > 0 , it means more stock is bought than sold. Likewise, if Φ t ( E ) < 0 , it means that more stock is sold than bought. Generally, the transaction cost includes some additional charges, which we can formulate using a linear transaction model [55], which includes a linear function α = [ α 1 , α 2 , α 3 , , α i ] , where i { 1 , 2 , 3 , , K } . The transaction cost of the i-th stock in the portfolio is given as,
Φ i ( E i ) = α i E i .
We can rewrite (7) using (9) as,
Φ ( E ) = α E T .
We can combine (5) and (10) into a single constraint, which is given as,
χ ( E ) = ( 1 + α ) E T = 1 .

2.1.5. Cardinality Constraint

Another real-world constraint in portfolio selection is known as the cardinality constraint. So far, we have assumed that investment is made in all of the K stocks. However, in a real case scenario, it is observed that the investor may want to exclude some stocks n ( < K ) from the final portfolio selection, which is known as a cardinality constraint. We can make such a decision by introducing a binary decision vector, i.e., b = [ b 1 , b 2 , b 3 , , b i , , b n ] , where b i { 0 , 1 } . According to the cardinality constraint,
i = 1 K b i = n .
We also need to reformulate (6) according to (12), which is given as,
0 E b .

2.2. Portfolio Selection Models

Here, we will discuss the three known models for portfolio selection: mean variance model, efficient frontier model, and Sharpe ratio model.

2.2.1. Mean-Variance Model

The primary objective of the mean variance model is to minimize the risk involved in portfolio selection, and it treats the expected return (profit) as a constraint. We can formulate the mean variance model using (2), (3), and (11)–(13), which is given as,
Minimize :
min E υ ( E ) Subject to :
ξ ( E ) = E ϵ T k 0
χ ( E ) = ( 1 + α ) E T = 1
i = 1 K b i = n
0 E b .
The mean variance model is not very flexible, since it restrains the growth in profits. To overcome it, we can make use of an efficient frontier model.

2.2.2. Efficient Frontier Model

In this model, we include expected return (profit) in the objective function. We can formulate the frontier model using (2), (3), and (11)–(13), which is given as,
Minimize :
min E λ υ ( E ) ( 1 λ ) ξ ( E ) Subject to :
χ ( E ) = ( 1 + α ) E T = 1
i = 1 K b i = n
0 E b .
here, λ [ 0 , 1 ] . If λ = 0 , then the model will maximize the expected-return (profit). However, if λ = 1 , then the model will minimize the risk. The value of λ between [ 0 , 1 ] will be a trade-off between profit and the risk. The only drawback of the model is that it involves the use of a hyper-parameter λ . To avoid this, we will look into a Sharpe model, which we will optimize using DBAS.

2.2.3. Sharpe Ratio Model

The Sharpe ratio model is another portfolio selection model which includes the ratio of profit ξ ( E ) and risk υ ( E ) . The objective is to maximize the ratio, which is given as,
S R = ξ ( E ) υ ( E ) .
We will inverse the formulation (23) to form a minimization problem. The Sharpe ratio model will help to avoid the additional hyper-parameter λ . Now, the objective is to minimize υ ( E ) ξ ( E ) , which will in turn maximize the profit and minimize the risk. Again, we can formulate the model using (2), (3), and (11)–(13), which is given as,
Minimization :
min E υ ( E ) ξ ( E ) Subject to :
χ ( E ) = ( 1 + α ) E T = 1
i = 1 K b i = n
0 E b .
This model will be used for the portfolio optimization. In the next section, we will formulate the Distributed Beetle Antennae Search (DBAS), which we will be used to solve the portfolio problem given in (24)–(27).

3. Distributed Beetle Antennae Search (DBAS)

In this section, we will elaborate on the nature of BAS, its formulation, and the algorithm. Later, we will develop DBAS and will discuss its underlying algorithm.

3.1. BAS Formulation and Algorithm

BAS has a biologically inspired meta-heuristic algorithm, which is inspired by the food-searching behavior of the beetle. It has two antennas, i.e., left X l and right X r . It registers the smell of the food on both antennae, and based on the intensity of the smell, it either moves in the left direction or right. The beetle repeats this procedure iteratively until it finally reaches the food source. Details on the behavior of beetles and BAS are presented in [56]. Here, we will look into updating the equations of the BAS algorithm, which are responsible for converging the searching particle toward the optimal solution.
Imagine a non-linear objective function F ( X ) , where X is a vector of optimizing variables. We can represent an objective function as,
min X F ( X ) .
Here, we are solely considering an objective function, while the real-world problem would include additional constraints, as shown in (24)–(27). The objective of the BAS is to find the optimal solution of (28) by tweaking the values of X such that the maximum value of (28) is achieved. Here, it is worth mentioning that we can assume the maximization problem as well. The formulation will be a little different, which will be shown later during the derivation.
From this point forward, we will refer to the beetle as a particle. Let us say that the current position of the particle is X R 1 × K . To compute the new position of the particle, we will move it slightly to the right X r and slightly to the left X l , which is given as
X r = X + d b
X l = X d b ,
where b R 1 × K is similar to X . Here, d is an antenna length, which determines how big or small a step should be taken in each iteration. In the beginning, d will have a larger value allowing the particle to explore more of the search space, and over time when the particle approaches the optimal solution, the value of d becomes small.
The next step is to compute the objective function value at X r and X r , so that BAS can decide its course, i.e., either in the X r direction or X l direction. The computation of F ( X ) is given as,
F r = F ( X r )
F l = F ( X l ) ,
where F r and F l are scalar values of the objective function at X r and X l respectively. Now, BAS will compute the next step based on the difference of the values of F r and F l , which is given as,
Δ F = F r F l
X = X τ sgn ( Δ F ) b ,
where sgn is an activation function to translate the value of Δ F between [ 1 , 1 ] . Likewise, τ is another hyper-parameter, which is used to decide the step length of the BAS particle. This concludes the general framework of BAS. The algorithm is shown in Algorithm 1.
Algorithm 1 BAS Algorithm.
  • Objective Function:
  • F ( X , O )
  • DBAS Initialization:
  • η = 0.99
  • d = 0.9
  • τ = 0.9
  • Portfolio Initialization:
  • T = i t e r
  • D = d i m
  • X = randn ( 1 , D )
  • O = [ M n , C n ] M n : Mean C n : Covariance
  • F best = F ( X , P )
  • X best = X
  • For i = 1 : T
  •         b = randn ( 1 , D )
  •        Compute X r and X l using (29) and (30)
  •        Compute F r and F l suing (31) and (32)
  •        Compute X using (34)
  •         F = F ( X , O )
  •        
  •        If F m i n < F b e s t :
  •                F b e s t = F m a x
  •                X best = X
  •        Else:
  •                X = X best
  •        End If
  •        
  •         d = η d + 0.01
  •         τ = η τ
  • End For
This algorithm is designed for the portfolio selection problem. The objective function includes F ( X , O ) , where O includes all the parameters necessary for the portfolio problem, i.e., M means of the stocks, C covariance matrix of the stocks, and other constraints. The single-particle BAS algorithm is limited to single portfolio optimization because of its computational limitations. In order to optimize multiple portfolios at once, we need to introduce a more robust nature in the already existing framework, which we will introduce in DBAS formulation.
Remark 1.
The above formulation of BAS is for the minimziation problem. For the maximization problem, we need to modify the (34), as shown below,
X = X + τ sgn ( Δ F ) b ,
where the − sign is replaced with the + sign. It will help BAS to move up the valley in the search space.
In the next section, we will formulate the DBAS algorithm. Unlike BAS, the DBAS formulation will be better focused on the portfolio problem. However, it is worth mentioning that the algorithm is not problem-specific, as an objective function must be defined for any real-world problem. The schematic of the proposed algorithm is shown in Figure 2.

3.2. DBAS Formulation and Algorithm

DBAS is a hybrid variant of BAS and PSO (Particle Swarm Optimization) algorithms. It mimics the swarm-like nature of PSO, where each step of the particles is based on the particle’s best position P best and the swarm’s best position S best . However, it uses the BAS updating strategy given in (34).

3.2.1. DBAS Updating Criteria

We will modify the updating criteria for X r and X l given in (29) and (30). The updating criteria depend on three factors: the particle’s best position P best , the swarm’s best solution S best , and the random direction d b . The modified updating criteria is given as,
V = b 1 V + d 1 b 2 ( P best X ) + d 2 b 3 ( S best X )
X r = X + d b + V
X l = X d b V ,
where b R D × K and [ b 1 , b 2 , b 3 ] R . Here, X R D × K represents the particles positions, P b e s t R D × K shows the particles best positions, and S best R D × K is the swarm’s best position, which are stacked in a row to meet the dimensionality requirement. Likewise, [ d , d 1 , d 2 ] are scalars. Typical swarm algorithms are used to compute a single objective function, but our objective is to optimize multiple objective functions since each portfolio comprises different stocks. Therefore, it is worth mentioning that X R D × K , where D and K represent the number of portfolios and portfolio size, respectively. Likewise, { b 1 , b 2 } R D × K are two random vectors and d represents the antenna size. Each particle in DBAS corresponds to a single portfolio. The objective is that each particle will optimize its corresponding portfolio locally, i.e., P b e s t j R 1 × K , where j { 1 , 2 , 3 , , D } , and the swarm will optimize all portfolios, i.e., S best , collectively.
After computing X r and X l , , the next step is to compute the objective function value for each portfolio, i.e., each particle. It is given as,
F r = F ( X r , O )
F l = F ( X l , O ) ,
where O includes all the parameters necessary for portfolio optimization as mentioned in the problem formulation section. Here, { F r , F l } R D × 1 and F ( . ) is a vector of dimension D ; it includes the objective functions of all portfolios. Next, each position of particle X is updated using,
Δ F = F r F l
X = X τ sgn ( Δ F ) b .
Then, the objective function value of each portfolio is computed, i.e., the particle at X , which is given as,
F = F ( X , O ) ,
where F has similar dimensions as F r and F l . If the objective function value F j ( . ) of a j-th particle at X j R 1 × K is less than its personal best P best j , then update P best j with X j , . Otherwise, retain the old best values. This updating rule for all the particles X is given as,
P best = Ω ( X ) = X , if F ( X ) < P best P best , otherwise .
Now, the next step is to obtain the swarm’s best position. This can be done by simply looking for the minimum value of the objective function in F ( . ) , which is given as,
[ F , j ] = min ( F ( X , O ) ) .
If the value of F is less than the swarm’s best solution G b e s t , then update S best ; otherwise, retain the old best, which is given as,
S best = ψ ( F ) = X j , if F < G b e s t S best , otherwise .
To further randomize the process, we have included another condition to the update d and τ . We have included a random variable r = rand [ 0 , 1 ] ; if r < 0.5 , then we will update the values of d and τ . The pseudocode is shown in Algorithm 2.
Algorithm 2 DBAS Algorithm.
  • Objective Function:
  • F ( X , O )
  • DBAS Initialization:
  • η = 0.99
  • d = 0.9
  • d 1 = 0.9
  • d 2 = 0.9
  • τ = 0.9
  • Portfolio Initialization:
  • T = i t e r        %Iterations
  • D = p o p        %Total Portfolios
  • K = d i m        %No. of Stocks In Each Portfolio
  • X = randn ( D , K )
  • X best = X
  • O = [ O 1 , O 2 , O 3 , , O K ]
  • % O K Includes Parameters For k-th Portfolio
  • % O K = [ M K , C K ] M K : Mean C K : Covariance
  • P min = F ( X , P )
  • [ G b e s t , ind ] = min ( F ( X , P )
  • S b e s t = X ind
  • For i = 1 : T
  •         b = randn ( D , K )
  •         b 1 = randn ( 1 , 1 )
  •         b 2 = randn ( 1 , 1 )
  •         b 3 = randn ( 1 , 1 )
  •        Compute V using (36)
  •        Compute X r and X l using (37) and (38)
  •        Compute F r and F l suing (39) and (40)
  •        Compute X using (42)
  •        For j = 1 : D
  •                F = F j ( X j , O j )
  •               If F < P m i n j :
  •                       P m i n j = F
  •                       P b e s t j = X j
  •               End If
  •               
  •        End For
  •        
  •         [ F , ind ] = min ( F ( X , O ) )
  •        
  •        If F < G b e s t :
  •                G b e s t = F
  •                s best = X ind
  •                S best = repmat ( s best , D , 1 )
  •        End If
  •         r = rand
  •        If r < 0.5 :
  •                d = η d + 0.01
  •                d 1 = η d 1 + 0.01
  •                d 2 = η d 2 + 0.01
  •                τ = η τ
  •        End If
  •               
  • End For

3.2.2. DBAS Privacy Policy

Each particle in DBAS deals with a single portfolio. A particle alone has access to the private data of the assigned portfolio, including: stock names, investment amount, mean of the portfolio, and variance of the portfolio. The portfolio is like a black box. The particle X j will enter the black box F j ( X j , O ) , will compute the objective function of the portfolio and will give out the objective function value F j while keeping the privacy of the private database and portfolio information. The objective function value, i.e., gradient, will be available to all the other particles and based on all the gradients, i.e., objective function values of all particles, the DBAS algorithm will compute the swarm’s best solution to decide the next step. It helps the DBAS to efficiently find the optimal selection of all portfolios without violating the confidentiality and privacy of portfolios. The concept of DBAS privacy is shown in Figure 3.

4. Simulation Results

In this section, we will discuss the stock data used for the multiple portfolio selection problem. Furthermore, the DBAS algorithm will be employed to solve the optimization problem formulated in the problem formulation selection.

4.1. Stock Data

For the simulation, we collected real-world stock data from the NASDAQ stock market in 2017 . The data comprise several hundred stock companies. A total of 25 known companies were selected for the simulation. Then, 200 days worth of stock closing prices were collected for each company to understand the data trend in more detail and to provide more robust portfolios. All the 25 companies are shown in Table 2. The volatility of the stock market is shown in Figure 4. It can be seen how abruptly the stock prices (return rate) change over time.
In our simulation, there are four multi-portfolio optimization problems, i.e., 5 stock companies, 10 stock companies, 15 stock companies, and 20 stock companies. In each multi-portfolio selection problem, we will be optimizing three portfolios. For instance, in the five stock companies multi-portfolio selection problem, DBAS will optimize three portfolios, each looking for an optimal selection of stock companies. Considering the stochastic nature of the DBAS algorithm and how results can vary with each experiment, we performed simulation on each portfolio for 10 times, and the average or mean result is obtained. The computational resources used in the simulations are given below:
  • Software: MATLAB;
  • System: MacBook Pro;
  • Processor: 2.2 GHz;
  • Cores: 6–Core Intel Core i7;
  • Memory: 6 GB 2400 MHz DDR4;
  • Graphics: Radeon Pro 555X 4 GB.

4.2. Three Portfolios of Five Stock Companies

For the first simulation category, three portfolios were selected, each consisting of five companies. The objective is to optimize the three objective functions (24)–(27), i.e., portfolios, such that the raw data of each portfolio remain private and without sharing the private databases that DBAS optimizes. There are a few hyper-parameters in DBAS, i.e., antenna length d and particle step-size τ . We selected the values of these hyper-parameters through trial and error, e.g., τ = 0.900 , d = 0.999 , and η = 0.900 , which are shown in Table 3. In addition, a few other parameters were selected for the simulation, i.e., total iterations T = 500 , swarm population D = 3 , dimension of each portfolio K = 5 .
After setting all of the parameters. DBAS is ready to optimize the portfolio problem mentioned in (24)–(27). The simulation results are evaluated based on three parameters: swarm convergence G b e s t , particles convergence P best , Sharpe ratio S R , and the total investment constraint ( 1 + α ) E = 1 . The results are shown in Table 3 and the convergence profiles of G b e s t , P best , S R and ( 1 + α ) E = 1 are shown in Figure 5, Figure 6, Figure 7 and Figure 8a. For t h r e e portfolios of f i v e stock companies, the swarm best solution turns out to be 10 7 , and the convergence profile in Figure 5a shows how efficiently and quick DBAS converges to the optimal solution. Likewise, the convergence of each particle, i.e., each portfolio, is also robust, as shown in Figure 6a. However, the convergence rates do not give us the relationship between the profit and risk. For that, the Sharpe ratio curve was computed. It can be seen in Figure 7a that each portfolio has achieved substantial profit with minimal risk involved. Finally, it is essential that the investment in stocks remains around 1 . We have shown the convergence profile of ( 1 + α ) E = 1 in Figure 8a, and it can be seen that all three investments converge to around 1 , which is required. The detailed results are also shown in Table 3.
The main takeaway from the results is that DBAS can converge multi-portfolios and ensures the clients’ secrecy and privacy. In the simulated results, it can be seen that each particle in DBAS only shares the objective function value P b e s t j , i.e., gradient with other particles, whereas the private information of the portfolio remains inaccessible to other portfolios.

4.3. Three Portfolios of 10 Stock Companies

For the second simulation scenario, we again selected three portfolios, each consisting of 10 companies. The values of hyper-parameters were once again chosen through trial and error, which are also shown in Table 3. In addition, the other parameters for the simulation include total Iterations T = 500 , swarm population D = 3 , dimension of each portfolio K = 10 .
The simulation results are shown in Table 3, and the convergence profiles of G b e s t , P best , S R and ( 1 + α ) E = 1 are shown in Figure 5, Figure 6, Figure 7 and Figure 8b. For the t h r e e portfolios of 10 stock companies, the swarm best solution turns out to be 10 6 . Its convergence profile is shown in Figure 5b. Likewise, the convergence of each particle, i.e., each portfolio, is also robust and shown in Figure 6b. Their convergence values turn out to be optimal, i.e., P best = [ 10 6 , 10 6 , 10 4 ] . The Sharpe ratio curve is shown in Figure 7b, and it can be seen that each portfolio has achieved substantial profit with minimal risk. We have also shown the convergence profile of ( 1 + α ) E = 1 in Figure 8b, where it can be seen that all three investments converge to around 1 , which is again required. The detailed results are also shown in Table 3.

4.4. Three Portfolios of 15 Stock Companies

For the third simulation scenario, we again selected three portfolios, each consisting of 15 companies. Once again, the values of the hyper-parameters were chosen through trial and error, which are also shown in Table 3.
The simulation results are shown in Table 3 and the convergence profiles of G b e s t , P best , S R and ( 1 + α ) E = 1 are shown in Figure 5, Figure 6, Figure 7 and Figure 8c. For the t h r e e portfolios of 15 stock companies, the swarm’s best solution turns out to be 10 4 . Its convergence profile is shown in Figure 5c. Likewise, the convergence of each particle, i.e., each portfolio, is also robust and shown in Figure 6c. Their convergence values turn out to be again optimal, i.e., P best = [ 10 4 , 0.020 , 0.001 ] . The Sharpe ratio curve is shown in Figure 7b, and it can be seen that each portfolio has again achieved substantial profit with minimal risk. We have also shown the convergence profile of ( 1 + α ) E = 1 in Figure 8c, and it can be seen that all three investments converge to around 1 , which is required. The detailed results are also shown in Table 3.

4.5. Three Portfolios of 20 Stock Companies

For the fourth and the last simulation scenario, we selected three portfolios, each consisting of 20 stock companies. Hyper-parameters are also shown in Table 3.
The simulation results are shown in Table 3 and the convergence profiles of G b e s t , P best , S R and ( 1 + α ) E = 1 are shown in Figure 5, Figure 6, Figure 7 and Figure 8d. For t h r e e portfolios of 15 stock companies, the swarm’s best solution turns out to be 10 7 . Its convergence profile is shown in Figure 5d. Likewise, the convergence of each particle, i.e., each portfolio, is also robust and shown in Figure 6d. Their convergence values turns out to be optimal, i.e., P best = [ 10 7 , 10 7 , 10 6 ] . The Sharpe ratio curve is shown in Figure 7b, and it can be seen that the ratio is again substantially high. We have also shown the convergence profile of ( 1 + α ) E = 1 in Figure 8d, and it can be seen that all three investments converge to around 1 , which is required. The detailed results are also shown in Table 3.
The primary limitation of DBAS is the “Virtual particle,” which means that for each iteration, we have to compute the objective function value for three times for F r , F l , and F . It could make it computationally expensive and consume time. In the future, we will work on eliminating the “virtual particle” limitation, and we will also include some other meta-heuristic algorithms such as GSK [57] to compare with. Likewise, we will work on some additional statistical analysis including non-parametric statistical tests such as Wilcoxon Signed Rank Test and Friedman.

5. Conclusions

In this paper, a framework to ensure the privacy of stock portfolios in the multi-portfolio selection problem was proposed. This involved the design of a distributed variant of the BAS algorithm known as Distributed Beetle Antennae Search (DBAS). DBAS combines the swarm-like behavior of PSO with BAS’s updating rule. Each particle in the swarm is assigned to optimize a single portfolio, and the particles only share the gradient of their respective portfolio with the swarm, avoiding the exposure of the private database and stock information of portfolios. The algorithm was then simulated on real-world stock data extracted from the NASDAQ stock market for 25 stock companies. The simulation is divided into four categories, and in each category, three portfolio models were optimized. The simulation results show that DBAS not only ensures the privacy of portfolios but is also robust, computationally economical, and time efficient.

Author Contributions

A.T.K.: methodology, software, validation; X.C.: Conceptualization, resources; B.L.: funding acquisition, formal analysis; A.F.: data curation, visualization, writing—review and editing. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the National Natural Science Foundation of China under grant 61966014.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Bienstock, D. Computational study of a family of mixed-integer quadratic programming problems. Math. Program. 1996, 74, 121–140. [Google Scholar] [CrossRef]
  2. Ertenlice, O.; Kalayci, C.B. A survey of swarm intelligence for portfolio optimization: Algorithms and applications. Swarm Evol. Comput. 2018, 39, 36–52. [Google Scholar] [CrossRef]
  3. Perrin, S.; Roncalli, T. Machine learning optimization algorithms & portfolio allocation. In Machine Learning for Asset Management: New Developments and Financial Applications; Wiley: Hoboken, NJ, USA, 2020; pp. 261–328. [Google Scholar]
  4. Ta, V.D.; Liu, C.M.; Tadesse, D.A. Portfolio optimization-based stock prediction using long-short term memory network in quantitative trading. Appl. Sci. 2020, 10, 437. [Google Scholar] [CrossRef]
  5. Leung, M.F.; Wang, J. Minimax and Biobjective Portfolio Selection Based on Collaborative Neurodynamic Optimization. IEEE Trans. Neural Netw. Learn. Syst. 2021, 32, 2825–2836. [Google Scholar] [CrossRef] [PubMed]
  6. Kadry, S.; Smaili, K. A design and implementation of a wireless iris recognition attendance management system. Inf. Technol. Control. 2007, 36, 323–329. [Google Scholar]
  7. Kadry, S. On the generalization of probabilistic transformation method. Appl. Math. Comput. 2007, 190, 1284–1289. [Google Scholar] [CrossRef]
  8. Katsikis, V.N. Computational methods in portfolio insurance. Appl. Math. Comput. 2007, 189, 9–22. [Google Scholar] [CrossRef]
  9. Zhang, Y.; Gong, H.; Yang, M.; Li, J.; Yang, X. Stepsize Range and Optimal Value for Taylor–Zhang Discretization Formula Applied to Zeroing Neurodynamics Illustrated via Future Equality-Constrained Quadratic Programming. IEEE Trans. Neural Netw. Learn. Syst. 2019, 30, 959–966. [Google Scholar] [CrossRef]
  10. Liao, B.; Zhang, Y. Different Complex ZFs Leading to Different Complex ZNN Models for Time-Varying Complex Generalized Inverse Matrices. IEEE Trans. Neural Netw. Learn. Syst. 2014, 25, 1621–1631. [Google Scholar] [CrossRef]
  11. Katsikis, V.N. An Alternative Computational Method for Finding the Minimum-Premium Insurance Portfolio. In In Proceedings of the AIP Conference Proceedings, Penang, Malaysia, 10–12 April 2016; AIP Publishing LLC: Melville, NY, USA, 2016; Volume 1738, p. 480020. [Google Scholar]
  12. Stanimirović, P.S.; Katsikis, V.N.; Li, S. Integration enhanced and noise tolerant ZNN for computing various expressions involving outer inverses. Neurocomputing 2019, 329, 129–143. [Google Scholar] [CrossRef]
  13. Lai, Z.R.; Dai, D.Q.; Ren, C.X.; Huang, K.K. A Peak Price Tracking-Based Learning System for Portfolio Selection. IEEE Trans. Neural Netw. Learn. Syst. 2018, 29, 2823–2832. [Google Scholar] [CrossRef] [PubMed]
  14. Stanimirović, P.S.; Ćirić, M.; Katsikis, V.N.; Li, C.; Ma, H. Outer and (b, c) inverses of tensors. Linear Multilinear Algebra 2020, 68, 940–971. [Google Scholar] [CrossRef]
  15. Brajević, I.; Ignjatović, J. An upgraded firefly algorithm with feasibility-based rules for constrained engineering optimization problems. J. Intell. Manuf. 2019, 30, 2545–2574. [Google Scholar] [CrossRef]
  16. Brajević, I.; Stanimirović, P. An improved chaotic firefly algorithm for global numerical optimization. Int. J. Comput. Intell. Syst. 2018, 12, 131–148. [Google Scholar] [CrossRef]
  17. Lai, Z.R.; Dai, D.Q.; Ren, C.X.; Huang, K.K. Radial Basis Functions With Adaptive Input and Composite Trend Representation for Portfolio Selection. IEEE Trans. Neural Netw. Learn. Syst. 2018, 29, 6214–6226. [Google Scholar] [CrossRef] [PubMed]
  18. O’Cinneide, C.; Scherer, B.; Xu, X. Pooling Trades in a Quantitative Investment Process. J. Portf. Manag. 2006, 32, 33–43. [Google Scholar] [CrossRef]
  19. Liao, B.; Hua, C.; Can, X.; Katsikis, V.N.; Li, S. Complex Noise-Resistant Zeroing Neural Network for Computing Complex Time-Dependent Lyapunov Equation. Mathematics 2022, 10, 2817. [Google Scholar] [CrossRef]
  20. Ji, R.; Lejeune, M.A. Risk-budgeting multi-portfolio optimization with portfolio and marginal risk constraints. Ann. Oper. Res. 2018, 262, 547–578. [Google Scholar] [CrossRef]
  21. Savelsbergh, M.W.P.; Stubbs, R.A.; Vandenbussche, D. Multiportfolio Optimization: A Natural Next Step. In Handbook of Portfolio Construction; Guerard, J.B., Ed.; Springer US: Boston, MA, USA, 2010; pp. 565–581. [Google Scholar] [CrossRef]
  22. Iancu, D.; Trichakis, N. Fairness and Efficiency in Multiportfolio Optimization. Oper. Res. 2014, 62, 1285–1301. [Google Scholar] [CrossRef]
  23. Jing, F. Information pooling game in multi-portfolio optimization. Contrib. Game Theory Manag. 2017, 10, 27–41. [Google Scholar]
  24. Zhang, G.; Zhang, Q. Multiportfolio optimization with CVaR risk measure. J. Data Inf. Manag. 2019, 1, 91–106. [Google Scholar] [CrossRef] [Green Version]
  25. Yu, G.; Cai, X.; Long, D.Z. Multi-Portfolio Optimization: A Fairness-Aware Target-Oriented Model 2020. Available online: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3740629 (accessed on 30 July 2022).
  26. Khan, A.H.; Li, S.; Luo, X. Obstacle avoidance and tracking control of redundant robotic manipulator: An RNN-based metaheuristic approach. IEEE Trans. Ind. Informatics 2019, 16, 4670–4680. [Google Scholar] [CrossRef]
  27. Khan, A.H.; Cao, X.; Li, S.; Katsikis, V.N.; Liao, L. BAS-ADAM: An ADAM based approach to improve the performance of beetle antennae search optimizer. IEEE/CAA J. Autom. Sin. 2020, 7, 461–471. [Google Scholar] [CrossRef]
  28. Khan, A.T.; Li, S.; Cao, X. Control framework for cooperative robots in smart home using bio-inspired neural network. Measurement 2021, 167, 108253. [Google Scholar] [CrossRef]
  29. Khan, A.T.; Li, S. Human guided cooperative robotic agents in smart home using beetle antennae search. Sci. China Inf. Sci. 2021, 65, 122204. [Google Scholar] [CrossRef]
  30. Khan, A.T.; Li, S.; Li, Z. Obstacle avoidance and model-free tracking control for home automation using bio-inspired approach. In Advanced Control for Applications: Engineering and Industrial Systems; Wiley: Hoboken, NJ, USA, 2021; p. e.63. [Google Scholar]
  31. Khan, A.T.; Li, S.; Zhou, X. Trajectory optimization of 5-link biped robot using beetle antennae search. IEEE Trans. Circuits Syst. II Express Briefs 2021, 68, 3276–3280. [Google Scholar] [CrossRef]
  32. Khan, A.T.; Cao, X.; Li, Z.; Li, S. Enhanced Beetle Antennae Search with Zeroing Neural Network for online solution of constrained optimization. Neurocomputing 2021, 447, 294–306. [Google Scholar] [CrossRef]
  33. Zivkovic, M.; Bacanin, N.; Venkatachalam, K.; Nayyar, A.; Djordjevic, A.; Strumberger, I.; Al-Turjman, F. COVID-19 cases prediction by using hybrid machine learning and beetle antennae search approach. Sustain. Cities Soc. 2021, 66, 102669. [Google Scholar] [CrossRef]
  34. Wu, Q.; Shen, X.; Jin, Y.; Chen, Z.; Li, S.; Khan, A.H.; Chen, D. Intelligent beetle antennae search for UAV sensing and avoidance of obstacles. Sensors 2019, 19, 1758. [Google Scholar] [CrossRef]
  35. Li, X.; Jiang, H.; Niu, M.; Wang, R. An enhanced selective ensemble deep learning method for rolling bearing fault diagnosis with beetle antennae search algorithm. Mech. Syst. Signal Process. 2020, 142, 106752. [Google Scholar] [CrossRef]
  36. Huang, J.; Duan, T.; Zhang, Y.; Liu, J.; Zhang, J.; Lei, Y. Predicting the permeability of pervious concrete based on the beetle antennae search algorithm and random forest model. Adv. Civ. Eng. 2020, 2020, 8863181. [Google Scholar] [CrossRef]
  37. Sun, Y.; Zhang, J.; Li, G.; Wang, Y.; Sun, J.; Jiang, C. Optimized neural network using beetle antennae search for predicting the unconfined compressive strength of jet grouting coalcretes. Int. J. Numer. Anal. Methods Geomech. 2019, 43, 801–813. [Google Scholar] [CrossRef]
  38. Khan, A.T.; Cao, X.; Li, S.; Katsikis, V.N.; Brajevic, I.; Stanimirovic, P.S. Fraud detection in publicly traded US firms using Beetle Antennae Search: A machine learning approach. Expert Syst. Appl. 2021, 191, 116148. [Google Scholar] [CrossRef]
  39. Khan, A.T.; Cao, X.; Brajevic, I.; Stanimirovic, P.S.; Katsikis, V.N.; Li, S. Non-linear Activated Beetle Antennae Search: A Novel Technique for Non-Convex Tax-Aware Portfolio Optimization Problem. Expert Syst. Appl. 2022, 197, 116631. [Google Scholar] [CrossRef]
  40. Khan, A.H.; Cao, X.; Xu, B.; Li, S. Beetle Antennae Search: Using Biomimetic Foraging Behaviour of Beetles to Fool a Well-Trained Neuro-Intelligent System. Biomimetics 2022, 7, 84. [Google Scholar] [CrossRef]
  41. Liao, B.; Han, L.; He, Y.; Cao, X.; Li, J. Prescribed-Time Convergent Adaptive ZNN for Time-Varying Matrix Inversion under Harmonic Noise. Electronics 2022, 11, 1636. [Google Scholar] [CrossRef]
  42. Liao, B.; Huang, Z.; Cao, X.; Li, J. Adopting Nonlinear Activated Beetle Antennae Search Algorithm for Fraud Detection of Public Trading Companies: A Computational Finance Approach. Mathematics 2022, 10, 2160. [Google Scholar] [CrossRef]
  43. Khan, A.T.; Cao, X.; Li, Z.; Li, S. Evolutionary Computation Based Real-time Robot Arm Path-planning Using Beetle Antennae Search. EAI Endorsed Trans. Robot. 2022, 1, 1–10. [Google Scholar] [CrossRef]
  44. Chen, Z.; Walters, J.; Xiao, G.; Li, S. An Enhanced GRU Model With Application to Manipulator Trajectory Tracking. EAI Endorsed Trans. Robot. 2022, 1, 1–11. [Google Scholar] [CrossRef]
  45. Ijaz, M.U.; Khan, A.T.; Li, S. Bio-inspired BAS: Run-time Path-planning And The Control of Differential Mobile Robot. EAI Endorsed Trans. Robot. 2022, 1, 1–10. [Google Scholar] [CrossRef]
  46. Hameed, S.W. Peaks Detector Algorithm after CFAR for Multiple Targets Detection. EAI Endorsed Trans. Robot. 2022, 1, 1–7. [Google Scholar] [CrossRef]
  47. Khan, A.T.; Cao, X.; Li, S. Dual Beetle Antennae Search system for optimal planning and robust control of 5-link biped robots. J. Comput. Sci. 2022, 60, 101556. [Google Scholar] [CrossRef]
  48. Khan, A.H.; Cao, X.; Li, S. Obstacle avoidance based decision making and management of articulated agents. In Management and Intelligent Decision-Making in Complex Systems: An Optimization-Driven Approach; Springer: Berlin/Heidelberg, Germany, 2021; pp. 1–29. [Google Scholar]
  49. Khan, A.H. Neural Network and Metaheuristic Based Learning and Control of Articulated Robotic Agents. Ph.D. Thesis, Hong Kong Polytechnic University, Hong Kong, China, 2021. [Google Scholar]
  50. Khan, A.T.; Cao, X.; Li, S.; Hu, B.; Katsikis, V.N. Quantum beetle antennae search: A novel technique for the constrained portfolio optimization problem. Sci. China Inf. Sci. 2020, 64, 152204. [Google Scholar] [CrossRef]
  51. Khan, A.H.; Cao, X.; Katsikis, V.N.; Stanimirović, P.; Brajević, I.; Li, S.; Kadry, S.; Nam, Y. Optimal portfolio management for engineering problems using nonconvex cardinality constraint: A computing perspective. IEEE Access 2020, 8, 57437–57450. [Google Scholar] [CrossRef]
  52. Chen, T.; Zhu, Y.; Teng, J. Beetle swarm optimisation for solving investment portfolio problems. J. Eng. 2018, 2018, 1600–1605. [Google Scholar] [CrossRef]
  53. Katsikis, V.N.; Mourtas, S.D.; Stanimirović, P.S.; Li, S.; Cao, X. Time-Varying Mean-Variance Portfolio Selection under Transaction Costs and Cardinality Constraint Problem via Beetle Antennae Search Algorithm (BAS), Proceedings of the Operations Research Forum, Online, 31 August–3 September; Springer: Berlin/Heidelberg, Germany, 2021; Volume 2, pp. 1–26. [Google Scholar]
  54. Khan, A.R.; Khan, A.T.; Salik, M.; Bakhsh, S. An optimally configured HP-GRU model using hyperband for the control of wall following robot. Int. J. Robot. Control Syst. 2021, 1, 66–74. [Google Scholar] [CrossRef]
  55. Zhu, H.; Wang, Y.; Wang, K.; Chen, Y. Particle Swarm Optimization (PSO) for the constrained portfolio optimization problem. Exp. Syst. Appl. 2011, 38, 10161–10169. [Google Scholar] [CrossRef]
  56. Jiang, X.; Li, S. BAS: Beetle Antennae Search Algorithm for Optimization Problems. arXiv 2017, arXiv:1710.10724. [Google Scholar] [CrossRef]
  57. Mohamed, A.W.; Hadi, A.A.; Mohamed, A.K. Gaining-sharing knowledge based algorithm for solving optimization problems: A novel nature-inspired algorithm. Int. J. Mach. Learn. Cybern. 2020, 11, 1501–1529. [Google Scholar] [CrossRef]
Figure 1. (a) shows the local learning where each BAS algorithm is assigned to one portfolio, and the objective is to optimize the respective portfolio. (b) shows the swarm architecture, where the swarm has access to a public database, where particles coordinate to obtain an optimal solution without considering the privacy of the database. (c) shows the distributed architecture, where particles only share the parameters, i.e., gradients, instead of the private information of the portfolios, i.e., private database, stock information, and client information.
Figure 1. (a) shows the local learning where each BAS algorithm is assigned to one portfolio, and the objective is to optimize the respective portfolio. (b) shows the swarm architecture, where the swarm has access to a public database, where particles coordinate to obtain an optimal solution without considering the privacy of the database. (c) shows the distributed architecture, where particles only share the parameters, i.e., gradients, instead of the private information of the portfolios, i.e., private database, stock information, and client information.
Biomimetics 07 00124 g001
Figure 2. The schematic of the DBAS algorithm for the multi-portfolio selection problem. It consists of 3 portfolios and clearly shows that each particle [ X 1 , X 2 , X 3 ] optimizes portfolio P F 1 , P F 2 , and P F 3 , respectively. It can be seen that particles do not share any portfolio database or stock information among the swarm, which ensures privacy.
Figure 2. The schematic of the DBAS algorithm for the multi-portfolio selection problem. It consists of 3 portfolios and clearly shows that each particle [ X 1 , X 2 , X 3 ] optimizes portfolio P F 1 , P F 2 , and P F 3 , respectively. It can be seen that particles do not share any portfolio database or stock information among the swarm, which ensures privacy.
Biomimetics 07 00124 g002
Figure 3. Each particle in DBAS is assigned to a single portfolio, and the particle alone has access to the private database of the portfolio. In DBAS, the particle in swarm only shares the objective function values F , i.e., gradients.
Figure 3. Each particle in DBAS is assigned to a single portfolio, and the particle alone has access to the private database of the portfolio. In DBAS, the particle in swarm only shares the objective function values F , i.e., gradients.
Biomimetics 07 00124 g003
Figure 4. The return rate for all the 25 companies for 200 days of NASDAQ stock data in 2017. (ae) represents the data of companies 1–5, companies 6–10, companies 11–16, companies 16–20, and companies 20–25, respectively.
Figure 4. The return rate for all the 25 companies for 200 days of NASDAQ stock data in 2017. (ae) represents the data of companies 1–5, companies 6–10, companies 11–16, companies 16–20, and companies 20–25, respectively.
Biomimetics 07 00124 g004
Figure 5. The sharp and fast convergence of DBAS swarm’s G b e s t toward the minima while selecting optimal configuration of all 3 portfolios. It also shows the comparison with PSO and GA algorithms, and it can be seen that the convergence profile of DBAS is fast compared to others. (a) shows the global convergence profile of all algorithms. Likewise, (b) shows the convergence of BAS, PSO, and GA. And finally, (c,d) shows the convergence of 15 and 20 stocks of all three algorithms respectively.
Figure 5. The sharp and fast convergence of DBAS swarm’s G b e s t toward the minima while selecting optimal configuration of all 3 portfolios. It also shows the comparison with PSO and GA algorithms, and it can be seen that the convergence profile of DBAS is fast compared to others. (a) shows the global convergence profile of all algorithms. Likewise, (b) shows the convergence of BAS, PSO, and GA. And finally, (c,d) shows the convergence of 15 and 20 stocks of all three algorithms respectively.
Biomimetics 07 00124 g005
Figure 6. The sharp and fast convergence of DBAS particles P b e s t toward their respective minimas while selecting an optimal configuration of their portfolios. Since we are dealing with three portfolios, we can see the three convergence profiles. (a) shows the global convergence profile of all algorithms. Likewise, (b) shows the convergence of BAS, PSO, and GA. And finally, (c,d) shows the convergence of 15 and 20 stocks of all three algorithms respectively.
Figure 6. The sharp and fast convergence of DBAS particles P b e s t toward their respective minimas while selecting an optimal configuration of their portfolios. Since we are dealing with three portfolios, we can see the three convergence profiles. (a) shows the global convergence profile of all algorithms. Likewise, (b) shows the convergence of BAS, PSO, and GA. And finally, (c,d) shows the convergence of 15 and 20 stocks of all three algorithms respectively.
Biomimetics 07 00124 g006
Figure 7. The rising trend of Sharpe ratio S R as the DBAS moves towar the optimal solution of portfolio selection problem. The higher value of S R indicates that each portfolio has a higher profit ξ ( E ) and lower risk υ ( E ) , as shown in (23). (a) shows the convergence profile of sharpe-ratio of 5 stocks. Likewise, (b) shows the convergence of sharpe-ratio of 10 stocks. And finally, (c,d) shows the convergence of sharpe-ratio of 15 and 20 stocks respectively.
Figure 7. The rising trend of Sharpe ratio S R as the DBAS moves towar the optimal solution of portfolio selection problem. The higher value of S R indicates that each portfolio has a higher profit ξ ( E ) and lower risk υ ( E ) , as shown in (23). (a) shows the convergence profile of sharpe-ratio of 5 stocks. Likewise, (b) shows the convergence of sharpe-ratio of 10 stocks. And finally, (c,d) shows the convergence of sharpe-ratio of 15 and 20 stocks respectively.
Biomimetics 07 00124 g007
Figure 8. It shows that as the portfolio selection problem converges toward the optimal solution, the sum of normalized investment ( 1 + α ) E 1 . There are some spikes in the beginning; however, all the particles of the respective portfolio converge to 1 . (a) shows the convergence of normalized investment ( 1 + α ) E 1 of 5 stocks. Likewise, (b) shows the convergence of normalized investment of 10 stocks. And finally, (c,d) shows the convergence of normalized investment of 15 and 20 stocks respectively.
Figure 8. It shows that as the portfolio selection problem converges toward the optimal solution, the sum of normalized investment ( 1 + α ) E 1 . There are some spikes in the beginning; however, all the particles of the respective portfolio converge to 1 . (a) shows the convergence of normalized investment ( 1 + α ) E 1 of 5 stocks. Likewise, (b) shows the convergence of normalized investment of 10 stocks. And finally, (c,d) shows the convergence of normalized investment of 15 and 20 stocks respectively.
Biomimetics 07 00124 g008
Table 1. Hyper-Parameters.
Table 1. Hyper-Parameters.
NameNotationValues (Default)
Antennae Lengthd 0.9
Step Size τ 0.9
Personal Antennae Length d 1 0.9
Global Antennae Length d 2 0.9
Step Multiplier η 0.99
Table 2. NASDAQ Symbols of The Stock Companies In Portfolio Selection.
Table 2. NASDAQ Symbols of The Stock Companies In Portfolio Selection.
Companies 1–5GOOGLMSFTAMZNFBIBM
Companies 6–10AAAAAUAABAAAC
Companies 11–15AADRAALAAMCAAMEAAN
Companies 16–20NCANCIQATQDCODI
Companies 20–25EMREMXCFETFCABBV
Table 3. DBAS Convergence Profile for Different Portfolios.
Table 3. DBAS Convergence Profile for Different Portfolios.
Companies: 5 Companies: 10
Portfolio 1Portfolio 2Portfolio 3Portfolio 1Portfolio 2Portfolio 3
n555789
G b e s t 10 7 10 7 10 7 10 6 10 6 10 6
P best 10 6 10 7 10 6 10 6 10 6 10 4
S R 72.348 24.804 39.582 9.108 5.319 3.151
( 1 + α ) E = 1 1.116 1.179 1.065 1.153 1.140 0.964
DBAS:
η 0.900 0.900
d = d 1 = d 2 0.999 0.900
τ 0.900 0.900
sgn [ 1 , 1 ] [ 1 , 1 ]
Some Additional Parameters:
T 500 500
D 3 3
K 5 5
H ( E , σ ) Eval. 4500 4500
Companies: 15 Companies: 20
Portfolio 1Portfolio 2Portfolio 3Portfolio 1Portfolio 2Portfolio 3
n151210152018
G b e s t 10 4 10 4 10 4 10 7 10 7 10 7
P best 10 4 0.020 0.001 10 7 10 7 10 6
S R 7.088 3.667 4.667 58.71 21.56 191.6
( 1 + α ) E = 1 0.930 1.088 1.103 0.9893 1.136 1.021
DBAS:
η 0.850 0.950
d = d 1 = d 2 0.900 0.900
τ 0.850 0.850
sgn [ 1 , 1 ] [ 1 , 1 ]
Some Additional Parameters:
T 500 500
D 3 3
K 5 5
H ( E , σ ) Eval. 4500 4500
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Khan, A.T.; Cao, X.; Liao, B.; Francis, A. Bio-inspired Machine Learning for Distributed Confidential Multi-Portfolio Selection Problem. Biomimetics 2022, 7, 124. https://doi.org/10.3390/biomimetics7030124

AMA Style

Khan AT, Cao X, Liao B, Francis A. Bio-inspired Machine Learning for Distributed Confidential Multi-Portfolio Selection Problem. Biomimetics. 2022; 7(3):124. https://doi.org/10.3390/biomimetics7030124

Chicago/Turabian Style

Khan, Ameer Tamoor, Xinwei Cao, Bolin Liao, and Adam Francis. 2022. "Bio-inspired Machine Learning for Distributed Confidential Multi-Portfolio Selection Problem" Biomimetics 7, no. 3: 124. https://doi.org/10.3390/biomimetics7030124

APA Style

Khan, A. T., Cao, X., Liao, B., & Francis, A. (2022). Bio-inspired Machine Learning for Distributed Confidential Multi-Portfolio Selection Problem. Biomimetics, 7(3), 124. https://doi.org/10.3390/biomimetics7030124

Article Metrics

Back to TopTop