{"id":377,"date":"2021-02-08T19:03:00","date_gmt":"2021-02-08T19:03:00","guid":{"rendered":"http:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/?p=377"},"modified":"2022-12-27T23:37:41","modified_gmt":"2022-12-27T23:37:41","slug":"a-bayesian-approach-to-finding-lost-objects","status":"publish","type":"post","link":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/2021\/02\/08\/a-bayesian-approach-to-finding-lost-objects\/","title":{"rendered":"A Bayesian Approach To Finding Lost Objects"},"content":{"rendered":"\n<p>Ever wondered how they find lost objects in the sea? For example, when a plane such as Air France Flight 447 here goes missing they must have some approach to search efficiently. While there is a small hope of finding survivors of a plane crash, it very useful to find the black box so they can find the cause of the crash and ensure if possible that it doesn\u2019t happen for the same reason in the future. In cases such as this something known as Bayesian Search Theory is used.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">What is Bayesian Search Theory?<\/h4>\n\n\n\n<p>Bayesian Search Theory applies Bayesian statistics to a search problem in a more efficient way than just randomly searching all of the possibilities. It allows for an updated view on where you are most likely to find an object as you progress through the search. It has been used to find various lost sea vessels such as the USS Scorpion, to help recover flight recorders in the case of  Air France Flight 447 and to attempt to locate the remains of&nbsp;Malaysia<a href=\"https:\/\/en.wikipedia.org\/wiki\/Malaysia_Airlines_Flight_370\"> <\/a>Airlines Flight 370.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/Uss_scorpion_SSN589.jpg\" alt=\"\" class=\"wp-image-465\" width=\"443\" height=\"348\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/Uss_scorpion_SSN589.jpg 740w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/Uss_scorpion_SSN589-300x236.jpg 300w\" sizes=\"auto, (max-width: 443px) 100vw, 443px\" \/><figcaption>USS Scorpion<\/figcaption><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">How is it applied?<\/h4>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>Formulate as many possible scenarios of what could have happened to the missing object using knowledge such as the last known position  and the time it was lost. This will also involve a weighting for which scenarios are more likely.<\/li><li>For each scenario, assign a probability to the search space of the lost object being in each possible place.<\/li><li>An additional probability is assigned based on the likelihood of finding the object in a possible place, given it actually is there.<\/li><li>Combining these probabilities gives the probability of the object actually being found if search takes place in a certain area . Areas with highest probability of finding the object are searched first.<\/li><li>As the search progresses, the findings (or more appropriately the lack thereof) are used to update the probability that an object will be found in certain area. This is done using Bayes Theorem.<\/li><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">An example<\/h4>\n\n\n\n<p>Let\u2019s pretend I dropped my phone in a small perfectly square lake (I don\u2019t think these exist but it makes the example much simpler). I remember using it last when I was on the boat near the centre of the lake and I am certain I must of dropped it when trying to put it back into my pocket. I did drift towards the left edge of the lake after using my phone but I think it&#8217;s more probable that it was dropped towards the centre.  I&#8217;m keeping it simple here with a single possible scenario.<\/p>\n\n\n\n<p>I&#8217;ve split the lake up into a 4&#215;4 grid so I&#8217;m looking to find which square on the grid to search first. From my assumed scenario of how my phone was lost, I&#8217;ve created a probability density map of the space I am searching for the probability my phone has been dropped in a certain square. I&#8217;ve also  looked into the depth of the lake to create a probability map of how likely I am to actually find my phone in that square given it is there.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/prob_drop.png\" alt=\"\" class=\"wp-image-434\" width=\"299\" height=\"306\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/prob_drop.png 635w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/prob_drop-292x300.png 292w\" sizes=\"auto, (max-width: 299px) 100vw, 299px\" \/><figcaption>Probability density map for where I dropped my phone (based on my knowledge of where I dropped it.)<\/figcaption><\/figure><\/div>\n\n\n\n<p><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/prob_depth.png\" alt=\"\" class=\"wp-image-435\" width=\"299\" height=\"306\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/prob_depth.png 635w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/prob_depth-292x300.png 292w\" sizes=\"auto, (max-width: 299px) 100vw, 299px\" \/><figcaption>Probability map for how likely I am to find my phone in each square given it is there (based on the hypothetical depth of the lake in each square.)<\/figcaption><\/figure><\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-image is-style-rounded\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/photo-1525011268546-bf3f9b007f6a-edited.jpg\" alt=\"\" class=\"wp-image-441\" width=\"78\" height=\"99\" \/><figcaption>Combining these gives<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/prob_overall.png\" alt=\"\" class=\"wp-image-443\" width=\"299\" height=\"306\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/prob_overall.png 635w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/prob_overall-292x300.png 292w\" sizes=\"auto, (max-width: 299px) 100vw, 299px\" \/><figcaption>Total probability of finding my phone in each square of the grid.<\/figcaption><\/figure><\/div>\n\n\n\n<p>Now I have a map of where to start searching, it looks like the square on the second row up and third column along would be the best option so I&#8217;ll search there first.<\/p>\n\n\n\n<p>Unfortunately my phone isn&#8217;t there so I&#8217;ll use Bayes theorem to update the probability in that square. Applying Bayes theorem and a bit of jiggery pokery with probability identities gives:<\/p>\n\n\n\n<div class=\"wp-block-image is-style-rounded\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"670\" height=\"76\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/BAYESFULL.png\" alt=\"\" class=\"wp-image-453\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/BAYESFULL.png 670w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/BAYESFULL-300x34.png 300w\" sizes=\"auto, (max-width: 670px) 100vw, 670px\" \/><\/figure><\/div>\n\n\n\n<p>Where P[Is There] and P[Found | Is There] are the probabilities in our two grids originally created. So I can update the probability for that square to be (rounded to 2 decimal places):<\/p>\n\n\n\n<div class=\"wp-block-image is-style-rounded\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"468\" height=\"89\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/actcalc.png\" alt=\"\" class=\"wp-image-455\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/actcalc.png 468w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/actcalc-300x57.png 300w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/figure><\/div>\n\n\n\n<p>Therefore I update this square to have a probability of 0.03 that my phone is there. I also revise the probabilities for all other squares that my phone is there given it wasn&#8217;t found in that first square . For these squares the calculation is<\/p>\n\n\n\n<div class=\"wp-block-image is-style-rounded\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"584\" height=\"91\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/newothersquares.png\" alt=\"\" class=\"wp-image-476\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/newothersquares.png 584w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/newothersquares-300x47.png 300w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/figure><\/div>\n\n\n\n<p>This is then combined with the probability of finding the phone given it is there so I have a revised probability map for the most likely places you will find the actually phone:<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/updated-1.png\" alt=\"\" class=\"wp-image-458\" width=\"390\" height=\"400\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/updated-1.png 635w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/updated-1-292x300.png 292w\" sizes=\"auto, (max-width: 390px) 100vw, 390px\" \/><figcaption>Revised probability that my phone is in a certain square.<\/figcaption><\/figure><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-image is-style-rounded\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/photo-1525011268546-bf3f9b007f6a-1024x683.jpg\" alt=\"\" class=\"wp-image-440\" width=\"102\" height=\"102\" \/><figcaption>Combining this with the probability of finding the phone given it is in a that square.<\/figcaption><\/figure><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/new_total-1.png\" alt=\"\" class=\"wp-image-475\" width=\"380\" height=\"390\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/new_total-1.png 635w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-content\/uploads\/sites\/23\/2021\/02\/new_total-1-292x300.png 292w\" sizes=\"auto, (max-width: 380px) 100vw, 380px\" \/><figcaption>Total probability of finding my phone in each square of the grid.<\/figcaption><\/figure><\/div>\n<\/div>\n<\/div>\n\n\n\n<p>From this I would then move on to search the square with probability of finding the phone of 0.13 and repeat this process until the phone is found.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Practically, always going for the square with the maximum probability may not be the most efficient method because you may have to travel all across the area and it might be more efficient to search areas you are travelling through as you go. After the initial probabilities have been found for the area, a search plan will likely be created for your planned search journey. This may not necessarily have you always searching the areas in descending probability order. However with Bayesian search theory applied you can get a useful indication of where would be wise to search and when to amend your search plan.<\/p>\n\n\n\n<hr class=\"wp-block-separator\" \/>\n\n\n\n<p>References: <a href=\"https:\/\/en.wikipedia.org\/wiki\/Bayesian_search_theory\">https:\/\/en.wikipedia.org\/wiki\/Bayesian_search_theory<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever wondered how they find lost objects in the sea? For example, when a plane such as Air France Flight&hellip;<\/p>\n","protected":false},"author":20,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[3,4],"class_list":["post-377","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-bayesian","tag-bayesian-search-theory"],"_links":{"self":[{"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-json\/wp\/v2\/posts\/377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-json\/wp\/v2\/comments?post=377"}],"version-history":[{"count":25,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-json\/wp\/v2\/posts\/377\/revisions"}],"predecessor-version":[{"id":809,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-json\/wp\/v2\/posts\/377\/revisions\/809"}],"wp:attachment":[{"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-json\/wp\/v2\/media?parent=377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-json\/wp\/v2\/categories?post=377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/katie-howgate\/wp-json\/wp\/v2\/tags?post=377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}