Virginia Tech® home

Software Development and Automation: Ethical Use of AI for Algorithm Design, Code Generation and Optimization

Purpose and Context

AI technologies, including generative models, machine learning systems, and other algorithmic tools, can assist researchers by writing code, automating data processing, optimizing algorithms, developing predictive models, and building research tools. When used responsibly, they can enhance productivity, reproducibility, accessibility, and discovery. However, automating research processes also introduces ethical, legal, and security risks, including errors that can propagate quickly, hidden bias in AI-generated code or training data, copyright or licensing violations, and compliance gaps when automated tools handle restricted data. Ethical use of AI in software development and automation means maintaining human oversight, verification, and accountability for all code, models, and processes, ensuring they comply with university policies, data classifications, and sponsor requirements. 

AI Principle 1ApplicationTips and Considerations
Mission AlignmentUse AI tools to assist in building or improving research software, scripts or automated workflows in ways that advance Virginia Tech’s missions of discovery, learning, and service.
  • Apply AI responsibly to improve efficiency, transparency, and reproducibility in research computing.
  • Use AI-driven automation to expand accessibility or reduce human error in complex workflows.
  • Avoid automation that prioritizes convenience over data integrity or research quality.
  • Ensure AI-generated code, models, or outputs align with Virginia Tech’s Principles of Communityby avoiding bias, exclusionary logic, or disrespectful content that could harm individuals or groups.
Innovation for GoodEmploy AI to innovate responsibly in code generation, automation, and prediction, balancing creativity with ethical foresight.
  • Use AI to prototype tools that enhance human capability or scholarly insight.
  • Use existing machine learning tools responsibly to support automation or analysis, and regularly assess tool performance, potential bias, and interpretability when applying them to your research.
  • Consider whether automated systems could unintentionally replace critical human judgment, amplify bias, or create inequities in access, decision-making, or impacts.
 
Human-Centered BenefitEnsure AI automation supports learning and mentorship.
  • Use AI-generated code or machine learning-driven processes as learning and mentoring tools for students and staff developers.
  • Encourage review and discussion of AI-generated code as part of team learning and peer mentoring.
  • When creating software or automation that relies on AI tools, ensure the resulting outputs and workflows remain understandable, maintainable, and usable by humans. Design these workflows to expand human capability rather than creating systems only the AI or a few experts can operate.
  • Avoid using AI in ways that prevent students and trainees from developing essential programming or analytical skills.
Responsible and Ethical UseConfirm that AI-generated software complies with licenses and security standards.
  • Use AI tools approved by Virginia Tech that align with the data classification level.
  • Attribute AI-assisted code generation transparently in documentation and publications.
  • Do not deploy unverified AI-generated code in systems, especially with restricted data.
Fairness and TransparencyMaintain transparency in code authorship, model development, and disclose AI assistance in automation or algorithm design.
  • Document when and how AI designed, generated, optimized, or tested code.
  • When AI tools for code generation algorithm design, or workflow automation, review available documentation (e.g., known limitations, design assumptions, an potential bias) to understand how the tool may influence the logic or behavior of resulting software.
  • Review documentation provided by AI tools to understand how their design or training might shape automated decisions or outputs.
  • If you are developing or sharing data that might be used to train AI systems, document the dataset’s scope, sources, and known limitations. Include metadata and provenance that describe potential bias and appropriate contexts for reuse. Established frameworks such as Datasheets for Datasets and The Data Nutrition Projectcan be consulted for additional guidance.
Human Judgment and AccountabilityHumans remain responsible and accountable for all AI-generated code and models.
  • Review, test, and validate AI-generated code, machine learning outputs, and automated processes before implementation.
  • Maintain version control and clear records of code and model review and approval.
  • When using machine learning algorithms in automated workflows, maintain human oversight and verify results before integration into research conclusions.
  • Do not attribute authorship to AI or rely on unverified AI-generated results or machine learning-driven automation for critical research functions. When verification is not possible, researchers should acknowledge this constraint and apply appropriate safeguards, such as transparency about uncertainty, expert judgment, and alternative validation approaches, to maintain research integrity.
Data Security and PrivacySecurely manage all code, data, and systems involved in automation, including model training and storage.
  • Use only Virginia Tech–approved AI and computing platforms for coding or automation that handle sensitive data.
  • Follow Virginia Tech Risk Classification Standardwhen processing data with automated scripts, trained models, or AI-generated workflows.
  • Never input or upload proprietary, confidential, or export-controlled data into publicly accessible code-generation tools.
  1. Principles in this table are drawn from Virginia Tech’s Responsible and Ethical AI Framework (v1.0, 2025). This guidance operationalizes those principles for research contexts across the stages of the research lifecycle.

Questions to Consider

  • Have I verified that all AI- or machine learning-generated code, models, or automated processes meet cybersecurity and data protection requirements? 
  • Have I documented the role of AI or machine learning in code creation, model development, or workflow automation?
  • Does the research team retain appropriate expertise and oversight to evaluate and validate AI-generated outputs, even when the AI performs tasks beyond what a human could manually produce? 
  • Could automated or predictive systems unintentionally introduce bias or inequity into research results?

Real-World Tips 

Before integrating AI- or machine learning-generated code, models, or automated processes into your research, perform a code and compliance check: 

  1. Review the tool’s terms of service and licensing to ensure compatibility with university and sponsor policies. 
  2. Test AI- or machine learning-generated code and models in a controlled environment before deployment. 
  3. Confirm that the platform and data storage align with the risk level of your project and have been approved by Virginia Tech. 
  4. Document human verification steps and approvals in your version control or lab notebook. 

This practice protects research integrity, data security, and intellectual property while reinforcing accountability across collaborative teams.