A non-transitory computer-readable recording medium stores therein a learning program that causes a computer to execute a process including: generating a shadow image including a shadow according to a state of ultrasound reflection in an ultrasound image; generating a combined image by combining the ultrasound image and the shadow image; inputting, into a first decoder and a second decoder, an output acquired from an encoder in response to inputting the combined image into the encoder; and executing training of the encoder, the first decoder, and the second decoder, based on: reconfigured error between an output image of a coupling function and the combined image, the coupling function being configured to combine a first image output from the first decoder with a second image output from the second decoder, and an error function between an area in the first image and the shadow in the shadow image.