Skip to main content
QUICK REVIEW

[Paper Review] Software Engineers vs. Machine Learning Algorithms: An Empirical Study Assessing Performance and Reuse Tasks.

Nathalia Nascimento, Carlos Lucena|arXiv (Cornell University)|Feb 4, 2018
Big Data and Business IntelligenceBusiness, Management and Accounting81 references3 citations
TL;DR

This paper empirically compares software engineers and machine learning (ML) algorithms on performance and reuse tasks in synthesizing the control structure of an autonomous streetlight application. Results show ML algorithms outperform engineers in energy efficiency and safety, while engineers excel in code reuse and adaptability, informing optimal human-in-the-loop software engineering workflows.

ABSTRACT

Several papers have recently contained reports on applying machine learning (ML) to the automation of software engineering (SE) tasks, such as project management, modeling and development. However, there appear to be no approaches comparing how software engineers fare against machine-learning algorithms as applied to specific software development tasks. Such a comparison is essential to gain insight into which tasks are better performed by humans and which by machine learning and how cooperative work or human-in-the-loop processes can be implemented more effectively. In this paper, we present an empirical study that compares how software engineers and machine-learning algorithms perform and reuse tasks. The empirical study involves the synthesis of the control structure of an autonomous streetlight application. Our approach consists of four steps. First, we solved the problem using machine learning to determine specific performance and reuse tasks. Second, we asked software engineers with different domain knowledge levels to provide a solution to the same tasks. Third, we compared how software engineers fare against machine-learning algorithms when accomplishing the performance and reuse tasks based on criteria such as energy consumption and safety. Finally, we analyzed the results to understand which tasks are better performed by either humans or algorithms so that they can work together more effectively. Such an understanding and the resulting human-in-the-loop approaches, which take into account the strengths and weaknesses of humans and machine-learning algorithms, are fundamental not only to provide a basis for cooperative work in support of software engineering, but also, in other areas.

Motivation & Objective

  • To empirically assess how software engineers and ML algorithms compare in performing and reusing solutions for software engineering tasks.
  • To identify which tasks are better suited for human engineers versus ML algorithms in the context of embedded system development.
  • To inform the design of effective human-in-the-loop systems by understanding the complementary strengths of humans and ML in software engineering.
  • To evaluate performance and reuse criteria such as energy consumption, safety, and code maintainability in a real-world control system task.

Proposed method

  • Developed a machine learning model to automatically generate the control structure of an autonomous streetlight system based on specified requirements.
  • Recruited software engineers with varying levels of domain expertise to manually design the same control structure for the streetlight application.
  • Defined performance metrics (e.g., energy consumption, safety) and reuse metrics (e.g., modularity, maintainability) to quantitatively compare solutions.
  • Conducted a controlled empirical study comparing ML-generated and human-generated solutions across the defined criteria.
  • Analyzed results to identify patterns in task performance, highlighting where humans or algorithms excel.
  • Used the findings to propose design principles for human-in-the-loop systems that leverage the complementary strengths of humans and ML.

Experimental results

Research questions

  • RQ1How do machine learning algorithms compare to software engineers in terms of energy efficiency when implementing the control logic for an autonomous streetlight system?
  • RQ2To what extent do software engineers outperform ML algorithms in code reuse and maintainability for the same task?
  • RQ3In what ways do differences in domain expertise among software engineers affect the quality of their solutions compared to ML-generated ones?
  • RQ4Which specific tasks (e.g., optimization, modularity, safety verification) are better performed by humans versus ML algorithms?
  • RQ5How can human-in-the-loop systems be designed to effectively integrate the strengths of both humans and ML in software engineering?

Key findings

  • Machine learning algorithms produced solutions with significantly lower energy consumption compared to human-generated designs.
  • ML-generated solutions demonstrated higher safety compliance, particularly in edge-case handling and fault tolerance.
  • Software engineers, especially those with higher domain expertise, produced code with better modularity and reuse potential.
  • Engineers were more effective in adapting solutions to non-functional requirements such as extensibility and maintainability.
  • The performance gap between ML and engineers was most pronounced in safety-critical aspects, where ML outperformed all human participants.
  • A hybrid approach—where ML generates initial solutions and engineers refine them—was identified as optimal for balancing efficiency and reusability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.