Skip to main content

Leveraging Historical Data to Support User Story Estimation

  • Conference paper
  • First Online:
Product-Focused Software Process Improvement (PROFES 2023)

Abstract

Accurate and reliable effort and cost estimation are still challenging for agile teams in the industry. It is argued that leveraging historical data regarding the actual time spent on similar past projects could be very helpful to support such an activity before companies embark upon a new project. In this paper, we investigate to what extent user story information retrieved from past projects can help developers estimate the effort needed to develop new similar projects. In close collaboration with a software development company, we applied design science and action research principles to develop and evaluate a tool that employs Natural Language Processing (NLP) algorithms to find past similar user stories and retrieve the actual time spent on them. The tool was then used to estimate a real project that was about to start in the company. A focus group with a team of six developers was conducted to evaluate the tool’s efficacy in estimating similar projects. The results of the focus group with the developers revealed that the tool has the potential to complement the existing estimation process and help different interested parties in the company. Our results contribute both towards a new tool-supported approach to help user story estimation based on historical data and with our lessons learned on why, when, and where such a tool and the estimations provided may play a role in agile projects in the industry.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Spacy (2021). https://spacy.io

  2. Abbas, M., Ferrari, A., Shatnawi, A., Enoiu, E., Saadatmand, M., Sundmark, D.: On the relationship between similar requirements and similar software. Requir. Eng. 28, 1–25 (2022)

    Google Scholar 

  3. Alsaadi, B., Saeedi, K.: Data-driven effort estimation techniques of agile user stories: a systematic literature review. Artif. Intell. Rev. 55, 1–32 (2022)

    Article  Google Scholar 

  4. Barbosa, R., Silva, A., Moraes, R.: Use of similarity measure to suggest the existence of duplicate user stories in the srum process. In: 2016 46th Annual IEEE/IFIP International Conference on Dependable Systems and Networks Workshop (DSN-W), pp. 2–5. IEEE (2016)

    Google Scholar 

  5. Cer, D., et al.: Universal sentence encoder. CoRR abs/1803.11175 (2018)

    Google Scholar 

  6. Choetkiertikul, M., Dam, H.K., Tran, T., Pham, T., Ghose, A., Menzies, T.: A deep learning model for estimating story points. IEEE Trans. Softw. Eng. 45(7), 637–656 (2018)

    Article  Google Scholar 

  7. Cohn, M.: User Stories Applied: For Agile Software Development. Addison-Wesley Professional, Boston (2004)

    Google Scholar 

  8. Conneau, A., Kiela, D., Schwenk, H., Barrault, L., Bordes, A.: Supervised learning of universal sentence representations from natural language inference data. CoRR abs/1705.02364 (2017). http://arxiv.org/abs/1705.02364

  9. Cruzes, D.S., Dyba, T.: Recommended steps for thematic synthesis in software engineering. In: 2011 International Symposium on Empirical Software Engineering and Measurement, pp. 275–284. IEEE (2011)

    Google Scholar 

  10. Dalpiaz, F.: Requirements data sets (user stories) (2018). https://data.mendeley.com/datasets/7zbk8zsd8y/1

  11. De Boer, R.C., Van Vliet, H.: On the similarity between requirements and architecture. J. Syst. Softw. 82(3), 544–550 (2009)

    Article  Google Scholar 

  12. Duszkiewicz, A.G., Sørensen, J.G., Johansen, N., Edison, H., Silva, T.R.: On identifying similar user stories to support agile estimation based on historical data. In: Agil-ISE@CAiSE, pp. 21–26 (2022)

    Google Scholar 

  13. Fu, M., Tantithamthavorn, C.: GPT2SP: a transformer-based agile story point estimation approach. IEEE Trans. Softw. Eng. 49, 611–625 (2022)

    Article  Google Scholar 

  14. Gorschek, T., Garre, P., Larsson, S., Wohlin, C.: A model for technology transfer in practice. IEEE Softw. 23(6), 88–95 (2006)

    Article  Google Scholar 

  15. Grenning, J.: Planning poker or how to avoid analysis paralysis while release planning. Hawthorn Woods: Renaissance Softw. Consult. 3, 22–23 (2002)

    Google Scholar 

  16. Haugen, N.C.: An empirical study of using planning poker for user story estimation. In: AGILE 2006 (AGILE 2006), pp. 9-pp. IEEE (2006)

    Google Scholar 

  17. Lincoln, Y.S., Cuba, E.G.: Naturalistic Inquiry. Sage Publication, Thousand Oaks (1985)

    Book  Google Scholar 

  18. Mahnič, V., Hovelja, T.: On using planning poker for estimating user stories. J. Syst. Softw. 85(9), 2086–2095 (2012)

    Article  Google Scholar 

  19. Miller, R.W.: Schedule, cost, and profit control with pert: a comprehensive guide for program management (1963)

    Google Scholar 

  20. Moløkken-Østvold, K., Haugen, N.C., Benestad, H.C.: Using planning poker for combining expert estimates in software projects. J. Syst. Softw. 81(12), 2106–2117 (2008)

    Article  Google Scholar 

  21. Park, S., Kim, H., Ko, Y., Seo, J.: Implementation of an efficient requirements-analysis supporting system using similarity measure techniques. Inf. Softw. Technol. 42(6), 429–438 (2000)

    Article  Google Scholar 

  22. Petersen, K., Wohlin, C.: Context in industrial software engineering research. In: Proceedings of the 2009 3rd International Symposium on Empirical Software Engineering and Measurement, pp. 401–404 (2009)

    Google Scholar 

  23. Raharjana, I.K., Siahaan, D., Fatichah, C.: User stories and natural language processing: a systematic literature review. IEEE Access 9, 53811–53826 (2021)

    Article  Google Scholar 

  24. Shepperd, M., Schofield, C.: Estimating software project effort using analogies. IEEE Trans. Softw. Eng. 23(11), 736–743 (1997)

    Article  Google Scholar 

  25. Tawosi, V., Moussa, R., Sarro, F.: Agile effort estimation: have we solved the problem yet? Insights from a replication study. IEEE Trans. Softw. Eng. 49(4), 2677–2697 (2022)

    Article  Google Scholar 

  26. Trendowicz, A., Jeffery, R.: Software Project Effort Estimation. Foundations and Best Practice Guidelines for Success, Springer, Cham (2014). https://doi.org/10.1007/978-3-319-03629-8

    Book  Google Scholar 

  27. Usman, M., Mendes, E., Börstler, J.: Effort estimation in agile software development: a survey on the state of the practice. In: Proceedings of the 19th international conference on Evaluation and Assessment in Software Engineering, pp. 1–10 (2015)

    Google Scholar 

  28. Wieringa, R.J.: Case study research in information systems engineering. In: Proceedings of the 25th International Conference on Advanced Information Systems Engineering, p. xii (2013)

    Google Scholar 

  29. Wieringa, R.J.: Design Science Methodology for Information Systems and Software Engineering. Springer, Heidelberg (2014). https://doi.org/10.1007/978-3-662-43839-8

    Book  Google Scholar 

  30. Wohlin, C., Runeson, P., Höst, M., Ohlsson, M.C., Regnell, B., Wesslén, A.: Experimentation in Software Engineering. Springer, Heidelberg (2012). https://doi.org/10.1007/978-3-642-29044-2

  31. Zhang, S., Hu, Y., Bian, G.: Research on string similarity algorithm based on levenshtein distance. In: 2017 IEEE 2nd Advanced Information Technology, Electronic and Automation Control Conference (IAEAC), pp. 2247–2251 (2017)

    Google Scholar 

  32. Zhao, L., et al.: Natural language processing (NLP) for requirements engineering: a systematic mapping study. ACM Comput. Surv. 54, 1–41 (2021)

    Google Scholar 

Download references

Acknowledgments

This work was supported by the University of Southern Denmark’s Internal Strategic Fund and ELLIIT: the Swedish Strategic Research Area in IT and Mobile Communications.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Thiago Rocha Silva .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Duszkiewicz, A.G., Sørensen, J.G., Johansen, N., Edison, H., Rocha Silva, T. (2024). Leveraging Historical Data to Support User Story Estimation. In: Kadgien, R., Jedlitschka, A., Janes, A., Lenarduzzi, V., Li, X. (eds) Product-Focused Software Process Improvement. PROFES 2023. Lecture Notes in Computer Science, vol 14483. Springer, Cham. https://doi.org/10.1007/978-3-031-49266-2_20

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-49266-2_20

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-49265-5

  • Online ISBN: 978-3-031-49266-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics