Medical Radiation
This case study presents system and software engineering issues relevant to the accidents associated with the Therac-25 medical linear accelerator that occurred between 1985 and 1988. The six accidents caused five deaths and serious injury to several patients. The accidents were system accidents that resulted from complex interactions between hardware components, controlling software, and operator functions.
このケーススタディでは、1985年から1988年にかけて発生した Therac-25 医療用線形加速器の事故に関わる、システムズエンジニアリングおよびソフトウェアエンジニアリング上の課題を取り上げる。6件の事故で5人が死亡し、数人の患者が重傷を負った。これらの事故は、ハードウェアコンポーネント、制御ソフトウェア、オペレータの機能の間の複雑な相互作用から生じたシステム事故であった。
Medical linear accelerators, devices used to treat cancer, accelerate electrons to create high energy beams that can destroy tumors. Shallow tissue is treated with the accelerated electrons. The electron beam is converted to X-ray photons to reach deeper tissues. Accidents occur when a patient is delivered an unsafe amount of radiation.
医療用線形加速器はがんの治療に用いられる装置であり、電子を加速して、腫瘍を破壊できる高エネルギービームを生成する。浅い組織の治療には、加速された電子を用いる。より深い組織に到達させるには、電子ビームを X 線光子に変換する。事故は、安全でない量の放射線が患者に照射されたときに発生する。
A radiation therapy machine is controlled by software that monitors the machine's status, accepts operator input about the radiation treatment to be performed, and initializes the machine to perform the treatment. The software turns the electron beam on in response to an operator command. The software turns the beam off whenever the treatment is complete, the operator requests the beam to shut down, or when the hardware detects a machine malfunction. A radiation therapy machine is a reactive system in which the system's behavior is state dependent and the system's safety depends upon preventing entry into unsafe states. For example, the software controls the equipment that positions the patient and the beam. The positioning operations can take a minute or more to execute, thus it is unsafe to activate the electron beam while a positioning operation is in process.
放射線治療装置はソフトウェアによって制御される。このソフトウェアは、装置の状態を監視し、実施する放射線治療に関するオペレータの入力を受け付け、治療を実施できるよう装置を初期化する。ソフトウェアは、オペレータの指令に応じて電子ビームをオンにする。また、治療が完了したとき、オペレータがビームの停止を要求したとき、ハードウェアが装置の故障を検出したときのいずれにおいても、ビームをオフにする。放射線治療装置は反応型システムであり、システムの振る舞いは状態に依存し、システムの安全は安全でない状態への移行を防げるかどうかにかかっている。例えば、ソフトウェアは患者とビームの位置決めを行う機器を制御する。位置決め操作の実行には1分以上かかることがあるため、位置決め操作の最中に電子ビームを作動させるのは安全でない。
In the early 1980s, Atomic Energy of Canada (AECL) developed the Therac-25, a dual-mode (X-rays or electrons) linear accelerator that can deliver photons at 25 megaelectron volts (MeV) or electrons at various energy levels. The Therac-25 superseded the Therac-20, the previous 20-MeV dual mode accelerator with a history of successful clinical use. The Therac-20 used a DEC PDP-11 (Digital Equipment Corporation Programmed Data Processor) minicomputer for computer control and featured protective circuits for monitoring the electron beam, as well as mechanical interlocks for policing the machine to ensure safe operation. AECL decided to increase the responsibilities of the Therac-25 software for maintaining safety and eliminated most of the hardware safety mechanisms and interlocks. The software, written in PDP-11 assembly language, was partially reused from earlier products in the Therac product line. Eleven Therac-25s were installed at the time of the first radiation accident in June 1985.
1980年代初頭、Atomic Energy of Canada(AECL)は Therac-25 を開発した。これはデュアルモード(X 線または電子)の線形加速器であり、25メガ電子ボルト(MeV)の光子、またはさまざまなエネルギーレベルの電子を照射できる。Therac-25 は、臨床使用で成功の実績を持つ先代の 20-MeV デュアルモード加速器 Therac-20 に取って代わるものであった。Therac-20 は、コンピュータ制御に DEC PDP-11(Digital Equipment Corporation Programmed Data Processor)ミニコンピュータを用い、電子ビームを監視する保護回路に加えて、安全な運転を確保するよう装置を統制する機械的インターロックを備えていた。AECL は、安全を維持する役割をより多く Therac-25 のソフトウェアに担わせることを決定し、ハードウェアの安全機構とインターロックの大部分を排除した。PDP-11 アセンブリ言語で書かれたこのソフトウェアは、Therac 製品ラインの以前の製品から一部が再利用されていた。1985年6月に最初の放射線事故が起きた時点で、Therac-25 は11台設置されていた。
The use of radiation therapy machines has increased rapidly in the last 25 years. The number of medical radiation machines in the United States in 1985 was approximately 1000. By 2009 the number had increased to approximately 4450. Some of the types of system problems found in the Therac-25 may be present in the medical radiation devices currently in use. References to more recent accidents are included below.
放射線治療装置の使用は、過去25年間で急速に増加した。米国の医療放射線装置の数は、1985年には約1000台であった。2009年までに、その数は約4450台に増えた。Therac-25 で見つかった種類のシステム上の問題の一部は、現在使用されている医療放射線装置にも存在する可能性がある。より最近の事故についても以下で触れる。
The Therac-25 accidents and their causes are well documented in materials from the U.S. and Canadian regulatory agencies (e.g., the U.S. Food and Drug Administration (FDA) and the Canadian Bureau of Radiation and Medical Devices) and in depositions associated with lawsuits brought against AECL. An article by Leveson and Turner (1993) provides the most comprehensive, publicly available description of the accident investigations, the causes of the accidents, and the lessons learned relevant to developing systems where computers control dangerous devices.
Therac-25 の事故とその原因は、米国およびカナダの規制当局の資料(例:米国食品医薬品局(FDA)やカナダ放射線・医療機器局)や、AECL を相手取って起こされた訴訟に関連する証言録取書に、詳しく記録されている。Leveson and Turner(1993)の論文は、事故調査、事故の原因、そしてコンピュータが危険な装置を制御するシステムの開発に関わる教訓について、公開されている中で最も包括的な記述を提供している。
The Therac-25 accidents are associated with the non-use or misuse of numerous system engineering practices, especially system verification and validation, risk management, and assessment and control. In addition, numerous software engineering good practices were not followed, including design reviews, adequate documentation, and comprehensive software unit and integration tests.
Therac-25 の事故は、数多くのシステムズエンジニアリング実践、特にシステムの検証と妥当性確認、リスクマネジメント、評価と管理が用いられなかったこと、あるいは誤って用いられたことに関連している。加えて、設計レビュー、適切な文書化、包括的なソフトウェアの単体テストと統合テストなど、ソフトウェアエンジニアリングの数多くの優れた実践が守られていなかった。
The possibility of radiation accidents increased when AECL made the systems engineering decision to increase the responsibilities of the Therac-25 software for maintaining safety and eliminated most of the hardware safety mechanisms and interlocks. In retrospect, the software was not worthy of such trust. In 1983 AECL performed a safety assessment on the Therac-25. The resulting fault tree did include computer failures, but only those associated with hardware; software failures were not considered in the analysis.
AECL が、安全を維持する役割をより多く Therac-25 のソフトウェアに担わせ、ハードウェアの安全機構とインターロックの大部分を排除するというシステムズエンジニアリング上の決定を行ったときに、放射線事故が起こる可能性は高まった。振り返ってみれば、このソフトウェアはそれほどの信頼に値するものではなかった。1983年、AECL は Therac-25 の安全評価を実施した。その結果作成されたフォールトツリーにはコンピュータの故障が含まれていたが、それはハードウェアに関連するものに限られ、ソフトウェアの故障は分析で考慮されていなかった。
The software was developed by a single individual using PDP-11 assembly language. Little software documentation was produced during development. An AECL response to the FDA indicated the lack of software specifications and of a software test plan. Integrated system testing was employed almost exclusively. Leveson and Turner (1993) described the functions and design of the software and concluded that there were design errors in how concurrent processing was handled. Race conditions resulting from the implementation of multitasking also contributed to the accidents.
このソフトウェアは、1人の人物が PDP-11 アセンブリ言語を用いて開発したものであった。開発中に作成されたソフトウェア文書はほとんどなかった。FDA に対する AECL の回答は、ソフトウェア仕様とソフトウェアテスト計画が欠如していたことを示していた。テストには、ほぼ統合システムテストだけが用いられていた。Leveson and Turner(1993)はこのソフトウェアの機能と設計を記述し、並行処理の扱いに設計上の誤りがあったと結論付けた。マルチタスキングの実装に起因する競合状態(race condition)も事故の一因となった。
AECL technical management did not believe that there were any conditions under which the Therac-25 could cause radiation overdoses, and this belief was evident in the company’s initial responses to accident reports. The first radiation overdose accident occurred in June 1985 at the Kennestone Regional Oncology Center in Marietta, Georgia, where the Therac-25 had been operating for about 6 months. The patient who suffered the radiation overdose filed suit against the hospital and AECL in October 1985. No AECL investigation of the incident occurred and FDA investigators later found that AECL had no mechanism in place to follow up potential reports of suspected accidents. Additionally, other Therac-25 users received no information that an accident had occurred.
AECL の技術管理層は、Therac-25 が放射線の過剰照射を引き起こし得る条件は一切存在しないと信じており、その信念は事故報告に対する同社の初期対応にも表れていた。最初の放射線過剰照射事故は、1985年6月、ジョージア州マリエッタの Kennestone Regional Oncology Center で発生した。同センターでは Therac-25 が約6か月間稼働していた。放射線の過剰照射を受けた患者は、1985年10月に病院と AECL を提訴した。AECL はこの出来事を調査せず、FDA の調査官は後に、事故の疑いがある報告を追跡調査する仕組みが AECL に整っていなかったことを突き止めた。加えて、他の Therac-25 ユーザーは、事故が発生したことについて何の情報も受け取っていなかった。
Two more accidents occurred in 1985, including a radiation overdose at Yakima Valley Memorial Hospital in Yakima, Washington that resulted in an accident report to AECL. The AECL technical support supervisor responded to the hospital in early 1986: “After careful consideration, we are of the opinion that this damage could not have been produced by any malfunction of the Therac-25 or by any operator error… there have apparently been no other instances of similar damage to this or other patients.”
1985年にはさらに2件の事故が発生した。その中には、ワシントン州ヤキマの Yakima Valley Memorial Hospital での放射線過剰照射も含まれており、この件では AECL に事故報告が出された。AECL のテクニカルサポート責任者は、1986年初頭に病院へ次のように回答した。「慎重に検討した結果、この損傷は Therac-25 のいかなる故障によっても、またいかなるオペレータの誤りによっても生じ得なかったというのが我々の見解である……この患者や他の患者に同様の損傷が生じた事例は、どうやらほかにない。」
In early 1986 there were two accidents at the East Texas Cancer Center in Tyler, Texas, both of which resulted in the death of the patient within a few months. On March 21, 1986 the first massive radiation overdose occurred, though the extent of the overdose was not realized at the time. The Therac-25 was shut down for testing the day after the accident. Two AECL engineers, one from the plant in Canada, spent a day running machine tests but could not reproduce the malfunction code observed by the operator at the time of the accident. The home office engineer explained that it was not possible for the Therac-25 to overdose a patient. The hospital physicist, who supervised the use of the machine, asked AECL if there were any other reports of radiation overexposure. The AECL quality assurance manager told him that AECL knew of no accidents involving the Therac-25.
1986年初頭、テキサス州タイラーの East Texas Cancer Center で2件の事故が発生し、いずれも数か月以内に患者が死亡する結果となった。1986年3月21日に最初の大規模な放射線過剰照射が発生したが、その時点では過剰照射の程度は認識されていなかった。Therac-25 は事故の翌日、テストのために停止された。カナダの工場から来た1人を含む2人の AECL エンジニアが、1日かけて装置のテストを行ったが、事故時にオペレータが観測した故障コードを再現することはできなかった。本社のエンジニアは、Therac-25 が患者に過剰照射を行うことはあり得ないと説明した。装置の使用を監督していた病院の物理士は、放射線の過剰被ばくに関する報告がほかになかったかを AECL に尋ねた。AECL の品質保証マネージャは、AECL としては Therac-25 に関わる事故を把握していないと彼に伝えた。
On April 11, 1986 the same technician received the same malfunction code when an overdose occurred. Three weeks later the patient died; an autopsy showed acute high-dose radiation injury to the right temporal lobe of the brain and to the brain stem. The hospital physicist was able to reproduce the steps the operator had performed and measured the high radiation dosage delivered. He determined that data-entry speed during editing of the treatment script was the key factor in producing the malfunction code and the overdose. Examination of the portion of the code responsible for the Tyler accidents showed major software design flaws. Levinson and Turner (1993) describe in detail how the race condition occurred in the absence of the hardware interlocks and caused the overdose. The first report of the Tyler accidents came to the FDA from the Texas Health Department. Shortly thereafter, AECL provided a medical device accident report to the FDA discussing the radiation overdoses in Tyler.
1986年4月11日、同じ技術者が、過剰照射が発生した際に同じ故障コードを受け取った。3週間後にその患者は死亡した。剖検の結果、脳の右側頭葉と脳幹に急性の高線量放射線障害が認められた。病院の物理士は、オペレータが行った手順を再現することに成功し、照射された高い放射線量を測定した。彼は、治療スクリプトの編集中のデータ入力の速さが、故障コードと過剰照射を引き起こす鍵となる要因であることを突き止めた。タイラーの事故の原因となったコード部分を調べたところ、ソフトウェア設計上の重大な欠陥が明らかになった。Levinson and Turner(1993)は、ハードウェアインターロックがない状況で競合状態がどのように発生し、過剰照射を引き起こしたかを詳しく記述している。タイラーの事故に関する最初の報告は、テキサス州保健局から FDA に寄せられた。その直後、AECL はタイラーでの放射線過剰照射を取り上げた医療機器事故報告書を FDA に提出した。
On May 2, 1986 the FDA declared the Therac-25 defective and required the notification of all customers. AECL was required to submit to the FDA a corrective action plan for correcting the causes of the radiation overdoses. After multiple iterations of a plan to satisfy the FDA, the final corrective action plan was accepted by the FDA in the summer of 1987. The action plan resulted in the distribution of software updates and hardware upgrades that reinstated most of the hardware interlocks that were part of the Therac-20 design.
1986年5月2日、FDA は Therac-25 に欠陥があると宣言し、全顧客への通知を要求した。AECL は、放射線過剰照射の原因を是正するための是正措置計画を FDA に提出するよう求められた。FDA が納得する計画を目指して何度も改訂を重ねた末、最終的是正措置計画は1987年の夏に FDA に受け入れられた。この措置計画の結果、ソフトウェアの更新とハードウェアの改修が配布され、Therac-20 の設計に含まれていたハードウェアインターロックの大部分が復活した。
AECL settled the Therac-25 lawsuits filed by patients that were injured and by the families of patients who died from the radiation overdoses. The total compensation has been estimated to be over $150 million.
AECL は、負傷した患者や、放射線の過剰照射により死亡した患者の家族が起こした Therac-25 の訴訟について和解した。補償の総額は1億5000万ドルを超えると推定されている。
Leveson and Turner (1993) describe the contributing factors to Therac-25 accidents: “We must approach the problems of accidents in complex systems from a systems-engineering point of view and consider all contributing factors." For the Therac-25 accidents, the contributing factors included: *management inadequacies and a lack of procedures for following through on all reported incidents; *overconfidence in the software and the resulting removal of hardware interlocks (causing the software to be a single point of failure that could lead to an accident); *less than acceptable software engineering practices; and *unrealistic risk assessments along with over confidence in the results of those assessments.
Leveson and Turner(1993)は、Therac-25 の事故の寄与要因について次のように述べている。「複雑なシステムにおける事故の問題には、システムズエンジニアリングの観点から取り組み、あらゆる寄与要因を考慮しなければならない。」Therac-25 の事故の場合、寄与要因には次のものがあった。
Between 2009 and 2011, The New York Times published a series of articles by Walter Bogdanich on the use of medial radiation, entitled “Radiation Boom" (2011).
2009年から2011年にかけて、ニューヨーク・タイムズは、医療放射線の利用に関する Walter Bogdanich の連載記事「Radiation Boom」(2011)を掲載した。
The following quotations are excerpts from that series:
以下の引用は、この連載からの抜粋である。
<blockquote>Increasingly complex, computer-controlled devices are fundamentally changing medical radiation, delivering higher doses in less time with greater precision than ever before.” But patients often know little about the harm that can result when safety rules are violated and ever more powerful and technologically complex machines go awry. To better understand those risks, The New York Times examined thousands of pages of public and private records and interviewed physicians, medical physicists, researchers and government regulators. The Times found that while this new technology allows doctors to more accurately attack tumors and reduce certain mistakes, its complexity has created new avenues for error — through software flaws, faulty programming, poor safety procedures or inadequate staffing and training. . . .</blockquote>
「ますます複雑化するコンピュータ制御の装置が医療放射線を根本から変えつつあり、かつてないほどの精度で、より高い線量をより短時間で照射している。」しかし患者は、安全規則が破られ、ますます強力で技術的に複雑な装置が誤作動したときに生じ得る害について、ほとんど知らないことが多い。こうしたリスクをより深く理解するため、ニューヨーク・タイムズは公的・私的な記録数千ページを調査し、医師、医学物理士、研究者、政府の規制当局者に取材した。タイムズは、この新技術によって医師が腫瘍をより正確に攻撃し、特定の誤りを減らせるようになった一方で、その複雑さが、ソフトウェアの欠陥、誤ったプログラミング、不十分な安全手順、不十分な人員体制や訓練を通じて、誤りが生じる新たな経路を生み出していることを突き止めた。. . .
<blockquote>Linear accelerators and treatment planning are enormously more complex than 20 years ago,’ said Dr. Howard I. Amols, chief of clinical physics at Memorial Sloan-Kettering Cancer Center in New York. But hospitals, he said, are often too trusting of the new computer systems and software, relying on them as if they had been tested over time, when in fact they have not. . . .</blockquote>
「線形加速器と治療計画は、20年前と比べて桁違いに複雑になっている」と、ニューヨークの Memorial Sloan-Kettering Cancer Center で臨床物理学の主任を務める Dr. Howard I. Amols は述べた。しかし病院は新しいコンピュータシステムやソフトウェアを信頼し過ぎることが多く、実際には時間をかけてテストされていないにもかかわらず、あたかもテスト済みであるかのようにそれらに頼っている、と彼は述べた。. . .
<blockquote>Hospitals complain that manufacturers sometimes release new equipment with software that is poorly designed, contains glitches or lacks fail-safe features, records show. Northwest Medical Physics Equipment in Everett, Wash., had to release seven software patches to fix its image-guided radiation treatments, according to a December 2007 warning letter from the F.D.A. Hospitals reported that the company’s flawed software caused several cancer patients to receive incorrect treatment, government records show.</blockquote>
記録によれば、病院側は、メーカーが時に、設計が不十分であったり、不具合を含んでいたり、フェイルセーフ機能を欠いていたりするソフトウェアを搭載した新しい機器を発売すると不満を訴えている。FDA が2007年12月に出した警告書によれば、ワシントン州エベレットの Northwest Medical Physics Equipment は、画像誘導放射線治療を修正するために7件のソフトウェアパッチをリリースしなければならなかった。同社の欠陥のあるソフトウェアが原因で数人のがん患者が誤った治療を受けたと病院が報告していることが、政府の記録から明らかになっている。
Bogdanich, W. 2011. Articles in the "Radiation Boom" series. New York Times. June 2009-February 2011. Accessed November 28, 2012. Available: https://topics.nytimes.com/top/news/us/series/radiation_boom.
Leveson, N.G., and C.S. Turner. 1993. "An Investigation of the Therac-25 Accidents." Computer. 26 (7): 18-41.
None.
None.