Technical note: an R package for fitting sparse neural networks with application in animal breeding.

Journal: Journal of animal science
Published Date:

Abstract

Neural networks (NNs) have emerged as a new tool for genomic selection (GS) in animal breeding. However, the properties of NN used in GS for the prediction of phenotypic outcomes are not well characterized due to the problem of over-parameterization of NN and difficulties in using whole-genome marker sets as high-dimensional NN input. In this note, we have developed an R package called snnR that finds an optimal sparse structure of a NN by minimizing the square error subject to a penalty on the L1-norm of the parameters (weights and biases), therefore solving the problem of over-parameterization in NN. We have also tested some models fitted in the snnR package to demonstrate their feasibility and effectiveness to be used in several cases as examples. In comparison of snnR to the R package brnn (the Bayesian regularized single layer NNs), with both using the entries of a genotype matrix or a genomic relationship matrix as inputs, snnR has greatly improved the computational efficiency and the prediction ability for the GS in animal breeding because snnR implements a sparse NN with many hidden layers.

Authors

  • Yangfan Wang
    Ministry of Education Key Laboratory of Marine Genetics and Breeding, Ocean University of China, Qingdao, China.
  • Xue Mi
    Ministry of Education Key Laboratory of Marine Genetics and Breeding, Ocean University of China, Qingdao, China.
  • Guilherme J M Rosa
    Department of Animal Sciences, University of Wisconsin, Madison.
  • Zhihui Chen
    Division of Cell and Developmental Biology, College of Life Science, University of Dundee, Dundee, UK.
  • Ping Lin
    Department of Geriatrics, The Third Hospital of Hangzhou, Hangzhou, Zhejiang, China.
  • Shi Wang
    Ministry of Education Key Laboratory of Marine Genetics and Breeding, Ocean University of China, Qingdao, China.
  • Zhenmin Bao
    Ministry of Education Key Laboratory of Marine Genetics and Breeding, Ocean University of China, Qingdao, China.