Detection method of egg embryo crack with hole based on improved ResNet
In the process of injecting the virus into the egg embryo to culture the vaccine,the impact of the needle caused cracks around the injection hole and the culture failed.In order to solve the problem of low efficiency and high misjudgment rate in the detection of egg embryo cracks by the naked eye in the darkroom,a method for detecting cracks in egg embryos with holes combined with a multispectral channel attention mechanism(MSCA)and parallel stacking topology modules(PST)was proposed.Firstly,a black box for crack detection of perforated egg embryos was built,and the images of linear cracks,mesh cracks,star-shaped cracks and intact egg embryos with holes after virus injection was collected and a data set was established,then ResNet-50 was used as the backbone model.The first residual module of the next 4 layers was replaced by the PST module to increase the image expression ability of the model at the beginning,finally,the MSCA mechanism was introduced after each PST module and the residual module,and the MSCA mechanism compressed the data through two-dimensional discrete cosine transform(2D DCT),and the neural architecture search selection(NAS)method obtained the optimal frequency components,which could redistribute the weights to increase the proportion of crack feature weights.Thus the microporous egg embryos could be identified quickly and accurately by the model.The results show that the improved network model has a detection time of 0.42 s/piece for cracks in egg embryos with holes,a detection accuracy of 96.43%,and a higher detection efficiency than manual operations.Compared with the original ResNet-50,the detection accuracy has been improved by 3.66%,which is superior to other classical convolutional network models.It is proved that the improved model can be used for the automatic detection of cracks in egg embryos with holes before vaccine cultivation.
crack detectionegg embryo with holeimproved ResNetmultispectral attention mechanismparallel stacking topology