Advanced Image Processing Techniques for Physics Studies T

  • Slides: 20
Download presentation
Advanced Image Processing Techniques for Physics Studies T. Craciunescu and A. Murari with contribution

Advanced Image Processing Techniques for Physics Studies T. Craciunescu and A. Murari with contribution from: G. Kocsis, P. Lang, I. Tiseanu, J. Vega and JET EFDA Contributors * *See the Appendix of F. Romanelli et al. , Fusion Energy Conference 2008 (Proc. 22 nd Int. FEC Geneva, 2008) IAEA, (2008) Workshop on Fusion Data Processing Validation and Analysis, ENEA- Frascati (26 -28 March 2012)

Optical flow - extraction of advanced information for control and physics studies - Implementation

Optical flow - extraction of advanced information for control and physics studies - Implementation (CLG, MPEG) - Application to pellets and instability tracking Automatic instability detection - Phase congruency image classification - Sparse image representation for disruption prediction - Interest points and local features for image identification

Optical flow Basic assumptions: attempt to find the vector field which describes how the

Optical flow Basic assumptions: attempt to find the vector field which describes how the image is changing with time the grey values of image objects in subsequent frames do not change over time small displacements: frame t optical flow frame (t+1) Ill-posed problem: Etlinger Tor sequence - - small perturbations in the signal can create large fluctuations in its derivatives undetermined set of equations

Combined local-global (CLG) method Assumes that the unknown optic flow vector is constant within

Combined local-global (CLG) method Assumes that the unknown optic flow vector is constant within some neighbourhood of size ρ. Ø A sufficiently large value for ρ is very successful in rendering the method robust under noise. Ø in flat regions where the image gradient vanishes, the problem become again undetermined. Ø Coarse-to-fine multi-resolution approach Incorporates a global smoothness assumption for the estimated flow field. Ø Larger values for α result in a stronger penalisation of large flow gradients and lead to smoother flow fields. Ø At locations with |∇ f| ≈ 0, no reliable local flow estimate is possible, but the regulariser | ∇u|2 + |∇v|2 fills in information from the neighbourhood the filling-in effect.

Predictive understanding of the underlying processes of the pellet-plasma interaction Recent investigations revealed that

Predictive understanding of the underlying processes of the pellet-plasma interaction Recent investigations revealed that pellet ablation is a complex 3 D process taking place on the μs timescale → pellet cloud dynamics (expansion, instabilities and drifts) Analysis of pellet cloud dynamics and drifts by observing the visible radiation with fast framing cameras and by applying image processing algorithms _________________________________________ *detailed results will be presented at EPS conference (G. Kocsis et al) Experiments with sophisticated diagnostic settings performed during the 2011 campaign of AUG

Determination of ice extrusion velocity by optical flow method Illustration of optical flow calculations

Determination of ice extrusion velocity by optical flow method Illustration of optical flow calculations Image sequences provided by a CCD camera viewing the ice at the exit of the nozzles of the extrusion cryostat showing the extruded deuterium ice in case of JET pulse #76379 Line profiles through the images and its reconstruction (bottom)

MPEG-2 compressed space • Statistical redundancies in both temporal and spatial directions: (P)- Predicted

MPEG-2 compressed space • Statistical redundancies in both temporal and spatial directions: (P)- Predicted frames are coded with forward motion compensation, using the nearest previous reference (of type I or P) images. → Motion is represented by a field of motion vectors (MV) → one MV per macroblock - inter-pixel correlation - simple translation motion between consecutive frames (I)- Intrinsic frames - coded using only information present in the picture itself by discrete cosine transform (DCT) – Processing at the level of MB 8 blocks – DCT concentrates the energy into the lowfrequency coefficients (spatial redundancy) → neglecting the low value coefficients → High-frequency coefficients are more coarsely quantized than the low-frequency coefficients (B) - Bi-directional frames are also motion compensated, this time with respect to both past and future reference frames. Ø The parts of the image that do not change significantly are simply copied from other areas or other frames. Ø In case of the other parts, for each MB 16, the best matching block is searched in the reference frame(s). Encoding is macroblocks implemented using MB 14

MV field used: Ø as a crude initial estimation for optical flow recovery Ø

MV field used: Ø as a crude initial estimation for optical flow recovery Ø for image segmentation Ø Confidence measure to ensure that the MV field is meaningful Assumption: areas with strong edges exhibit better correlation with real motion than textureless ones • eigenvalue decomposition • size of the eigenvalue is a measure of uncertainty in the direction of the corresponding eigenvector (the stronger the eigenvalue, the lower the error variance) v weighted averages of the image gradients can be expressed using DCT coefficients:

Computing time Image processing step Time (ms) Segmentation using information from MPEG video compressed

Computing time Image processing step Time (ms) Segmentation using information from MPEG video compressed domain Error estimation § § Peak signal-to-noise ratio (PSNR) residual image > 14 d. B of the The difference between the speeds of the different pellets in the same ribbon structure below 12. 5%. Applying the regularization rules for the 0. 6 MV field Median filtering + 0. 8 Morphological operations Optical flow calculation performed on the segmented image region Image derivatives 1. 8 SOR iteration 4. 1 Median filtering 0. 3 Ø Total optical flow computation time: ~16. 4 ms. Ø Image acquisition framing rate: 50 Hz Ø Optical flow evaluation can be engrafted in MPEG compressing routines in case of real time estimation of the speed of moving objects.

Tracking of plasma instabilities MARFEs can reduce confinement leading to harmful disruption → a

Tracking of plasma instabilities MARFEs can reduce confinement leading to harmful disruption → a risk for the integrity of the devices MARFEs determine a significant increase in impurity radiation → a clear signature in the video data Image processing step Applying the regularization rules for the MV field Median filtering Dilation/Erosion Labeling Objection centroid determination Time (ms) 0. 5 0. 7 3. 0 2. 4 0. 3

Phase congruency Visually discernable features coincide with those points where the Fourier waves, at

Phase congruency Visually discernable features coincide with those points where the Fourier waves, at different frequencies, have congruent phases Mach bands Extraction of highly informative features at points of high PC black – measued luminance red –brightnesses as perceived Lateral inhibition vs. Pahse congruency construction of PC from the Fourier components M. C. Morrone et al. , Mach bands are phase dependent, Nature 324(1986)250.

t Approximations of F and G by convolving the signal with a quadrature pair

t Approximations of F and G by convolving the signal with a quadrature pair of filters (linear-phase filters for phase information preservation) Gabor filters with different frequencies and orientations An appropriate choice for constructing the symmetric/antisymmetric quadrature pairs of filters are the Gabor filters. S. N. Prasad, J. Domke, Gabor Filter Visualization, Technical Report, University of Maryland (2005) Ø symmetric/antisymmetric quadrature pairs of nonorthogonal wavelets Response for Gabor filter oriented vertically

Combine all the orientations SIM map, pooled into a single similarity score Ø 96.

Combine all the orientations SIM map, pooled into a single similarity score Ø 96. 2% were correctly interpreted. From the misclassified events 0. 03% were false positives and 3. 5% false negatives.

Sparse learned representations of video images Sparse image representation Since images are usually large,

Sparse learned representations of video images Sparse image representation Since images are usually large, the decomposition is implemented on overlapping patches instead of whole images. Ø D – fixed, general (DCT, wavelet) or it can be adapted to suit the application domain. Ø Learning both D and a in an efficient way has been the focus of much of recent published work. • D initialized from random patches of natural images. • Then learned adaptively from the data such that the decomposition is sparse: Each patch written as a column vector Sparsity: - counting the number of non-zero elements in a vector Matching pursuit algorithm • first find the one D atom that has the biggest inner product with the signal • then subtract the contribution due to that atom • repeat the process until the signal is satisfactorily decomposed

Ø Decomposition error: Ø N different classes Si of signals – learn separate dictionaries,

Ø Decomposition error: Ø N different classes Si of signals – learn separate dictionaries, one per class – a signal belonging to one class is reconstructed poorly by a dictionary corresponding to another class. – classification is performed by using residual reconstruction errors of a signal by the dictionary belonging to a class Limited results: as a discriminative operator for classification. ~ 85 % success classification rate

Learning discriminative dictionaries ‘Good’ for one class ‘bad’ for the orher by incorporating discriminative

Learning discriminative dictionaries ‘Good’ for one class ‘bad’ for the orher by incorporating discriminative components: Dictionary incoherence term Encourages dictionaries associated to different classes to be as independent as possible, while still allowing for different classes to share features. Improved (preliminary) results: ~ 92 % success clasification rate → → atoms representing common features in all classes tend to appear repeated almost exactly in dictionaries corresponding to different classes False similar reconstruction decomposition error • Detect by inspecting the inner product of dictionary atoms. • Threshold for controlling the sharing atoms Ø Further tuning adjustable parameters – mainly size of patches multiscale Ø Multiscale framework to capture first a global appearance of objects

Image retrieval § Bag-of-words model - represention of a ‘sentence’ as an unordered collection

Image retrieval § Bag-of-words model - represention of a ‘sentence’ as an unordered collection of words, disregarding grammar and even word order. Ø Transforms an image into a large collection of feature vectors invariant to: • image translation • scaling • rotation • illumination changes • local geometric distortion → algorithms to detect and describe local features in images: – MSER (Efficient Maximally Stable Extremal Region) Ø extremal region

Component tree Ø Rooted, connected tree constructed by successive thresholdings taking into account hierarchic

Component tree Ø Rooted, connected tree constructed by successive thresholdings taking into account hierarchic image inclusion → maximally stable regions are those regions which have approximately the same region size across 2Δ neighboring threshold images Features calculated: mean gray value, region size, center of mass, width, dimension of the bounding box (weights for the features can be used to adapt to different kinds of input data). Matching criteria: smallest Euclidean distance between feature vectors

ER example Reference image Various MARFE images Image identification using maximally stable extremal regions

ER example Reference image Various MARFE images Image identification using maximally stable extremal regions

Conclusions Ø Optical flow method for the study of several fusion plasma relevant issues,

Conclusions Ø Optical flow method for the study of several fusion plasma relevant issues, able to provide the real velocity for objects moving close to structures. – MPEG Motion segmentation - a key contrivance to allow very fast optical flow estimation – Application to pellet injection and pellet dynamic Ø Phase congruency as a highly localized operator for automatic MARFE identification with a good prediction rate. Ø Sparse image representation for disruption prediction. Encouraging preliminary results. Improvements expected mainly from a more efficient definition and implementation of the discriminative operator. Ø Image retrieval by image local feature detection.