Abstract Image lossless compression plays an important role in the remote sensing field. A new lossless coding algorithm based on perceptron is studied in this paper. The prediction coefficients can be adaptively adjusted by this model. Consequently both spacial and spectral correlation can be reduced. Experiments show that the algorithm is effective for remote sensing image.