{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,31]],"date-time":"2026-10-31T20:10:09Z","timestamp":1793477409059,"version":"4.5.0"},"reference-count":55,"publisher":"Springer Science and Business Media LLC","issue":"10","license":[{"start":{"date-parts":[[2024,4,29]],"date-time":"2024-04-29T00:00:00Z","timestamp":1714348800000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2024,4,29]],"date-time":"2024-04-29T00:00:00Z","timestamp":1714348800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"funder":[{"name":"SoBigData++","award":["871042"],"award-info":[{"award-number":["871042"]}]},{"name":"HumanE AI Net","award":["952026"],"award-info":[{"award-number":["952026"]}]},{"name":"XAI","award":["834756"],"award-info":[{"award-number":["834756"]}]},{"name":"TAILOR","award":["952215"],"award-info":[{"award-number":["952215"]}]},{"DOI":"10.13039\/501100007514","name":"Universit\u00e0 di Pisa","doi-asserted-by":"crossref","id":[{"id":"10.13039\/501100007514","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["Mach Learn"],"published-print":{"date-parts":[[2024,10]]},"abstract":"<jats:title>Abstract<\/jats:title><jats:p>Machine learning models often struggle to generalize accurately when tested on new class distributions that were not present in their training data. This is a significant challenge for real-world applications that require quick adaptation without the need for retraining. To address this issue, few-shot learning frameworks, which includes models such as Siamese Networks, have been proposed. Siamese Networks learn similarity between pairs of records through a metric that can be easily extended to new, unseen classes. However, these systems lack interpretability, which can hinder their use in certain applications. To address this, we propose a data-agnostic method to explain the outcomes of Siamese Networks in the context of few-shot learning. Our explanation method is based on a post-hoc perturbation-based procedure that evaluates the contribution of individual input features to the final outcome. As such, it falls under the category of post-hoc explanation methods. We present two variants, one that considers each input feature independently, and another that evaluates the interplay between features. Additionally, we propose two perturbation procedures to evaluate feature contributions. Qualitative and quantitative results demonstrate that our method is able to identify highly discriminant intra-class and inter-class characteristics, as well as predictive behaviors that lead to misclassification by relying on incorrect features.<\/jats:p>","DOI":"10.1007\/s10994-024-06529-8","type":"journal-article","created":{"date-parts":[[2024,4,29]],"date-time":"2024-04-29T16:02:17Z","timestamp":1714406537000},"page":"7723-7760","update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":22,"title":["Explaining Siamese networks in few-shot learning"],"prefix":"10.1007","volume":"113","author":[{"given":"Andrea","family":"Fedele","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2827-7613","authenticated-orcid":false,"given":"Riccardo","family":"Guidotti","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Dino","family":"Pedreschi","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2024,4,29]]},"reference":[{"key":"6529_CR1","unstructured":"Acconcjaioco, M., et\u00a0al. (2020). One-shot learning for acoustic identification of bird species in non-stationary environments. In ICPR (pp. 755\u2013762). IEEE."},{"issue":"11","key":"6529_CR2","doi-asserted-by":"publisher","first-page":"2274","DOI":"10.1109\/TPAMI.2012.120","volume":"34","author":"R Achanta","year":"2012","unstructured":"Achanta, R., et al. (2012). SLIC superpixels compared to state-of-the-art superpixel methods. IEEE Transactions on Pattern Analysis and Machine Intelligence, 34(11), 2274\u20132282.","journal-title":"IEEE Transactions on Pattern Analysis and Machine Intelligence"},{"key":"6529_CR3","doi-asserted-by":"publisher","first-page":"52138","DOI":"10.1109\/ACCESS.2018.2870052","volume":"6","author":"A Adadi","year":"2018","unstructured":"Adadi, A., et al. (2018). Peeking inside the black-box: A survey on explainable artificial intelligence (XAI). IEEE Access, 6, 52138\u201352160.","journal-title":"IEEE Access"},{"issue":"7","key":"6529_CR4","doi-asserted-by":"publisher","DOI":"10.1371\/journal.pone.0130140","volume":"10","author":"S Bach","year":"2015","unstructured":"Bach, S., Binder, A., Montavon, G., Klauschen, F., M\u00fcller, K.-R., & Samek, W. (2015). On pixel-wise explanations for non-linear classifier decisions by layer-wise relevance propagation. PLoS ONE, 10(7), e0130140.","journal-title":"PLoS ONE"},{"issue":"6","key":"6529_CR5","first-page":"28","volume":"1992","author":"S Beucher","year":"1992","unstructured":"Beucher, S. (1992). The watershed transformation applied to image segmentation. Scanning Microscopy, 1992(6), 28.","journal-title":"Scanning Microscopy"},{"key":"6529_CR6","doi-asserted-by":"crossref","unstructured":"Chen, C., et\u00a0al. (2021). Self-learn to explain Siamese networks robustly. In ICDM (pp. 1018\u20131023). IEEE.","DOI":"10.1109\/ICDM51629.2021.00116"},{"key":"6529_CR7","doi-asserted-by":"publisher","first-page":"211","DOI":"10.21552\/edpl\/2020\/2\/8","volume":"6","author":"D Dimitrova","year":"2020","unstructured":"Dimitrova, D. (2020). The right to explanation under the right of access to personal data: Legal foundations in and beyond the gdpr. The European Data Protection Law Review, 6, 211.","journal-title":"The European Data Protection Law Review"},{"key":"6529_CR8","unstructured":"Erhan, D., Courville, A., & Bengio, Y. (2010). Understanding representations learned in deep architectures."},{"key":"6529_CR9","doi-asserted-by":"crossref","unstructured":"Fedele, A., Guidotti, R., & Pedreschi, D. (2022). Explaining siamese networks in few-shot learning for audio data. In DS, volume 13601 of Lecture Notes in Computer Science (pp. 509\u2013524). Springer.","DOI":"10.1007\/978-3-031-18840-4_36"},{"issue":"2","key":"6529_CR10","doi-asserted-by":"publisher","first-page":"167","DOI":"10.1023\/B:VISI.0000022288.19776.77","volume":"59","author":"PF Felzenszwalb","year":"2004","unstructured":"Felzenszwalb, P. F., et al. (2004). Efficient graph-based image segmentation. International Journal of Computer Vision, 59(2), 167\u2013181.","journal-title":"International Journal of Computer Vision"},{"key":"6529_CR11","doi-asserted-by":"crossref","unstructured":"Fiaidhi, J., Mohammed, S., & Zezos, P. (2022). An xai thick data assisted caption generation for labeling severity of ulcerative colitis video colonoscopy. In ICHI (pp. 647\u2013652). IEEE.","DOI":"10.1109\/ICHI54592.2022.00131"},{"key":"6529_CR12","unstructured":"Flanagan, J.\u00a0L. (2013). Speech analysis synthesis and perception, volume\u00a03. Springer."},{"key":"6529_CR13","unstructured":"Fries, J., Wu, S., Ratner, A., & R\u00e9, C. (2017). Swellshark: A generative model for biomedical named entity recognition without labeled data. arXiv:1704.06360."},{"key":"6529_CR14","doi-asserted-by":"crossref","unstructured":"Gong, X., Chen, X., Zhong, Z., & Chen, W. (2021). Enhanced few-shot learning for intrusion detection in railway video surveillance. IEEE Transactions on Intelligent Transportation Systems.","DOI":"10.1109\/TITS.2021.3102613"},{"key":"6529_CR15","doi-asserted-by":"crossref","unstructured":"Guidotti, R., et\u00a0al. (2019). Black box explanation by learning image exemplars in the latent feature space. In ECML\/PKDD, LNCS (pp. 189\u2013205). Springer.","DOI":"10.1007\/978-3-030-46150-8_12"},{"issue":"5","key":"6529_CR16","doi-asserted-by":"publisher","first-page":"93:1","DOI":"10.1145\/3236009","volume":"51","author":"R Guidotti","year":"2019","unstructured":"Guidotti, R., et al. (2019). A survey of methods for explaining black box models. ACM Computing Surveys, 51(5), 93:1-93:42.","journal-title":"ACM Computing Surveys"},{"key":"6529_CR17","doi-asserted-by":"crossref","unstructured":"Gupta, P., Bhaskarpandit, S., & Gupta, M. (2021). Similarity learning based few shot learning for ECG time series classification. In DICTA (pp. 1\u20138). IEEE.","DOI":"10.1109\/DICTA52665.2021.9647357"},{"issue":"4","key":"6529_CR18","doi-asserted-by":"publisher","first-page":"5","DOI":"10.1177\/0008125619864925","volume":"61","author":"M Haenlein","year":"2019","unstructured":"Haenlein, M., & Kaplan, A. (2019). A brief history of artificial intelligence: On the past, present, and future of artificial intelligence. California Management Review, 61(4), 5\u201314.","journal-title":"California Management Review"},{"key":"6529_CR19","doi-asserted-by":"crossref","unstructured":"Hershey, S., et\u00a0al. (2017). CNN architectures for large-scale audio classification. In ICASSP (pp. 131\u2013135). IEEE.","DOI":"10.1109\/ICASSP.2017.7952132"},{"key":"6529_CR20","doi-asserted-by":"crossref","unstructured":"Hoffer, E., et\u00a0al. (2015). Deep metric learning using triplet network. In SIMBAD, volume 9370 of LNCS (pp. 84\u201392). Springer.","DOI":"10.1007\/978-3-319-24261-3_7"},{"key":"6529_CR21","unstructured":"Honka, T. (2019). One-shot learning with siamese networks for environmental audio."},{"issue":"4","key":"6529_CR22","doi-asserted-by":"publisher","first-page":"463","DOI":"10.1038\/s41591-020-0832-5","volume":"26","author":"M Ienca","year":"2020","unstructured":"Ienca, M., & Vayena, E. (2020). On the responsible use of digital data to tackle the covid-19 pandemic. Nature Medicine, 26(4), 463\u2013464.","journal-title":"Nature Medicine"},{"key":"6529_CR23","unstructured":"Irving, B. (2016). SLIC in a defined mask with applications to medical imaging. arxiv:abs\/1606.09518"},{"key":"6529_CR24","unstructured":"Iwata, T., & Kumagai, A. (2020). Few-shot learning for time-series forecasting. arXiv:2009.14379."},{"key":"6529_CR25","doi-asserted-by":"crossref","unstructured":"Jiang, L., Meng, D., Mitamura, T., & Hauptmann, A. G. (2014). Easy samples first: Self-paced reranking for zero-example multimedia search. In Proceedings of the 22nd ACM international conference on Multimedia (pp. 547\u2013556).","DOI":"10.1145\/2647868.2654918"},{"key":"6529_CR26","unstructured":"Koch, G., Zemel, R., & Salakhutdinov, R., et\u00a0al. (2015). Siamese neural networks for one-shot image recognition. In ICML deep learning workshop, volume\u00a02. Lille."},{"issue":"4","key":"6529_CR27","doi-asserted-by":"publisher","first-page":"2290","DOI":"10.1109\/TGRS.2018.2872830","volume":"57","author":"B Liu","year":"2019","unstructured":"Liu, B., Yu, X., Yu, A., Zhang, P., Wan, G., & Wang, R. (2019). Deep few-shot learning for hyperspectral image classification. IEEE Transactions on Geoscience and Remote Sensing, 57(4), 2290\u20132304.","journal-title":"IEEE Transactions on Geoscience and Remote Sensing"},{"key":"6529_CR28","doi-asserted-by":"crossref","unstructured":"Looveren, A.\u00a0V., et\u00a0al. (2021). Interpretable counterfactual explanations guided by prototypes. In ECML\/PKDD, volume 12976 of LNCS (pp. 650\u2013665). Springer.","DOI":"10.1007\/978-3-030-86520-7_40"},{"key":"6529_CR29","unstructured":"Lundberg, S.\u00a0M., et\u00a0al. (2017). A unified approach to interpreting model predictions. In NIPS (pp. 4765\u20134774)."},{"key":"6529_CR30","doi-asserted-by":"publisher","DOI":"10.1016\/j.eswa.2021.116114","volume":"189","author":"S Majid","year":"2022","unstructured":"Majid, S., Alenezi, F., Masood, S., Ahmad, M., G\u00fcnd\u00fcz, E. S., & Polat, K. (2022). Attention based CNN model for fire detection and localization in real-world images. Expert Systems with Applications, 189, 116114.","journal-title":"Expert Systems with Applications"},{"key":"6529_CR31","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1016\/j.artint.2018.07.007","volume":"267","author":"T Miller","year":"2019","unstructured":"Miller, T. (2019). Explanation in artificial intelligence: Insights from the social sciences. Artificial Intelligence, 267, 1\u201338.","journal-title":"Artificial Intelligence"},{"key":"6529_CR32","doi-asserted-by":"crossref","unstructured":"Moujahid, H., Cherradi, B., Al-Sarem, M., Bahatti, L., Eljialy, A. B. A. M. Y., Alsaeedi, A., & Saeed, F. (2022). Combining cnn and grad-cam for covid-19 disease prediction and visual explanation. Intelligent Automation & Soft Computing,32(2).","DOI":"10.32604\/iasc.2022.022179"},{"issue":"3","key":"6529_CR33","doi-asserted-by":"publisher","first-page":"761","DOI":"10.1007\/s00146-020-00978-0","volume":"35","author":"W Naud\u00e9","year":"2020","unstructured":"Naud\u00e9, W. (2020). Artificial intelligence vs covid-19: limitations, constraints and pitfalls. AI & society, 35(3), 761\u2013765.","journal-title":"AI & society"},{"key":"6529_CR34","unstructured":"Petsiuk, V., et\u00a0al. (2018). RISE: randomized input sampling for explanation of black-box models. In BMVC (p. 151). BMVA Press."},{"key":"6529_CR35","doi-asserted-by":"crossref","unstructured":"Piczak, K. J. (2015). Environmental sound classification with convolutional neural networks. In MLSP (pp. 1\u20136). IEEE","DOI":"10.1109\/MLSP.2015.7324337"},{"issue":"2","key":"6529_CR36","doi-asserted-by":"publisher","first-page":"206","DOI":"10.1109\/JSTSP.2019.2908700","volume":"13","author":"H Purwins","year":"2019","unstructured":"Purwins, H., Li, B., Virtanen, T., Schl\u00fcter, J., Chang, S., & Sainath, T. N. (2019). Deep learning for audio signal processing. IEEE Journal of Selected Topics in Signal Processing, 13(2), 206\u2013219.","journal-title":"IEEE Journal of Selected Topics in Signal Processing"},{"key":"6529_CR37","doi-asserted-by":"crossref","unstructured":"Qiao, S., Liu, C., Shen, W., & Yuille, A.\u00a0L. (2018). Few-shot image recognition by predicting parameters from activations. In CVPR.","DOI":"10.1109\/CVPR.2018.00755"},{"key":"6529_CR38","doi-asserted-by":"crossref","unstructured":"Rahman, S., Khan, S.\u00a0H., & Porikli, F. (2018). Zero-shot object detection: Learning to simultaneously recognize and localize novel concepts. In ACCV (1), volume 11361 of Lecture Notes in Computer Science (pp. 547\u2013563). Springer.","DOI":"10.1007\/978-3-030-20887-5_34"},{"key":"6529_CR39","doi-asserted-by":"crossref","unstructured":"Rath, T.\u00a0M., & Manmatha, R. (2003). Word image matching using dynamic time warping. In CVPR (2) (pp. 521\u2013527). IEEE Computer Society.","DOI":"10.1109\/CVPR.2003.1211511"},{"key":"6529_CR40","doi-asserted-by":"crossref","unstructured":"Ribeiro, M.\u00a0T., et\u00a0al. (2016). \u201cWhy Should I Trust You?\u201d: Explaining the predictions of any classifier. In KDD (pp. 1135\u20131144). ACM.","DOI":"10.1145\/2939672.2939778"},{"issue":"3","key":"6529_CR41","doi-asserted-by":"publisher","first-page":"160","DOI":"10.1007\/s42979-021-00592-x","volume":"2","author":"IH Sarker","year":"2021","unstructured":"Sarker, I. H. (2021). Machine learning: Algorithms, real-world applications and research directions. SN Computer Science, 2(3), 160.","journal-title":"SN Computer Science"},{"key":"6529_CR42","doi-asserted-by":"crossref","unstructured":"Schroff, F., Kalenichenko, D., & Philbin, J. (2015). Facenet: A unified embedding for face recognition and clustering. In CVPR (pp. 815\u2013823). IEEE Computer Society.","DOI":"10.1109\/CVPR.2015.7298682"},{"issue":"2","key":"6529_CR43","doi-asserted-by":"publisher","first-page":"336","DOI":"10.1007\/s11263-019-01228-7","volume":"128","author":"RR Selvaraju","year":"2020","unstructured":"Selvaraju, R. R., et al. (2020). Grad-cam: Visual explanations from deep networks via gradient-based localization. International Journal of Computer Vision, 128(2), 336\u2013359.","journal-title":"International Journal of Computer Vision"},{"key":"6529_CR44","doi-asserted-by":"publisher","DOI":"10.1016\/j.artint.2021.103457","volume":"294","author":"M Setzu","year":"2021","unstructured":"Setzu, M., Guidotti, R., Monreale, A., Turini, F., Pedreschi, D., & Giannotti, F. (2021). Glocalx - from local to global explanations of black box AI models. Artificial Intelligence, 294, 103457.","journal-title":"Artificial Intelligence"},{"key":"6529_CR45","unstructured":"Snell, J., Swersky, K., & Zemel, R.\u00a0S. (2017). Prototypical networks for few-shot learning. In NIPS (pp. 4077\u20134087)."},{"key":"6529_CR46","doi-asserted-by":"crossref","unstructured":"Sung, F., Yang, Y., Zhang, L., Xiang, T., Torr, P.\u00a0H.\u00a0S., & Hospedales, T.\u00a0M. (2018). Learning to compare: Relation network for few-shot learning. In CVPR (pp. 1199\u20131208). Computer Vision Foundation\/IEEE Computer Society.","DOI":"10.1109\/CVPR.2018.00131"},{"key":"6529_CR47","doi-asserted-by":"crossref","unstructured":"Tummala, S., & Suresh, A.\u00a0K. (2023). Few-shot learning using explainable siamese twin network for the automated classification of blood cells. Medical & Biological Engineering & Computing (pp. 1\u201315).","DOI":"10.21203\/rs.3.rs-2215631\/v1"},{"key":"6529_CR48","doi-asserted-by":"crossref","unstructured":"Utkin, L.\u00a0V., et\u00a0al. (2020). Explanation of siamese neural networks for weakly supervised learning. Computer Informatics, 39(6).","DOI":"10.31577\/cai_2020_6_1172"},{"key":"6529_CR49","doi-asserted-by":"crossref","unstructured":"Vedaldi, A., & Soatto, S. (2008). Quick shift and kernel methods for mode seeking. In Computer Vision\u2013ECCV 2008: 10th European Conference on Computer Vision, Marseille, France, October 12-18, 2008, Proceedings, Part IV 10 (pp. 705\u2013718). Springer.","DOI":"10.1007\/978-3-540-88693-8_52"},{"key":"6529_CR50","unstructured":"V\u00e9lez, I. (2018). et\u00a0al. One-shot speaker identification for a service robot using a cnn-based generic verifier. arxiv:abs\/1809.04115."},{"key":"6529_CR51","unstructured":"Vinyals, O., Blundell, C., Lillicrap, T., Kavukcuoglu, K., & Wierstra, D. (2016). Matching networks for one shot learning. In NIPS (pp. 3630\u20133638)."},{"key":"6529_CR52","doi-asserted-by":"crossref","unstructured":"Wang, Y., et\u00a0al. (2020). Generalizing from a few examples: A survey on few-shot learning. ACM Computer Surveys, 53(3), 63:1\u201363:34.","DOI":"10.1145\/3386252"},{"key":"6529_CR53","doi-asserted-by":"crossref","unstructured":"Ye, X., et\u00a0al. (2020). Applying class-to-class SNs to explain classifications with supportive and contrastive cases. In ICCBR, LNCS (pp. 245\u2013260). Springer.","DOI":"10.1007\/978-3-030-58342-2_16"},{"key":"6529_CR54","doi-asserted-by":"crossref","unstructured":"Zeiler, M.\u00a0D., et\u00a0al. (2014). Visualizing and understanding convolutional networks. In ECCV, volume 8689 of LNCS (pp. 818\u2013833). Springer.","DOI":"10.1007\/978-3-319-10590-1_53"},{"key":"6529_CR55","doi-asserted-by":"crossref","unstructured":"Zhang, Y. et\u00a0al. (2019). Siamese style convolutional neural networks for sound search by vocal imitation. IEEE\/ACM Transactions on Audio, Speech, and Language Processing (pp. 429\u2013441).","DOI":"10.1109\/TASLP.2018.2868428"}],"container-title":["Machine Learning"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10994-024-06529-8.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/article\/10.1007\/s10994-024-06529-8\/fulltext.html","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10994-024-06529-8.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2024,10,17]],"date-time":"2024-10-17T21:05:40Z","timestamp":1729199140000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/s10994-024-06529-8"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,4,29]]},"references-count":55,"journal-issue":{"issue":"10","published-print":{"date-parts":[[2024,10]]}},"alternative-id":["6529"],"URL":"https:\/\/doi.org\/10.1007\/s10994-024-06529-8","relation":{},"ISSN":["0885-6125","1573-0565"],"issn-type":[{"value":"0885-6125","type":"print"},{"value":"1573-0565","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,4,29]]},"assertion":[{"value":"2 March 2023","order":1,"name":"received","label":"Received","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"29 January 2024","order":2,"name":"revised","label":"Revised","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"14 February 2024","order":3,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"29 April 2024","order":4,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}},{"order":1,"name":"Ethics","group":{"name":"EthicsHeading","label":"Declarations"}},{"value":"The authors declare that they have no conflict of interest.","order":2,"name":"Ethics","group":{"name":"EthicsHeading","label":"Conflict of interest"}},{"value":"Not applicable.","order":3,"name":"Ethics","group":{"name":"EthicsHeading","label":"Ethics approval"}},{"value":"Not applicable.","order":4,"name":"Ethics","group":{"name":"EthicsHeading","label":"Consent to participate"}},{"value":"The authors declare that they all provide consent for publication.","order":5,"name":"Ethics","group":{"name":"EthicsHeading","label":"Consent for publication"}}]}}