{"id":5359,"date":"2024-02-27T17:05:11","date_gmt":"2024-02-27T22:05:11","guid":{"rendered":"https:\/\/blogs.library.mcgill.ca\/schulich\/?p=5359"},"modified":"2024-05-24T16:38:44","modified_gmt":"2024-05-24T20:38:44","slug":"more-ai-tools-using-gemini-for-pubmed-searches","status":"publish","type":"post","link":"https:\/\/blogs.library.mcgill.ca\/schulich\/more-ai-tools-using-gemini-for-pubmed-searches\/","title":{"rendered":"More AI Tools: Using Gemini for PubMed Searches"},"content":{"rendered":"\n<p>In a <a href=\"https:\/\/blogs.library.mcgill.ca\/schulich\/using-chatgpt-for-pubmed-searches-be-smart\/\" data-type=\"link\" data-id=\"https:\/\/blogs.library.mcgill.ca\/schulich\/using-chatgpt-for-pubmed-searches-be-smart\/\">previous blog post<\/a>, we discussed the use of ChatGPT for PubMed searches. Now that Gemini, previously Bard from Google, has become available in Canada, it&#8217;s worth taking a look at how the technology interprets requests for PubMed searches and how it differs from ChatGPT. <\/p>\n\n\n\n<p>We&#8217;ll be using the exact same example that we used previously:<\/p>\n\n\n\n<p><strong>In former smokers with chronic obstructive pulmonary diseases, is pulmonary rehabilitation an effective treatment method?<\/strong><\/p>\n\n\n\n<p>When asked to generate a MeSH only search string, this is what the program comes up with: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(\"<mark class=\"has-inline-color has-vivid-red-color\">Chronic Obstructive Pulmonary Disease<\/mark>\"&#091;Mesh] AND \"<mark class=\"has-inline-color has-vivid-red-color\">Pulmonary Rehabilitation<\/mark>\"&#091;Mesh]) AND (\"<mark class=\"has-inline-color has-vivid-red-color\">Exp-Smokers<\/mark>\"&#091;Mesh] AND \"Smoking Cessation\"&#091;Mesh]) &#091;Optional: AND \"Treatment Outcome\"&#091;Mesh]]\n<\/code><\/pre>\n\n\n\n<p>It seems like all AI programs share a brain cell when it comes to MeSH. Like ChatGPT, Gemini is making up its own MeSH terms &#8211; <em>Pulmonary Rehabilitation<\/em> and <em>Chronic Obstructive<\/em> <i>Pulmonar<\/i>y <em>Disease<\/em> are not MeSH terms! It has also included <em>Exp-Smokers<\/em>, when the correct MeSH term is <em>Ex-Smokers.<\/em> Yikes. <\/p>\n\n\n\n<p>Another obvious issue is the use of AND to combine &#8220;Exp-Smokers&#8221;[Mesh] and &#8220;Smoking Cessation&#8221;[Mesh]. In the context of this question, these are synonyms, part of the same concept, and would therefore be combined using OR. <\/p>\n\n\n\n<p>Let&#8217;s take a look at Gemini&#8217;s response as a whole:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-26-at-11.15.11-AM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"606\" height=\"668\" src=\"https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-26-at-11.15.11-AM.png\" alt=\"\" class=\"wp-image-5362\" srcset=\"https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-26-at-11.15.11-AM.png 606w, https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-26-at-11.15.11-AM-272x300.png 272w\" sizes=\"auto, (max-width: 606px) 100vw, 606px\" \/><\/a><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<p>While ChatGPT just spits out MeSH terms, Gemini seems to take it one step further and offer advice. The use of <strong>Required<\/strong> and <strong>Optional<\/strong> is presumptuous, but I can appreciate that the program tries to explain what kind of articles your query will return. <\/p>\n\n\n\n<p>The biggest problem, and the one I take the most issue with, is the program&#8217;s declaration that adding the MeSH term <em>Treatment Outcome<\/em> will broaden your search. While <em>Treatment Outcome <\/em>might be a broad term, including this MeSH term will severely <strong>narrow<\/strong> your search and potentially eliminate relevant articles. The more concepts you combine using the Boolean operator AND, the less results you will end up with. <\/p>\n\n\n\n<p>When asked to generate a list of keywords, Gemini provided one or two synonyms for each concept, even though we know from the complete search we generated in the last post that there are way more out there: <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-27-at-4.17.40-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"543\" height=\"238\" src=\"https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-27-at-4.17.40-PM.png\" alt=\"\" class=\"wp-image-5364\" srcset=\"https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-27-at-4.17.40-PM.png 543w, https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-27-at-4.17.40-PM-300x131.png 300w, https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-27-at-4.17.40-PM-500x219.png 500w\" sizes=\"auto, (max-width: 543px) 100vw, 543px\" \/><\/a><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<p>If you&#8217;re going to be using any AI program to generate synonyms, it&#8217;s best to enter your terms one at a time, and only after you&#8217;ve combed through other sources, like relevant journal articles or a thesaurus.<\/p>\n\n\n\n<p>Gemini is also struggling with the concept of Booleans. The search string it generates is riddled with Boolean errors:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(<mark style=\"background-color:#f78da7\" class=\"has-inline-color\">COPD<\/mark> OR <mark style=\"background-color:#ff6900\" class=\"has-inline-color\">ex-smoker<\/mark>) AND <mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">pulmonary rehabilitation<\/mark> AND (<mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">exercise training<\/mark> OR <mark style=\"background-color:#7bdcb5\" class=\"has-inline-color\">dyspnea<\/mark> OR <mark style=\"background-color:#7bdcb5\" class=\"has-inline-color\">quality of life<\/mark>)\n<\/code><\/pre>\n\n\n\n<p>My head hurts just looking at this&#8230; I&#8217;ve used different colours to group together keywords of the same concept. <em>COPD <\/em>and <em>ex-smoker <\/em>are two entirely different concepts and should not be grouped together. If <em>exercise training <\/em>is often used in conjunction with <em>pulmonary rehabilitation<\/em> like Gemini says, then why is it not being combined using OR? Presumably, Gemini thinks that <em>dyspnea <\/em>and <em>quality of life <\/em>are important outcomes, so the use of OR to combine them is not false, but it shouldn&#8217;t have grouped <em>exercise training <\/em>with them. Overall, it&#8217;s a mess. <\/p>\n\n\n\n<p>One thing that I think Gemini does better than ChatGPT is the explanation for searching both MeSH terms and keywords, and I trust it more as a learning tool than as a search string generator: <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-27-at-4.28.44-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"530\" height=\"228\" src=\"https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-27-at-4.28.44-PM.png\" alt=\"\" class=\"wp-image-5365\" srcset=\"https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-27-at-4.28.44-PM.png 530w, https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-27-at-4.28.44-PM-300x129.png 300w, https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-27-at-4.28.44-PM-500x215.png 500w\" sizes=\"auto, (max-width: 530px) 100vw, 530px\" \/><\/a><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<p>If you&#8217;re still not sure why you should complement your MeSH terms with appropriate keywords, take a look at our <a href=\"https:\/\/mcgill.libanswers.com\/health-sciences\/faq\/211879\" data-type=\"link\" data-id=\"https:\/\/mcgill.libanswers.com\/health-sciences\/faq\/211879\">Health Sciences FAQ<\/a>. <\/p>\n\n\n\n<p>By now you&#8217;re probably thinking, &#8220;Gee, I don&#8217;t think Gemini could possibly get any more wrong.&#8221; Well, BUCKLE UP! I asked Gemini how to exclude keywords, wanting to know how it would explain the Boolean operator NOT:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-22-at-9.57.54-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"387\" src=\"https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-22-at-9.57.54-PM-1024x387.png\" alt=\"\" class=\"wp-image-5366\" style=\"aspect-ratio:2.645994832041344;width:565px;height:auto\" srcset=\"https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-22-at-9.57.54-PM-1024x387.png 1024w, https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-22-at-9.57.54-PM-300x114.png 300w, https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-22-at-9.57.54-PM-768x291.png 768w, https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-22-at-9.57.54-PM-500x189.png 500w, https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-22-at-9.57.54-PM.png 1274w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<p>Here, Gemini is telling you that instead of using NOT, you can simply use AND &#8211; to exclude a term. That&#8217;s not how that works! Booleans are sacred! They&#8217;re as old as time itself! You can&#8217;t just go around <em>changing <\/em>them! PubMed&#8217;s own <a href=\"https:\/\/pubmed.ncbi.nlm.nih.gov\/help\/\" data-type=\"link\" data-id=\"https:\/\/pubmed.ncbi.nlm.nih.gov\/help\/\">User Guide<\/a> warns that the minus sign (-) is converted to a space. Consequently, if you wanted to retrieve articles that mention COPD but not bronchitis, Gemini would have you type this: (&#8220;COPD&#8221; AND &#8211; &#8220;Bronchitis&#8221;). But PubMed isn&#8217;t interpreting this search the way Gemini thinks it is:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-27-at-4.49.43-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"713\" height=\"96\" src=\"https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-27-at-4.49.43-PM.png\" alt=\"\" class=\"wp-image-5367\" srcset=\"https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-27-at-4.49.43-PM.png 713w, https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-27-at-4.49.43-PM-300x40.png 300w, https:\/\/blogs.library.mcgill.ca\/schulich\/files\/2024\/02\/Screenshot-2024-02-27-at-4.49.43-PM-500x67.png 500w\" sizes=\"auto, (max-width: 713px) 100vw, 713px\" \/><\/a><\/figure><\/div>\n\n\n<p><\/p>\n\n\n\n<p>PubMed is ignoring your minus, turning it into a space, and searching instead for articles that mention both COPD and bronchitis. The correct way to exclude bronchitis is by entering: &#8220;COPD&#8221; NOT &#8220;bronchitis&#8221;.<\/p>\n\n\n\n<p>I&#8217;m not ready to give you my blessing to generate searches using ChatGPT or Gemini. Maybe one day we&#8217;ll get there, but for now, I think I&#8217;ve demonstrated why you shouldn&#8217;t trust either of these tools with the job. The good news is that if you&#8217;re struggling with searching in PubMed or other medical databases, your librarians are here to help you! Contact us with any questions relating to searches and databases.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a previous blog post, we discussed the use of ChatGPT for PubMed searches. Now that Gemini, previously Bard from Google, has become available in Canada, it&#8217;s worth taking a look at how the technology interprets requests for PubMed searches &hellip; <a href=\"https:\/\/blogs.library.mcgill.ca\/schulich\/more-ai-tools-using-gemini-for-pubmed-searches\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1985,"featured_media":0,"comment_status":"open","ping_status":"closed","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":[],"class_list":["post-5359","post","type-post","status-publish","format-standard","hentry","category-blog"],"_links":{"self":[{"href":"https:\/\/blogs.library.mcgill.ca\/schulich\/wp-json\/wp\/v2\/posts\/5359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.library.mcgill.ca\/schulich\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.library.mcgill.ca\/schulich\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.library.mcgill.ca\/schulich\/wp-json\/wp\/v2\/users\/1985"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.library.mcgill.ca\/schulich\/wp-json\/wp\/v2\/comments?post=5359"}],"version-history":[{"count":7,"href":"https:\/\/blogs.library.mcgill.ca\/schulich\/wp-json\/wp\/v2\/posts\/5359\/revisions"}],"predecessor-version":[{"id":5426,"href":"https:\/\/blogs.library.mcgill.ca\/schulich\/wp-json\/wp\/v2\/posts\/5359\/revisions\/5426"}],"wp:attachment":[{"href":"https:\/\/blogs.library.mcgill.ca\/schulich\/wp-json\/wp\/v2\/media?parent=5359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.library.mcgill.ca\/schulich\/wp-json\/wp\/v2\/categories?post=5359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.library.mcgill.ca\/schulich\/wp-json\/wp\/v2\/tags?post=5359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}