**3.1 Mobile apps**

Software applications are necessary tools due to complementary characteristics for the hardware designs of spectrometer and colorimetry. Mobile apps were therefore developed to make the overall system user-friendly [14, 15, 25, 28, 36, 45, 46, 52].

Albumin Tester [14] application was developed for Android phones to let the user determine the albumin concentration in the urine sample. To test alcohol in saliva, SPAQ [15, 25] application was developed which estimated the alcohol level based on the histogram distribution. Colorimetric Plate Reader app [36] was proposed for qualitative and quantitative ELISA test. PhotoMetrix [46] application was introduced, which runs the univariate and multivariate analyses to quantify the

**73**

**Figure 6.**

*ChemTrainer app is presented in (b).*

*From Sophisticated Analysis to Colorimetric Determination: Smartphone Spectrometers…*

was employed to enable multiple users to reach the server simultaneously.

analytes in the samples. Colorimetric Test Reader app was presented in [52], which

Solmaz et al. [28] developed ChemTrainer app which quantifies the peroxide content running machine learning algorithm on the remote server as shown in **Figure 6a**. After capturing a photograph of colorimetric test strips, the app sends mean RGB values for a region of interest to the remoter server as machine learning algorithm needs only mean values for the classification. A message queue service

Screenshots of the ChemTrainer are given in **Figure 6b**. In the opening page, there are two options for the user: either capturing a new image with "Experiment" button or using existing image from the phone with the "Load From Gallery" button. After an image is captured or loaded from the gallery, the user may proceed or retake a new image. Next, a region of interest needs to be cropped with adjustable crop box. The app calculates the average red, green, and blue values of the cropped image and sends to the server, which runs a classification algorithm that decides the class of image. In the meantime, the app displays a progress animation until the

The ChemTrainer app was further improved to be able to work with singleimage reference (SIR) and named as ChemTrainerSIR [45]. In addition, it gained additional features like saving location and time data for the previous experiments, which help the user to analyze the past results when needed. The ChemTrainerSIR app is described in **Figure 7** with screenshots. There are "train" and "experiment" options on the home page as shown in **Figure 7a**. Training steps are introduced in **Figure 7** from b to g (top row), while testing steps are described at the bottom row from h to m. If the user selects the train option, some initial information needs to be entered such as the name of the chemical compound as the name of the model (e.g., phosphate), the units of measurement (e.g., ppm), and the number of samples with known concentration levels. The user either captures an image of samples or loads from the gallery. Then, the user enters the reference values for each sample which will be used later in the testing phase. All these information are stored in a designated folder in internal storage. In the testing phase, the user first selects the model, which was used in training. Then, a new image is taken to quantify the concentra-

*The communication between the smartphone and a remote server is illustrated in (a) and the developed* 

*DOI: http://dx.doi.org/10.5772/intechopen.82227*

result comes back from the server.

determines pH, protein, and glucose values in the assay.

tion value based on comparison with the reference model.
