Change search
Link to record
Permanent link

Direct link
Grund Pihlgren, GustavORCID iD iconorcid.org/0000-0003-0100-4030
Alternative names
Publications (9 of 9) Show all publications
Grund Pihlgren, G. (2023). Deep Perceptual Loss and Similarity. (Doctoral dissertation). Luleå: Luleå University of Technology
Open this publication in new window or tab >>Deep Perceptual Loss and Similarity
2023 (English)Doctoral thesis, monograph (Other academic)
Abstract [en]

This thesis investigates deep perceptual loss and (deep perceptual) similarity; methods for computing loss and similarity for images as the distance between the deep features extracted from neural networks. The primary contributions of the thesis consist of (i) aggregating much of the existing research on deep perceptual loss and similarity, and (ii) presenting novel research into understanding and improving the methods. This novel research provides insight into how to implement the methods for a given task, their strengths and weaknesses, how to mitigate those weaknesses, and if these methods can handle the inherent ambiguity of similarity.

Society increasingly relies on computer vision technology, from everyday smartphone applications to legacy industries like agriculture and mining. Much of that groundbreaking computer vision technology relies on machine learning methods for their success. In turn, the most successful machine learning methods rely on the ability to compute the similarity of instances.

In computer vision, computation of image similarity often strives to mimic human perception, called perceptual similarity. Deep perceptual similarity has proven effective for this purpose and achieves state-of-the-art performance. Furthermore, this method has been used for loss calculation when training machine learning models with impressive results in various computer vision tasks. However, many open questions exist, including how to best utilize and improve the methods. Since similarity is ambiguous and context-dependent, it is also uncertain whether the methods can handle changing contexts.

This thesis addresses these questions through (i) a systematic study of different implementations of deep perceptual loss and similarity, (ii) a qualitative analysis of the strengths and weaknesses of the methods, (iii) a proof-of-concept investigation of the method's ability to adapt to new contexts, and (iv) cross-referencing the findings with already published works.

Several interesting findings are presented and discussed, including those below. Deep perceptual loss and similarity are shown not to follow existing transfer learning conventions. Flaws of the methods are discovered and mitigated. Deep perceptual similarity is demonstrated to be well-suited for applications in various contexts.

There is much left to explore, and this thesis provides insight into what future research directions are promising. Many improvements to deep perceptual similarity remain to be applied to loss calculation. Studying how related fields have dealt with problems caused by ambiguity and contexts could lead to further improvements. Combining these improvements could lead to metrics that perform close to the optimum on existing datasets, which motivates the development of more challenging datasets.

Place, publisher, year, edition, pages
Luleå: Luleå University of Technology, 2023
Series
Doctoral thesis / Luleå University of Technology, ISSN 1402-1544
Keywords
Image Similarity, Perceptual Similarity, Perceptual Loss, Deep Features, Deep Learning
National Category
Computer graphics and computer vision
Research subject
Machine Learning
Identifiers
urn:nbn:se:ltu:diva-96659 (URN)978-91-8048-325-4 (ISBN)978-91-8048-326-1 (ISBN)
Public defence
2023-06-15, A117, Luleå tekniska universitet, Luleå, 14:00 (English)
Opponent
Supervisors
Available from: 2023-04-21 Created: 2023-04-20 Last updated: 2025-10-21Bibliographically approved
Sjögren, O., Grund Pihlgren, G., Sandin, F. & Liwicki, M. (2023). Identifying and Mitigating Flaws of Deep Perceptual Similarity Metrics. In: Sigurd Løkse, Benjamin Ricaud (Ed.), Proceedings of the Northern Lights Deep Learning Workshop 2023: . Paper presented at Northern Lights Deep Learning Conference 2023 (NLDL 2023), January 10-12 2023, Tromsø, Norway. Tromsø: Septentrio Academic Publishing, 4
Open this publication in new window or tab >>Identifying and Mitigating Flaws of Deep Perceptual Similarity Metrics
2023 (English)In: Proceedings of the Northern Lights Deep Learning Workshop 2023 / [ed] Sigurd Løkse, Benjamin Ricaud, Tromsø: Septentrio Academic Publishing , 2023, Vol. 4Conference paper, Published paper (Refereed)
Abstract [en]

Measuring the similarity of images is a fundamental problem to computer vision for which no universal solution exists. While simple metrics such as the pixel-wise L2-norm have been shown to have significant flaws, they remain popular. One group of recent state-of-the-art metrics that mitigates some of those flaws are Deep Perceptual Similarity (DPS) metrics, where the similarity is evaluated as the distance in the deep features of neural networks.However, DPS metrics themselves have been less thoroughly examined for their benefits and, especially, their flaws. This work investigates the most common DPS metric, where deep features are compared by spatial position, along with metrics comparing the averaged and sorted deep features. The metrics are analyzed in-depth to understand the strengths and weaknesses of the metrics by using images designed specifically to challenge them. This work contributes with new insights into the flaws of DPS, and further suggests improvements to the metrics. An implementation of this work is available online: https://github.com/guspih/deep_perceptual_similarity_analysis/

Place, publisher, year, edition, pages
Tromsø: Septentrio Academic Publishing, 2023
Series
Proceedings of the Northern Lights Deep Learning Workshop, ISSN 2703-6928
Keywords
Image Similarity Metrics, Perceptual Loss, Deep Perceptual Similarity, Deep Features
National Category
Computer graphics and computer vision
Research subject
Machine Learning
Identifiers
urn:nbn:se:ltu:diva-95399 (URN)10.7557/18.6795 (DOI)
Conference
Northern Lights Deep Learning Conference 2023 (NLDL 2023), January 10-12 2023, Tromsø, Norway
Available from: 2023-01-26 Created: 2023-01-26 Last updated: 2025-10-21Bibliographically approved
Chhipa, P. C., Upadhyay, R., Grund Pihlgren, G., Saini, R., Uchida, S. & Liwicki, M. (2023). Magnification Prior: A Self-Supervised Method for Learning Representations on Breast Cancer Histopathological Images. In: Proceedings: 2023 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV 2023): . Paper presented at 2023 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), January 2-7, 2023, Waikoloa, Hawaii, USA (pp. 2716-2726). IEEE
Open this publication in new window or tab >>Magnification Prior: A Self-Supervised Method for Learning Representations on Breast Cancer Histopathological Images
Show others...
2023 (English)In: Proceedings: 2023 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV 2023), IEEE, 2023, p. 2716-2726Conference paper, Published paper (Refereed)
Abstract [en]

This work presents a novel self-supervised pre-training method to learn efficient representations without labels on histopathology medical images utilizing magnification factors. Other state-of-the-art works mainly focus on fully supervised learning approaches that rely heavily on human annotations. However, the scarcity of labeled and unlabeled data is a long-standing challenge in histopathology. Currently, representation learning without labels remains unexplored in the histopathology domain. The proposed method, Magnification Prior Contrastive Similarity (MPCS), enables self-supervised learning of representations without labels on small-scale breast cancer dataset BreakHis by exploiting magnification factor, inductive transfer, and reducing human prior. The proposed method matches fully supervised learning state-of-the-art performance in malignancy classification when only 20% of labels are used in fine-tuning and outperform previous works in fully supervised learning settings for three public breast cancer datasets, including BreakHis. Further, It provides initial support for a hypothesis that reducing human-prior leads to efficient representation learning in self-supervision, which will need further investigation. The implementation of this work is available online on GitHub

Place, publisher, year, edition, pages
IEEE, 2023
Series
Proceedings IEEE Workshop on Applications of Computer Vision, ISSN 2472-6737, E-ISSN 2642-9381
Keywords
self-supervised learning, contrastive learning, representation learning, breast cancer, histopathological images, transfer learning, medical images
National Category
Computer Sciences
Research subject
Machine Learning
Identifiers
urn:nbn:se:ltu:diva-94845 (URN)10.1109/WACV56688.2023.00274 (DOI)000971500202081 ()2-s2.0-85149049398 (Scopus ID)978-1-6654-9346-8 (ISBN)
Conference
2023 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), January 2-7, 2023, Waikoloa, Hawaii, USA
Available from: 2022-12-14 Created: 2022-12-14 Last updated: 2025-10-21Bibliographically approved
Edstedt, J., Berg, A., Felsberg, M., Karlsson, J., Benavente, F., Novak, A. & Grund Pihlgren, G. (2022). VidHarm: A Clip Based Dataset for Harmful Content Detection. In: 2022 26th International Conference on Pattern Recognition (ICPR): . Paper presented at 26th International Conference on Pattern Recognition (ICPR 2022), Montreal, QC, Canada, August 21-25, 2022 (pp. 1543-1549). Institute of Electrical and Electronics Engineers (IEEE)
Open this publication in new window or tab >>VidHarm: A Clip Based Dataset for Harmful Content Detection
Show others...
2022 (English)In: 2022 26th International Conference on Pattern Recognition (ICPR), Institute of Electrical and Electronics Engineers (IEEE), 2022, p. 1543-1549Conference paper, Published paper (Refereed)
Abstract [en]

Automatically identifying harmful content in video is an important task with a wide range of applications. However, there is a lack of professionally labeled open datasets available. In this work VidHarm, an open dataset of 3589 video clips from film trailers annotated by professionals, is presented. An analysis of the dataset is performed, revealing among other things the relation between clip and trailer level annotations. Audiovisual models are trained on the dataset and an in-depth study of modeling choices conducted. The results show that performance is greatly improved by combining the visual and audio modality, pre-training on large-scale video recognition datasets, and class balanced sampling. Lastly, biases of the trained models are investigated using discrimination probing.VidHarm is openly available, and further details are available at the webpage https://vidharm.github.io/

Place, publisher, year, edition, pages
Institute of Electrical and Electronics Engineers (IEEE), 2022
Keywords
Visualization, Annotations, Pattern recognition, Task analysis, Age Rating, Video, Audio
National Category
Computer graphics and computer vision Computer Sciences
Research subject
Machine Learning
Identifiers
urn:nbn:se:ltu:diva-94540 (URN)10.1109/ICPR56361.2022.9956148 (DOI)000897707601077 ()2-s2.0-85143613815 (Scopus ID)
Conference
26th International Conference on Pattern Recognition (ICPR 2022), Montreal, QC, Canada, August 21-25, 2022
Funder
Vinnova, 2020-04057 ELLIITKnut and Alice Wallenberg Foundation
Note

ISBN för värdpublikation: 978-1-6654-9062-7

Available from: 2022-12-05 Created: 2022-12-05 Last updated: 2025-10-21Bibliographically approved
Grund Pihlgren, G. (2021). Deep Perceptual Loss for Improved Downstream Prediction. (Licentiate dissertation). Luleå: Luleå tekniska universitet
Open this publication in new window or tab >>Deep Perceptual Loss for Improved Downstream Prediction
2021 (English)Licentiate thesis, comprehensive summary (Other academic)
Place, publisher, year, edition, pages
Luleå: Luleå tekniska universitet, 2021
Series
Licentiate thesis / Luleå University of Technology, ISSN 1402-1757
National Category
Computer graphics and computer vision Computer Sciences
Research subject
Machine Learning
Identifiers
urn:nbn:se:ltu:diva-86440 (URN)978-91-7790-904-0 (ISBN)978-91-7790-905-7 (ISBN)
Presentation
2021-10-12, C305, Luleå Tekniska Universitet, Luleå, 14:00 (English)
Opponent
Supervisors
Available from: 2021-08-16 Created: 2021-08-13 Last updated: 2025-10-21Bibliographically approved
Grund Pihlgren, G., Sandin, F. & Liwicki, M. (2021). Pretraining Image Encoders without Reconstruction via Feature Prediction Loss. In: Proceedings of ICPR 2020: 25th International Conference on Pattern Recognition. Paper presented at 25th International Conference on Pattern Recognition (ICPR 2020), Milan, Italy (Virtual), January 10-15, 2020 (pp. 4105-4111). IEEE
Open this publication in new window or tab >>Pretraining Image Encoders without Reconstruction via Feature Prediction Loss
2021 (English)In: Proceedings of ICPR 2020: 25th International Conference on Pattern Recognition, IEEE, 2021, p. 4105-4111Conference paper, Published paper (Refereed)
Abstract [en]

This work investigates three methods for calculating loss for autoencoder-based pretraining of image encoders: The commonly used reconstruction loss, the more recently introduced deep perceptual similarity loss, and a feature prediction loss proposed here; the latter turning out to be the most efficient choice. Standard auto-encoder pretraining for deep learning tasks is done by comparing the input image and the reconstructed image. Recent work shows that predictions based on embeddings generated by image autoencoders can be improved by training with perceptual loss, i.e., by adding a loss network after the decoding step. So far the autoencoders trained with loss networks implemented an explicit comparison of the original and reconstructed images using the loss network. However, given such a loss network we show that there is no need for the time-consuming task of decoding the entire image. Instead, we propose to decode the features of the loss network, hence the name “feature prediction loss”. To evaluate this method we perform experiments on three standard publicly available datasets (LunarLander-v2, STL-10, and SVHN) and compare six different procedures for training image encoders (pixel-wise, perceptual similarity, and feature prediction losses; combined with two variations of image and feature encoding/decoding). The embedding-based prediction results show that encoders trained with feature prediction loss is as good or better than those trained with the other two losses. Additionally, the encoder is significantly faster to train using feature prediction loss in comparison to the other losses. The method implementation used in this work is available online. https://github.com/guspih/Perceptual-Autoencoders

Place, publisher, year, edition, pages
IEEE, 2021
Series
International Conference on Pattern Recognition
Keywords
Autoencoder, Perceptual, Knowledge Distillation, Image Classification, Object Positioning, Embeddings
National Category
Computer Sciences
Research subject
Machine Learning
Identifiers
urn:nbn:se:ltu:diva-84180 (URN)10.1109/ICPR48806.2021.9412239 (DOI)000678409204030 ()2-s2.0-85110513234 (Scopus ID)
Conference
25th International Conference on Pattern Recognition (ICPR 2020), Milan, Italy (Virtual), January 10-15, 2020
Note

ISBN för värdpublikation: 978-1-7281-8808-9

Available from: 2021-05-07 Created: 2021-05-07 Last updated: 2025-10-21Bibliographically approved
Grund Pihlgren, G., Sandin, F. & Liwicki, M. (2020). Improving Image Autoencoder Embeddings with Perceptual Loss. In: 2020 International Joint Conference on Neural Networks (IJCNN): . Paper presented at 2020 International Joint Conference on Neural Networks (IJCNN), 18-24 July, 2020, Glasgow, United Kingdom. IEEE, Article ID 20229.
Open this publication in new window or tab >>Improving Image Autoencoder Embeddings with Perceptual Loss
2020 (English)In: 2020 International Joint Conference on Neural Networks (IJCNN), IEEE, 2020, article id 20229Conference paper, Published paper (Refereed)
Abstract [en]

Autoencoders are commonly trained using element-wise loss. However, element-wise loss disregards high-level structures in the image which can lead to embeddings that disregard them as well. A recent improvement to autoencoders that helps alleviate this problem is the use of perceptual loss. This work investigates perceptual loss from the perspective of encoder embeddings themselves. Autoencoders are trained to embed images from three different computer vision datasets using perceptual loss based on a pretrained model as well as pixel-wise loss. A host of different predictors are trained to perform object positioning and classification on the datasets given the embedded images as input. The two kinds of losses are evaluated by comparing how the predictors performed with embeddings from the differently trained autoencoders. The results show that, in the image domain, the embeddings generated by autoencoders trained with perceptual loss enable more accurate predictions than those trained with element-wise loss. Furthermore, the results show that, on the task of object positioning of a small-scale feature, perceptual loss can improve the results by a factor 10. The experimental setup is available online: https://github.com/guspih/Perceptual-Autoencoders

Place, publisher, year, edition, pages
IEEE, 2020
Series
International Joint Conference on Neural Networks (IJCNN), ISSN 2161-4393, E-ISSN 2161-4407
Keywords
Autoencoder, Perceptual Loss, Image Processing, Image Classification, Object Positioning, Embeddings
National Category
Other Electrical Engineering, Electronic Engineering, Information Engineering Computer Sciences
Research subject
Machine Learning; Cyber-Physical Systems
Identifiers
urn:nbn:se:ltu:diva-80609 (URN)10.1109/IJCNN48605.2020.9207431 (DOI)000626021406074 ()2-s2.0-85093844245 (Scopus ID)
Conference
2020 International Joint Conference on Neural Networks (IJCNN), 18-24 July, 2020, Glasgow, United Kingdom
Note

ISBN för värdpublikation: 978-1-7281-6926-2, 978-1-7281-6927-9

Available from: 2020-08-31 Created: 2020-08-31 Last updated: 2025-10-22Bibliographically approved
Shridhar, K., Dash, A., Sahu, A., Grund Pihlgren, G., Alonso, P., Pondenkandath, V., . . . Liwicki, M. (2019). Subword Semantic Hashing for Intent Classification on Small Datasets. In: 2019 International Joint Conference on Neural Networks (IJCNN): . Paper presented at 2019 International Joint Conference on Neural Networks (IJCNN), 14-19 July, 2019, Budapest, Hungary. IEEE, Article ID N-19329.
Open this publication in new window or tab >>Subword Semantic Hashing for Intent Classification on Small Datasets
Show others...
2019 (English)In: 2019 International Joint Conference on Neural Networks (IJCNN), IEEE, 2019, article id N-19329Conference paper, Published paper (Other academic)
Abstract [en]

In this paper, we introduce the use of Semantic Hashing as embedding for the task of Intent Classification and achieve state-of-the-art performance on three frequently used benchmarks. Intent Classification on a small dataset is a challenging task for data-hungry state-of-the-art Deep Learning based systems. Semantic Hashing is an attempt to overcome such a challenge and learn robust text classification. Current word embedding based methods [11], [13], [14] are dependent on vocabularies. One of the major drawbacks of such methods is out-of-vocabulary terms, especially when having small training datasets and using a wider vocabulary. This is the case in Intent Classification for chatbots, where typically small datasets are extracted from internet communication. Two problems arise with the use of internet communication. First, such datasets miss a lot of terms in the vocabulary to use word embeddings efficiently. Second, users frequently make spelling errors. Typically, the models for intent classification are not trained with spelling errors and it is difficult to think about ways in which users will make mistakes. Models depending on a word vocabulary will always face such issues. An ideal classifier should handle spelling errors inherently. With Semantic Hashing, we overcome these challenges and achieve state-of-the-art results on three datasets: Chatbot, Ask Ubuntu, and Web Applications [3]. Our benchmarks are available online.

Place, publisher, year, edition, pages
IEEE, 2019
Series
International Joint Conference on Neural Networks (IJCNN), ISSN 2161-4407, E-ISSN 2161-4393
Keywords
Natural Language Processing, Intent Classification, Chatbots, Semantic Hashing, Machine Learning, State-of-the-art
National Category
Computer Sciences
Research subject
Machine Learning
Identifiers
urn:nbn:se:ltu:diva-76841 (URN)10.1109/IJCNN.2019.8852420 (DOI)000530893805095 ()2-s2.0-85073258046 (Scopus ID)
Conference
2019 International Joint Conference on Neural Networks (IJCNN), 14-19 July, 2019, Budapest, Hungary
Note

ISBN för värdpublikation: 978-1-7281-1985-4, 978-1-7281-1986-1

Available from: 2019-11-25 Created: 2019-11-25 Last updated: 2026-02-13Bibliographically approved
Grund Pihlgren, G. (2019). Towards More Meaningful Deep Representations with Neural Networks. In: Proceedings of SAIS 2019: . Paper presented at 31st Swedish AI Society Workshop (SAIS 2019), Umeå, Sweden, June 18-19, 2019. Umeå University
Open this publication in new window or tab >>Towards More Meaningful Deep Representations with Neural Networks
2019 (English)In: Proceedings of SAIS 2019, Umeå University , 2019Conference paper, Poster (with or without abstract) (Refereed)
Place, publisher, year, edition, pages
Umeå University, 2019
Keywords
Features, Deep Learning
National Category
Computer Sciences
Research subject
Machine Learning
Identifiers
urn:nbn:se:ltu:diva-84132 (URN)
Conference
31st Swedish AI Society Workshop (SAIS 2019), Umeå, Sweden, June 18-19, 2019
Available from: 2021-05-05 Created: 2021-05-05 Last updated: 2025-10-21Bibliographically approved
Organisations
Identifiers
ORCID iD: ORCID iD iconorcid.org/0000-0003-0100-4030

Search in DiVA

Show all publications