 Research article
 Open access
 Published:
Interactive visualization of multidimensional coincidence spectra
PMC Physics A volume 1, Article number: 7 (2007)
Abstract
The paper presents direct visualization techniques of multidimensional nuclear spectra as well as visualization techniques based on projections of embedded subspaces. While the first group of graphical models is limited to four dimensions, the second one can be theoretically extended to any dimension. The presented algorithms of visualization have been implemented in nuclear data acquisition, processing and visualization system developed at the Institute of Physics, Slovak Academy of Sciences. The paper focuses on presentation of nuclear spectra. However the majority of algorithms can be successfully applied for visualization of scalar arrays of other data types.
PACS Code: 29.85.+c, 07.05.Rm
1. Introduction
The power of computers to collect, store and manipulate experimental data has increased dramatically. In today's nuclear physics experiments the number of detectors being included in the measurements is going up to one hundred or more. The results of such measurements, however, generate such large data sets as to be nearly incomprehensible. Scanning these large sets of numbers to determine trends and relationships is a tedious and ineffective process. To address this problem the physicists have turned to visualization of experimental data. If the data are converted to a visual form, the trends are often immediately apparent. Without visualization much of the increased power of computers would be wasted because experiments are poor at gaining insight from data presented in numerical form.
The goal of visualization of experimental data is an improved understanding of the result of the information gathered during experiment. It is one of the most powerful and direct ways how the huge amount of information can be conveyed in a form comprehensible to a human eye. As a result, development of visualization algorithms takes on great significance, offering a promising technology for transforming an indigestible mass of numbers into a medium, which experimenters can understand, interpret and explore.
The visualization techniques presented in this work make it possible to display either raw experimental spectra, processed data or to make slices of the same or lower dimensionality in an interactive way. They allow obtaining an imagination about event distribution and correlations in coincidence spectra up to fivedimensional space.
The objective of the paper is to present visualization techniques and graphical models to display multidimensional nuclear spectra (histograms), which were implemented in the nuclear data acquisition, processing and visualization system [1, 2]. Though the software package is designed mainly for use with nuclear data, any kind of data can be processed as well. Other systems for nuclear spectra graphical representation were presented in [3, 4].
2. Direct visualization techniques of scalar fields
A scalar variable is a single quantity, in the case of nuclear spectra – counts, which can be represented as a function of independent variables – particle energies. Most scalar visualization techniques use a consistent approach across one, two, or threedimensional fields. More recent techniques, e.g. of the visualization of threedimensional fields, attempt to show the full threedimensional variations of a scalar variable within a volume field. These techniques include isosurfaces, particle clouds, volume slicing and sampling planes [5–7].
The sophisticated visualization algorithms are presented in [8]. The paper presents conventional as well as newly developed visualization techniques and graphical models. The structure and complexity of the algorithms lend themselves for implementation in online live mode during the data acquisition or processing. The pictures can be simultaneously updated.
One can select various attributes of the display, e.g. color of the spectrum, the limits of the displayed part of the spectrum, window, marker, type of scale, and various display modes, slices, to rotate two, or moredimensional data. In the abovementioned paper, we have developed the direct visualization algorithms up to fourdimensional data.
2.1. Twodimensional spectra
Twoparameter coincidence nuclear spectrum (histogram) is represented by a matrix of data with two independent variables (parameters) and one dependent variable, (counts), i.e., c = f(x, y). To project the threedimensional scene onto a twodimensional screen the axonometric transformation is employed. To display threedimensional data on screen we have employed the following model
where t_{ xx }, t_{ xy }, t_{ yx }, t_{ yy }, t_{ yz }, v_{ x }, v_{ y }are transform coefficients reflecting translation in both original twodimensional scalar field (in x, y dimensions as well as in counts) and in the position on screen, scaling, rotation around zaxis and elevation of the view. The position of a point on the screen is x', y' and
x = x_{ min }+ k_{ x }·i; y = y_{ min }+ k_{ y }·j; i ∈ < 0, n_{ x }>; j ∈ < 0, n_{ y }>
n_{ x }, n_{ y }are numbers of nodes of a regular grid. The model proposed in such a way allows:
• to choose and display any part of the spectrum by setting x_{ min }, x_{ max }, y_{ min }, y_{ max }to appropriate values
• to set any range of displayed counts – c_{ min }, c_{ max }
• to place the display of spectrum anywhere on the screen
• to rotate and elevate the view of the spectrum
• to change the density of display nodes. This is important when displaying accumulated spectra in online mode, i.e., during the acquisition of spectra.
To illustrate the capabilities of the proposed visualization algorithms we introduce several examples. In Fig. 1 we present twodimensional spectrum shown in contours display mode. The same spectrum shown in triangle display mode in log scale can be seen in Fig. 2. To identify interesting locations in spectra together with displayed spectrum one can display onedimensional slices and to move with them in both directions (see Fig. 3).
Sophisticated surface display mode with shading according to heights of peaks is shown in Fig. 4. Shading according to the position of fictive light source is shown in Fig. 5. One can change the position of the light source thus giving the possibility to achieve special effects.
Furthermore, there exists possibility to combine both shading methods. In Fig. 6 we present the display mode with mixed surface shading (according to height and light position) with ratio 50:50. One can include also the display of shadows according to the light source (Fig. 7).
All display parameters can be changed according to the needs of the experimenters. Informative way of the display is rectangular view with contour shading (positron annihilation spectrum) shown in Fig. 8. One can define Regions Of Interests (ROIs) in the spectrum. Every ROI has its own display parameters independent of the main spectrum and other ROIs. In Fig. 9, one can see two ROIs in the twodimensional – ray spectrum displayed in different display modes and color shadings. Similarly, one can display also the peaks in the spectrum found in the process of peak identification (Fig. 10). There are many other display combinations possible. Their presentation however, goes beyond the scope of this work.
2.2. Threedimensional spectra
Analogously to the previous section threeparameter γray coincidence nuclear spectrum is threedimensional scalar field with three independent parameters x, y, z (particle energies) and one dependent variable – counts c = f(x, y, z). As with twoparameter scalar fields one can idealize the display of threeparameter scalar field using discrete symbols at specific locations in space, or use techniques that show the variations in the threeparameter space. Hence each channel is defined by three parameters – coordinates x, y, z in original space, which determine the position of a channel. First let us consider a model where the channel is shown as a sphere (other marks as square, triangle, star etc. also can be used) with the size proportional to the event counts it contains. Then the position of the channel x, y, z on the screen is
where t_{ xx }, t_{ xy }, t_{ xz }, t_{ yx }, t_{ yy }, t_{ yz }, v_{ x }, v_{ y }, v_{ z }, are display transform coefficients reflecting translations in both original threedimensional scalar field (in x, y, z dimensions as well as in counts) and in the position on screen, scaling, rotation around axes x, y, z and
x = x_{ min }+ k_{ x }·i; y = y_{ min }+ k_{ y }·j; z = z_{ min }+ k_{ z }·k
where
n_{ x }, n_{ y }, n_{ z }are numbers of nodes of regular grid. The model proposed in such a way allows:

to choose and display any part of threedimensional array – x_{ min }, x_{ max }, y_{ min }, y_{ max }, z_{ min }, z_{ max }

to choose any range of displayed counts – c_{ min }, c_{ max }

to place the picture anywhere on the screen

to rotate the spectrum around the axes x, y, z

to change the density of display nodes.
The particle gradient display modes where the channels are shown as spheres with either diameter or color proportional to their contents are shown in Fig. 11 and Fig. 12, respectively. From the figures, one can localize interesting parts (peaks) in the spectrum. Sometimes however, to identify these parts, it is preferable to display only a slice in the spectrum, to move with it and interactively find appropriate channels. One and twodimensional slice in threedimensional spectrum is shown in Fig. 13 and 14, respectively.
One can use even more sophisticated surface display mode. The defined surface separates the events with higher counts (statistics) from those with lower counts. Moreover, to achieve smooth surface one can interpolate the threedimensional space using Bspline technique. In Fig. 15 and Fig. 16, we see the threedimensional γγγ – ray coincidence spectrum and positron annihilation spectrum, respectively.
Finally, there exists a possibility to display threedimensional spectrum in volume rendering mode. From the color contours on the sides of cube, one can get an imagination about positions of interesting peaks in threedimensional space. An example of such a display mode is given in Fig. 17. Again, one can employ interpolation of the threedimensional space using Bsplines of various degrees.
2.3. Fourdimensional spectra
Now the counts is a function of four parameters (particle energies), i.e., c = f(x, y, z, v). Let us imagine that instead of one channel belonging to one point of 3D space in threeparameter nuclear spectrum visualization now this point represents a slice in the fourth parameter, i.e.,
c_{i, j, k}(v) = f(x_{ i }, y_{ j }, z_{ k }, v)
We depict each slice as a closed polygon with the center positioned in analogy with threedimensional data at the location
For the positions of vertices of the polygon i, j, k on screen we have
where the fourth parameter v ∈ <v_{ min }, v_{ max }>, r_{ max }(constant value) is maximum distance of a polygon vertex from its center, φ_{0} is starting angle of the display of the first vertex of the polygon and c_{ min }, c_{ max }determine the range of displayed counts. The principle of 4D display is illustrated in Fig. 18.
In Fig. 19 we show fourdimensional display of the synthetic Gaussian with the center at x = y = z = v = 8. Three parameters determine the position of the center of the slice. The channels of the slice are shown as bars (drawn in red color) starting in the center of the slice with lengths proportional to their contents. The channels are displayed starting from 9 o'clock position in clockwise direction. The example of a chunk (16 × 16 × 16 × 16 channels) of smoothed experimental γγγγray spectrum through the use of this display algorithm is shown in Fig. 20.
Analogously to 2 and 3D data to find interesting parts of the spectra one can display slices of various dimensionality. In Fig. 21 we present 3D slices with fixed y and z variables, respectively. Changing the values of y and z one can move with the slices. Subsequently in Fig. 22 we give an example of three twodimensional slices in fourdimensional spectrum with fixed xy, xz and yz variables. In Fig. 23 we illustrate similar situation when we fix the forth variable. We show the twodimensional slice with fixed zv variables. Finally in Fig. 24 we introduce the display of three onedimensional slices with fixed xyv, xzv and yzv variables, respectively.
To illustrate the display of ridges in fourdimensional space we show the examples of synthetic spectrum before and after background elimination in Fig. 25 and Fig. 26, respectively.
In Fig. 27, we present fourfold coincidence positron annihilation spectrum with interpolated channels.
In pies display mode one can change the color (level of shading) while keeping the radius of circle constant. According to the resolution in the fourth independent variable the circle is divided to channels (pies) with colors proportional to the contents of channels. The size of the circle is proportional to the sum of counts in the fourth dimension {\displaystyle \sum _{v={v}_{\mathrm{min}\phantom{\rule{0.5em}{0ex}}}}^{{v}_{\mathrm{max}\phantom{\rule{0.5em}{0ex}}}}f({x}_{i},{y}_{j},{z}_{k},v)} An example of synthetic 4D spectrum in pies display mode is shown in Fig. 28.
Finally in Fig. 29 we present fourdimensional spectrum in isosurface mode. Analogously to threedimensional data, the surface separates the channels with higher counts from those with lower counts. In this case, however, the color of the surface is defined by the position of the first occurrence of the channel with the same or higher value than the defined boundary value.
3. Technique of successive projections of embedded subspaces
The dimensionality of abovepresented visualization techniques is limited to four. However, with increasing dimensionality of nuclear spectra the requirements in developing of multidimensional scalar visualization techniques becomes striking. In principle, the abovementioned algorithms can be used even for higher dimensions by employing a new technique of embedded subspaces. Using this technique we divide the multidimensional space into outer subspace and one or more successive inner (embedded) subspaces, all of dimensionalities more convenient to human imagination.
The goal is to propose a technique that allows one to localize and scan interesting parts (peaks) in multidimensional spectra. Moreover it should permit to find correlations in the data, mainly among neighboring points, and thus to discover prevailing trends around multidimensional peaks.
The proposed technique makes benefit of specific character and features of nuclear spectra. It utilizes the fact that the interesting objects (peaks) have shape of quasi Gaussians. Further, in enormous multidimensional space the events are distributed very sparsely, which allows to preserve main features of data even after reducing the dimensionality by employing projection functional. Successive decreasing the dimensionality makes it possible to determine the positions of appropriate multidimensional peaks.
Without loss of generality, we shall assume the reduction of the space up to twodimensional one. Other alternatives are also possible, but the display of twodimensional array using perpendicular view allows utilizing screen area the most efficiently. Let us start with threedimensional spectrum f(x, y, z). Let us apply a projection functional reducing dimensionality by one to twodimensional array, e.g.
f^{(1)}(x, y) = F[f(x, y, z)].
In place of the functional one can use, e.g. sum of channels contents in a slice
or maximum in a slice
f^{(1)}(x, y) = max{f(x, y, z)},
where z ∈ <z_{ min }, z_{ max }>
or any other suitable operation. Let us display each channel i, j in the form of a mark with size proportional to f^{(1)}(i, j). Again, because of the most efficient way of utilizing the screen, in place of the mark we choose a rectangle. The rectangle represents a "window" into the subspace. Inside of the rectangle, we can display the slice f(i, j, z), z ∈ <z_{ min }, z_{ max }>. From the distribution of rectangles, one can find out the positions of interesting peaks, then focus the view to an appropriate region or to zoom a slice to full screen size, respectively.
Let us proceed to fourdimensional data f(x_{1}, x_{2}, x_{3}, x_{4}). In place of the functional, we shall use the sums of channels in appropriate twodimensional regions
Then inside of each rectangle belonging to the channel i_{1}, i_{2} we display twodimensional slice f(i_{1}, i_{2}, x_{3}, x_{4}), using any of the twodimensional above presented graphical models.
In the case of fivedimensional spectrum, we can apply one, or twostep reduction of dimensionality, i.e., either
or
In the first case in each rectangle window belonging to the channel i_{1}, i_{2} one can display threedimensional slice f(i_{1}, i_{2}, x_{3}, x_{4}, x_{5}) using any of the threedimensional graphical models. In the second one, in each rectangle belonging to the channel i_{1}, i_{2} one can display twodimensional distribution of f^{(1)}(i_{1}, i_{2}, x_{3}, x_{4}) again in the form of rectangles. Then in each rectangle belonging to the channel i_{1}, i_{2}, i_{3}, i_{4}, one can display the onedimensional slice f(i_{1}, i_{2}, i_{3}, i_{4}, x_{5}). Employing this algorithm and using successive zooming one can localize the positions of fivedimensional peaks.
Though realizing the technical limitations, apparently the technique of embedded subspaces lends itself to generalization for p – dimensional nuclear spectra employing several level merging and projections. Without loss of generality, we shall assume that p is even. Analogously to the abovegiven relations one can write
where j is the level of merging. Apparently, if p is odd 0level subspaces are onedimensional.
Obviously, from theoretical point of view this algorithm has no limitation. However, due to technical limitations of today's computers (sizes of memories, resolution of displays) the practical meaning of these formulas for higher values of p is rather restricted. Finally, we would like to emphasize that the given algorithm of embedded subspaces presents one of the possible approaches to cope with the problem of visualization of multidimensional nuclear spectra. In principle one can change dimensionality of subspaces at every level of merging, rotate subspaces, define other projection functional etc.
3.1. Threedimensional spectra
Using the technique of embedded subspaces we can divide threedimensional space to outer twodimensional subspace and inner onedimensional subspaces (slices in the third variable). An example of the projection of synthetic threedimensional Gaussian and two ridges to twodimensional outer subspace is given in Fig. 30.
The sizes of small rectangles are proportional to the contents inside of the slice in the appropriate channel of outer space. The display inside of rectangles is pointless because of poor resolution. Let us imagine that we are interested in the peak region denoted in Fig. 30 as "Region of interest". Let us focus the display to the ROI and enable the display inside rectangles (Fig. 31).
One can see simultaneously the distribution of the twodimensional projection (yellow squares) together with onedimensional slices. One can observe correlations among neighboring points inside of rectangles as well as correlation of corresponding points in the rectangles in both x and y directions.
Let us illustrate an example of experimental threedimensional spectrum. Again, outer subspace and zoomed ROI are given in Fig. 32 and Fig. 33, respectively.
If the experimenter is not interested in the distribution in outer subspace and wishes to see details in the rectangles the size can be set equal (Fig. 34). Then one can observe better the correlations among corresponding channels.
Analogously with the direct visualization technique now we can also display one and twodimensional slices and thus to determine correlations among neighboring channels in different directions. In Fig. 35 we present spectrum in point display mode with equal sizes of rectangles together with onedimensional slices for fixed xy (blue bars), xz (green bars) and yz (red bars) variables, respectively. In Fig. 36 we present two dimensional slices for fixed x (blue bars), y (green bars) and z (red bars) variables, respectively.
3.2. Fourdimensional spectra
Now the dimensionality of both outer and inner subspaces will be two. An example of a view focused on fourdimensional synthetic Gaussian is illustrated in Fig. 37. One can watch correlations in four dimensions, i.e., in twodimensional subspace in each rectangle and among corresponding points in neighboring rectangles in both directions in outer subspace.
Let us proceed to experimental fourdimensional spectrum. In Fig. 38, one can see a projection of the fourdimensional rather noisy spectrum to outer subspace and in Fig. 39 zoomed ROI of it. From this view, one can observe basic tendencies in the spectrum. If desired, to see better the details, one can expand rectangles to equal size (Fig. 40).
Also for fourdimensional spectra displayed using the technique of embedded subspaces one can show one, two and threedimensional slices. In Fig. 41 one can see fourdimensional spectrum shown in points display mode with equal sizes of rectangles together with four onedimensional slices for fixed xyz, xyv, xzv and yzv variables, respectively. One can observe the correlations among neighboring channels in four directions.
3.3. Fivedimensional spectra
Fivedimensional space can be divided in two ways, i.e., either two, plus threedimensional subspaces or two, plus two, plus onedimensional subspaces. Let us start with the first case. In Fig. 42 one can see outer subspace of fivefold γray spectrum. One can observe high level of background due to relatively low statistics in the spectrum. Let us assume we are interested in the outlined ROI. Zoomed ROI with enabled display of inner threedimensional subspaces is illustrated in Fig. 43. From the presented chunk of the fivedimensional space, mainly from the shown inner threedimensional subspaces it is difficult to discover tendencies in the spectrum. It can be improved, to some extent, by smoothing the data using Bsplines and employing isosurface display technique shown in Fig. 44.
The alternative way is to proceed in the projections and to divide inner threedimensional subspaces to twoplus onedimensional ones. In Fig. 45 we show outer and the first level inner subspaces (display of the second level inner subspaces was disabled). While yellow rectangles represent outer subspace, the light blue ones represent the first level inner subspaces. If we enable the display of the second level subspaces, we can see all three levels simultaneously (Fig. 46). One may focus attention to the channel x = 10, y = 10, where the volume of data is the biggest (yellow rectangle here is the largest, Fig. 47). Now one can see in detail the slices in the second level inner subspaces. Employing this technique one can scan multidimensional nuclear spectra. Moving from the outer subspace to inner ones and back gives possibility to discover interesting parts in such a spectrum.
Let us denote the fifth independent variable as w. Analogously to three and fourdimensional data in Fig. 48 we show fivedimensional spectrum shown in points display mode with equal sizes of rectangles together with five onedimensional slices for fixed xyzv, xyzw, xyvw, xzvw and yzvw variables, respectively. One can observe the correlations among neighboring channels in five directions.
4. Conclusion
In the paper we have presented conventional as well as new developed visualization algorithms of nuclear spectra. For 3D spectra we have proposed particle gradient display technique and isosurface display technique. Raw data can be interpolated using Bspline algorithms up to 4th degree. For 4D spectra we have designed the algorithms based on slicing in fourth dimension, pies display mode as well as isovolume display mode.
Furthermore, we have derived new technique of visualization of multidimensional spectra based on projections of embedded subspaces. This allows one, in interactive way, to localize interesting parts in the data of this kind, to find correlations among neighboring points and to discover trends in multidimensional data.
The visualization algorithms presented have been implemented in the data acquisition, processing and visualization system DaqProVis which is being developed at Institute of Physics, Slovak Academy of Sciences [9]. The algorithms for the display of 2D spectra have also been implemented in ROOT system in TSpectrum2Painter class (SPECTRUMPAINTER directory) [10]. In near future we plan to implement in ROOT also the visualization algorithms for 3D spectra.
References
Morháč M, Turzo I, Krištiak J: PCCAMAC Based Data Acquisition System for Multiparameter Measurements. IEEE Trans Nucl Sci. 1995, 42: 16. 10.1109/23.364872.
Morháč M, Kliman J, Matoušek V, Turzo I: Integrated multiparameter nuclear data analysis package. Nucl Instr Meth. 1997, A389: 8992.
Radford DC: ESCL8R and LEVIT8R: Software for interactive graphical analysis of HPGe coincidence data sets. Nucl Instr Meth. 1995, A 361: 297305.
Baczynski J: PC display system for realtime data graphical representation of spectroscopy measurement results. Nucl Instr Meth. 1993, A 325: 523528.
Hearn D, Baker MP: Computer Graphics. 1994, Prentice Hall International, Inc
Newman WM, Sproull RF: Principles of Interactive Computer Graphics. 1979, McGrawHill, Inc
Gallagher RS: Computer Visualization Graphics Techniques for Scientific and Engineering Analysis. 1995, CRC Press: Boca Raton, Ann Arbor, London, Tokyo
Morháč M, Kliman J, Matoušek V, Turzo I: Sophisticated visualization algorithms for analysis of multidimensional experimental nuclear spectra. Acta Phys Slov. 2004, 54: 385400.
Morháč M, Matoušek V, Turzo I, Kliman J: DaqProVis, a toolkit for acquisition, interactive analysis, processing and visualization of multidimensional data. Nucl Instr Meth. 2006, A559: 7680.
Brun R, Rademakers F, Panacek S, Buskulic D, Adamczewski J, Hemberger M: ROOT, An ObjectOriented Data Analysis Framework, Users Guide 3.02c. CERN. 2002
Acknowledgements
The work is supported by the Grant Agency of Slovak Republic through contract GAV 2/7117/27.
Author information
Authors and Affiliations
Corresponding author
Authors’ original submitted files for images
Below are the links to the authors’ original submitted files for images.
Rights and permissions
Open Access This is an open access article distributed under the terms of the Creative Commons Attribution Noncommercial License (https://creativecommons.org/licenses/bync/2.0), which permits any noncommercial use, distribution, and reproduction in any medium, provided the original author(s) and source are credited.
About this article
Cite this article
Morháč, M., Matoušek, V. Interactive visualization of multidimensional coincidence spectra. PMC Phys A 1, 7 (2007). https://doi.org/10.1186/1754041017
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/1754041017