Academia.eduAcademia.edu

User interface for analysis of experimental data

2015, Trakia Journal of Science

Trakia Journal of Sciences, Vol. 13, Suppl. 1, pp 420-425, 2015 Copyright © 2015 Trakia University Available online at: http://www.uni-sz.bg ISSN 1313-7069 (print) doi:10.15547/tjs.2015.s.01.072 ISSN 1313-3551 (online) USER INTERFACE FOR ANALYSIS OF EXPERIMENTAL DATA K. Yankov*, D. Ilieva Faculty of Technics and Technologies, Trakia University, Yambol, Bulgaria ABSTRACT The nature and the characteristics of the data obtained in scientific experiments is analyzed. The general regularities are formalized and the requirements for the user interface are formulated. Data structures TExperiment and TBasePoint, according to the requirements of Object-oriented programming, are proposed. The approach is implemented with the software Korelia-Ident for identification of experimental data. Key words: data structures, modeling, data processing, object-oriented programming INTRODUCTION The experiment is purposeful activity to obtain data about the nature and behavior of the studied systems. It is implemented in strict conditions which guarantee controlled impact on the system and abilities to receive the result. The impact force is implemented with the parameters that cannot be changed by the system. That is why they are called "independent parameters". The system responds to the force by changing some of its inherent characteristics, which are called "dependent variables". The experimental data can be processed and evaluated with different applied software, which contributes to the freedom and the adaptability of the investigation. The modern devices used in researches can transmit data to computers. The external devices that produce the primary data are known as Data Circuit terminating Equipment (DCE), and the computer and the software that accept and process the data from the devices will be referred to as Data Terminal Equipment (DTE). DCE and DTE are connected by an interface for data transmission: RS 232, USB or LAN. A system for interactive description of the protocols for data transmission from DCE and their acceptance from the user software is described in [1]. In many cases, DCE does not have an interface which can be connected to the DTE. Another reason for the lack of such an ___________________________  Correspondence to: Kaloyan Yankov, Trakia University, Faculty of Technics and Technologies 38 Graf Ignatiev str., 8600 Yambol, Bulgaria kaloyan.yankov@trakia-uni.bg 420 interface is the methodology of the study. These are classes of studies that are collected in a long time intervals. In such cases it is appropriate to develop interactive tools for their input. The purpose of the experiment is to determine and describe the causality between the independent and dependent parameters. It is therefore important to analyze the nature and the characteristics of the independent and dependent variables in different in nature experiments, to establish and formalize the general laws. Formalization will aid in the creation of generalized data structures, and therefore in the creation of dialog procedures for the data input into the programming system. The purpose of this work is to identify and formalize the general regularities in describing the results of the experiment. This will help create generalized data structures and userfriendly interface of the programming system. FORMAL DESCRIPTION OF THE EXPERIMENT Experimental studies, regardless of the method of conducting and nature of the object of study, have common characteristics. These characteristics may be formalized into procedures which follow a precondition for unification of post-processing and an analysis of the results. 1. The system S is the studied object. The system is treated with an independent variable Г - input influence. Trakia Journal of Sciences, Vol. 13, Suppl. 1, 2015 YANKOV K., et al. X  , and they may be numbered according to their position in the order: 2. The reaction Λ of the system S is:   S () (1) 3. The independent variable Г has a set of bounded real values X   R . 4. The dependent variable Λ has a co-domain Y  R , belonging to the real numbers. X   8. For each value xi  X  , mi=|xi| a number of effects are applied to the system: (4) xi1 , xi 2 , xi 3 , xi 4 ..., xi ( mi 1) , ximi The aim is to explore the statistical parameters of the system’s response to a unique value of the input impact. Because of that, almost always assume that the elements of the row (4) are equal. However, this assumption cannot exist in reality. There is a natural dispersion of the independent parameter. This necessitates statistical evaluation of the input values. I.e. the independent parameter is represented by the ordered pair of mean and standard deviation: xi ,  xi . Thus, as a result of conducting an experiment was prepared by a number of ordered pairs representing the independent variable: variable is defined a standard e . Thus for x  X  a real number a is assigned :  x   a.e (2) 5. The standard e and the measure μ are applied to obtain N discrete values which will be used to influence the system and observe its behavior. For this purpose N distinct real numbers а1, а2,..., аN are chosen to receive the input‘s effects: x1  a1.e ; x2  a2 .e ; ...; x N  a N .e xi  X  , i  1,2,..., N  (3) 6. With the selected relation  , the scheme (3) allows to arrange the elements in the set x , , x , , x , ,..., x 3 x ,3 9. For each member of the row (5), mi reactions yi are measured. That is the dependent parameter of the system:  , xN x2  x1   x3  x2   ...  xN  xN 1  4. For the set of values X  of the independent yi ,mi  S xi ,mi N 1 Thus the domain of XГ is [x1, xN]. 7. There is no requirement for equality of the intervals between the values of the independent parameter, i.e. in general: xi  X Г , x j  X Г x,2 3  : x1  x2 ,  x3  ...  x N 1  x N    0 2 2 The most commonly used relation is '<'.   X Г   0  xi  x j    xi    x j  x ,1 1  : 1 : N   X  5. The set X  possess an extreme additive measure μ, such that: 1  x , x , x ,..., x  i  1,2,..., N , mi  1,2,..., | xi | That way for the i-th input impact xi a row of output responses is received: yi ,1 , yi , 2 ,........., yi ,mi 1 , yi ,mi  Yi  Y (6) N 1  ,  x, N 1 , x N ,  x, N   (5) data is: y , , y , , y , ,..., y y1 1 y2 2 3 y3 N 1  ,  yN 1 , y N ,  yN Based on the aforesaid, an experiment E can be defined as a relation    S : xi ,  ix  y i ,  iy    xi  X   x1   x1 , x N   xN , Е:     Yi - range of the i-th dependent parameter. yi  Y  inf y i   yi , sup y i   yi It is assumed that the values in the row (6) have a Gaussian distribution and can be i=1,2,...,N presented with an average value yi and a The ordered quaternion: standard deviation  yi . These two variables form the ordered pair y ,  represent the i yi result of the i-th experiment. x , , y ,  i ix i iy  (8) will be called experimental base point or base element. The corresponding row of (5) experimental Trakia Journal of Sciences, Vol. 13, Suppl. 1, 2015 421 (7)  OBJECT-ORIENTED STRUCTURE OF THE INTERFACE MODEL When creating a model of experiment, the possible data categories which the model must reflect have to be considered. These are mainly graphical and non-graphical data. Graphics present experimental data in Euclidean space [2]. Non-graphical data is data of general type, as well as data which characterizes each copy of the experiment. It complements the TMicroGraph = class(TObject) UnicCode : longint; UserIdent : string; MicroGraphValid : byte; LinearMetric: TLinearMetric; AngleMetric : TAngleMetric; FVisible : boolean; ObjColor : TColor; ............. YANKOV K., et al. graphical data. Most frequently, the data is either numeric or symbolic. The creation of an object-oriented structure "class of experiment" must take in account these two categories. Data-oriented graphical visualization is described in the abstract class TMicroGraph. TMicroGraph is defined in [3] as an abstract class-ancestor of graphical classes. It has been created as a successor of the base class TObject (Figura 1). // Unic identification code of the object // User defined identificator // validity flag // Pixel, Millimeter, Centimeter, Meter // Degree, Radian // visibility // object color Figure 1. Abstract graphical class-ancestor Because this class contains the basic elements needed for identification and visualization of the exemplar, it is appropriate to be used as a class-ancestor of experimental data. This will ensure compatibility with the object-oriented graphical extension. For the category experiment E (7), a classheader TExperiment (Figure 2) as a successor of TMicroGraph is defined. TExperiment=class(TMicroGraph) N : integer // Number of samples X_Dim, // Dimension of independent Y_Dim : string variable // Dimension of dependent variable X_1, X_N : real; // Domain range of independent values Y_min,Y_max : real; // Range of dependent values Data_format : string; // Numeric display format Form : set_of_forms; // Form of base points Color : TColor; //Color of base points Size : integer; // Size of base points in pixels Base_points :TBasePoint; // Pointer to list of base points . . . . . . . . . Figure 2. Data definition of Experiment The pointer Base_points is the header (Figure 3) of a double-linked list with experimental base points: 422 Trakia Journal of Sciences, Vol. 13, Suppl. 1, 2015 YANKOV K., et al. TBasePoint = class(TObject) M : integer X, X_SD, Y, Y_SD : real; SKF : real; Visible, Active : boolean; NextPoint, PrevPoint : TBasePoint; . . . . . . . . . // Serial number of base point // Average value, standard deviation for X // Average value, standard deviation for Y // approximation coefficient // visible/unvisible point // active / inactive point // pointer to next base point // pointer to previous base point Figure 3. Header-class TBasePoint Besides the values of the ordered quaternion (8), TBasePoint contains approximation and visualization parameters for each base point. The boolean parameter “Active” determines whether the base point must be used in the calculation procedures (eg. approximation, differentiation, integration). Each data class should have the realization part and interface part. The methods for data manipulation are described in the realization part. The interface part proposes a set of operations to access and modify the class properties.  Create and Destroy Methods. The constructor ‘Create’ allocates memory to instantiate the object and initializes its data. The “Destroy” method destroys the class and releases the memory allocated to it.  GET operators. They are a necessary part to realize the class interface because of its encapsulation. They ensure access to the parameters of a concrete object in the program.  SET operators. These operators modify the properties of the classes.  File operations. They enable the writing in/reading from a file of experimental data. The possible data formats are ASCII, CSV, Paradox, SSP [1]. The structure of the formulated classes for presenting the experimental data is shown on Figure 4. Figure 4. Class hierarchy of experimental data SOFTWARE REALIZATION The formulated requirements to the user interface and the supporting data structures are implemented in the program Korelia-Ident. The program offers opportunities for data processing [4], identification [5], modeling, and studying of dynamic processes. With its Trakia Journal of Sciences, Vol. 13, Suppl. 1, 2015 423 user-friendly interface [6, 7], it is preferred by humanities scholars [8, 9, 10]. In [11], how bread crust color changes during baking is modeled (with permission from m-r Zl. Zlatev). Figure 5 shows a dialog with the YANKOV K., et al. data of the color components of the XYZmodel. In the same paper, the author uses Korelia-Ident to identify the color changes during baking. Figure 5. Data entry window CONCLUSIONS The article analyzes the nature and characteristics of the data obtained in scientific experiments. It was found that subject of statistics are not only the dependent, but also the independent variables. General laws and proposed dynamic structures for images and non-graphical data according to the requirements of Object-oriented programming are formalized. A user-friendly interface for receiving and transforming data from DCE is developed, as well as interactive input of data into the computer system, accompanied by statistical processing and evaluation of data. Basic structures are organized in classes according to the requirements of objectoriented programming. Abstract base class is TMicrograph. It is an ancestor of the TExperiment and TBasePoint classes. The last class forms dynamic double-linked list containing experimental base points. The approach is implemented with the software Korelia-Ident. Korelia-Ident is intended to provide a highly interactive environment for researchers to identify, model and simulate the properties of dynamic experimental systems. 424 ACKNOWLEDGMENTS This study was supported by Grant 04_ФТТ/18.07.2014 “Interactive Program System for Identification and Evaluation of Experimental Data” from the Faculty of Technics and Technologies, Trakia University - Yambol, Bulgaria. REFERENCES 1. Yankov, K. Interactive Generation оf Data Transmission Protocol Between External Device and Computer. Proc. Int. Conference on Information Technologies (InfoTech-2007). sept.21-23, 2007, Varna, Bulgaria, pp 231-238. 2. Yankov, K. Structure and functions of the graphic programming languages. Proc. Eight Nat. Conf. "Modern Tendencies in the Development of Fundamental and Applied Sciences" june 5-6, 1997, Stara Zagora, Bulgaria, pp.94-102 (in Bulgarian). 3. Yankov, K. Object Oriented TwoDimensional Graphics in a Borland Delphi Environment. Proc. 13-th Int.Conf. SAER'99, sept.18-19, 1999, st.Konstantin resort, Varna, Bulgaria, pp. 169-173. 4. Yankov, K. Preprocessing of Experimental Data in Korelia Software. Trakia Journal of Sciences, Vol. 8, Suppl. 3, pp. 41-48, 2010 5. Yankov, K. System Identification оf Trakia Journal of Sciences, Vol. 13, Suppl. 1, 2015 Biological Processes. Proc. 20-th Int.Conf. "Systems for Automation of Engineering and Research (SAER-2006). St.St. Constantine and Elena resort, sept.23-24, 2006, Varna, Bulgaria, pp 144-149. 6. Yankov, K. Simple Expression Language for Model Identificaton. Proc. of the Int. Conference on Information Technologies (InfoTech-2008). Constantine and Elena resort, sept.19-21, 2008, Varna, Bulgaria, vol.2, pp.259-266. 7. Yankov, K. Recognition and Function Association of Experimental Data. Proc. of the Int. Conference on Information Technologies (InfoTech-2009). Constantine and Elena resort, sept.17-20, 2009, Varna, Bulgaria, pp.131-140. 8. Hadzhibozheva P.; A.Tolekova, Ts.Georgiev G.Ilieva, R.Kalfin. Angiotensin II Receptors Type 2 and Gastrointestinal Tract Contractile Activity. YANKOV K., et al. Comptes rendus de l'Acadmie Bulgare des Sciences. Tome 67, No 8, 2014. pp. 10911100. 9. Hadzhibozheva P.V., T.K. Georgiev , R.E.Kalfin , A.N. Tolekova. Angiotensin II and Vasopressin Effects on Motor Activity of Rat Isolated Tissue Strips from Urinary Bladder and Rectum. Bulg. Chem. Commun., 2012 , 44 (3), 252 – 257. 10. Hadzhibozheva P. V., A. N. Tolekova, T. K. Georgiev. Angiotensin II receptors – role for the contraction of large intestine. Bulgarian Journal of Veterinary medicine, 2013, 16, Supp. 1, 10-18. 11. Zlatev Z. Modeling of Color Changes in Bread Crust During Baking. Proc. Int. Conf. on Technics, Technologies and Education “ICTTE 2014”, oct. 30-31 2014, Yambol, Bulgaria. pp.680-685. Trakia Journal of Sciences, Vol. 13, Suppl. 1, 2015 425