Industrial Process Soft Sensor Method Based on Federated Stochastic Configuration Network

Information

  • Patent Application
  • 20240027976
  • Publication Number
    20240027976
  • Date Filed
    June 23, 2022
    2 years ago
  • Date Published
    January 25, 2024
    10 months ago
Abstract
Provided is an industrial process soft sensor method based on a federated stochastic configuration network, including: acquiring historical industrial process auxiliary data and corresponding product quality data; finding out optimal hidden layer parameters; processing, by a central server, to obtain global parameters, and downloading same to each factory as hidden layer parameters for a local model; obtaining output weights of a current network through an optimization algorithm, and uploading same to the server for weighted aggregation; and when the number of hidden layer nodes in a current network exceeds a maximum given value or a residual in current iteration meets an expected tolerance, completing modeling to obtain the global federated stochastic configuration network without adding new nodes. The present disclosure effectively improves prediction performance of models and protects data privacy, thus meeting industrial process soft sensor requirements.
Description
TECHNICAL FIELD

The present disclosure relates to the technical field of soft sensor of industrial process product quality indicators, in particular to an industrial process soft sensor method based on a federated stochastic configuration network.


BACKGROUND ART

In order to lower production cost and improve production efficiency and quality, a soft sensor technology that can accurately predict the product quality index in real time is an important research direction in the field of complex industrial process control today, and has a far-reaching significance and a practical application value. Due to the problem of insufficient data in the field of complex industry, if multi-party enterprises do not exchange and integrate data, the effect indicators obtained by artificial intelligence model training and prediction are not ideal and difficult to apply. With the further development of big data, paying attention to data privacy and security has become a worldwide trend. Therefore, all countries are strengthening the protection of data security and privacy. A new law, General Data Protection Regulation (GDPR), recently introduced by the European Union shows that the increasingly strict management of user data privacy and security will be a world trend, which brings unprecedented challenges to the field of artificial intelligence. Federated learning, as a machine learning framework, can achieve a unified machine learning model trained from local data of multiple participants under the premise of protecting data privacy. Therefore, in privacy-sensitive scenarios (including financial industry, industry and many other data perception scenarios), the federated learning has shown excellent application prospects. At present, the federated learning is mainly combined with deep learning, but a deep algorithm itself has some bottleneck problems that are difficult to solve, such as falling into local minima, strong dependence on the setting of initial parameters, gradient disappearance and gradient explosion, so that it is difficult to give full play to the strong learning ability of neural networks. As an advanced single hidden layer random weight network with universal approximation property, a stochastic configuration network has been proved to have obvious advantages in compactness, fast learning and generalization performance by a large number of regression and classification experiments.


SUMMARY OF THE INVENTION

The objective of the present disclosure: in view of small amount of data of existing industrial process products and the difficulty in concentrating data training of all parties, the present disclosure provides an industrial process soft sensor method based on a federated stochastic configuration network, including the following steps:

    • step 1. acquiring, by each factory, historical industrial process auxiliary data and corresponding product quality data, and initializing parameters required for local stochastic configuration network model learning, each factory being a client, and each client putting hidden layer nodes that meet local data constraints into a candidate pool, selecting best candidate nodes from the candidate pool, and uploading same to a central server;
    • step 2. performing, by the central server, weighted aggregation or greedy selection on the uploaded best candidate nodes to obtain global parameters, and downloading the global parameters to each client as hidden layer parameters for a local stochastic configuration network model;
    • step 3. after obtaining the global parameters, calculating, by each client, newly added hidden layer outputs, and uploading output weights to the central server for weighted aggregation, and continuing to start a next round of training;
    • step 4. when the number of hidden layer nodes in a current network exceeds a maximum given value or a residual in current iteration meets an expected tolerance, adding no new nodes, and stopping federated training to obtain a trained global model; and
    • step 5. distributing the trained global model, by the server, to each local factory as a soft sensor model.


In step 1, a total of K factories are set to participate in the federated training, and for the kth factory, nk groups of historical industrial process auxiliary data Xk and the corresponding product quality data Tk are obtained, denoted as {Xk,Tk}; the historical industrial process auxiliary data xik in the ith group of the kth factory contains d auxiliary process variables, the corresponding product quality data ti contains m product quality data, and if the value of i is 1 to nk, then an input sample matrix is Xk={x1k, x2k, . . . , xik, . . . xnkk}; and the set of z auxiliary process variables in the ith group is denoted as {xi1k, xi2k, . . . , xiz}, where xizk represents the z auxiliary process variables in the ith group of the kth factory.


In step 1, all the K factories perform the same industrial process; and most of the same industrial processes adopt the same process flow and process equipment, which have characteristic similarity.


In step 1, the initialized parameters required for local stochastic configuration network learning include: a maximum number of hidden layer nodes Lmax, a maximum number of random configuration times Tmax, an expected tolerance ε, a hidden layer parameter random configuration range Y={λmin:Δλ:λmax}, a learning parameter r, an activation function g(.), and an initial residual e0=Tk, where λmin is a lower limit of allocation interval of random parameters, λmax is an upper limit of allocation interval of the random parameters, and Δλ is an incremental parameter of allocation interval of the random parameters.


Step 1 further includes:

    • in a construction process of a local stochastic configuration network of each client, randomly generating the hidden layer parameters wLk and bLk in an adjustable symmetric interval Y, respectively;
    • outputting nodes in hidden layers hLk=[g((wLk)Tx1k+bLk),g((wLk)Tx2k+bLk), . . . , g((wLk)TxNk+bLk)]T, where the superscript T is transpose of a matrix or vector;
    • setting μL=(1−r)/(L+1), where L is the total number of the hidden layer nodes of a current local stochastic configuration network model, r represents the learning parameter, μL is a non-negative real number sequence;
    • finding out the hidden layer nodes that satisfy the following inequality constraints as candidate nodes:







min


{


ξ

L

J

k

,

ξ

L
,
2

k

,

ξ

L
,
q

k

,


,

ξ

L
,
m

k


}



0





where







ξ

L
,
q

k

=







e


L
-
1

,
q

T

,

h
L
k




2




(

h
L
k

)

T

·

h
L
k



-


(

1
-
r
-

μ
L


)





e


L
-
1

,
q

T






,

q
=
1

,
2
,





m

;







    • in the formula, m represents the dimension of an output of each training set, the symbol <•, •> represents an inner product of the vector, ξL.qk represents a supervision mechanism corresponding to the qth output of each training set when the current number of the hidden layer nodes in the client k is L, ξLkq=1mξL,qk is calculated to obtain newly added candidate nodes (ξL1)k, (ξL2)k, . . . (ξLj)k, j≤Tmax for constructing the candidate pool, where ξLk represents a node supervision value randomly configured by the kth client during the Lth iteration, and (ξLj)k represents another node supervision value obtained by the jth random configuration performed in the kth client during the Lth iteration; and

    • finding out a group of hidden layer parameters that maximize ξLk, which are the best hidden layer parameters (wLk)*, and (bLk)* that satisfy the supervision mechanism.





Step 1 further includes: selecting the best candidate nodes from the candidate pool and uploading same to the central server, including weighted aggregation and greedy selection:

    • uploading (wLk)* and (bLk)* by means of the weighted aggregation; and
    • uploading (wLk)*, (bLk)* and corresponding ξLk by means of the greedy selection.


Step 2 includes:

    • performing, by the central server, the weighted aggregation on the uploaded best candidate nodes to obtain global parameters wL* and bL* of the Lth node of the model;
    • where








w
L
*

=






k
=
1


K




n
k

n




(

w
L
k

)

*




,



b
L
*

=






k
=
1


K




n
k

n




(

b
L
k

)

*




;







    •  and

    • in the formula, n is the sum of local historical industrial process auxiliary data nk of all the clients.





In step 2, performing the greedy selection on the uploaded best candidate nodes by means of the central server includes:

    • comparing, by the central server, the uploaded parameters ξLk, and selecting client parameters corresponding to the maximum ξLk as the global parameters wL* and bL* of the Lth node of the model;
    • where








[


W
L
*

,

b
L
*


]

=



arg


max




(

w
L
k

)

*

,



(

b
L
k

)

*


Θ





{


ξ
L
k



}



,

k
=
1

,
2
,


,

K
;







    •  and

    • in the formula, Θ is a set of optimal parameters (wLk)* and (bLk)* uploaded by each client, and Ξ is a set of ξLk.





Step 3 includes:

    • according to the current global parameters wL* and bL*, calculating, by each client, the newly added hidden layer outputs HLk:






H
L
k
=[g((wL*)Tx1k+bL*),g((wL*)Tx2k+bL*), . . . ,g((wL*)TxNk+bL*)]T

    • calculating a local hidden layer output matrix βLk of the client:





βLk=(HLk)+Tk

    • where the current hidden layer output matrix is HLk=[H1k, H2k, . . . , HLk]; and
    • in the formula, βLk represents that each client of the local clients k uploads the output matrix βLk to the central server, and the central server performs the weighted aggregation on the uploaded βLk to obtain a global output matrix βL, where







β
L

=






k
=
1


K




n
k

n




β
L
k

.







Beneficial effects: compared with the prior art, the present disclosure has the advantages that the method uses a dynamically configured federated learning way to train the models, and establishes an industrial process product quality soft sensor model with optimal parameters and universal approximation property in a form of a construction method, which requires no complicated retraining process, and can ensure the accuracy of the models. Therefore, the present disclosure has good compactness and generalization performance.





BRIEF DESCRIPTION OF THE DRAWINGS

The present disclosure will be further described in detail below with reference to the accompanying drawings and specific implementations, and the above-mentioned and/or other advantages of the present disclosure will become clearer.



FIG. 1 is a schematic diagram of a federated stochastic configuration network model.





DETAILED DESCRIPTION OF THE INVENTION

The present disclosure provides an industrial process soft sensor method based on a federated stochastic configuration network. A fitting model structure used in the present disclosure is shown in FIG. 1, and includes an input layer, a hidden layer and an output layer, where d=5, and m=1. The present disclosure includes the following steps:


Step 1. Each factory selects 100 groups of historical data measured in a traditional hematite grinding process from a historical local database of grinding process. That is, each group contains five auxiliary process variable data, namely, ball mill current c1 and spiral classifier current c2, mill feeding capacity c3, mill inlet feed water flow c4 and classifier overflow concentration c5, and xik={ci1k, ci2k, . . . , ci5k} is used to represent input data after homogenization of the kth client and its corresponding product quality data, i.e., a grinding particle size value ti. ci5k represents the c5 auxiliary process variable data of the ith sample of the kth client. There are 10 factories participating in the training, with a total of 1000 groups of historical data, including 800 groups as training sets and 200 groups as test sets. Input samples are Xk={x1k, x2k, . . . xik, . . . x80k}, where xik={ci1k, ci2k, . . . , ci5k}∈custom-character5, and output samples are Tk={t1k, t2k, . . . , tik, . . . , t80k}.


Parameters required for federated stochastic configuration network soft sensor model learning are initialized. A maximum number of hidden layer nodes Lmax is equal to 100, a maximum number of configuration times Tmax is equal to 20, an expected tolerance ε is equal to 0.05, a hidden layer parameter random configuration range Y is {1:1:10}, a learning parameter r is equal to 0.99, an initial residual e0 is equal to T, and a Sigmoid (S-curve) function g(x)=1/(1+exp(−x)) is selected as an activation function.


During the construction of the federated stochastic configuration network, when the kth client adds the Lth node:

    • randomly generating 20 pairs of hidden layer parameters within an adjustable range [−1, 1], that is, inputting a weight wLk and biasing bLk, and substituting same into the activation function g(x);
    • outputting nodes in hidden layers hLk=[g((wLk)Tx1k+bLk), g((wLk)Tx2k+bLk), . . . , g((wLk)TxNk+bLk)]T, where the T represents of a matrix or vector;
    • setting μL=(1−r)/(L+1), where L is the total number of hidden layer nodes of a current local network;
    • finding out the hidden layer nodes that satisfy the following inequality constraints as candidate nodes:







min


{


ξ

L
,
1

k

,

ξ

L
,
2

k

,


,

ξ

L
,
q

k

,


,

ξ

L
,
m

k


}



0





where







ξ

L
,
q

k

=







e


L
-
1

,
q

T

,

h
L
k




2




(

h
L
k

)

T

·

h
L
k



-


(

1
-
r
-

μ
L


)





e


L
-
1

,
q

T






,

q
=
1

,
2
,





m

;





and

    • if the hidden layer parameters that satisfy the conditions are not found in 20 rounds, liberalizing the conditions of a supervision mechanism: updating r=r+τ, where the parameter τ∈(0,1−r), until the parameters that satisfy the supervision mechanism are found.


The candidate nodes are substituted into ξLkq=1mξL,qk, respectively to obtain (ξL1)k, (ξL2)k, . . . (ξLj)k, j≤20, where ξL,qk represents a node supervision value of the nth random configuration in the Lth iteration in the client k; (ξL1)k, (ξL2)k, . . . (ξLj)k are a plurality of newly added candidate nodes that satisfy the supervision mechanism for constructing a single-node pool of candidate hidden layers;


A group of hidden layer parameters corresponding to the maximum value ξLk is found out from the node pool, which are the best hidden layer parameters (wLk) and (bLk)* that satisfy the supervision mechanism.


The best candidate nodes are uploaded to a central server, where different parameters are loaded based on different algorithms, and the different algorithms include weighted aggregation and greedy selection:

    • uploading (wLk)* and (bLk)* by means of the weighted aggregation; and
    • uploading (wLk)*, (bLk)* and corresponding ξLk by means of the greedy selection.


Step 2 includes:

    • The weighted aggregation or greedy selection is performed by the central server on the uploaded best nodes:
    • performing, by the central server, the weighted aggregation on the uploaded best nodes includes:
    • Performing, by the central server, the weighted aggregation on the uploaded parameters to obtain global parameters wL* and bL* of the Lth node;
    • where








w
L
*

*=






k
=
1


K




n
k

n




(

w
L
k

)

*




,



b
L
*

=






k
=
1


K




n
k

n




(

b
L
k

)

*




;







    •  and

    • in the formula, n is the total number of data samples of all the clients, and nk is the total number of data samples of the client k.





Performing, by the central server, the greedy selection on the uploaded best nodes includes:

    • comparing, by the central server, the uploaded parameters ξLk, and selecting the client parameters corresponding to the maximum ξLk as the global parameters wL* and bL* of the Lth node;
    • where








[


W
L
*

,

b
L
*


]

=



arg


max




(

w
L
k

)

*

,



(

b
L
k

)

*


Θ





{


ξ
L
k



}



,

k
=
1

,
2
,


,

K
;







    • in the formula, Θ is a set of optimal parameters (wLk)* and (bLk)* uploaded by each client, and Ξ is a set of ξLk.





Step 3 includes:


After obtaining the global parameters wL* and bL*, newly added hidden layer outputs and the output weights βLk are calculated by each client and βLk is uploaded to the server for the weighted aggregation, including:

    • according to the current global parameters wL* and bL*, calculating, by each client, the newly added hidden layer outputs:






H
L
k
=[g((wL*)Tx1k+bL*),g((wL*)Tx2k+bL*), . . . ,g((wL*)TxNk+bL*)]T

    • calculating a local hidden layer output matrix of the client:





βLk=[β1k2k, . . . ,βLk]T:=(HLk)+Tk

    • where HLk=[H1k, H2k, . . . , HLk]; and
    • uploading, by each client, the output matrix βLk to the central server, and performing the weighted aggregation by the server, on the uploaded βLk to obtain βL;
    • where βLk=1Knk/nβLk.


At this time, the residual of the stochastic configuration network for each client is: eLk=HLkβL−Tk.


Step 4. When the number of the hidden layer nodes of the federated stochastic configuration network exceeds 100 or a residual in a current iteration meets an expected tolerance of 0.05, no new nodes are added, and the modeling is completed. Otherwise, the flow returns to step 1 to continue to construct the network until preset requirements are met. Each client downloads a soft sensor model of grinding particle sizes based on the federated stochastic configuration network. Each client collects local data online and input same into the global soft sensor model.


Step 5. Each client collects the ball mill current c1, the spiral classifier current c2, the mill feeding capacity c3, the mill inlet feed water flow c4 and the classifier overflow concentration c5 in an online way, inputs same into the constructed soft sensor model of grinding particle sizes, and performs online estimation on the grinding particle sizes, i.e., {tilde over (x)}k=Hkβk, where {tilde over (x)}k is the product quality data estimated online by the client k.


The present disclosure provides the industrial process soft sensor method based on a federated stochastic configuration network. There are many methods and ways to implement the technical solution. The above description is only an exemplary implementation of the present disclosure. It should be pointed out that for a person of ordinary skill in the art, several improvements and modifications can be made without departing from the principles of the present disclosure, and these improvements and modifications should also be regarded as falling within the protection scope of the present disclosure. All the components not specified in this embodiment can be implemented by using existing technologies.

Claims
  • 1. An industrial process soft sensor method based on a federated stochastic configuration network, comprising the following steps: step 1. acquiring, by each factory, historical industrial process auxiliary data and corresponding product quality data, and initializing parameters required for local stochastic configuration network model learning, each factory being a client, and each client putting hidden layer nodes that meet local data constraints into a candidate pool, selecting best candidate nodes from the candidate pool, and uploading same to a central server;step 2. performing, by the central server, weighted aggregation or greedy selection on the uploaded best candidate nodes to obtain global parameters, and downloading the global parameters to each client as hidden layer parameters for a local stochastic configuration network model;step 3. after obtaining the global parameters, calculating, by each client, newly added hidden layer outputs, and uploading output weights to the central server for weighted aggregation, and continuing to start a next round of training;step 4. when the number of hidden layer nodes in a current network exceeds a maximum given value or a residual in current iteration meets an expected tolerance, adding no new nodes, and stopping federated training to obtain a trained global model; andstep 5. distributing the trained global model, by the server, to each local factory as a soft sensor model.
  • 2. The method according to claim 1, wherein in step 1, a total of K factories are set to participate in the federated training, and for the kth factory, nk groups of historical industrial process auxiliary data Xk and corresponding product quality data Tk are obtained, denoted as {Xk,Tk}; the historical industrial process auxiliary data xik in the ith group of the kth factory contains z auxiliary process variables, the corresponding product quality data ti contains m product quality data, and if the value of i is 1 to nk, then an input sample matrix is Xk={x1k, x2k, . . . , xik, . . . xnkk}; and the set of z auxiliary process variables in the ith group is denoted as {xi1k, xi2k, . . . , xizk}, where xizk represents the zth auxiliary process variable in the ith group of the kth factory.
  • 3. The method according to claim 2, wherein in step 1, the initialized parameters required for local stochastic configuration network learning comprise: a maximum number of hidden layer nodes Lmax, a maximum number of random configuration times Tmax, an expected tolerance ε, a hidden layer parameter random configuration range Y={λmin:Δλ:λmax}, a learning parameter r, an activation function g(.), and an initial residual e0=Tk, where λmin is a lower limit of allocation interval of random parameters, λmax is an upper limit of allocation interval of the random parameters, and Δλ is an incremental parameter of allocation interval of the random parameters.
  • 4. The method according to claim 3, wherein step 1 further comprises: in a construction process of a local stochastic configuration network of each client, randomly generating the hidden layer parameters wLk and bLk in an adjustable symmetric interval Y, respectively;outputting nodes in hidden layers hLk=[g((wLk)Tx1k+bLk),g((wLk)Tx2k+bLk), . . . , g((wLk)TxNk+bLk)]T, where the superscript T is transpose of a matrix or vector;setting μL=(1−r)/(L+1), where L is the total number of hidden layer nodes of a current local stochastic configuration network model, r represents the learning parameter, μL is a non-negative real number sequence;finding out the hidden layer nodes that satisfy the following inequality constraints as candidate nodes:
  • 5. The method according to claim 4, wherein step 1 further comprises: selecting the best candidate nodes from the candidate pool and uploading same to the central server, comprising weighted aggregation and greedy selection:uploading (wLk)* and (bLk)* by means of the weighted aggregation; anduploading (wLk)*, (bLk)* and corresponding ξLk by means of the greedy selection.
  • 6. The method according to claim 5, wherein step 2 comprises: performing, by the central server, the weighted aggregation on the uploaded best candidate nodes to obtain global parameters wL* and bL* of the Lth node of the model;wherein
  • 7. The method according to claim 5, wherein step 2 comprises: performing, by the central serve, the greedy selection on the uploaded best candidate nodes comprising:comparing, by the central server, the uploaded parameters ξLk, and selecting client parameters corresponding to the maximum ξLk as the global parameters wL* and bL* of the Lth node of the model;wherein
  • 8. The method according to claim 6, wherein step 3 comprises: according to the current global parameters wL* and bL*, calculating, by each client, the newly added hidden layer outputs HLk: HLk=[g((wL*)Tx1k+bL*),g((wL*)Tx2k+bL*), . . . ,g((wL*)TxNk+bL*)]T calculating a local hidden layer output matrix βLk of the client: βLk=(HLk)+Tk where the current hidden layer output matrix is HLk=[H1k, H2k, . . . , HLk]; andin the formula, βLk represents that each client of the local clients k uploads the output matrix βLk to the central server, and the central server performs the weighted aggregation on the uploaded βLk to obtain a global output matrix βL, where
  • 9. The method according to claim 7, wherein step 3 comprises: according to the current global parameters wL* and bL*, calculating, by each client, the newly added hidden layer outputs HLk: HLk=[g((wL*)Tx1k+bL*),g((wL*)Tx2k+bL*), . . . ,g((wL*)TxNk+bL*)]T calculating a local hidden layer output matrix βLk of the client: βLk=(HLk)+Tk where the current hidden layer output matrix is HLk=[H1k, H2k, . . . , HLk]; andin the formula, βLk represents that each client of the local clients k uploads the output matrix βLk to the central server, and the central server performs the weighted aggregation on the uploaded βLk to obtain a global output matrix βL, where
Priority Claims (1)
Number Date Country Kind
202111054478.9 Sep 2021 CN national
PCT Information
Filing Document Filing Date Country Kind
PCT/CN2022/100744 6/23/2022 WO