Andrew Lensen
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Andrew Lensen has a total of 46 co-authors. Here are the top co-authors by number of shared publications:
- Bing Xue
Centre for Data Science and Artificial Intelligence & School of Engineering and Computer Science, Victoria University of Wellington, New Zealand
30 shared publications Mengjie Zhang
23 shared publications- Mengjie Zhang
Centre for Data Science and Artificial Intelligence & School of Engineering and Computer Science, Victoria University of Wellington, New Zealand
23 shared publications Bing Xue
15 shared publications- Harith Al-Sahaf
Victoria University of Wellington, Wellington, New Zealand
7 shared publications - Yi Mei
Centre for Data Science and Artificial Intelligence & School of Engineering and Computer Science, Victoria University of Wellington, New Zealand
5 shared publications
Latest Publications
- Open Access
- 13 November 2026
- Published by Elsevier in SSRN Electronic Journal
Grokking Misogyny: Is New Zealand Law Ready for Sexualised Deepfakes?
This article examines whether New Zealand's legal framework is equipped to address the rise of nonconsensual sexualised deepfakes generated generative AI tools integrated into social media platforms. While platforms such as X and Meta increasingly deploy AI systems capable of producing realistic synthetic images, these technologies have intensified gendered abuse, disproportionately targeting women. Using a Grok-generated deepfake incident as a case study, the article evaluates the applicability and limitations of the Harmful Digital Communications Act 2015, privacy torts, defamation, and negligence. Taking a feminist legal and technofeminist lens, this article argues that existing laws have limited meaningful application to harm enabled by AI. Although the proposed Deepfake Digital Harm and Exploitation Bill may close definitional gaps, criminalisation alone cannot address systemic risks created by platform design, business incentives, and inadequate safeguards.
- 13 November 2026
- Published by Elsevier in SSRN Electronic Journal
Open AccessGrokking Misogyny: Is New Zealand Law Ready for Sexualised Deepfakes?
This article examines whether New Zealand's legal framework is equipped to address the rise of nonconsensual sexualised deepfakes generated generative AI tools integrated into social media platforms. While platforms such as X and Meta increasingly deploy AI systems capable of producing realistic synthetic images, these technologies have intensified gendered abuse, disproportionately targeting women. Using a Grok-generated deepfake incident as a case study, the article evaluates the applicability and limitations of the Harmful Digital Communications Act 2015, privacy torts, defamation, and negligence. Taking a feminist legal and technofeminist lens, this article argues that existing laws have limited meaningful application to harm enabled by AI. Although the proposed Deepfake Digital Harm and Exploitation Bill may close definitional gaps, criminalisation alone cannot address systemic risks created by platform design, business incentives, and inadequate safeguards.
- Open Access
- 18 May 2026
- Published by Wiley in Journal of Ecology
- Vol. 114 (5)
A machine learning framework for mapping shifts in species' abundance from long‐term monitoring data
Climate change has driven extensive reorganisation of plant communities as species adjust their ranges in response to changing conditions. Existing studies focus on the role of temperature, documenting shifts in range margins, but neglect changes in abundance within the range. This results in unexplained patterns complicated by overlooked, interacting biotic and abiotic drivers, such as soil properties and herbivores, limiting our ability to predict forest response and vulnerability to climate change. Here, we develop the Abundance Trend Indicator (ATI), a machine learning approach that learns the conditions under which changes in species' abundance have occurred and, thus, the extent and location of the mismatch of a species' current range to its total realised habitat. The resulting abundance shift maps identify abundance shift directions, vulnerable species and their drivers. We validate the algorithm on New Zealand's forest inventory data (2821 sites, 77 woody species, collectively accounting for 75% of forest canopy nationally) and 37 predictor variables, which include climatic, topographic, edaphic and biological factors. ATI confirms globally observed trends of upward and poleward abundance shifts, but reveals drivers such as soil pH, grazing and climate stability for species shifting in opposite directions. Moreover, our findings suggest that vulnerability is primarily explained by a plant's ability to tolerate or avoid stress resulting from climatic fluctuations and limited migration capacity. Synthesis . Using existing forest inventory data, ATI models within‐range abundance shifts, rather than changes in range margins, resulting in earlier detection of environmental drivers and geographical directions of plant migration. This enables the early identification of vulnerable species.
- 18 May 2026
- Published by Wiley in Journal of Ecology
- Vol. 114 (5)
Open AccessA machine learning framework for mapping shifts in species' abundance from long‐term monitoring data
Climate change has driven extensive reorganisation of plant communities as species adjust their ranges in response to changing conditions. Existing studies focus on the role of temperature, documenting shifts in range margins, but neglect changes in abundance within the range. This results in unexplained patterns complicated by overlooked, interacting biotic and abiotic drivers, such as soil properties and herbivores, limiting our ability to predict forest response and vulnerability to climate change. Here, we develop the Abundance Trend Indicator (ATI), a machine learning approach that learns the conditions under which changes in species' abundance have occurred and, thus, the extent and location of the mismatch of a species' current range to its total realised habitat. The resulting abundance shift maps identify abundance shift directions, vulnerable species and their drivers. We validate the algorithm on New Zealand's forest inventory data (2821 sites, 77 woody species, collectively accounting for 75% of forest canopy nationally) and 37 predictor variables, which include climatic, topographic, edaphic and biological factors. ATI confirms globally observed trends of upward and poleward abundance shifts, but reveals drivers such as soil pH, grazing and climate stability for species shifting in opposite directions. Moreover, our findings suggest that vulnerability is primarily explained by a plant's ability to tolerate or avoid stress resulting from climatic fluctuations and limited migration capacity. Synthesis . Using existing forest inventory data, ATI models within‐range abundance shifts, rather than changes in range margins, resulting in earlier detection of environmental drivers and geographical directions of plant migration. This enables the early identification of vulnerable species.
- Open Access
- 17 February 2026
- Published by Elsevier in SSRN Electronic Journal
Interpretable Wildlife Classification by Coupling Genetics, Scoring Systems, and Computer Vision
Despite increasing interest in using machine learning to improve field-based species identification, key challenges remain, particularly limited model interpretability and the large datasets typically required for reliable performance. Additionally, model accuracy often depends on expert-labelled training data, which may reflect the same assumptions about trait diagnosability that constrain traditional methods. We develop interpretable, trait-specific machine learning protocols designed to perform effectively with relatively small datasets. We incorporate heatmaps to assess whether poor model performance arises from data limitations, modeling artifacts, or irrelevant image features. Interpretability is further enhanced through a numerical scoring system applied to individual diagnostic traits, with final classifications based on aggregated trait values rather than a single model output. Using transfer learning with a pretrained ResNet34 architecture, we developed ten neural network models trained on images representing diagnostic phenotypic traits. Models were trained on photographs of genetically characterized individuals, reducing reliance on expert identification alone. We applied this framework to distinguish between two closely related and historically difficult-to-identify species, the Mexican Duck (Anas diazi) and the Mallard (Anas platyrhynchos). Trait-based models achieved balanced accuracies exceeding 90%, accounting for an unbalanced training dataset. However, when evaluated against expert and non-expert classifications for the same 30 individuals, overall AI performance more closely resembled that of non-experts. Heatmap analyses revealed inconsistent attention to background features, indicating sensitivity to image artifacts. This study demonstrates how integrating genomics, interpretable AI, and multi-trait analyses can reduce bias in phenotypic identification and improve classification performance with limited datasets.
- 17 February 2026
- Published by Elsevier in SSRN Electronic Journal
Open AccessInterpretable Wildlife Classification by Coupling Genetics, Scoring Systems, and Computer Vision
Despite increasing interest in using machine learning to improve field-based species identification, key challenges remain, particularly limited model interpretability and the large datasets typically required for reliable performance. Additionally, model accuracy often depends on expert-labelled training data, which may reflect the same assumptions about trait diagnosability that constrain traditional methods. We develop interpretable, trait-specific machine learning protocols designed to perform effectively with relatively small datasets. We incorporate heatmaps to assess whether poor model performance arises from data limitations, modeling artifacts, or irrelevant image features. Interpretability is further enhanced through a numerical scoring system applied to individual diagnostic traits, with final classifications based on aggregated trait values rather than a single model output. Using transfer learning with a pretrained ResNet34 architecture, we developed ten neural network models trained on images representing diagnostic phenotypic traits. Models were trained on photographs of genetically characterized individuals, reducing reliance on expert identification alone. We applied this framework to distinguish between two closely related and historically difficult-to-identify species, the Mexican Duck (Anas diazi) and the Mallard (Anas platyrhynchos). Trait-based models achieved balanced accuracies exceeding 90%, accounting for an unbalanced training dataset. However, when evaluated against expert and non-expert classifications for the same 30 individuals, overall AI performance more closely resembled that of non-experts. Heatmap analyses revealed inconsistent attention to background features, indicating sensitivity to image artifacts. This study demonstrates how integrating genomics, interpretable AI, and multi-trait analyses can reduce bias in phenotypic identification and improve classification performance with limited datasets.
- Open Access
Climate-Driven Forest Reassembly Follows Divergent Functional Pathways in Cold- and Warm-Adapted Communities
Aim: Climate change leads to the widespread rearrangement of forests predominantly towards warm-adapted lower-elevation species. However, understanding the context-specific community assembly mechanisms that underlie these changes requires a mechanistic understanding of plant responses. Here, we use functional traits and diversity indices to identify distinct responses of warm- and cold-adapted forest communities. Methods: Our analysis used seven traits, including leaf morphology, size, nutrient content, and foliar isotopes across 3,625 sites over 49 years. We derived functional strategies from community-weighted mean trait values, assessed assembly mechanisms using five multi-trait functional diversity indices, and estimated structural change and turnover rates using abundance-based dissimilarity metrics. Results: Forest composition shifted significantly towards warm-adapted, lowland species with increasing temperature (+0.12 °C/decade) and decreasing precipitation (0.87%/decade). Communities concurrently increased in functional and species richness, but became functionally more similar, indicating niche packing. Disturbance recruitment shifted warm-adapted forests towards acquisitive traits, and increases in anisohydric strategies, reflecting possible effects of CO 2 fertilisation under drought stress. Cold-adapted forests, in contrast, shifted to conservative strategies and were subject to stronger abiotic filtering. Moreover, changes in nitrogen isotope ratios point towards the importance of ectomycorrhizal associations to persist under climate change. Ecotonal mixed forests showed both responses and experienced the highest turnover. Main conclusions: New Zealand forests follow biome-specific trajectories, characterised by distinct assembly mechanisms and context-dependent ecological responses. While uniform trends obscure these responses, they can be disentangled using a functional diversity framework that incorporates isotopic traits, offering a practical means to detect and interpret community reassembly under climate change.
Open AccessClimate-Driven Forest Reassembly Follows Divergent Functional Pathways in Cold- and Warm-Adapted Communities
Aim: Climate change leads to the widespread rearrangement of forests predominantly towards warm-adapted lower-elevation species. However, understanding the context-specific community assembly mechanisms that underlie these changes requires a mechanistic understanding of plant responses. Here, we use functional traits and diversity indices to identify distinct responses of warm- and cold-adapted forest communities. Methods: Our analysis used seven traits, including leaf morphology, size, nutrient content, and foliar isotopes across 3,625 sites over 49 years. We derived functional strategies from community-weighted mean trait values, assessed assembly mechanisms using five multi-trait functional diversity indices, and estimated structural change and turnover rates using abundance-based dissimilarity metrics. Results: Forest composition shifted significantly towards warm-adapted, lowland species with increasing temperature (+0.12 °C/decade) and decreasing precipitation (0.87%/decade). Communities concurrently increased in functional and species richness, but became functionally more similar, indicating niche packing. Disturbance recruitment shifted warm-adapted forests towards acquisitive traits, and increases in anisohydric strategies, reflecting possible effects of CO 2 fertilisation under drought stress. Cold-adapted forests, in contrast, shifted to conservative strategies and were subject to stronger abiotic filtering. Moreover, changes in nitrogen isotope ratios point towards the importance of ectomycorrhizal associations to persist under climate change. Ecotonal mixed forests showed both responses and experienced the highest turnover. Main conclusions: New Zealand forests follow biome-specific trajectories, characterised by distinct assembly mechanisms and context-dependent ecological responses. While uniform trends obscure these responses, they can be disentangled using a functional diversity framework that incorporates isotopic traits, offering a practical means to detect and interpret community reassembly under climate change.
- 28 April 2025
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Emerging Topics in Computational Intelligence
- Vol. 10 (1) , 676-688
Genetic Programming for Explainable Manifold Learning
Manifold learning techniques play a pivotal role in machine learning by revealing lower-dimensional embeddings within high-dimensional data, thereby enhancing the efficiency, interpretability, and scalability of data analysis. Despite their utility, current manifold learning methods often lack explicit functional mappings, which are critical for ensuring explainability in regulated and high-stakes applications. This paper introduces Genetic Programming for Explainable Manifold Learning (GP-EMaL), a novel integration of Genetic Programming (GP) and Explainable Artificial Intelligence (XAI). GP-EMaL leverages the inherently interpretable, tree-based structures of GP to generate explicit, functional mappings while directly addressing complexity challenges through innovative penalties for tree size, symmetry, and operator selection. By enabling customisable complexity metrics, GP-EMaL adapts to diverse application needs, achieving high manifold quality and significantly improved explainability. Comprehensive experiments demonstrate that GP-EMaL matches or exceeds the performance of existing approaches, producing simpler and more interpretable models. This work advances the state of explainable manifold learning, paving the way for its adoption in domains such as healthcare, environmental modelling, and financial analysis.
- 28 April 2025
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Emerging Topics in Computational Intelligence
- Vol. 10 (1) , 676-688
Genetic Programming for Explainable Manifold Learning
Manifold learning techniques play a pivotal role in machine learning by revealing lower-dimensional embeddings within high-dimensional data, thereby enhancing the efficiency, interpretability, and scalability of data analysis. Despite their utility, current manifold learning methods often lack explicit functional mappings, which are critical for ensuring explainability in regulated and high-stakes applications. This paper introduces Genetic Programming for Explainable Manifold Learning (GP-EMaL), a novel integration of Genetic Programming (GP) and Explainable Artificial Intelligence (XAI). GP-EMaL leverages the inherently interpretable, tree-based structures of GP to generate explicit, functional mappings while directly addressing complexity challenges through innovative penalties for tree size, symmetry, and operator selection. By enabling customisable complexity metrics, GP-EMaL adapts to diverse application needs, achieving high manifold quality and significantly improved explainability. Comprehensive experiments demonstrate that GP-EMaL matches or exceeds the performance of existing approaches, producing simpler and more interpretable models. This work advances the state of explainable manifold learning, paving the way for its adoption in domains such as healthcare, environmental modelling, and financial analysis.
- 27 August 2024
- Published by Cassyni
AI in the Academy: A Collaborative Debate
The emergence of artificial intelligence (AI) is swiftly changing the landscape of academia, the tools at our disposal as academics, how we teach, research, and produce knowledge. AI could be viewed as a game-changer; automating and outsourcing mundane tasks and processes. Or a threat to the ‘core business’ of intellectual life, or raise questions about how knowledge is produced and used, especially in Aotearoa New Zealand. This collaborative debate draws together the perspectives of academics from across Te Herenga Waka Victoria University of Wellinton, inviting a critical conversation that explores the promises and perils of AI in academia. AI in the Academy is a collaborative debate. In this format, speakers are encouraged to find common ground before presenting their differing viewpoints. The goal is not necessarily to win over the other side, but to reach a deeper understanding of the issue, challenges, and opportunities of AI. This type of debate emphasises listening, mutual understanding, open-mindedness, and respect for different perspectives.
- 27 August 2024
- Published by Cassyni
AI in the Academy: A Collaborative Debate
The emergence of artificial intelligence (AI) is swiftly changing the landscape of academia, the tools at our disposal as academics, how we teach, research, and produce knowledge. AI could be viewed as a game-changer; automating and outsourcing mundane tasks and processes. Or a threat to the ‘core business’ of intellectual life, or raise questions about how knowledge is produced and used, especially in Aotearoa New Zealand. This collaborative debate draws together the perspectives of academics from across Te Herenga Waka Victoria University of Wellinton, inviting a critical conversation that explores the promises and perils of AI in academia. AI in the Academy is a collaborative debate. In this format, speakers are encouraged to find common ground before presenting their differing viewpoints. The goal is not necessarily to win over the other side, but to reach a deeper understanding of the issue, challenges, and opportunities of AI. This type of debate emphasises listening, mutual understanding, open-mindedness, and respect for different perspectives.
- Open Access
- 14 July 2024
- Published by Association for Computing Machinery (ACM)
- p. 247-250
Intepretable Local Explanations Through Genetic Programming
As machine learning models become increasingly prevalent in everyday life, there is a growing demand for explanation of the predictions generated by these models. However, most models used by companies are black-boxes in nature, without the capacity to provide explanations to users. This reduces public trust in these models, and exists as a barrier to adoption of machine learning. Research into providing explanations to users has shown that local explanation techniques provide more acceptable explanations to users than attempting to explain an entire model, as a user often does not need to understand the entirety of a model. This work builds on prior work in the field to produce a competitive method for high-fidelity local explanations utilising genetic programming. Two different data representations targeted towards both users with and without machine learning experience are evaluated. The experimental results show comparable fidelity to the state-of-the art, while exhibiting more comprehensible explanations due to including fewer features in each explanation. The method enables decomposable explanations that are easy to interpret, while still capturing non-linear relationships in the original model.
- 14 July 2024
- Published by Association for Computing Machinery (ACM)
- p. 247-250
Open AccessIntepretable Local Explanations Through Genetic Programming
As machine learning models become increasingly prevalent in everyday life, there is a growing demand for explanation of the predictions generated by these models. However, most models used by companies are black-boxes in nature, without the capacity to provide explanations to users. This reduces public trust in these models, and exists as a barrier to adoption of machine learning. Research into providing explanations to users has shown that local explanation techniques provide more acceptable explanations to users than attempting to explain an entire model, as a user often does not need to understand the entirety of a model. This work builds on prior work in the field to produce a competitive method for high-fidelity local explanations utilising genetic programming. Two different data representations targeted towards both users with and without machine learning experience are evaluated. The experimental results show comparable fidelity to the state-of-the art, while exhibiting more comprehensible explanations due to including fewer features in each explanation. The method enables decomposable explanations that are easy to interpret, while still capturing non-linear relationships in the original model.
- Open Access
Explaining Genetic Programming Trees using Large Language Models
Genetic programming (GP) has the potential to generate explainable results, especially when used for dimensionality reduction. In this research, we investigate the potential of leveraging eXplainable AI (XAI) and large language models (LLMs) like ChatGPT to improve the interpretability of GP-based non-linear dimensionality reduction. Our study introduces a novel XAI dashboard named GP4NLDR, the first approach to combine state-of-the-art GP with an LLM-powered chatbot to provide comprehensive, user-centred explanations. We showcase the system's ability to provide intuitive and insightful narratives on high-dimensional data reduction processes through case studies. Our study highlights the importance of prompt engineering in eliciting accurate and pertinent responses from LLMs. We also address important considerations around data privacy, hallucinatory outputs, and the rapid advancements in generative AI. Our findings demonstrate its potential in advancing the explainability of GP algorithms. This opens the door for future research into explaining GP models with LLMs.
Open AccessExplaining Genetic Programming Trees using Large Language Models
Genetic programming (GP) has the potential to generate explainable results, especially when used for dimensionality reduction. In this research, we investigate the potential of leveraging eXplainable AI (XAI) and large language models (LLMs) like ChatGPT to improve the interpretability of GP-based non-linear dimensionality reduction. Our study introduces a novel XAI dashboard named GP4NLDR, the first approach to combine state-of-the-art GP with an LLM-powered chatbot to provide comprehensive, user-centred explanations. We showcase the system's ability to provide intuitive and insightful narratives on high-dimensional data reduction processes through case studies. Our study highlights the importance of prompt engineering in eliciting accurate and pertinent responses from LLMs. We also address important considerations around data privacy, hallucinatory outputs, and the rapid advancements in generative AI. Our findings demonstrate its potential in advancing the explainability of GP algorithms. This opens the door for future research into explaining GP models with LLMs.
- Open Access
- 12 July 2023
- Published by Association for Computing Machinery (ACM)
- p. 393-401
Producing Diverse Rashomon Sets of Counterfactual Explanations with Niching Particle Swarm Optimization Algorithms
Counterfactual explanation is a popular eXplainable AI technique, that gives contrastive explanations to answer potential "what-if" questions about the workings of machine learning models. However, research into how explanations are understood by human beings has shown that an optimal explanation should be both selected and social, providing multiple varying explanations for the same event that allow a user to select specific explanations based on prior beliefs and cognitive biases. In order to provide such explanations, a Rashomon set of explanations can be created: a set of explanations utilising different features in the data. Current work to generate counterfactual explanations does not take this need into account, only focusing on producing a single optimal counterfactual. This work presents a novel method for generating a diverse Rashomon set of counterfactual explanations using the final population from a Particle Swarm Optimisation (PSO) algorithm. It explores a selection of PSO niching algorithms for PSO and evaluates the best algorithm to produce these sets. Finally, the ability of this method to be implemented and trusted by users is discussed.
- 12 July 2023
- Published by Association for Computing Machinery (ACM)
- p. 393-401
Open AccessProducing Diverse Rashomon Sets of Counterfactual Explanations with Niching Particle Swarm Optimization Algorithms
Counterfactual explanation is a popular eXplainable AI technique, that gives contrastive explanations to answer potential "what-if" questions about the workings of machine learning models. However, research into how explanations are understood by human beings has shown that an optimal explanation should be both selected and social, providing multiple varying explanations for the same event that allow a user to select specific explanations based on prior beliefs and cognitive biases. In order to provide such explanations, a Rashomon set of explanations can be created: a set of explanations utilising different features in the data. Current work to generate counterfactual explanations does not take this need into account, only focusing on producing a single optimal counterfactual. This work presents a novel method for generating a diverse Rashomon set of counterfactual explanations using the final population from a Particle Swarm Optimisation (PSO) algorithm. It explores a selection of PSO niching algorithms for PSO and evaluates the best algorithm to produce these sets. Finally, the ability of this method to be implemented and trusted by users is discussed.