Objective

Artificial intelligence (AI) is starting to appear in medical work, from reading medical images to helping with notes and chatbots such as ChatGPT. For this to work in hospitals, the doctors of the future need to understand it and be willing to use it. Medical students will work with these tools directly, so what they know and think can help schools decide what to teach.

Morocco has made progress in digital development, but little was known about how its medical students see AI. Findings from other countries may not carry over, because education systems, technology access and health care differ. The World Medical Association recommends that medical education be updated to include AI skills.

This study set out to describe what students at Moroccan public medical schools know and think about AI in medicine. The authors looked at five areas:

  • What students know about AI and how familiar they are with it.
  • Which medical tasks students would hand to AI.
  • How much they trust AI.
  • What ethical and privacy concerns they have, and whether they think AI can work in Morocco.
  • What kind of AI education they want.

Methods

This was a cross-sectional survey, which means it collects answers from many people at one point in time. It can show what people think, but it cannot show why, and it cannot show cause and effect.

The survey was online, using Google Forms, from June to September 2024. It was shared through social media aimed at Moroccan medical students. This is a voluntary convenience sample, meaning people chose to take part, and no incentives were offered. Eligible students were enrolled at one of nine public medical schools (Marrakech, Fez, Rabat, Casablanca, Tangier, Agadir, Oujda, Laayoune and Errachidia), from first year to students waiting to present their thesis.

A total of 337 questionnaires came in. After cleaning, 27 (8.0%) were removed for missing or inconsistent answers, leaving 310 for analysis. The students ranged from 17 to 29 years old, with an average age of 22.37, and 60.6% were female (188 women and 122 men). Of the 310, 73 were in the pre-clinical years (years 1 to 2) and 237 were in the clinical years (years 3 to 8).

The questionnaire was built from earlier studies on AI attitudes in health care and education, first in English and then translated into French, with a back-translation to check meaning. Two independent experts reviewed it, and 10 students pilot-tested it. It asked about demographics, self-rated knowledge and familiarity (5-point scale), openness to AI diagnostic tools, which tasks students would delegate to AI, attitudes about access, efficiency, trust, ethics, privacy and feasibility in Morocco, and preferences for AI education.

The data were analyzed with SPSS (version 23) using percentages, chi-square or Fisher's exact tests, and Spearman correlations, with p below 0.05 counted as significant. The authors say formal ethics committee approval was not required for an anonymous, non-interventional survey, and participants gave electronic consent.

Key Findings

The students described themselves as cautiously positive about AI but not well prepared, and they limited its role to support work.

Knowledge and openness

  • For self-rated AI knowledge, 43.9% said basic, 30.3% minimal, 12.3% adequate and 2.3% highly knowledgeable. The abstract says only 15.6% reported moderate-to-high familiarity with AI.
  • Openness to using AI diagnostic tools was 45.2%, with 43.2% uncertain and 11.6% opposed.
  • Openness did not differ significantly by familiarity with AI (Fisher's exact test, p = 0.521), by gender (p = 0.654) or by academic level (Spearman's rs = 0.095, p = 0.095). Age was also not linked to self-rated knowledge (rs = 0.011, p = 0.850).

Which tasks students would hand to AI

  • Medical documentation: 87.4% would delegate it (271 of 310).
  • History taking: 64.2%. Patient monitoring: 61.3%.
  • Medical prescription: 20.3%. Diagnosis and medical decisions: 13.5% in the task table and 12.9% in the text.
  • Only 4.5% said no task should be delegated to AI, and 83.5% rejected the idea that AI could replace clinicians.

Benefits and trust

  • 91% agreed that AI tools and chatbots can make medical knowledge easier for clinicians to reach, and 89% agreed AI would reduce workload in administrative tasks.
  • 61% agreed AI could help doctors make more accurate decisions, and 63% agreed it could reduce medical errors.
  • Only 30% agreed AI would improve patients' trust in medical decisions, and 35% said they could trust guidelines set by AI.

Concerns

  • 63% believed AI could harm the human side of medicine. The figure was 71% among students aged 26 to 29, but that difference was not statistically significant and the group was small.
  • 53% thought storing and accessing medical history with AI could put private data at more risk than traditional means.
  • 82% expected AI to bring new ethical questions, and only 38% believed AI could be put in place in the Moroccan context.

Education

  • 60.1% supported adding AI to the medical curriculum, and 37.7% were strongly in favor.
  • Preferred formats were seminars (64.2%) and online modules (53.7%), along with practical workshops. Students favored teaching in the later years.

Implications

The authors conclude that Moroccan medical students are cautiously optimistic about AI but not ready for it in clinical practice. They say structured AI education is essential, with a focus on ethics and data protection, and that implementation should fit the Moroccan context.

For medical schools

  • The authors recommend clinically oriented AI training in the clinical years, with workshops, case-based learning and seminars tied to real medical situations.
  • They also recommend ethics teaching on algorithmic bias, data governance and patient confidentiality, and certified online modules to give all students the same basic knowledge.

For policymakers and health systems

  • The authors say AI tools will need investment in a national IT system, noting that some primary health centers have not yet adopted electronic tools, and that privacy protection such as encryption and controlled access matters.

For developers and trainers

  • The authors suggest presenting AI as a supportive tool and not a substitute for clinical judgment, since students themselves hold that view. They also say this framing may make responsible use by future physicians easier.

Our reading (not the authors' recommendation):

  • Because students were most comfortable with paperwork tasks, early training might begin there, with documentation and history-taking tools, before touching diagnosis.
  • Schools could ask their own students what they know before designing courses, since this was a self-selected sample from one period in 2024.
  • Teachers should expect a wide range of starting knowledge, because only a small share of respondents rated themselves as highly knowledgeable.

Limitations

The authors state two limits. There were no up-to-date data on how many medical students there are in Morocco, so they could not calculate a sample size in advance, and the study aims to describe trends, not to reach firm conclusions. Taking part was voluntary, which creates self-selection bias. Students with more interest in AI or stronger digital skills may have been likelier to answer, so the sample may not represent all students.

The paper does not mention, but recruiting through social media and Google Forms means no one can calculate a response rate, and it is unclear how many students saw the survey. The paper does not mention, but the answers are self-reported opinions, so the knowledge figures show what students believe they know, not what they actually know.

The paper does not mention, but the sample is split unevenly between pre-clinical (73 students) and clinical (237 students) years, and the 26 to 29 age group is small (52 students), which limits the group comparisons. The paper does not mention, but a few numbers differ between the abstract, table and text, such as 12.9% and 13.5% for diagnosis decisions, so exact percentages should be read with care.

The paper does not mention, but a single survey in 2024 cannot show how attitudes change as AI tools improve.

Future Directions

The authors do not give a separate list of future studies. They say this is an exploratory study and that the knowledge gap and the interest in training point to a need for educational strategies suited to each context. The gaps the study leaves open point to these questions:

  • Would a random or national sample of medical students give the same answers as this volunteer sample?
  • Do attitudes shift after students take a structured AI course, and does readiness for practice improve?
  • Why were students hesitant, given that openness did not differ by familiarity, gender or academic level?
  • How do the views of Moroccan students compare with those of teachers, practicing doctors and patients?
  • Which teaching format, such as seminars, online modules or workshops, builds AI skills best?

The bottom line: This survey of 310 Moroccan medical students found openness to AI for administrative work, such as documentation (87.4%), but low acceptance for prescribing (20.3%) and clinical decisions, and 83.5% did not think AI could replace doctors. Trust and feasibility were low, privacy and ethical concerns were common, and 60.1% wanted AI in the curriculum. Because the sample was voluntary and self-reported, the results show opinions of those who responded, not all students. Schools could use them as a starting point for AI teaching that includes ethics and data protection.