Maxime Mulamba, Jayanta Mandi, Ali İrfan Mahmutoğulları, Tias Guns
{"title":"基于感知的数独图像约束解法","authors":"Maxime Mulamba, Jayanta Mandi, Ali İrfan Mahmutoğulları, Tias Guns","doi":"10.1007/s10601-024-09372-9","DOIUrl":null,"url":null,"abstract":"<p><p>We consider the problem of <i>perception-based constraint solving</i>, where part of the problem specification is provided <i>indirectly</i> through an image provided by a user. As a pedagogical example, we use the complete image of a Sudoku grid. While the rules of the puzzle are assumed to be known, the image must be interpreted by a neural network to extract the values in the grid. In this paper, we investigate (1) <i>a hybrid modeling approach</i> combining machine learning and constraint solving for <i>joint inference</i>, knowing that blank cells need to be both predicted as being blank and filled-in to obtain a full solution; (2) the effect of <i>classifier calibration</i> on joint inference; and (3) how to deal with cases where the constraints of the reasoning system are not satisfied. More specifically, in the case of handwritten <i>user errors</i> in the image, a naive approach fails to obtain a feasible solution even if the interpretation is correct. Our framework <i>identifies</i> human mistakes by using a constraint solver and helps the user to <i>correct</i> these mistakes. We evaluate the performance of the proposed techniques on images taken through the Sudoku Assistant Android app, among other datasets. Our experiments show that (1) joint inference can correct classifier mistakes, (2) overall calibration improves the solution quality on all datasets, and (3) estimating and discriminating between user-written and original visual input while reasoning makes for a more robust system, even in the presence of user errors.</p>","PeriodicalId":55211,"journal":{"name":"Constraints","volume":"29 1-2","pages":"112-151"},"PeriodicalIF":0.5000,"publicationDate":"2024-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC11534853/pdf/","citationCount":"0","resultStr":"{\"title\":\"Perception-based constraint solving for sudoku images.\",\"authors\":\"Maxime Mulamba, Jayanta Mandi, Ali İrfan Mahmutoğulları, Tias Guns\",\"doi\":\"10.1007/s10601-024-09372-9\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p><p>We consider the problem of <i>perception-based constraint solving</i>, where part of the problem specification is provided <i>indirectly</i> through an image provided by a user. As a pedagogical example, we use the complete image of a Sudoku grid. While the rules of the puzzle are assumed to be known, the image must be interpreted by a neural network to extract the values in the grid. In this paper, we investigate (1) <i>a hybrid modeling approach</i> combining machine learning and constraint solving for <i>joint inference</i>, knowing that blank cells need to be both predicted as being blank and filled-in to obtain a full solution; (2) the effect of <i>classifier calibration</i> on joint inference; and (3) how to deal with cases where the constraints of the reasoning system are not satisfied. More specifically, in the case of handwritten <i>user errors</i> in the image, a naive approach fails to obtain a feasible solution even if the interpretation is correct. Our framework <i>identifies</i> human mistakes by using a constraint solver and helps the user to <i>correct</i> these mistakes. We evaluate the performance of the proposed techniques on images taken through the Sudoku Assistant Android app, among other datasets. Our experiments show that (1) joint inference can correct classifier mistakes, (2) overall calibration improves the solution quality on all datasets, and (3) estimating and discriminating between user-written and original visual input while reasoning makes for a more robust system, even in the presence of user errors.</p>\",\"PeriodicalId\":55211,\"journal\":{\"name\":\"Constraints\",\"volume\":\"29 1-2\",\"pages\":\"112-151\"},\"PeriodicalIF\":0.5000,\"publicationDate\":\"2024-01-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC11534853/pdf/\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Constraints\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://doi.org/10.1007/s10601-024-09372-9\",\"RegionNum\":4,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"2024/10/5 0:00:00\",\"PubModel\":\"Epub\",\"JCR\":\"Q4\",\"JCRName\":\"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Constraints","FirstCategoryId":"94","ListUrlMain":"https://doi.org/10.1007/s10601-024-09372-9","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2024/10/5 0:00:00","PubModel":"Epub","JCR":"Q4","JCRName":"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE","Score":null,"Total":0}
Perception-based constraint solving for sudoku images.
We consider the problem of perception-based constraint solving, where part of the problem specification is provided indirectly through an image provided by a user. As a pedagogical example, we use the complete image of a Sudoku grid. While the rules of the puzzle are assumed to be known, the image must be interpreted by a neural network to extract the values in the grid. In this paper, we investigate (1) a hybrid modeling approach combining machine learning and constraint solving for joint inference, knowing that blank cells need to be both predicted as being blank and filled-in to obtain a full solution; (2) the effect of classifier calibration on joint inference; and (3) how to deal with cases where the constraints of the reasoning system are not satisfied. More specifically, in the case of handwritten user errors in the image, a naive approach fails to obtain a feasible solution even if the interpretation is correct. Our framework identifies human mistakes by using a constraint solver and helps the user to correct these mistakes. We evaluate the performance of the proposed techniques on images taken through the Sudoku Assistant Android app, among other datasets. Our experiments show that (1) joint inference can correct classifier mistakes, (2) overall calibration improves the solution quality on all datasets, and (3) estimating and discriminating between user-written and original visual input while reasoning makes for a more robust system, even in the presence of user errors.
期刊介绍:
Constraints provides a common forum for the many disciplines interested in constraint programming and constraint satisfaction and optimization, and the many application domains in which constraint technology is employed. It covers all aspects of computing with constraints: theory and practice, algorithms and systems, reasoning and programming, logics and languages.