A New Method of Clusters Definition Based on a Saccadic Model of Human Vision

ARR.MS.ID.555739

Appendix 3. Excerpts of Bfm Code for Analysis of X-Rays: The Kaggle Dataset

Jupiter Notebooks can be found here:

https://www.kaggle.com/romantank/covid-19-detectionfrom- lung-x-rays-aea7df/edit https://www.kaggle.com/romantank/ starter-covid-19-patient-x-ray-image-ab33873a-1/edit

train_df = pd.read_csv(‘../input/coronahack-chest- xraydataset/ Chest_xray_Corona_Metadata.csv’) valid_df = pd.read_csv(‘../ input/coronahack-chest- xraydataset/Chest_xray_Corona_dataset_ Summary.csv’)

Only functions definitions how to run the files (to be compared with the Boundary Function Method as in below).

The Current file:

https://www.kaggle.com/romantank/pretrained-models- and-predictions-df3f83/edit X-Ray images produced by MATLAB code:

fig = plt.figure() print(fig)=>Figure(432x288) matplotlib.image.AxesImage at0x7f36af5b67b8> plt.imshow( normal_images[0], cmap=’gray’) plt.imshow(covid_images[ 0], cmap=’gray’)

Data Macro-Settings:

X-RAY images in directory: “../input/covid-19-x-ray-10000- images/dataset” There are 28 NORMAL and 70 COVID images

Normal dim’s: (1612, 1870) in response to print(normal_images[ 0].shape)

Covid dim’s: (842, 1024, 3)in response to print(covid_images[ 0].shape)

Each image by default has size (8.0”, 6.0”) [reports 432x288 pixels (?)] Shown: NORMAL(0) NORMAL(20)

COVID(0) COVID(20) COVID(69)

The code to create images above:

import glob

import matplotlib.pyplot as plt import matplotlib.image as mpimg

%matplotlib inline

normal_images = []

for img_path in glob.glob(DATASET_DIR + ‘/normal/*’): normal_ images.append(mpimg.imread(img_path))

print(len(normal_images)) print(normal_images[0]) print(normal_images[0].shape)

fig = plt.figure() print(fig) fig.suptitle(‘normal’)

plt.imshow(normal_images[0], cmap=’gray’)

covid_images = []

for img_path in glob.glob(DATASET_DIR + ‘/covid/*’): covid_ images.append(mpimg.imread(img_path))

print(len(covid_images)) print(covid_images[0].shape)

fig = plt.figure() print(fig)

fig.suptitle(‘covid’) plt.imshow(covid_images[0], cmap=’gray’) normal_images = []

for img_path in glob.glob(DATASET_DIR + ‘/normal/*’): normal_ images.append(mpimg.imread(img_path))

fig = plt.figure() fig.suptitle(‘normal’)

plt.imshow(normal_images[0], cmap=’gray’)

circle1 = plt.Circle((1500, 800), 100, color=’yellow’) fig = plt. gcf()

ax = fig.gca() ax.add_artist(circle1)

covid_images = []

for img_path in glob.glob(DATASET_DIR + ‘/normal/*’): covid_ images.append(mpimg.imread(img_path))

fig = plt.figure() fig.suptitle(‘covid’)

plt.imshow(normal_images[0], cmap=’gray’)

circle2 = plt.Circle((2000, 500), 100, color=’blue’) fig = plt. gcf()

ax = fig.gca() ax.add_artist(circle2)

Circular Spots and Measurement Boundary (For Normal image)

# Apply a circular probe (circle1) to the Normal Image

# with (Center_Normal_X, Center_Normal_Y) and radius Rad_ Normal # A concentric circumference (circle1_1) with a radius

# Rad_Normal + Delta_Normal is applied as a measurement boundary # (Delta_Normal: a gap between probe and boundary)

Center_Normal_X, Center_Normal_Y = 1400, 800

Rad_Normal = 100

Delta_Normal = 40

circle1 = plt.Circle((Center_Normal_X, Center_Normal_Y), Rad_Normal, color=’yellow’)

fig = plt.gcf() ax = fig.gca()

ax.add_artist(circle1)

circle1_1 = plt.Circle((Center_Normal_X, Center_Normal_Y), Rad_Normal + Delta_Normal, color=’red’, fill=False)

fig = plt.gcf() ax = fig.gca()

ax.add_artist(circle1_1)

In DistanceMatrix_cpu(boundary_x, boundary_y, internal_ points_x, internal_points_y):

Called from

DM_data_Sample = DistanceMatrix_cpu((Circ_Bound_x), (Circ_ Bound_y),(Circ_Bound_x), (Cir c_Bound_y));

References

  1. Tankelevich R (2019) Inverse Problem’s Solution Using Deep Learning: An EEG-based Study of Brain Activity p. 1-15.
  2. Girshick Ross (2015) Fast R-CNN. Proceedings of the IEEE International Conference on Computer Vision pp: 1440-1448.
  3. Ren Shaoqing, Kaiming He, Ross Girshick, Jian Sun (2015) Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. Advances in Neural Information Processing Systems 1: 91-99.
  4. Zitnick C Lawrence, P Dollar (2014) Edge boxes: Locating object proposals from edges. Computer Vision-ECCV. Springer International Publishing pp. 391-4050.
  5. Alexey Bochkovskiy, Chien-Yao Wang, Hong-Yuan Mark Liao (2020) YOLO v4: Optimal Speed and Accuracy of Object Detection. Computer Vision and Pattern Recognition V1:1-17
  6. Joseph Redmon, Santosh Divvala, Ross Girshick, Ali Farhadi (2016) You Only Look Once: Unified, Real-Time Object Detection. Computer Vision and Pattern Recognition 5: 1-10.
  7. Karageorghis A, Fairweather G (1998) The method of fundamental solutions for elliptic boundary value problems. Advances in Computational Mathematics 9: 69-95.
  8. Karageorghis A (2013) A Moving Pseudo-Boundary MFS for Three-Dimensional Void Detection. Adv Appl Math Mech 5(4): 510-527
  9. Klekiel Tomasz (2017) Application of the Fundamental Solution Method to Object Recognition In The Pictures. Image Processing & Communications 22(3): 13-22.
  10. Wendland Holger (1995) Piecewise polynomial, positive definite and compactly supported radial functions of minimal degree. Advances in Computational Mathematics 4: 389-396
  11. Nicholas Carion (2020) End-to-End Object Detection with Transformers. Computer Vision and Pattern Recognition 3: 1-26.
  12. Vaswani Ashish (2017) Attention is all you need. 31st Conference on Neural Information Processing Systems (NIPS 2017) p. 1-11.
  13. Kirillov Alexander (2019) Panoptic Segmentation. Computer Vision and Pattern Recognition 3: 1-10.
  14. O Russakovsky (2016) What is the point. Semantic Segmentation with point supervision, Computer Vision, and Pattern Recognition 2: 1-16
  15. Alan Dix, Janet Finlay, Gregory Abowd, Russell Beale (2004) Human Computer Interaction, PRENTICE HALL, 3rd edition, ISBN13: 9780130461094.
  16. John Findlay, Robin Walker (2012) Human saccadic eye movements. Scholarpedia 7(7): 5095.
  17. CALVIN Dataset.
  18. Nister D, H Stewenius (2008) Linear Time Maximally Stable Extremal Regions, Lecture Notes in Computer Science. 10th European Conference on Computer Vision, Marseille, France 5303: 83-196.
  19. Matas J, O Chum, M Urba, T Pajdla (2002) Robust wide baseline stereo from maximally stable extremal regions. Proceedings of British Machine Vision Conference pp: 384-396.
  20. Obdrzalek D, Basovnik S, Mach L, Mikulik A (2009) Detecting Scene Elements Using Maximally Stable Colour Regions. Communications in Computer and Information Science 82: 107-115.
  21. Mikolajczyk K, T Tuytelaars, C Schmid, A Zisserman, T Kadir, L Van Gool (2005) A Comparison of Affine Region Detectors. International Journal of Computer Vision 65: 43-72 .
  22. Geoffrey Hinton talk What is wrong with convolutional neural nets? Capsule Networks Are Shaking up AI.
  23. Sara Sabour, Nicholas Frosst, Geoffrey E Hinton (2017) Dynamic Routing Between Capsules. 31st Conference on Neural Information Processing Systems p: 3859-3869.
  24. Fractal Neurons.
  25. Kant’s philosophy: Principles in illustrations (Russian).
  26. Stang Nicholas F (2016) Kant’s transcendental idealism. Stanford Encyclopedia of Philosophy.
  27. Tulis T (2016) Measuring the User Experience, Measuring the User Experience: Collecting, Analyzing, and Presenting Usability Metrics. PDF Drive.