{"id":{"repo_id":"iastate","oai_identifier":"oai:dr.lib.iastate.edu:20.500.12876/94301"},"canonical_url":"https://search.ndltd.org/etd/iastate/oai:dr.lib.iastate.edu:20.500.12876/94301","repository":{"repo_id":"iastate","name":"Iowa State University","base_url":"https://dr.lib.iastate.edu/server/oai/request"},"display":{"title":"Towards understanding the challenges faced by machine learning software developers and enabling automated solutions","abstract":"<p>Modern software systems are increasingly including machine learning (ML) as an integral component. However, we do not yet understand the difficulties faced by software developers when learning about ML libraries and using them within their systems. To fill that gap this thesis reports on a detailed (manual) examination of 3,243 highly-rated Q&A posts related to ten ML libraries, namely Tensorflow, Keras, scikitlearn, Weka, Caffe, Theano, MLlib, Torch, Mahout, and H2O, on Stack Overflow, a popular online technical Q&A forum. Our findings reveal the urgent need for software engineering (SE) research in this area. The second part of the thesis particularly focuses on understanding the Deep Neural Network (DNN) bug characteristics. We study 2,716 high-quality posts from Stack Overflow and 500 bug fix commits from Github about five popular deep learning libraries Caffe, Keras, Tensorflow, Theano, and Torch to understand the types of bugs, their root causes and impacts, bug-prone stage of deep learning pipeline as well as whether there are some common antipatterns found in this buggy software. While exploring the bug characteristics, our findings imply that repairing software that uses DNNs is one such unmistakable SE need where automated tools could be beneficial; however, we do not fully understand challenges to repairing and patterns that are utilized when manually repairing DNNs. So, the third part of this thesis presents a comprehensive study of bug fix patterns to address these questions. We have studied 415 repairs from Stack Overflow and 555 repairs from Github for five popular deep learning libraries Caffe, Keras, Tensorflow, Theano, and Torch to understand challenges in repairs and bug repair patterns. Our key findings reveal that DNN bug fix patterns are distinctive compared to traditional bug fix patterns and the most common bug fix patterns are fixing data dimension and neural network connectivity. Finally, we propose an automatic technique to detect ML Application Programming Interface (API) misuses. We started with an empirical study to understand ML API misuses. Our study shows that ML API misuse is prevalent and distinct compared to non-ML API misuses. Inspired by these findings, we contributed Amimla (Api Misuse In Machine Learning Apis) an approach and a tool for ML API misuse detection. Amimla relies on several technical innovations. First, we proposed an abstract representation of ML pipelines to use in misuse detection. Second, we proposed an abstract representation of neural networks for deep learning related APIs. Third, we have developed a representation strategy for constraints on ML APIs. Finally, we have developed a misuse detection strategy for both single and multi-APIs. Our experimental evaluation shows that Amimla achieves a high average accuracy of ∼80% on two benchmarks of misuses from Stack Overflow and Github.</p>","abstract_html":"&lt;p&gt;Modern software systems are increasingly including machine learning (ML) as an integral component. However, we do not yet understand the difficulties faced by software developers when learning about ML libraries and using them within their systems. To fill that gap this thesis reports on a detailed (manual) examination of 3,243 highly-rated Q&amp;A posts related to ten ML libraries, namely Tensorflow, Keras, scikitlearn, Weka, Caffe, Theano, MLlib, Torch, Mahout, and H2O, on Stack Overflow, a popular online technical Q&amp;A forum. Our findings reveal the urgent need for software engineering (SE) research in this area. The second part of the thesis particularly focuses on understanding the Deep Neural Network (DNN) bug characteristics. We study 2,716 high-quality posts from Stack Overflow and 500 bug fix commits from Github about five popular deep learning libraries Caffe, Keras, Tensorflow, Theano, and Torch to understand the types of bugs, their root causes and impacts, bug-prone stage of deep learning pipeline as well as whether there are some common antipatterns found in this buggy software. While exploring the bug characteristics, our findings imply that repairing software that uses DNNs is one such unmistakable SE need where automated tools could be beneficial; however, we do not fully understand challenges to repairing and patterns that are utilized when manually repairing DNNs. So, the third part of this thesis presents a comprehensive study of bug fix patterns to address these questions. We have studied 415 repairs from Stack Overflow and 555 repairs from Github for five popular deep learning libraries Caffe, Keras, Tensorflow, Theano, and Torch to understand challenges in repairs and bug repair patterns. Our key findings reveal that DNN bug fix patterns are distinctive compared to traditional bug fix patterns and the most common bug fix patterns are fixing data dimension and neural network connectivity. Finally, we propose an automatic technique to detect ML Application Programming Interface (API) misuses. We started with an empirical study to understand ML API misuses. Our study shows that ML API misuse is prevalent and distinct compared to non-ML API misuses. Inspired by these findings, we contributed Amimla (Api Misuse In Machine Learning Apis) an approach and a tool for ML API misuse detection. Amimla relies on several technical innovations. First, we proposed an abstract representation of ML pipelines to use in misuse detection. Second, we proposed an abstract representation of neural networks for deep learning related APIs. Third, we have developed a representation strategy for constraints on ML APIs. Finally, we have developed a misuse detection strategy for both single and multi-APIs. Our experimental evaluation shows that Amimla achieves a high average accuracy of ∼80% on two benchmarks of misuses from Stack Overflow and Github.&lt;/p&gt;","abstract_has_math":false,"creators":["Islam, Md Johirul"],"institution":null,"degree_name":"Doctor of Philosophy","degree_level":"dissertation","degree_discipline":"Computer Science","degree_department":"Department of Computer Science","school":null,"contributors":[],"advisors":["Hridesh Rajan"],"committee_chairs":[],"committee_members":[],"year":2020,"date_issued":"2020-01-01","date_published":"2020-01-01","updated_at":"2026-11-19T04:44:00Z","subjects":[],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://dr.lib.iastate.edu/handle/20.500.12876/94301"],"render_values":[{"text":"https://dr.lib.iastate.edu/handle/20.500.12876/94301","href":"https://dr.lib.iastate.edu/handle/20.500.12876/94301","code":true}]},{"key":"dc:identifier","label":"Identifier","values":["archive/lib.dr.iastate.edu/etd/18149/"],"render_values":[{"text":"archive/lib.dr.iastate.edu/etd/18149/","href":null,"code":true}]},{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["9156","19236701"],"render_values":[{"text":"9156","href":null,"code":true},{"text":"19236701","href":null,"code":true}]},{"key":"mods:identifier.filename","label":"Mods Identifier Filename","values":["archive/lib.dr.iastate.edu/etd/18149/Islam_iastate_0097E_18938.pdf|||Fri Jan 14 21:37:37 UTC 2022"],"render_values":[{"text":"archive/lib.dr.iastate.edu/etd/18149/Islam_iastate_0097E_18938.pdf|||Fri Jan 14 21:37:37 UTC 2022","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.31274/etd-20200902-68","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.31274/etd-20200902-68","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","access_status":"embargoed","embargo_until":"2020-09-10","access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aiastate%3Aoai%3Adr.lib.iastate.edu%3A20.500.12876%2F94301","prefix":"oai_dc"},"source_record":{"url":"https://dr.lib.iastate.edu/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Adr.lib.iastate.edu%3A20.500.12876%2F94301","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Hridesh Rajan"]},{"key":"dc:contributor.department","label":"Department","values":["Department of Computer Science"]},{"key":"dc:creator","label":"Author","values":["Islam, Md Johirul"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2020-09-23T19:12:49.000"]},{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2021-02-25T21:34:31Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2021-02-25T21:34:31Z"]},{"key":"dc:date.copyright","label":"Dc Date Copyright","values":["Sat Aug 01 00:00:00 UTC 2020"]},{"key":"dc:date.embargo","label":"Dc Date Embargo","values":["2020-09-10"]},{"key":"dc:date.issued","label":"Date","values":["2020-01-01"]},{"key":"dc:relation.orgunit","label":"Dc Relation Orgunit","values":["f7be4eb9-d1d0-4081-859b-b15cee251456"]},{"key":"dc:type","label":"Dc Type","values":["dissertation"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Science"]},{"key":"thesis:degree_level","label":"Degree Level","values":["dissertation"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Doctor of Philosophy"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject.keyword","label":"Dc Subject Keyword","values":["API misuse","Bug","Deep Neural Network","Empirical Study","Machine Learning","Software Engineering"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["archive/lib.dr.iastate.edu/etd/18149/"]},{"key":"dc:identifier.doi","label":"DOI","values":["https://doi.org/10.31274/etd-20200902-68"]},{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["9156","19236701"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://dr.lib.iastate.edu/handle/20.500.12876/94301"]},{"key":"mods:identifier.filename","label":"Mods Identifier Filename","values":["archive/lib.dr.iastate.edu/etd/18149/Islam_iastate_0097E_18938.pdf|||Fri Jan 14 21:37:37 UTC 2022"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["<p>Modern software systems are increasingly including machine learning (ML) as an integral component. However, we do not yet understand the difficulties faced by software developers when learning about ML libraries and using them within their systems. To fill that gap this thesis reports on a detailed (manual) examination of 3,243 highly-rated Q&A posts related to ten ML libraries, namely Tensorflow, Keras, scikitlearn, Weka, Caffe, Theano, MLlib, Torch, Mahout, and H2O, on Stack Overflow, a popular online technical Q&A forum. Our findings reveal the urgent need for software engineering (SE) research in this area. The second part of the thesis particularly focuses on understanding the Deep Neural Network (DNN) bug characteristics. We study 2,716 high-quality posts from Stack Overflow and 500 bug fix commits from Github about five popular deep learning libraries Caffe, Keras, Tensorflow, Theano, and Torch to understand the types of bugs, their root causes and impacts, bug-prone stage of deep learning pipeline as well as whether there are some common antipatterns found in this buggy software. While exploring the bug characteristics, our findings imply that repairing software that uses DNNs is one such unmistakable SE need where automated tools could be beneficial; however, we do not fully understand challenges to repairing and patterns that are utilized when manually repairing DNNs. So, the third part of this thesis presents a comprehensive study of bug fix patterns to address these questions. We have studied 415 repairs from Stack Overflow and 555 repairs from Github for five popular deep learning libraries Caffe, Keras, Tensorflow, Theano, and Torch to understand challenges in repairs and bug repair patterns. Our key findings reveal that DNN bug fix patterns are distinctive compared to traditional bug fix patterns and the most common bug fix patterns are fixing data dimension and neural network connectivity. Finally, we propose an automatic technique to detect ML Application Programming Interface (API) misuses. We started with an empirical study to understand ML API misuses. Our study shows that ML API misuse is prevalent and distinct compared to non-ML API misuses. Inspired by these findings, we contributed Amimla (Api Misuse In Machine Learning Apis) an approach and a tool for ML API misuse detection. Amimla relies on several technical innovations. First, we proposed an abstract representation of ML pipelines to use in misuse detection. Second, we proposed an abstract representation of neural networks for deep learning related APIs. Third, we have developed a representation strategy for constraints on ML APIs. Finally, we have developed a misuse detection strategy for both single and multi-APIs. Our experimental evaluation shows that Amimla achieves a high average accuracy of ∼80% on two benchmarks of misuses from Stack Overflow and Github.</p>"]},{"key":"dc:format.mimetype","label":"Dc Format Mimetype","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Towards understanding the challenges faced by machine learning software developers and enabling automated solutions"]},{"key":"dspace:entity.type","label":"Dspace Entity Type","values":["Publication"]},{"key":"local:admin","label":"Local Admin","values":["isulib-bepress-aws-west","etd/18149"]}]}],"canonical_facts":{"dc:contributor.advisor":["Hridesh Rajan"],"dc:contributor.department":["Department of Computer Science"],"dc:creator":["Islam, Md Johirul"],"dc:date":["2020-09-23T19:12:49.000"],"dc:date.accessioned":["2021-02-25T21:34:31Z"],"dc:date.available":["2021-02-25T21:34:31Z"],"dc:date.copyright":["Sat Aug 01 00:00:00 UTC 2020"],"dc:date.embargo":["2020-09-10"],"dc:date.issued":["2020-01-01"],"dc:description.abstract":["<p>Modern software systems are increasingly including machine learning (ML) as an integral component. However, we do not yet understand the difficulties faced by software developers when learning about ML libraries and using them within their systems. To fill that gap this thesis reports on a detailed (manual) examination of 3,243 highly-rated Q&A posts related to ten ML libraries, namely Tensorflow, Keras, scikitlearn, Weka, Caffe, Theano, MLlib, Torch, Mahout, and H2O, on Stack Overflow, a popular online technical Q&A forum. Our findings reveal the urgent need for software engineering (SE) research in this area. The second part of the thesis particularly focuses on understanding the Deep Neural Network (DNN) bug characteristics. We study 2,716 high-quality posts from Stack Overflow and 500 bug fix commits from Github about five popular deep learning libraries Caffe, Keras, Tensorflow, Theano, and Torch to understand the types of bugs, their root causes and impacts, bug-prone stage of deep learning pipeline as well as whether there are some common antipatterns found in this buggy software. While exploring the bug characteristics, our findings imply that repairing software that uses DNNs is one such unmistakable SE need where automated tools could be beneficial; however, we do not fully understand challenges to repairing and patterns that are utilized when manually repairing DNNs. So, the third part of this thesis presents a comprehensive study of bug fix patterns to address these questions. We have studied 415 repairs from Stack Overflow and 555 repairs from Github for five popular deep learning libraries Caffe, Keras, Tensorflow, Theano, and Torch to understand challenges in repairs and bug repair patterns. Our key findings reveal that DNN bug fix patterns are distinctive compared to traditional bug fix patterns and the most common bug fix patterns are fixing data dimension and neural network connectivity. Finally, we propose an automatic technique to detect ML Application Programming Interface (API) misuses. We started with an empirical study to understand ML API misuses. Our study shows that ML API misuse is prevalent and distinct compared to non-ML API misuses. Inspired by these findings, we contributed Amimla (Api Misuse In Machine Learning Apis) an approach and a tool for ML API misuse detection. Amimla relies on several technical innovations. First, we proposed an abstract representation of ML pipelines to use in misuse detection. Second, we proposed an abstract representation of neural networks for deep learning related APIs. Third, we have developed a representation strategy for constraints on ML APIs. Finally, we have developed a misuse detection strategy for both single and multi-APIs. Our experimental evaluation shows that Amimla achieves a high average accuracy of ∼80% on two benchmarks of misuses from Stack Overflow and Github.</p>"],"dc:format.mimetype":["application/pdf"],"dc:identifier":["archive/lib.dr.iastate.edu/etd/18149/"],"dc:identifier.doi":["https://doi.org/10.31274/etd-20200902-68"],"dc:identifier.other":["9156","19236701"],"dc:identifier.uri":["https://dr.lib.iastate.edu/handle/20.500.12876/94301"],"dc:language.iso":["en"],"dc:relation.orgunit":["f7be4eb9-d1d0-4081-859b-b15cee251456"],"dc:subject.keyword":["API misuse","Bug","Deep Neural Network","Empirical Study","Machine Learning","Software Engineering"],"dc:title":["Towards understanding the challenges faced by machine learning software developers and enabling automated solutions"],"dc:type":["dissertation"],"dspace:entity.type":["Publication"],"local:admin":["isulib-bepress-aws-west","etd/18149"],"mods:identifier.filename":["archive/lib.dr.iastate.edu/etd/18149/Islam_iastate_0097E_18938.pdf|||Fri Jan 14 21:37:37 UTC 2022"],"thesis:degree_discipline":["Computer Science"],"thesis:degree_level":["dissertation"],"thesis:degree_name":["Doctor of Philosophy"]},"updated_at":"2026-11-19T04:44:00Z"}