In image distortion and low adaptive recognition after medical image compression, a high precision medical image lossless compression algorithm based on discrete wavelet transform is proposed. A 3D imaging model of multi-dimensional medical images is constructed, and adaptive information enhancement and image restoration processing are performed on the collected medical images. According to the results of high-dimensional segmentation and segmentation, discrete wavelet transform is used to achieve high-precision lossless compression of medical images. The results show that the medical image compression is better non-destructive and the image fidelity is higher, which improves the detection and adaptive recognition ability of medical images