A psychology clinic that got its evenings backعيادة نفسية استعادت أمسيات أطبائها
A multi-clinician mental health practice recorded sessions (with consent) but documentation ate hours every evening. Patient audio could never leave the building. We deployed local transcription and a local LLM that drafts structured clinical notes and tracks patterns across sessions, inside their network.عيادة نفسية فيها عدة معالجين تسجل الجلسات (بموافقة المرضى)، لكن كتابة الملاحظات كانت تأكل ساعات كل مساء. صوت المرضى لا يجوز أن يخرج من المبنى أبداً. ركّبنا تفريغاً صوتياً محلياً ونموذجاً ذكياً محلياً يكتب مسودات الملاحظات ويتابع الأنماط عبر الجلسات، داخل شبكتهم.
The mess beforeالفوضى قبل
Each therapist saw six to eight patients a day, then spent the evening writing session notes from memory. Notes written at 9 pm about a 10 am session lose detail, and burnout was pushing clinicians to cut corners on documentation.كل معالج يقابل ستة إلى ثمانية مرضى يومياً، ثم يقضي المساء يكتب ملاحظات الجلسات من ذاكرته. الملاحظات التي تكتب في التاسعة مساء عن جلسة العاشرة صباحاً تفقد تفاصيلها، والإرهاق كان يدفع المعالجين إلى اختصار التوثيق.
Session recordings are among the most sensitive data that exists. Cloud transcription services were ruled out immediately: patient audio crossing a third-party API was a non-starter for the clinic's ethics board and its data protection obligations.تسجيلات الجلسات من أكثر البيانات حساسية في العالم. خدمات التفريغ السحابية رفضت فوراً: مرور صوت المرضى عبر خدمة خارجية أمر مرفوض عند لجنة أخلاقيات العيادة وفي واجبات حماية البيانات.
With notes scattered and thin, supervisors could not see patterns across sessions: missed follow-ups, risk flags raised in week 2 and forgotten by week 6. The information existed in the room and died there.مع ملاحظات قليلة ومتفرقة، لم يكن المشرفون يرون الأنماط عبر الجلسات: متابعات منسية، وإشارة خطر ذكرت في الأسبوع الثاني ونسيت في السادس. المعلومة كانت موجودة في الغرفة وتموت فيها.
The stack we deployedالأدوات التي نشرناها
How it actually wentكيف سارت العملية فعلاً
- 1 Weeks 1-2: consent flow and ethics sign-off firstالأسبوعان 1-2: الموافقات والأخلاقيات أولاً Before any hardware, the recording consent flow was rewritten with the clinic's ethics board: patients see exactly what is recorded, where it lives (one server, in the building), and who can read it. Deployment started only after sign-off.قبل أي أجهزة، أعيدت كتابة نموذج موافقة التسجيل مع لجنة أخلاقيات العيادة: المريض يعرف بالضبط ما يسجل، وأين يحفظ (خادم واحد داخل المبنى)، ومن يستطيع قراءته. النشر بدأ فقط بعد الموافقة.
- 2 Weeks 3-6: transcription pilot with two cliniciansالأسابيع 3-6: تجربة التفريغ مع معالجين اثنين Whisper large-v3 ran on one GPU server, transcribing each session minutes after it ended, including sessions that switch between Arabic and English mid-sentence. Two clinicians compared drafts against their own notes for four weeks.نموذج Whisper large-v3 عمل على خادم واحد، يفرغ كل جلسة بعد دقائق من انتهائها، حتى الجلسات التي تنتقل بين العربية والإنجليزية في الجملة الواحدة. وقارن معالجان المسودات بملاحظاتهما أربعة أسابيع.
- 3 Weeks 7-10: structured notes, clinician signs every oneالأسابيع 7-10: ملاحظات منظمة، والمعالج يوقع كل واحدة The local LLM turns each transcript into a draft note in the clinic's format: presenting issues, interventions, risk indicators, agreed follow-ups. The draft is exactly that: the clinician edits and signs every note, and unsigned drafts auto-expire.النموذج المحلي يحول كل نص إلى مسودة ملاحظة بقالب العيادة: الشكوى، والتدخلات، ومؤشرات الخطر، والمتابعات المتفق عليها. والمسودة تبقى مسودة: المعالج يعدل ويوقع كل ملاحظة، وغير الموقعة تحذف تلقائياً.
Under the hoodماذا يجري تحت الغطاء
Each signed note is distilled into structured signals: the topics that dominated the session, reported symptoms and their intensity, sleep and medication mentions, and the follow-ups agreed. Stored session after session, these signals form a timeline per patient. The system then does what no tired memory can: it compares. The anxiety theme that filled 40 percent of early sessions and faded to 10. Sleep complaints returning three sessions in a row after a stable month. A topic the patient stopped raising entirely. Research calls this temporal topic modeling and symptom trend tracking; the clinic calls it the part of the chart they never had.كل ملاحظة موقعة تختصر إلى إشارات منظمة: المواضيع التي سيطرت على الجلسة، والأعراض المذكورة وشدتها، وذكر النوم والدواء، والمتابعات المتفق عليها. ومع تخزينها جلسة بعد جلسة، تتكون لكل مريض خريطة زمنية. ثم يفعل النظام ما لا تستطيعه ذاكرة متعبة: يقارن. موضوع القلق الذي كان يملأ 40 بالمئة من الجلسات الأولى ونزل إلى 10. شكوى النوم التي عادت ثلاث جلسات متتالية بعد شهر هادئ. الموضوع الذي توقف المريض عن ذكره تماماً. البحث العلمي يسمي هذا تتبع المواضيع والأعراض عبر الزمن؛ والعيادة تسميه الجزء الذي لم يكن عندها يوماً من ملف المريض.
Published research shows early-session language patterns can predict dropout and deterioration before they are obvious. The system applies this conservatively: it highlights signals (risk phrases, an escalating symptom trend, a missed follow-up chain) on the supervisor's review screen, ranked and linked to the exact transcript lines they came from. It never diagnoses and never alerts the patient. A flag is a question addressed to a clinician, with evidence attached, and the clinician's judgement is the answer.تظهر الأبحاث المنشورة أن أنماط الكلام في الجلسات الأولى قد تنبئ بانقطاع المريض أو تدهوره قبل أن يصبح ذلك واضحاً. النظام يطبق هذا بحذر: يبرز الإشارات (عبارات خطر، أو عرضاً يشتد جلسة بعد جلسة، أو سلسلة متابعات لم تتم) على شاشة المشرف، مرتبة وموصولة بسطور النص التي جاءت منها. لا يشخص أبداً ولا ينبه المريض. الإشارة سؤال موجه إلى معالج، مع الدليل، وحكم المعالج هو الجواب.
Audio is deleted automatically once its transcript is signed; transcripts and notes are encrypted at rest; every access is logged with who, what, and when, in a log nobody can edit. The pattern layer works on the structured signals, not raw recordings, so a supervisor reviewing trends never replays a patient's voice. The ethics board approved the design because they could verify each of these statements, not because anyone promised to be careful.الصوت يحذف تلقائياً بعد توقيع نصه؛ والنصوص والملاحظات مشفرة في التخزين؛ وكل دخول يسجل باسم صاحبه وما فعله ومتاه، في سجل لا يستطيع أحد تعديله. وطبقة الأنماط تعمل على الإشارات المنظمة لا على التسجيلات نفسها، فالمشرف الذي يراجع المسارات لا يسمع صوت مريض أبداً. وافقت لجنة الأخلاقيات على التصميم لأنها استطاعت التحقق من كل عبارة هنا، لا لأن أحداً وعد بالحذر.
The transformation, in numbersالتحول بالأرقام
The clinic's bottleneck was never clinical skill; it was paperwork stealing the evenings and memory carrying what software should. Same-day notes became the default, supervisors gained a longitudinal view that catches drift and missed follow-ups, and the most sensitive audio in healthcare still never crosses the building's walls. The clinicians describe the change simply: they finish when the last patient leaves.لم يكن عائق العيادة في المهارة العلاجية يوماً، بل في الورق الذي يسرق الأمسيات وفي ذاكرة تحمل ما يجب أن تحمله البرمجيات. ملاحظات اليوم نفسه صارت الوضع الطبيعي، وحصل المشرفون على رؤية زمنية تلتقط التراجع والمتابعات المنسية، وأكثر التسجيلات حساسية في الرعاية الصحية ما زالت لا تتجاوز جدران المبنى. والتغيير عند المعالجين بسيط: ينتهي عملهم عندما يغادر آخر مريض.