Sequential Multitask Learning Optimization Using Bayesian Neural Network