Skip to main content
Log in

Assessing the impact of JPEG compression on the semantic segmentation of agricultural images

  • Original Paper
  • Published:
Signal, Image and Video Processing Aims and scope Submit manuscript

Abstract

Compression is a important issue when dealing with large amounts of data. We can reduce the size of a file by eliminating data, what is called lossy compression. In an image file, the eliminated data can be small details present in the scene which the compression algorithm deems expendable, without any consideration on how these data will be used posteriorly. Inspired by the work proposed in Zanjani et al. (J Med Imaging 6(2):027501, 2019), this paper aims to evaluate whether the application of a lossy compression method can affect negatively the segmentation of agricultural images obtained using neural networks. For this purpose, we applied a customized version of the U-Net neural network to the crop row segmentation problem. Results show that the application of JPEG compression is feasible for agricultural images, obtaining Dice coefficient results above 0.750 for the most difficult cases, and an average of 0.951, even for images with a compression of  95%.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7

Similar content being viewed by others

Availability of data and materials

Data available on request.

References

  1. Bándi, P., Geessink, O., Manson, Q., Dijk, M.V., Balkenhol, M., Hermsen, M., Bejnordi, B.E., Lee, B., Paeng, K., Zhong, A., Li, Q., Zanjani, F.G., Zinger, S., Fukuta, K., Komura, D., Ovtcharov, V., Cheng, S., Zeng, S., Thagaard, J., Chen, H.: From detection of individual metastases to classification of lymph node status at the patient level: the camelyon17 challenge. IEEE Trans. Med. Imaging 38(8447230), 550–560 (2019)

    Article  Google Scholar 

  2. Bras, G., Fernandes, V.R.M., de Paiva, A.C., Junior, G.B., Rivero, L.: Transfer learning method evaluation for automatic pediatric chest x-ray image segmentation. In: IWSSIP, pp. 128–133. IEEE (2020)

  3. Cho, J., Lee, K., Shin, E., Choy, G., Do, S.: How much data is needed to train a medical image deep learning system to achieve necessary high accuracy? (2015). arXiv:1511.06348

  4. Ehteshami Bejnordi, B., Veta, M., Johannes van Diest, P., van Ginneken, B., Karssemeijer, N., Litjens, G., van der Laak, J.A.W.M.: the CAMELYON16 consortium: diagnostic assessment of deep learning algorithms for detection of lymph node metastases in women with breast cancer. JAMA 318(22), 2199–2210 (2017). https://doi.org/10.1001/jama.2017.14585

  5. Feng, D., Haase-Schütz, C., Rosenbaum, L., Hertlein, H., Gläser, C., Timm, F., Wiesbeck, W., Dietmayer, K.: Deep multi-modal object detection and semantic segmentation for autonomous driving: datasets, methods, and challenges. IEEE Trans. Intell. Transp. Syst. 22(3), 1341–1360 (2021)

    Article  Google Scholar 

  6. Kalinski, T., Zwönitzer, R., Grabellus, F., Sheu, S.Y., Sel, S., Hofmann, H., Roessner, A.: Lossless compression of JPEG2000 whole slide images is not required for diagnostic virtual microscopy. Am. J. Clin. Pathol. 136(6), 889–895 (2011). https://doi.org/10.1309/AJCPYI1Z3TGGAIEP

    Article  Google Scholar 

  7. Pennebaker, W.B., Mitchell, J.L.: JPEG: Still Image Data Compression Standard. Springer, Berlin (1992)

    Google Scholar 

  8. Ronneberger, O., Fischer, P., Brox, T.: U-net: convolutional networks for biomedical image segmentation. In: International Conference on Medical image computing and computer-assisted intervention, pp. 234–241. Springer (2015)

  9. Stan, T., Thompson, Z.T., Voorhees, P.W.: Optimizing convolutional neural networks to perform semantic segmentation on large materials imaging datasets: X-ray tomography and serial sectioning. Mater. Charact. 160, 110119 (2020). https://doi.org/10.1016/j.matchar.2020.110119

    Article  Google Scholar 

  10. Treml, M., Arjona-Medina, J., Unterthiner, T., Durgesh, R., Friedmann, F., Schuberth, P., Mayr, A., Heusel, M., Hofmarcher, M., Widrich, M., Nessler, B., Hochreiter, S.: Speeding up semantic segmentation for autonomous driving. In: Proceedings of the MLITS, NIPS Workshop (2016)

  11. Zanjani, F.G., Zinger, S., Piepers, B., Mahmoudpour, S., Schelkens, P., de With, P.H.N.: Impact of JPEG 2000 compression on deep convolutional neural networks for metastatic cancer detection in histopathological images. J. Med. Imaging 6(2), 027501 (2019)

    Google Scholar 

  12. Zanjani, F.G., Zinger, S., de With, P.H.N.: Cancer detection in histopathology whole-slide images using conditional random fields on deep embedded spaces. In: Tomaszewski, J.E., Gurcan, M.N. (eds.) Medical Imaging: Digital Pathology, SPIE Proceedings, vol. 10581, p. 105810I. SPIE (2018)

Download references

Acknowledgements

André R. Backes gratefully acknowledges the financial support of CNPq (National Council for Scientific and Technological Development, Brazil) (Grant #307100/2021-9). João Batista Ribeiro gratefully acknowledges the financial support of Fapemig (Fundação de Amparo à Pesquisa do Estado de Minas Gerais). This study was financed in part by the Coordenação de Aperfeiçoamento de Pessoal de Nível Superior - Brazil (CAPES) – Finance Code 001.

Author information

Authors and Affiliations

Authors

Contributions

J. D. Dias Junior and J. B. Ribeiro performed the experiments. J. B. Ribeiro and A. R. Backes prepared figures. A. R. Backes supervised the work. J. B. Ribeiro and A. R. Backes wrote the main manuscript text. All authors reviewed the manuscript.

Corresponding author

Correspondence to André Ricardo Backes.

Ethics declarations

Conflict of interest

The authors declare that they have no conflict of interest.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Júnior, J.D.D., Ribeiro, J.B. & Backes, A.R. Assessing the impact of JPEG compression on the semantic segmentation of agricultural images. SIViP 18, 9–15 (2024). https://doi.org/10.1007/s11760-023-02697-7

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11760-023-02697-7

Keywords

Navigation