the collection of medical image data for research can be an expensive and time - consuming task . positron emission tomography ( pet ) , x - ray computed tomography ( ct ) , and magnetic resonance imaging ( mri ) systems can easily cost over a million dollars . they may require dedicated staff , maintenance contracts , and access to expensive supporting equipment . the process is complicated by equipment schedules , organization of volunteers / subjects , and involvement of potentially harmful electromagnetic radiation , radiopharmaceuticals , and contrast agents , as well as patient privacy rights . these difficulties limit the availability of clinical data , especially for smaller academic research programs . creating software models of the human anatomy and imaging systems and modeling the medical physics of the imaging acquisition process can provide a means to generate realistic synthetic data sets .   in many cases , synthetic data sets can be used , reducing the time and cost of collecting real images and making data sets available to institutions without clinical imaging systems . synthetic data sets can be used for training purposes and as evaluation data for image processing and analysis algorithms . one additional advantage of synthetic data sets , that can make them an invaluable tool , is that they have a known ground truth . ground truth is , in many cases , nearly impossible to obtain for real images of living humans . in addition , system models can be used to improve system design and study imaging parameter selection and acquisition protocols . while medical image simulation software has been under development since the 1980s , until recently the complexity of the procedures and long computation times have limited the realism and accuracy of artificially generated images . advancements in processor architecture , increases in speed and amount of memory , and development of large storage systems have enabled computers to be used for increasingly complex problems . the use of distributed systems and technologies provides unparalleled computational capabilities . with these technological improvements and an increased understanding of human anatomy and medical physics , three - dimensional high - resolution realistic synthetic medical data sets in addition , the large quantity of images often necessary for studies , hundreds or thousands of images , can be quickly generated and made available .   in some cases the remainder of this paper is dedicated to the generation of mr image sets . mr images are generally the most computationally complex images to generate , with simulations usually being performed in 2d or low - resolution 3d . what follows is , at least to the authors ' knowledge , an overview of the first system capable of successfully generating high - resolution 3d mri images . simulators can be classified according to the procedure used to estimate the radio frequency response of the phantom ( digital anatomy being imaged ) .   in general , existing simulators fall into one of three categories : signal equation - based simulators [ 1 , 2 ] , k - space - based simulators , and isochromat summation - based simulators [ 410 ] . synthetic images are created using known tissue properties ( i.e. , spin density , spin lattice relaxation time , and spin - spin relaxation time ) and the signal intensity equation for the pulse sequence being simulated .   by substituting the known tissue properties into the signal equation for example , ( 1 ) is the signal equation for the standard spin - echo pulse sequence where  is the spin density , t1 is the spin lattice relaxation time , t2 is the spin - spin relaxation time , and te and tr are the pulse sequence parameters representing the echo time and repetition time , respectively 
 ( 1)s=(1etr / t1)ete / t2 . since the simulation is a simple mathematical calculation , simulated images can be created nearly instantaneously . simulation is however limited to pulse sequences with a known signal equation , and generally more complex phenomena and artifacts can not easily be simulated using this method . a second , rarely used , approach to generate synthetic data sets leverages the k - space representation of the data . this simulation begins by approximating k - space by taking the fourier transform of the phantom being imaged . the signal is then adjusted for each pulse event , for relaxation , and for the artifacts being simulated .   while this technique provides a relatively computationally efficient way to obtain the mri signal , it is difficult to simulate certain effects , such as field inhomogeneities . in addition , an understanding of how each event and artifact manifests itself in k - space is necessary requiring expert knowledge and making simulation of more complex artifacts difficult . the third simulator type , and by far the most robust , arrives at the mri signal by summing a large number of isochromats . the phantom is treated as a set of spin packets , and the evolution of the magnetization of each packet is governed by the bloch equations . the rotation of the magnetization due to radio - frequency ( rf ) pulses , gradients , and relaxation is modeled . the final k - space signal is generated by summing the signal provided by each isochromat ( isochromat summation ) , and the image is obtained by fourier transforming the k - space data . these simulators are robust and in theory can simulate any pulse sequence and most phenomena . limitations exist only due to the assumptions made by the bloch equations and by computation time . this work attempts to ameliorate the situation by lessening the limitations imposed by computational complexity . each isochromat is assigned a location within the phantom and is represented by a three - dimensional magnetization vector ( [ mx(t )  my(t )  mz(t ) ] ) , which specifies the isochromat 's orientation and magnitude at time t.   the location of the isochromat within the magnet bore is used to identify the magnetic field strength at the isochromat ( due to the main static magnetic field , gradients , and any inhomogeneities such as from susceptibility ) . the local magnetic field strength ( b ) and the gyromagnetic ratio (  ) of the isochromat are used to find the frequency at which the isochromat precesses within the main magnetic field ( larmor frequency ,  ) as follows : 
 ( 2)=b . 
							 after a period of time ( t ) has passed , the larmor frequency can be used to find the new orientation of the isochromat by modeling the precession as a rotation about the main field ( usually oriented along the z - axis ) . this rotation is modeled as follows : 
 ( 3)[mx(t+t)my(t+t)mz(t+t)]=[cos  ( t)sin  ( t)0sin  ( t)cos  ( t)0001][mx(t)my(t)mz(t ) ] . in addition to precession within the main magnetic field , the magnitude of the isochromat changes due to relaxation effects .   the transverse spin - spin relaxation is a result of molecular interactions causing a dephasing of the spins and a loss of signal coherence . the rate of relaxation is governed by the tissue - specific spin - spin relaxation time constant ( t2 ) and affects the magnitude of the magnetization vector orthogonal to the main magnetic field . the effect of this dephasing on the magnetization vector can be modeled with 
 ( 4)[mx(t+t)my(t+t)mz(t+t)]=[et / t2000et / t20001][mx(t)my(t)mz(t ) ] . longitudinal spin lattice relaxation occurs as the isochromats return to equilibrium ( realign with the static magnetic field ) . longitudinal relaxation is governed by the spin lattice relaxation time constant  ( t1 ) and affects the magnitude of the magnetization vector in the direction of the main magnetic field , as calculated from 
 ( 5)mz(t+t)=mz(t)et / t1 +  m0(1et / t1 ) . 
							 here , the magnitude of the isochromat 's magnetization at equilibrium within the main magnetic field is given by m0 . this magnitude is proportional to the isochromat 's spin density . applying both relaxation effects simultaneously yields 
 ( 6)[mx(t+t)my(t+t)mz(t+t)]=[et / t2000et / t2000et / t1][mx(t)my(t)mz(t ) ]  + [ 00m0(1et / t1 ) ] . including the precession within the main static field yields ( 7 ) used to iteratively update the isochromat magnetization vector 
 ( 7)[mx(t+t)my(t+t)mz(t+t)]=[et / t2000et / t2000et / t1 ]  [cos  ( t)sin  ( t)0sin  ( t)cos  ( t)0001][mx(t)my(t)mz(t ) ]  + [ 00m0(1et / t1 ) ] . rf pulses are used to excite the isochromats causing a deviation of their magnetic moments from equilibrium . an alternating current is run through a coil placed around the x - axis . turning on and off the current at the larmor frequency results in a pulsed magnetic field ( b1 ) orthogonal to the main static magnetic field ( b0 ) . if we consider a frame of reference which rotates about the z - axis at the lamor frequency , b1 will be a constant field along the x - axis .   in this rotating frame of reference , the energy from the pulsed field will be absorbed by the isochromats causing them to rotate about the direction of the b1 field . frame of reference , the isochromats will follow a helical path making increasingly larger circles down towards the xy - plane . the frequency of the pulse is selected , such that it targets specific isochromats . the local magnetic field strength ( bt ) and the gyromagnetic ratio ( t ) of the targeted isochromat are used to determine the frequency of the pulse ( p ) according to 
 ( 8)p=tbt . the amount of rotation is dependent on the pulse duration and the strength of the b1 field . isochromats precessing at p will experience a rotation of t degrees when a pulse with a magnitude of b1 is applied for a duration of  , as given by ( 9 ) . ( 9)t=tb1. 
							 in reality , the rectangular pulse will contain other frequencies as well . isochromats precessing at other frequencies may still absorb some of the energy causing them to experience smaller perturbations . the observed rotation will depend on the deviation of the isochromat 's magnetic field strength ( bi ) from bt and occur around the direction of the effective magnetic field b1. 
 b 
 1 deviates from b1 by an angle i , found using  
 ( 10)i = tan1  ( btbib1 ) . 
							 the angle of rotation will depend on the pulse duration and strength of the b1 magnetic field , as given by 
 ( 11)i=i|b1|=i(btbi)2+(b1)2 . first , a rotation of i around the y - axis aligns b1 with the x - axis . the excitation by i degrees can then be implemented by a rotation about the x - axis . finally , a rotation around the y - axis of i will recover the proper orientation . i0cos  i][1000cos  isin  i0sin  icos  i ]  [cos  i0sin  i010sin  i0cos  i][mx(t)my(t)mz(t ) ] . more complex pulses , such as sin  ( x)/x , can be represented as a series of short rectangular pulses . generally , a restriction is placed that  is much smaller than t1 and t2 , so that no relaxation or dephasing occurs as the pulse is being applied .   in this case , the final result of applying the pulse in the rotating frame of reference is equivalent to applying the pulse in the laboratory frame . as previously mentioned , each isochromat is under the influence of the local magnetic field ( b ) present at its spatial location within the scanner . this field determines the precessing frequency of the isochromat as well as its behavior during the application of an rf pulse . the local magnetic field strength is the sum of the main static magnetic field ( b0 ) , along with any variation due to tissue susceptibility , any inhomogeneities in the main field that have not been corrected by proper shimming , and any gradients that are currently being applied . gradients are applied linearly across the x , y , and z - axes of the system .   the change in local magnetic field strength due to the gradients ( bg ) can be calculated with ( 13 ) , where ( x , y , z ) is the spatial location of the isochromat , and gx , gy , and gz are the strengths of the applied gradients along the x , y , and z - axes of the system , respectively 
 ( 13)bg = xgx+  ygy+zgz . the gradients applied during image acquisition are defined by the pulse sequence and serve purposes such as phase and frequency encoding and slice selection . they can be applied anytime during acquisition including during precession , during the application of a pulse , or during signal acquisition . this signal is typically represented in complex notation where the real component is the signal observed by the first coil , and the imaginary component is the signal observed by the second coil . the observed signal is calculated by summing the magnetization of all the isochromats along the direction of observation . for example , if the coils are placed along the x- and y - axes , the real component can be the sum of the magnetization along the x - axis , and the imaginary component can be the sum of the magnetization along the y - axis . the observed signal consists of multiple samples collected over a short period of time which will define one line of k - space . a typical acquisition process will consist of repeatedly applying a pulse sequence ( with varying parameters such as the phase - encoding gradient strength ) and collecting signal samples to fill a line of k - space . this will be repeated until samples have been collected for all of k - space . an image reconstruction algorithm is then applied to transform the k - space data into an image . one area in which isochromat simulators vary is in the way they accurately simulate the spin - echo phenomenon . accurate echo simulation requires the use of a large number of isochromats per voxel of the reconstructed image , greatly increasing execution time . alternative methods have been proposed including using a time variable to track when rephasing should occur , using gradient magnitudes to predict the amount of dephasing that occurs in the region represented by an isochromat , and calculating intravoxel magnetization gradients . simri is a bloch equation - based magnetic resonance image simulator , developed in creatis , lyons , france . it includes a few pulse sequences , and the framework allows for the implementation of ad hoc ones . given a digital phantom of an object , the magnetic resonance signal can be generated if the fractional tissue components of each voxel are known . it supports static field inhomogeneities due to improper shimming and tissue susceptibility , features efficient modeling of intravoxel inhomogeneities , and properly models the main artifacts such as susceptibility , wrap around , chemical shift , and partial volume effects .   the design of simri is shown in figure 2 . simri is designed to take advantage of small clusters supporting the message passing interface ( mpi ) communications protocol , but modifications are necessary to take advantage of larger parallel computing solutions . research at mcgill university has resulted in a set of high - resolution voxel - based brain phantoms [ 1517 ] . these phantoms were created by semiautomatically segmenting real brain data sets .   in order to accurately identify all of the tissues of interest , the segmentation was based on t1 , t2 , and proton density weighted magnetic resonance images , magnetic resonance angiography ( mra ) , and computed tomography ( ct ) images . the resulting high - resolution phantom consists of 11 tissue types : grey matter , white matter , cerebrospinal fluid , skull , marrow within the bone , dura , fat , tissue around the fat , muscles , skin / muscles , and vessels . the phantom is presented as a set of fuzzy volumes , one volume for each tissue type , where the voxel intensities represent the amount of that tissue in the given voxel . blue gene is a massively parallel computer developed by ibm in collaboration with several partners including the lawrence livermore national laboratory .   for this work , two blue gene / l systems available in new york were used . new york blue is the system hosted at brookhaven national laboratory consisting of 18,432 dual 700  mhz powerpc 440 nodes with 1024  mb of memory . rensselaer 's computational center for nanotechnology hosts another system consisting of 16,384 dual 700  mhz powerpc 440 nodes divided equally between 512  mb and 1024  mb configurations . blue gene / l utilizes system - on - a - chip technology , integrating all functionality of a node , except for main memory , into a single integrated circuit .   the use of lower clock speed processors in addition to this high level of integration allows a highly scalable architecture at low cost and low power consumption . compute nodes consist of two double floating point core processors , supporting an enhanced instruction set including single instruction and multiple data ( simd ) operations . two operation modes are provided : communication coprocessor mode in which one cpu is used for computation and the other for communication and virtual node mode in which both cpu are leveraged for computation . in virtual node mode nodes are connected into a 3d torus , with the smallest unit being 4  4  2 . dedicated i / o nodes with gigabit ethernet provide an interface between the compute nodes and external systems including the file systems . i / o node to compute node ratios of 1  :  8 to 1  :  256 is supported . applications built on the blue gene / l system utilize message passing interface ( mpi ) for communication between nodes . the most notable difference is that blue gene / l nodes do not support virtual paging . this means that unlike the 2 or 3  gb of virtual memory typically available to any processes running on a 32-bit system , regardless of physical memory amounts , a blue gene / l node is limited by the actual physical memory . the application , kernel , and mpi communication buffers must total less than the 256  mb , 512  mb , or 1024  mb of physical memory available to the node . this requires applications to have a very low memory footprint per node , carefully manage communication buffers , and be clean of any memory leaks that can quickly consume the available memory . several modifications needed to be made in order for simri to run successfully on the blue gene / l systems .   the modified version of simri can be requested by contacting the corresponding author . the most significant modifications included redistribution of the workload and optimization of the memory . since each isochromat progresses independently , parallelization is straightforward . the progression of the isochromats can then be independently modeled and the resulting acquired signals summed together at the end .   in simri , this was done by assigning one slice ( i.e. , plane ) of the phantom object to each node . the number of divisions ( and participating compute nodes ) is limited by the dimension of the image . this division of labor is appropriate for small clusters , but not for massively parallel systems like the blue gene / l .   in order to leverage the additional compute nodes , modifications were made , so assignment of tasks no longer needs to occur around slice boundaries and that arbitrary groups of isochromats can be assigned to each node . ( 1 ) when launching the application , a number of manager nodes are specified . each worker is assigned to one of the manager nodes in a manner , such that each manager has the same number of workers . ( 3 ) the isochromats to be modeled are divided up evenly between the manager nodes . ( 4 ) each manager node further divides up the isochromats amongst its workers . ( 5 ) the worker nodes perform the simulation and return back to their manager the mr signal from the isochromats they were responsible for modeling . ( 6 ) the manager nodes combine the signals from each of its workers . ( 7 ) the accumulated signal from each manager is then combined to create the final mr signal . ( 8) this mr signal can then be reconstructed to produce the simulated image . this tree - like distribution network allows efficient use of the large number of nodes in the blue gene / l systems . initial test runs required approximately 2.7  gb of memory per node for a 256 voxel simulation . this is well in excess of the 1  gb maximum of the blue gene / l nodes . the memory usage pattern was modified to retain memory only as long as necessary and to reuse previously allocated blocks . this is important as the buffers internally allocated by mpi can consume considerable memory if not careful . finally , the code executed on each node was made more specialized for the task the node would be performing . the increased specialization of each node results in memory being allocated conditionally based on the node 's role .   as a result of these modifications , the memory use is sufficiently below the 1  gb that is shared between the application and the kernel on the bluegene / l systems . this 256 voxel spin - echo simulation took approximately 4.3 hours executing on 8192 nodes of the bluegene / l system benchmark runs were performed using the montreal brain phantom and a spin - echo protocol . a 128 voxel simulation was performed using 512 , 1024 , 2048 , 4096 , and 8192 nodes . table 1 shows the run times for each simulation and the scalability ( run time versus number of nodes ) is plotted in figure 4 .   as expected , the run time is found to be inversely proportional to the number of nodes used . the efficiency ( speedup divided by number of nodes ) , plotted in figure 6 , is approximately unity tapering off only slightly as the number of nodes approaches the number of isochromats and the communication / computation ratio increases . a set of simulations were run on a single workstation in order to emphasize the benefit of a distributed approach .   a workstation equipped with an intel xeon x5260 ( 3.33  ghz ) processor was used to run two - dimensional and three - dimensional spin - echo simulations of a phantom consisting of a single spherical object . using a single workstation in it is possible to perform two - dimensional and small three - dimensional simulations . higher - resolution simulations may however require a prohibitive amount of time , and it is may not be feasible to create a large set of simulated data . modern distributed systems provide unparalleled computational capabilities allowing full resolution data sets to be generated in reasonable amounts of time . the growing availability of these systems , and the public funding for them , has resulted in them being readily available to a large number of academic researchers . simri has proved to be a robust modeling package that can easily be modified to target a variety of distributed computing environments . as shown here , it can be used to model the image acquisition process allowing the generation of realistic high - resolution images . in addition , large quantities of simulated images can be generated enabling their use in research studies ( for example , see ) . collections of realistic simulated data sets can be used for validation of image processing algorithms , perception studies , and training . historically computational complexity has limited the accuracy of medical image simulations .   as technology continues to evolve , the realism of the simulated data will be limited by the accuracy of the image acquisition process model and the accuracy of the anatomical model being imaged .
medical imaging system simulators are tools that provide a means to evaluate system architecture and create artificial image sets that are appropriate for specific applications . 
 we have modified simri , a bloch equation - based magnetic resonance image simulator , in order to successfully generate high - resolution 3d mr images of the montreal brain phantom using blue gene / l systems . 
 results show that redistribution of the workload allows an anatomically accurate 2563 voxel spin - echo simulation in less than 5 hours when executed on an 8192-node partition of a blue gene / l system .